Package org.ehrbase.client.openehrclient
Interface CompositionEndpoint
-
- All Known Implementing Classes:
DefaultRestCompositionEndpoint
public interface CompositionEndpoint
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Optional<T>find(UUID compositionId, Class<T> clazz)Finds a Flat-Entity by<T> TmergeCompositionEntity(T entity)Save a Flat-Entity to remote systems.
-
-
-
Method Detail
-
mergeCompositionEntity
<T> T mergeCompositionEntity(T entity)
Save a Flat-Entity to remote systems.- Parameters:
entity- Flat-Entity to save. Has to be annotated withTemplate- Returns:
- CompositionId
- Throws:
ClientExceptionWrongStatusCodeException
-
find
<T> Optional<T> find(UUID compositionId, Class<T> clazz)
Finds a Flat-Entity by- Parameters:
compositionId- CompositionId of the flat-Entity to retrieve.clazz- class of the flat-Entity to retrieve. Has to be annotated withTemplate- Returns:
- The Flat-Entity
- Throws:
ClientExceptionWrongStatusCodeException
-
-