java.lang.Object
org.ehrbase.openehr.sdk.client.openehrclient.defaultrestclient.DefaultRestEhrEndpoint
All Implemented Interfaces:
EhrEndpoint

public class DefaultRestEhrEndpoint extends Object implements EhrEndpoint
  • Field Details

  • Constructor Details

    • DefaultRestEhrEndpoint

      public DefaultRestEhrEndpoint(DefaultRestClient defaultRestClient)
  • Method Details

    • createEhr

      public UUID createEhr()
      Description copied from interface: EhrEndpoint
      Create a new EHR.
      Specified by:
      createEhr in interface EhrEndpoint
      Returns:
      ehrID
    • createEhr

      public UUID createEhr(com.nedap.archie.rm.ehr.EhrStatus ehrStatus)
      Description copied from interface: EhrEndpoint
      Create a new EHR with the given EHR_STATUS.
      Specified by:
      createEhr in interface EhrEndpoint
      Parameters:
      ehrStatus - EHR_STATUS object to create the EHR with.
      Returns:
      ehrID
    • getEhrStatus

      public Optional<com.nedap.archie.rm.ehr.EhrStatus> getEhrStatus(UUID ehrId)
      Description copied from interface: EhrEndpoint
      Get the EhrStatus for ehrId.
      Specified by:
      getEhrStatus in interface EhrEndpoint
      Parameters:
      ehrId - Id of the ehr from which to return the status.
      Returns:
      EhrStatus
    • updateEhrStatus

      public void updateEhrStatus(UUID ehrId, com.nedap.archie.rm.ehr.EhrStatus ehrStatus)
      Description copied from interface: EhrEndpoint
      Updates the status of the ehr with ehrId to ehrStatus
      Specified by:
      updateEhrStatus in interface EhrEndpoint
      Parameters:
      ehrId - EhrId of the ehr which will be updated
      ehrStatus - new ehrStatus