Class KbvBaseCompositionBuilder<V extends de.gematik.bbriccs.fhir.coding.version.ProfileVersion,B extends de.gematik.bbriccs.fhir.builder.ResourceBuilder<org.hl7.fhir.r4.model.Composition,B>>

java.lang.Object
de.gematik.bbriccs.fhir.builder.BaseBuilder<R,B>
de.gematik.bbriccs.fhir.builder.ResourceBuilder<org.hl7.fhir.r4.model.Composition,B>
de.gematik.test.erezept.fhir.builder.kbv.KbvBaseCompositionBuilder<V,B>
Direct Known Subclasses:
KbvErpCompositionBuilder, KbvEvdgaCompositionBuilder

public abstract class KbvBaseCompositionBuilder<V extends de.gematik.bbriccs.fhir.coding.version.ProfileVersion,B extends de.gematik.bbriccs.fhir.builder.ResourceBuilder<org.hl7.fhir.r4.model.Composition,B>> extends de.gematik.bbriccs.fhir.builder.ResourceBuilder<org.hl7.fhir.r4.model.Composition,B>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected V
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected B
    addExtension(org.hl7.fhir.r4.model.Extension extension)
     
    org.hl7.fhir.r4.model.Composition
     
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
     
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
    createAttesterEntry(org.hl7.fhir.r4.model.Resource resource)
     
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
    createAttesterEntry(org.hl7.fhir.r4.model.Resource resource, org.hl7.fhir.r4.model.Composition.CompositionAttestationMode attesterMode)
     
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
    createEntryFor(String sectionCode, org.hl7.fhir.r4.model.Resource resource)
    This method wraps the given resource in a BundleEntryComponent and automatically creates a section entry within the composition for a reference in the composition
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
    createEntryFor(Function<org.hl7.fhir.r4.model.Composition,org.hl7.fhir.r4.model.Reference> refSectionProvider, org.hl7.fhir.r4.model.Resource resource)
     
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
    createEntryFor(Function<org.hl7.fhir.r4.model.Composition,org.hl7.fhir.r4.model.Reference> refSectionProvider, org.hl7.fhir.r4.model.Resource resource, boolean withType)
     
    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent
    createEntryFor(org.hl7.fhir.r4.model.Resource resource)
    This method wraps the given resource in a BundleEntryComponent without creating a section entry within the composition
    protected abstract String
     
    protected abstract org.hl7.fhir.r4.model.CanonicalType
     
    protected abstract de.gematik.bbriccs.fhir.coding.WithCodeSystem
     
    protected abstract String
     
    version(V version)
     

    Methods inherited from class de.gematik.bbriccs.fhir.builder.ResourceBuilder

    createResource, createResource, createResource, setIdTo

    Methods inherited from class de.gematik.bbriccs.fhir.builder.BaseBuilder

    checkRequired, checkRequiredExactlyOneOf, checkRequiredList, checkValueSet, checkValueSet, getResourceId, self, setId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • version

      protected V extends de.gematik.bbriccs.fhir.coding.version.ProfileVersion version
  • Constructor Details

    • KbvBaseCompositionBuilder

      protected KbvBaseCompositionBuilder()
  • Method Details

    • version

      public B version(V version)
    • addExtension

      protected B addExtension(org.hl7.fhir.r4.model.Extension extension)
    • createEntryFor

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent createEntryFor(org.hl7.fhir.r4.model.Resource resource)
      This method wraps the given resource in a BundleEntryComponent without creating a section entry within the composition
      Parameters:
      resource - to be added to the corresponding document bundle
      Returns:
      a BundleEntryComponent which can be added as an entry to the corresponding document bundle
    • createEntryFor

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent createEntryFor(String sectionCode, org.hl7.fhir.r4.model.Resource resource)
      This method wraps the given resource in a BundleEntryComponent and automatically creates a section entry within the composition for a reference in the composition
      Parameters:
      sectionCode - of the section entry for this resources
      resource - to be added to the corresponding document bundle
      Returns:
      a BundleEntryComponent which can be added as an entry to the corresponding document bundle
    • createAttesterEntry

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent createAttesterEntry(org.hl7.fhir.r4.model.Resource resource)
    • createAttesterEntry

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent createAttesterEntry(org.hl7.fhir.r4.model.Resource resource, org.hl7.fhir.r4.model.Composition.CompositionAttestationMode attesterMode)
    • createEntryFor

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent createEntryFor(Function<org.hl7.fhir.r4.model.Composition,org.hl7.fhir.r4.model.Reference> refSectionProvider, org.hl7.fhir.r4.model.Resource resource)
    • createEntryFor

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent createEntryFor(Function<org.hl7.fhir.r4.model.Composition,org.hl7.fhir.r4.model.Reference> refSectionProvider, org.hl7.fhir.r4.model.Resource resource, boolean withType)
    • buildBundleEntryComponent

      public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent buildBundleEntryComponent()
    • build

      public org.hl7.fhir.r4.model.Composition build()
      Specified by:
      build in class de.gematik.bbriccs.fhir.builder.BaseBuilder<org.hl7.fhir.r4.model.Composition,B extends de.gematik.bbriccs.fhir.builder.ResourceBuilder<org.hl7.fhir.r4.model.Composition,B>>
    • getProfile

      protected abstract org.hl7.fhir.r4.model.CanonicalType getProfile()
    • getFormularArtCode

      protected abstract String getFormularArtCode()
    • getTitle

      protected abstract String getTitle()
    • getSectionCodeSystem

      protected abstract de.gematik.bbriccs.fhir.coding.WithCodeSystem getSectionCodeSystem()