Class DefaultRestContributionEndpoint
- java.lang.Object
-
- org.ehrbase.client.openehrclient.defaultrestclient.DefaultRestContributionEndpoint
-
- All Implemented Interfaces:
ContributionEndpoint
public class DefaultRestContributionEndpoint extends Object implements ContributionEndpoint
The type Default rest contribution endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTRIBUTION_PATH
-
Constructor Summary
Constructors Constructor Description DefaultRestContributionEndpoint(DefaultRestClient defaultRestClient, UUID ehrId)Instantiates a new Default rest contribution endpoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.nedap.archie.rm.changecontrol.Contribution>find(UUID contributionId)Get the Contribution byehrIdandcontributionId.VersionUidsaveContribution(ContributionCreateDto contribution)Save a new Contribution to remote systems.
-
-
-
Field Detail
-
CONTRIBUTION_PATH
public static final String CONTRIBUTION_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultRestContributionEndpoint
public DefaultRestContributionEndpoint(DefaultRestClient defaultRestClient, UUID ehrId)
Instantiates a new Default rest contribution endpoint.- Parameters:
defaultRestClient- the default rest clientehrId- the ehr id
-
-
Method Detail
-
saveContribution
public VersionUid saveContribution(ContributionCreateDto contribution)
Description copied from interface:ContributionEndpointSave a new Contribution to remote systems.- Specified by:
saveContributionin interfaceContributionEndpoint- Parameters:
contribution- the contribution- Returns:
- the version uid
-
find
public Optional<com.nedap.archie.rm.changecontrol.Contribution> find(UUID contributionId)
Description copied from interface:ContributionEndpointGet the Contribution byehrIdandcontributionId.- Specified by:
findin interfaceContributionEndpoint- Parameters:
contributionId- the contribution id- Returns:
- the optional
-
-