Class KbvErpBundle

java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.BaseResource
org.hl7.fhir.r4.model.Resource
org.hl7.fhir.r4.model.Bundle
de.gematik.test.erezept.fhir.r4.kbv.KbvBaseBundle
de.gematik.test.erezept.fhir.r4.kbv.KbvErpBundle
All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, ErpFhirResource, Serializable, org.hl7.fhir.instance.model.api.IAnyResource, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseBundle, org.hl7.fhir.instance.model.api.IBaseResource

public class KbvErpBundle extends KbvBaseBundle
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Bundle

    org.hl7.fhir.r4.model.Bundle.BundleEntryComponent, org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent, org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent, org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent, org.hl7.fhir.r4.model.Bundle.BundleLinkComponent, org.hl7.fhir.r4.model.Bundle.BundleType, org.hl7.fhir.r4.model.Bundle.BundleTypeEnumFactory, org.hl7.fhir.r4.model.Bundle.HTTPVerb, org.hl7.fhir.r4.model.Bundle.HTTPVerbEnumFactory, org.hl7.fhir.r4.model.Bundle.SearchEntryMode, org.hl7.fhir.r4.model.Bundle.SearchEntryModeEnumFactory
  • Field Summary

    Fields inherited from class org.hl7.fhir.r4.model.Bundle

    COMPOSITION, entry, identifier, IDENTIFIER, INCLUDE_COMPOSITION, INCLUDE_MESSAGE, link, MESSAGE, signature, SP_COMPOSITION, SP_IDENTIFIER, SP_MESSAGE, SP_TIMESTAMP, SP_TYPE, timestamp, TIMESTAMP, total, type, TYPE

    Fields inherited from class org.hl7.fhir.r4.model.Resource

    id, implicitRules, language, meta

    Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource

    RES_ID, SP_RES_ID

    Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseBundle

    LINK_NEXT, LINK_PREV, LINK_SELF

    Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    INCLUDE_ALL, WILDCARD_ALL_SET
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hl7.fhir.r4.model.Reference
     
    static org.hl7.fhir.r4.model.Reference
     
    void
    In some rare cases it might be required to change the coverage.
     
     
     
     
     
     
     
     
     
     
    Get the plain profile value without version from Resource.meta.profile
    Get the plain profile version without the profile itself from Resource.meta.profile
    Optional<org.hl7.fhir.r4.model.SupplyRequest>
     
    void
    setAuthoredOnDate(Date authoredOn)
     
     

    Methods inherited from class org.hl7.fhir.r4.model.Bundle

    addChild, addEntry, addEntry, addLink, addLink, copy, copyValues, equalsDeep, equalsShallow, fhirType, getEntry, getEntryFirstRep, getIdentifier, getLink, getLink, getLinkFirstRep, getLinkOrCreate, getNamedProperty, getProperty, getResourceType, getSignature, getTimestamp, getTimestampElement, getTotal, getTotalElement, getType, getTypeElement, getTypesForProperty, hasEntry, hasIdentifier, hasLink, hasSignature, hasTimestamp, hasTimestampElement, hasTotal, hasTotalElement, hasType, hasTypeElement, isEmpty, listChildren, makeProperty, setEntry, setIdentifier, setLink, setProperty, setProperty, setSignature, setTimestamp, setTimestampElement, setTotal, setTotalElement, setType, setTypeElement, typedCopy

    Methods inherited from class org.hl7.fhir.r4.model.Resource

    copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta

    Methods inherited from class org.hl7.fhir.r4.model.BaseResource

    getStructureFhirVersionEnum, isResource, setId

    Methods inherited from class org.hl7.fhir.r4.model.Base

    castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource

    getId, getIdElement, getLanguageElement, getUserData, setId, setUserData

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBase

    fhirType, getFormatCommentsPost, getFormatCommentsPre, hasFormatComment, isEmpty

    Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource

    getMeta, getStructureFhirVersionEnum, isDeleted, setId
  • Constructor Details

    • KbvErpBundle

      public KbvErpBundle()
  • Method Details

    • getLogicalId

      public String getLogicalId()
    • asReference

      public org.hl7.fhir.r4.model.Reference asReference()
    • getFullMetaProfile

      public String getFullMetaProfile()
    • getMetaProfile

      public String getMetaProfile()
      Get the plain profile value without version from Resource.meta.profile
      Returns:
      plain profile value without version
    • getMetaProfileVersion

      public String getMetaProfileVersion()
      Get the plain profile version without the profile itself from Resource.meta.profile
      Returns:
      plain profile version without the profile itself
    • getMedicationRequests

      public List<KbvErpMedicationRequest> getMedicationRequests()
    • getFirstMedicationRequest

      public Optional<KbvErpMedicationRequest> getFirstMedicationRequest()
    • changeCoverage

      public void changeCoverage(KbvCoverage coverage)
      In some rare cases it might be required to change the coverage. However, within the KBV Bundle the coverage is linked by other entries like Composition or MedicationRequest. This method will remove the old coverage (if one exists), replace with the given one and adapt the linked references
      Parameters:
      coverage - which shall be set
    • getAssignerOrganization

      public Optional<AssignerOrganization> getAssignerOrganization()
    • getMedication

      public KbvErpMedication getMedication()
    • getMedicationRequest

      public KbvErpMedicationRequest getMedicationRequest()
    • getMedicationRequestOptional

      public Optional<KbvErpMedicationRequest> getMedicationRequestOptional()
    • getSupplyRequest

      public Optional<org.hl7.fhir.r4.model.SupplyRequest> getSupplyRequest()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDescription

      public String getDescription()
    • asReferenceFromId

      public static org.hl7.fhir.r4.model.Reference asReferenceFromId(String id)
    • setAuthoredOnDate

      public void setAuthoredOnDate(Date authoredOn)
      Specified by:
      setAuthoredOnDate in class KbvBaseBundle
    • getAuthoredOn

      public Date getAuthoredOn()
      Specified by:
      getAuthoredOn in class KbvBaseBundle