Class DefaultRestVersionedCompositionEndpoint

    • Constructor Detail

      • DefaultRestVersionedCompositionEndpoint

        public DefaultRestVersionedCompositionEndpoint​(DefaultRestClient defaultRestClient,
                                                       UUID ehrId)
    • Method Detail

      • find

        public Optional<com.nedap.archie.rm.ehr.VersionedComposition> find​(UUID versionedObjectUid)
        Description copied from interface: VersionedCompositionEndpoint
        Retrieves the versioned composition identified by versioned_object_uid.
        Specified by:
        find in interface VersionedCompositionEndpoint
        Parameters:
        versionedObjectUid - identifier of the versioned composition
        Returns:
        the versioned composition, or an empty Optional
      • findRevisionHistory

        public List<com.nedap.archie.rm.generic.RevisionHistoryItem> findRevisionHistory​(UUID versionedObjectUid)
        Description copied from interface: VersionedCompositionEndpoint
        Retrieves the list of revision history items for a given versioned composition.
        Specified by:
        findRevisionHistory in interface VersionedCompositionEndpoint
        Parameters:
        versionedObjectUid - identifier of the versioned composition
        Returns:
        list of revision history items, or an empty List
      • findVersionById

        public <T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>> findVersionById​(UUID versionedObjectUid,
                                                                                                  VersionUid versionUid,
                                                                                                  Class<T> clazz)
        Description copied from interface: VersionedCompositionEndpoint
        Retrieves a version identified by version_uid for a given versioned composition.
        Specified by:
        findVersionById in interface VersionedCompositionEndpoint
        Type Parameters:
        T - expected type
        Parameters:
        versionedObjectUid - identifier of the versioned composition
        versionUid - identifier of the version
        clazz - expected class
        Returns:
        the version of the versioned composition, or an empty Optional
      • findVersionAtTime

        public <T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>> findVersionAtTime​(UUID versionedObjectUid,
                                                                                                    @Nullable
                                                                                                    LocalDateTime versionAtTime,
                                                                                                    Class<T> clazz)
        Description copied from interface: VersionedCompositionEndpoint
        Retrieves a version for a given versioned composition.

        If version_at_time is supplied, retrieves the version extant at specified time, otherwise retrieves the latest version.

        Specified by:
        findVersionAtTime in interface VersionedCompositionEndpoint
        Type Parameters:
        T - expected type
        Parameters:
        versionedObjectUid - identifier of the versioned composition
        versionAtTime - given time in the extended ISO 8601 format
        clazz - expected class
        Returns:
        the version of the versioned composition, or an empty Optional
      • internalFindVersion

        public <T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>> internalFindVersion​(URI uri,
                                                                                                      Class<T> clazz)