Class KbvErpMedication

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.DomainResource
org.hl7.fhir.r4.model.Medication
de.gematik.test.erezept.fhir.r4.kbv.KbvErpMedication
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.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions, org.hl7.fhir.instance.model.api.IBaseResource, org.hl7.fhir.instance.model.api.IDomainResource

public class KbvErpMedication extends org.hl7.fhir.r4.model.Medication implements ErpFhirResource
See Also:
  • Nested Class Summary

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

    org.hl7.fhir.r4.model.Medication.MedicationBatchComponent, org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent, org.hl7.fhir.r4.model.Medication.MedicationStatus, org.hl7.fhir.r4.model.Medication.MedicationStatusEnumFactory
  • Field Summary

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

    amount, batch, code, CODE, EXPIRATION_DATE, form, FORM, identifier, IDENTIFIER, INCLUDE_INGREDIENT, INCLUDE_MANUFACTURER, ingredient, INGREDIENT, INGREDIENT_CODE, LOT_NUMBER, manufacturer, MANUFACTURER, manufacturerTarget, SP_CODE, SP_EXPIRATION_DATE, SP_FORM, SP_IDENTIFIER, SP_INGREDIENT, SP_INGREDIENT_CODE, SP_LOT_NUMBER, SP_MANUFACTURER, SP_STATUS, status, STATUS

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

    contained, extension, modifierExtension, text

    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.IBaseResource

    INCLUDE_ALL, WILDCARD_ALL_SET
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromMedication(org.hl7.fhir.r4.model.Medication adaptee)
     
    fromMedication(org.hl7.fhir.r4.model.Resource adaptee)
     
    If an amount is given, format as String such as [VALUE] [UNIT]
     
     
     
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    fetching the free text of the medication this way may result in a NullPointerException because this value is optional.
     
    Optional<org.hl7.fhir.r4.model.Ratio>
     
     
     
     
     
     
     
     
     
    int
     
     
     
     
    Optional<de.gematik.bbriccs.fhir.de.value.PZN>
     
     
     
     
    boolean
     

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

    addChild, addIdentifier, addIdentifier, addIngredient, addIngredient, copy, copyValues, equalsDeep, equalsShallow, fhirType, getAmount, getBatch, getCode, getForm, getIdentifier, getIdentifierFirstRep, getIngredient, getIngredientFirstRep, getManufacturer, getManufacturerTarget, getNamedProperty, getProperty, getResourceType, getStatus, getStatusElement, getTypesForProperty, hasAmount, hasBatch, hasCode, hasForm, hasIdentifier, hasIngredient, hasManufacturer, hasStatus, hasStatusElement, isEmpty, listChildren, makeProperty, setAmount, setBatch, setCode, setForm, setIdentifier, setIngredient, setManufacturer, setManufacturerTarget, setProperty, setProperty, setStatus, setStatusElement, typedCopy

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

    addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText

    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, toString, wait, wait, wait

    Methods inherited from interface de.gematik.test.erezept.fhir.r4.ErpFhirResource

    asReference

    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

    • KbvErpMedication

      public KbvErpMedication()
  • Method Details

    • fromMedication

      public static KbvErpMedication fromMedication(org.hl7.fhir.r4.model.Medication adaptee)
    • fromMedication

      public static KbvErpMedication fromMedication(org.hl7.fhir.r4.model.Resource adaptee)
    • getCatagory

      public List<MedicationCategory> getCatagory()
    • getCategoryFirstRep

      public MedicationCategory getCategoryFirstRep()
    • getMedicationType

      public Optional<MedicationType> getMedicationType()
    • getPackagingSize

      public Optional<String> getPackagingSize()
    • getPackagingSizeOrEmpty

      public int getPackagingSizeOrEmpty()
    • getPackagingUnit

      public Optional<String> getPackagingUnit()
    • isVaccine

      public boolean isVaccine()
    • getFreeText

      @Deprecated(since="0.10.1", forRemoval=true) public String getFreeText()
      Deprecated, for removal: This API element is subject to removal in a future version.
      fetching the free text of the medication this way may result in a NullPointerException because this value is optional. Use getFreeTextOptional() instead.
      Returns:
      the free text of the medication or null if not present
    • getFreeTextOptional

      public Optional<String> getFreeTextOptional()
    • getIngredientText

      public Optional<String> getIngredientText()
    • getManufactoringInstrOptional

      public Optional<String> getManufactoringInstrOptional()
    • getAmountNumeratorString

      public Optional<String> getAmountNumeratorString()
      If an amount is given, format as String such as [VALUE] [UNIT]
      Returns:
      Amount Numerator with as String with Value and Unit
    • getIngredientStrengthString

      public Optional<String> getIngredientStrengthString()
    • getIngredientStrengthRatio

      public Optional<org.hl7.fhir.r4.model.Ratio> getIngredientStrengthRatio()
    • getIngredientTextOptional

      public Optional<String> getIngredientTextOptional()
    • getPzn

      public List<String> getPzn()
    • getPznOptional

      public Optional<de.gematik.bbriccs.fhir.de.value.PZN> getPznOptional()
    • getPznFirstRep

      public String getPznFirstRep()
    • getMedicationName

      public String getMedicationName()
    • getDarreichungsform

      public Optional<Darreichungsform> getDarreichungsform()
    • getTextInFormOptional

      public Optional<String> getTextInFormOptional()
    • getStandardSize

      public StandardSize getStandardSize()
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface ErpFhirResource
    • getVersion

      public KbvItaErpVersion getVersion()
    • getPackagingOptional

      public Optional<String> getPackagingOptional()