Interface EhrEndpoint
- All Known Implementing Classes:
DefaultRestEhrEndpoint
public interface EhrEndpoint
-
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
-
Method Details
-
createEhr
UUID createEhr()Create a new EHR.- Returns:
- ehrID
- Throws:
ClientExceptionWrongStatusCodeException
-
createEhr
Create a new EHR with the given EHR_STATUS.- Parameters:
ehrStatus- EHR_STATUS object to create the EHR with.- Returns:
- ehrID
- Throws:
ClientExceptionWrongStatusCodeException
-
getEhrStatus
Get the EhrStatus forehrId.- Parameters:
ehrId- Id of the ehr from which to return the status.- Returns:
EhrStatus- Throws:
ClientExceptionWrongStatusCodeException
-
updateEhrStatus
Updates the status of the ehr withehrIdtoehrStatus- Parameters:
ehrId- EhrId of the ehr which will be updatedehrStatus- new ehrStatus- Throws:
ClientExceptionWrongStatusCodeException
-