Interface VersionedCompositionEndpoint
- All Known Implementing Classes:
DefaultRestVersionedCompositionEndpoint
public interface VersionedCompositionEndpoint
-
Method Summary
Modifier and TypeMethodDescriptionOptional<com.nedap.archie.rm.ehr.VersionedComposition>Retrieves the versioned composition identified byversioned_object_uid.List<com.nedap.archie.rm.generic.RevisionHistoryItem>findRevisionHistory(UUID versionedObjectUid) Retrieves the list of revision history items for a given versioned composition.<T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>>findVersionAtTime(UUID versionedObjectUid, LocalDateTime versionAtTime, Class<T> clazz) Retrieves a version for a given versioned composition.<T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>>findVersionById(UUID versionedObjectUid, com.nedap.archie.rm.support.identification.ObjectVersionId versionUid, Class<T> clazz) Retrieves a version identified byversion_uidfor a given versioned composition.
-
Method Details
-
find
Retrieves the versioned composition identified byversioned_object_uid.- Parameters:
versionedObjectUid- identifier of the versioned composition- Returns:
- the versioned composition, or an empty
Optional
-
findRevisionHistory
Retrieves the list of revision history items for a given versioned composition.- Parameters:
versionedObjectUid- identifier of the versioned composition- Returns:
- list of revision history items, or an empty
List
-
findVersionById
<T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>> findVersionById(UUID versionedObjectUid, com.nedap.archie.rm.support.identification.ObjectVersionId versionUid, Class<T> clazz) Retrieves a version identified byversion_uidfor a given versioned composition.- Type Parameters:
T- expected type- Parameters:
versionedObjectUid- identifier of the versioned compositionversionUid- identifier of the versionclazz- expected class- Returns:
- the version of the versioned composition, or an empty
Optional
-
findVersionAtTime
<T> Optional<com.nedap.archie.rm.changecontrol.OriginalVersion<T>> findVersionAtTime(UUID versionedObjectUid, @Nullable LocalDateTime versionAtTime, Class<T> clazz) Retrieves a version for a given versioned composition.If
version_at_timeis supplied, retrieves the version extant at specified time, otherwise retrieves the latest version.- Type Parameters:
T- expected type- Parameters:
versionedObjectUid- identifier of the versioned compositionversionAtTime- given time in the extended ISO 8601 formatclazz- expected class- Returns:
- the version of the versioned composition, or an empty
Optional
-