EhrIndexer
Provides work with EHR documents and groups of documents.
Functions
setEhrUser
function setEhrUser(
bytes32 userIDHash,
bytes32 ehrId,
address signer,
uint deadline,
bytes calldata signature
) external onlyAllowed(msg.sender)Sets the association between userID and ehrID.
Parameters
userIDHash
bytes32
Hash of userID
ehrId
bytes32
EhrID
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
getEhrUser
Getting ehrID for userID
Parameters
userIDHash
bytes32
Hash of userID
Return Values:
ehrId
bytes32
EhrID
setEhrSubject
Sets the association between ehrID and subject.
Parameters
subjectKey
bytes32
sha3(subjectID + subjectNamespace)
ehrId
bytes32
EhrID
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
addEhrDoc
Adding a new EHR document
Parameters
getEhrDocs
Text
Parameters
userIDHash
bytes32
Hash of userID
Return Values:
getLastEhrDocByType
Retrieve the last document of the specified type.
Parameters
ehrId
bytes
EhrID
Return Values:
getDocByVersion
Retrieve the specified version of the document
Parameters
ehrId
bytes32
EhrID
docBaseUIDHash
bytes32
Hash of document UID
version
bytes32
Document version
Return Values:
getDocByTime
Retrieving a document that is up to date at the specified time
Parameters
ehrID
bytes32
EhrID
Return Values:
getDocLastByBaseID
Retrieving the latest version of the document specified by id
Parameters
userIDHash
bytes32
Hash of userID
Return Values:
deleteDoc
Deleting a document. The actual status of the document changes to Deleted.
Parameters
ehrId
bytes32
EhrId
docBaseUIDHash
bytes32
Hash of document UID
version
bytes32
Document version
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
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
docGroupCreate
Creating a document group
Parameters
docGroupAddDoc
Adding a document to a group of documents
Parameters
groupIDHash
bytes32
Hash of groupID
docCIDHash
bytes32
docCIDEncr
bytes
Document CID encrypted by group 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
docGroupGetDocs
Getting the list of documents included in the group
Parameters
groupIDHash
bytes32
Return Values:
docCIDEncrs
bytes[]
Array of CIDs of documents encrypted with the document group key
docGroupGetAttrs
Getting group attributes
Parameters
groupIDHash
bytes32
Return Values:
Models
Attribute
DocGroupCreateParams
IDocs.Type
IDocs.AddEhrDocParams
IDocs.DocumentMeta
IAccessStore.AccessLevel
IAccessStore.Access
Last updated