EhrIndexer
Provides work with EHR documents and groups of documents.
Functions
setEhrUser
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
p
getEhrDocs
Text
Parameters
userIDHash
bytes32
Hash of userID
docType
Document type
Return Values:
docs
List of documents of the specified type for the given userIDHash
getLastEhrDocByType
Retrieve the last document of the specified type.
Parameters
ehrId
bytes
EhrID
docType
Document type
Return Values:
doc
getDocByVersion
Retrieve the specified version of the document
Parameters
ehrId
bytes32
EhrID
docType
Document type
docBaseUIDHash
bytes32
Hash of document UID
version
bytes32
Document version
Return Values:
doc
getDocByTime
Retrieving a document that is up to date at the specified time
Parameters
ehrID
bytes32
EhrID
docType
Document type
Return Values:
doc
getDocLastByBaseID
Retrieving the latest version of the document specified by id
Parameters
userIDHash
bytes32
Hash of userID
docType
Document type
Return Values:
doc
deleteDoc
Deleting a document. The actual status of the document changes to Deleted
.
Parameters
ehrId
bytes32
EhrId
docType
Document type
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
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
docGroupCreate
Creating a document group
Parameters
p
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:
attrs
Array of group attributes
Models
Attribute
DocGroupCreateParams
IDocs.Type
IDocs.AddEhrDocParams
IDocs.DocumentMeta
IAccessStore.AccessLevel
IAccessStore.Access
Last updated