Class ContributionWrapper

java.lang.Object
org.ehrbase.service.contribution.ContributionWrapper

public class ContributionWrapper extends Object
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 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)