Class DefaultRestEhrEndpoint
java.lang.Object
org.ehrbase.openehr.sdk.client.openehrclient.defaultrestclient.DefaultRestEhrEndpoint
- All Implemented Interfaces:
EhrEndpoint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a new EHR.createEhr(com.nedap.archie.rm.ehr.EhrStatus ehrStatus) Create a new EHR with the given EHR_STATUS.Optional<com.nedap.archie.rm.ehr.EhrStatus>getEhrStatus(UUID ehrId) Get the EhrStatus forehrId.voidupdateEhrStatus(UUID ehrId, com.nedap.archie.rm.ehr.EhrStatus ehrStatus) Updates the status of the ehr withehrIdtoehrStatus
-
Field Details
-
EHR_PATH
- See Also:
-
EHR_STATUS_PATH
- See Also:
-
-
Constructor Details
-
DefaultRestEhrEndpoint
-
-
Method Details
-
createEhr
Description copied from interface:EhrEndpointCreate a new EHR.- Specified by:
createEhrin interfaceEhrEndpoint- Returns:
- ehrID
-
createEhr
Description copied from interface:EhrEndpointCreate a new EHR with the given EHR_STATUS.- Specified by:
createEhrin interfaceEhrEndpoint- Parameters:
ehrStatus- EHR_STATUS object to create the EHR with.- Returns:
- ehrID
-
getEhrStatus
Description copied from interface:EhrEndpointGet the EhrStatus forehrId.- Specified by:
getEhrStatusin interfaceEhrEndpoint- Parameters:
ehrId- Id of the ehr from which to return the status.- Returns:
EhrStatus
-
updateEhrStatus
Description copied from interface:EhrEndpointUpdates the status of the ehr withehrIdtoehrStatus- Specified by:
updateEhrStatusin interfaceEhrEndpoint- Parameters:
ehrId- EhrId of the ehr which will be updatedehrStatus- new ehrStatus
-