Class DefaultRestCompositionEndpoint

    • Constructor Detail

      • DefaultRestCompositionEndpoint

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

      • 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
      • 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
      • delete

        public void delete​(VersionUid 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.