Class EhrServiceImp

java.lang.Object
org.ehrbase.service.EhrServiceImp
All Implemented Interfaces:
org.ehrbase.api.service.EhrService

@Service("ehrService") @Transactional public class EhrServiceImp extends Object implements org.ehrbase.api.service.EhrService
  • Constructor Details

  • Method Details

    • create

      public org.ehrbase.api.service.EhrService.EhrResult create(UUID ehrId, org.ehrbase.api.dto.EhrStatusDto status)
      Specified by:
      create in interface org.ehrbase.api.service.EhrService
    • updateStatus

      public org.ehrbase.api.service.EhrService.EhrResult updateStatus(UUID ehrId, org.ehrbase.api.dto.EhrStatusDto status, com.nedap.archie.rm.support.identification.ObjectVersionId ifMatch, UUID contributionId, UUID audit)
      Specified by:
      updateStatus in interface org.ehrbase.api.service.EhrService
    • getEhrStatus

      public org.ehrbase.api.service.EhrService.EhrResult getEhrStatus(UUID ehrId)
      Specified by:
      getEhrStatus in interface org.ehrbase.api.service.EhrService
    • getEhrStatusAtVersion

      public Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<org.ehrbase.api.dto.EhrStatusDto>> getEhrStatusAtVersion(UUID ehrId, UUID versionedObjectUid, int version)
      Specified by:
      getEhrStatusAtVersion in interface org.ehrbase.api.service.EhrService
    • findBySubject

      public Optional<UUID> findBySubject(String subjectId, String nameSpace)
      Specified by:
      findBySubject in interface org.ehrbase.api.service.EhrService
    • getEhrStatusVersionByTimestamp

      public com.nedap.archie.rm.support.identification.ObjectVersionId getEhrStatusVersionByTimestamp(UUID ehrId, OffsetDateTime timestamp)
      Specified by:
      getEhrStatusVersionByTimestamp in interface org.ehrbase.api.service.EhrService
    • getLatestVersionUidOfStatus

      public com.nedap.archie.rm.support.identification.ObjectVersionId getLatestVersionUidOfStatus(UUID ehrId)
      Specified by:
      getLatestVersionUidOfStatus in interface org.ehrbase.api.service.EhrService
    • getCreationTime

      public com.nedap.archie.rm.datavalues.quantity.datetime.DvDateTime getCreationTime(UUID ehrId)
      Specified by:
      getCreationTime in interface org.ehrbase.api.service.EhrService
    • hasEhr

      public boolean hasEhr(UUID ehrId)
      Specified by:
      hasEhr in interface org.ehrbase.api.service.EhrService
    • getVersionedEhrStatus

      public com.nedap.archie.rm.changecontrol.VersionedObject<org.ehrbase.api.dto.EhrStatusDto> getVersionedEhrStatus(UUID ehrId)
      Specified by:
      getVersionedEhrStatus in interface org.ehrbase.api.service.EhrService
    • getRevisionHistoryOfVersionedEhrStatus

      public com.nedap.archie.rm.generic.RevisionHistory getRevisionHistoryOfVersionedEhrStatus(UUID ehrUid)
      Specified by:
      getRevisionHistoryOfVersionedEhrStatus in interface org.ehrbase.api.service.EhrService
    • adminDeleteEhr

      @PreAuthorize("hasRole(\'ADMIN\')") public void adminDeleteEhr(UUID ehrId)
      Specified by:
      adminDeleteEhr in interface org.ehrbase.api.service.EhrService
    • getSubjectExtRef

      public String getSubjectExtRef(String ehrId)
      Specified by:
      getSubjectExtRef in interface org.ehrbase.api.service.EhrService
    • checkEhrExists

      public void checkEhrExists(UUID ehrId)
      Specified by:
      checkEhrExists in interface org.ehrbase.api.service.EhrService
    • checkEhrExistsAndIsModifiable

      public void checkEhrExistsAndIsModifiable(UUID ehrId)
      Specified by:
      checkEhrExistsAndIsModifiable in interface org.ehrbase.api.service.EhrService