Package org.ehrbase.client.openehrclient
Interface EhrEndpoint
-
- All Known Implementing Classes:
DefaultRestEhrEndpoint
public interface EhrEndpoint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDcreateEhr()Create a new EHR.UUIDcreateEhr(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
-
-
-
Method Detail
-
createEhr
UUID createEhr()
Create a new EHR.- Returns:
- ehrID
- Throws:
ClientExceptionWrongStatusCodeException
-
createEhr
UUID createEhr(com.nedap.archie.rm.ehr.EhrStatus ehrStatus)
Create a new EHR with the given EHR_STATUS.- Parameters:
ehrStatus- EHR_STATUS object to create the EHR with.- Returns:
- ehrID
- Throws:
ClientExceptionWrongStatusCodeException
-
getEhrStatus
Optional<com.nedap.archie.rm.ehr.EhrStatus> getEhrStatus(UUID ehrId)
Get the EhrStatus forehrId.- Parameters:
ehrId- Id of the ehr from which to return the status.- Returns:
EhrStatus- Throws:
ClientExceptionWrongStatusCodeException
-
updateEhrStatus
void updateEhrStatus(UUID ehrId, com.nedap.archie.rm.ehr.EhrStatus ehrStatus)
Updates the status of the ehr withehrIdtoehrStatus- Parameters:
ehrId- EhrId of the ehr which will be updatedehrStatus- new ehrStatus- Throws:
ClientExceptionWrongStatusCodeException
-
-