Users
Functions
userNew
function userNew(
address addr,
bytes32 IDHash,
Role role,
Attribute[] calldata attrs,
address signer,
uint deadline,
bytes calldata signature
) external onlyAllowed(msg.sender)New user registration
Parameters
addr
address
New user address
IDHash
bytes32
New user ID hash. Sha3(userID+systemID)
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:
getUserByCode
Retrieving a user by unique code. Useful for searching for a doctor by numeric code.
Parameters
code
uint64
User unique code
Return Values:
userGroupCreate
Creating a user group
Parameters
groupIdHash
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
groupAddUser
Adding a user to a group
Parameters
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:
setAccess
Sets the access level to the object
Parameters
accessID
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
Models
Role
Attribute
AccessLevel
User
UserGroup
Parameters
GroupMember
Parameters
userIDHash
bytes32
User id hash
userIDEncr
bytes
User ID encrypted by group key
GroupAddUserParams
Parameters:
groupIDHash
bytes32
userIDHash
bytes32
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