Users
Functions
userNew
New user registration
Parameters
addr
address
New user address
IDHash
bytes32
New user ID hash. Sha3(userID+systemID)
role
New user role.
attrs
New user attributes.
signer
address
Address of the signer of the request
deadline
uint
Expiration timestamp of the request
signature
bytes
Cryptographic signature of the request performed by the signer's key
getUser
Getting ehrID for userID
Parameters
addr
address
User address
Return Values:
user
getUserByCode
Retrieving a user by unique code. Useful for searching for a doctor by numeric code.
Parameters
code
uint64
User unique code
Return Values:
user
userGroupCreate
Creating a user group
Parameters
groupIdHash
bytes32
attrs
User group attributes
signer
address
Address of the signer of the request
deadline
uint
Expiration timestamp of the request
signature
bytes
Cryptographic signature of the request performed by the signer's key
groupAddUser
Adding a user to a group
Parameters
p
User address
groupRemoveUser
Removing a user from a group
Parameters
groupIDHash
bytes32
userIDHash
bytes32
signer
address
Address of the signer of the request
deadline
uint
Expiration timestamp of the request
signature
bytes
Cryptographic signature of the request performed by the signer's key
userGroupGetByID
Getting a user group by ID
Parameters
groupIDHash
bytes32
User group ID hash
Return Values:
userGroup
setAccess
Sets the access level to the object
Parameters
accessID
bytes32
a
signer
address
Address of the signer of the request
deadline
uint
Expiration timestamp of the request
signature
bytes
Cryptographic signature of the request performed by the signer's key
Models
Role
Attribute
AccessLevel
User
UserGroup
Parameters
attrs
User group attributes
members
Array of user group members
GroupMember
Parameters
userIDHash
bytes32
User id hash
userIDEncr
bytes
User ID encrypted by group key
GroupAddUserParams
Parameters:
groupIDHash
bytes32
userIDHash
bytes32
level
userIDEncr
bytes
userID encrypted by group key
keyEncr
bytes
group key encrypted by adding user public key
signer
address
Address of the signer of the request
deadline
uint
Expiration timestamp of the request
signature
bytes
Cryptographic signature of the request performed by the signer's key
IAccessStore.Access
Last updated