Class DefaultRestCompositionEndpoint

java.lang.Object
org.ehrbase.openehr.sdk.client.openehrclient.defaultrestclient.DefaultRestCompositionEndpoint
All Implemented Interfaces:
CompositionEndpoint

public class DefaultRestCompositionEndpoint extends Object implements CompositionEndpoint
  • Field Details

  • Constructor Details

    • DefaultRestCompositionEndpoint

      public DefaultRestCompositionEndpoint(DefaultRestClient defaultRestClient, UUID ehrId)
  • Method Details

    • mergeCompositionEntity

      public <T> T mergeCompositionEntity(T entity)
      Description copied from interface: CompositionEndpoint
      Save a Flat-Entity to remote systems.
      Specified by:
      mergeCompositionEntity in interface CompositionEndpoint
      Parameters:
      entity - Flat-Entity to save. Has to be annotated with Template
      Returns:
      CompositionId
    • mergeRaw

      public com.nedap.archie.rm.support.identification.ObjectVersionId mergeRaw(com.nedap.archie.rm.composition.Composition composition)
      Specified by:
      mergeRaw in interface CompositionEndpoint
    • find

      public <T> Optional<T> find(UUID compositionId, Class<T> clazz)
      Description copied from interface: CompositionEndpoint
      Finds a Flat-Entity by
      Specified by:
      find in interface CompositionEndpoint
      Parameters:
      compositionId - CompositionId of the flat-Entity to retrieve.
      clazz - class of the flat-Entity to retrieve. Has to be annotated with Template
      Returns:
      The Flat-Entity
    • findRaw

      public Optional<com.nedap.archie.rm.composition.Composition> findRaw(UUID compositionId)
      Specified by:
      findRaw in interface CompositionEndpoint
    • delete

      public void delete(com.nedap.archie.rm.support.identification.ObjectVersionId precedingVersionUid)
      Description copied from interface: CompositionEndpoint
      Deletes a Composition by preceding version uid.
      Specified by:
      delete in interface CompositionEndpoint
      Parameters:
      precedingVersionUid - identifier of the Composition to be deleted. This MUST be the last (most recent) version.
    • createFlattener

      protected RmToGeneratedDtoConverter createFlattener(TemplateProvider templateProvider)