Package org.ehrbase.service.contribution
Class ContributionWrapper
java.lang.Object
org.ehrbase.service.contribution.ContributionWrapper
Wrapper class that contains a
ContributionCreateDto with an optional associated DTO object
per ContributionCreateDto.getVersions() entry. This allows us to use for some RMObjects a
custom DTO implementation that can be utilized to apply additional properties or validations.-
Constructor Summary
ConstructorsConstructorDescriptionContributionWrapper(org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto contributionCreateDto) -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachVersion(BiConsumer<com.nedap.archie.rm.changecontrol.OriginalVersion<? extends com.nedap.archie.rm.RMObject>, Object> consumer) org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto
-
Constructor Details
-
ContributionWrapper
public ContributionWrapper(org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto contributionCreateDto)
-
-
Method Details
-
getContributionCreateDto
public org.ehrbase.openehr.sdk.response.dto.ContributionCreateDto getContributionCreateDto() -
forEachVersion
public void forEachVersion(BiConsumer<com.nedap.archie.rm.changecontrol.OriginalVersion<? extends com.nedap.archie.rm.RMObject>, Object> consumer)
-