Class DefaultRestEhrEndpoint

    • Constructor Detail

      • DefaultRestEhrEndpoint

        public DefaultRestEhrEndpoint​(DefaultRestClient defaultRestClient)
    • Method Detail

      • 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