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

Name
Type
Description

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

Name
Type
Description

addr

address

User address

Return Values:

Name
Type
Description

user

getUserByCode

Retrieving a user by unique code. Useful for searching for a doctor by numeric code.

Parameters

Name
Type
Description

code

uint64

User unique code

Return Values:

Name
Type
Description

user

userGroupCreate

Creating a user group

Parameters

Name
Type
Description

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

Name
Type
Description

p

User address

groupRemoveUser

Removing a user from a group

Parameters

Name
Type
Description

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

Name
Type
Description

groupIDHash

bytes32

User group ID hash

Return Values:

Name
Type
Description

userGroup

setAccess

Sets the access level to the object

Parameters

Name
Type
Description

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

Name
Type
Description

attrs

User group attributes

members

Array of user group members

GroupMember

Parameters

Name
Type
Description

userIDHash

bytes32

User id hash

userIDEncr

bytes

User ID encrypted by group key

GroupAddUserParams

Parameters:

Name
Type
Description

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