<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="HealthAppPrescriptionUnit" />
  <url value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnit" />
  <version value="3.1.0-TEST" />
  <name value="HealthAppPrescriptionUnit" />
  <title value="HealthAppPrescriptionUnit" />
  <status value="active" />
  <description value="Definition of a prescription unit of a module of a digital health application (DiGA) or a usage unit of a module of a digital nursing application (DiPA)." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="ChargeItemDefinition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition" />
  <derivation value="constraint" />
  <differential>
    <element id="ChargeItemDefinition">
      <path value="ChargeItemDefinition" />
      <short value="Prescription or usage unit of a digital application" />
      <definition value="Represents information about a prescription unit of a module of a digital health application (DiGA) or about a usage unit of a module of a digital nursing application (DiPA)." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.extension">
      <path value="ChargeItemDefinition.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.extension:anwendungsdauer">
      <path value="ChargeItemDefinition.extension" />
      <sliceName value="anwendungsdauer" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitAnwendungsdauer" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.extension:ergaenzendeUnterstuetzungsleistungen">
      <path value="ChargeItemDefinition.extension" />
      <sliceName value="ergaenzendeUnterstuetzungsleistungen" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitErgaenzendeUnterstuetzungsleistungen" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.extension:indikation">
      <path value="ChargeItemDefinition.extension" />
      <sliceName value="indikation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitIndikation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.extension:kontraindikation">
      <path value="ChargeItemDefinition.extension" />
      <sliceName value="kontraindikation" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitKontraindikation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.extension:vertragsaerztlicheLeistungen">
      <path value="ChargeItemDefinition.extension" />
      <sliceName value="vertragsaerztlicheLeistungen" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitVertragsaerztlicheLeistungen" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.url">
      <path value="ChargeItemDefinition.url" />
      <short value="Directory URL" />
      <definition value="URL to directory information related to this prescription or usage unit." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier">
      <path value="ChargeItemDefinition.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Identifiers" />
      <definition value="Values that uniquely identify the prescription or usage unit." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier:digaVeId">
      <path value="ChargeItemDefinition.identifier" />
      <sliceName value="digaVeId" />
      <short value="DiGA prescription unit ID (DiGA-VE-ID)" />
      <definition value="DiGA prescription unit ID as the unique identifier of the prescription unit of the digital health application (DiGA)." />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier:digaVeId.system">
      <path value="ChargeItemDefinition.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.bfarm.de/Identifier/DigaVeId" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier:digaVeId.value">
      <path value="ChargeItemDefinition.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier:dipaAeId">
      <path value="ChargeItemDefinition.identifier" />
      <sliceName value="dipaAeId" />
      <short value="DiPA usage unit ID (DiPA-AE-ID)" />
      <definition value="DiPA usage unit ID as the unique identifier of the usage unit of the digital nursing application (DiPA)." />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier:dipaAeId.system">
      <path value="ChargeItemDefinition.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.bfarm.de/Identifier/DipaAeId" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.identifier:dipaAeId.value">
      <path value="ChargeItemDefinition.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.title">
      <path value="ChargeItemDefinition.title" />
      <short value="Name" />
      <definition value="The human-readable name of the prescription or usage unit." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.status">
      <path value="ChargeItemDefinition.status" />
      <short value="Status" />
      <definition value="The status of the prescription or usage unit. This is always set to unknown. Whether a unit is currently active follows from effectivePeriod." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.bfarm.de/ValueSet/HealthAppPrescriptionUnitStatus" />
      </binding>
    </element>
    <element id="ChargeItemDefinition.description">
      <path value="ChargeItemDefinition.description" />
      <short value="Notes on the pricing model" />
      <definition value="Further optional explanations of the pricing model." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext">
      <path value="ChargeItemDefinition.useContext" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="code.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Patient and target groups" />
      <definition value="Patient and target groups for which the prescription or usage unit is suitable." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age">
      <path value="ChargeItemDefinition.useContext" />
      <sliceName value="age" />
      <short value="Age groups" />
      <definition value="Age groups (of patients) for which the usage or prescription unit is suitable." />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.code">
      <path value="ChargeItemDefinition.useContext.code" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.code.system">
      <path value="ChargeItemDefinition.useContext.code.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/usage-context-type" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.code.code">
      <path value="ChargeItemDefinition.useContext.code.code" />
      <min value="1" />
      <fixedCode value="age" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.code.display">
      <path value="ChargeItemDefinition.useContext.code.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.value[x]">
      <path value="ChargeItemDefinition.useContext.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.value[x].coding">
      <path value="ChargeItemDefinition.useContext.value[x].coding" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/CodingHealthAppAge" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:age.value[x].text">
      <path value="ChargeItemDefinition.useContext.value[x].text" />
      <short value="Comment" />
      <definition value="Comment on the age group." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus">
      <path value="ChargeItemDefinition.useContext" />
      <sliceName value="focus" />
      <short value="Impairments" />
      <definition value="DiPA only: Dimensions of impairment (of patients) for which the usage unit is suitable." />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.code">
      <path value="ChargeItemDefinition.useContext.code" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.code.system">
      <path value="ChargeItemDefinition.useContext.code.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/usage-context-type" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.code.code">
      <path value="ChargeItemDefinition.useContext.code.code" />
      <min value="1" />
      <fixedCode value="focus" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.code.display">
      <path value="ChargeItemDefinition.useContext.code.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.value[x]">
      <path value="ChargeItemDefinition.useContext.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.value[x].extension:severity">
      <path value="ChargeItemDefinition.useContext.value[x].extension" />
      <sliceName value="severity" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitUseContextValueSeverity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:focus.value[x].coding">
      <path value="ChargeItemDefinition.useContext.value[x].coding" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/CodingHealthAppFocus" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender">
      <path value="ChargeItemDefinition.useContext" />
      <sliceName value="gender" />
      <short value="Genders" />
      <definition value="Genders (of patients) for which the usage or prescription unit is suitable." />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender.code">
      <path value="ChargeItemDefinition.useContext.code" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender.code.system">
      <path value="ChargeItemDefinition.useContext.code.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/usage-context-type" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender.code.code">
      <path value="ChargeItemDefinition.useContext.code.code" />
      <min value="1" />
      <fixedCode value="gender" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender.code.display">
      <path value="ChargeItemDefinition.useContext.code.display" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender.value[x]">
      <path value="ChargeItemDefinition.useContext.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.useContext:gender.value[x].coding">
      <path value="ChargeItemDefinition.useContext.value[x].coding" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/CodingHealthAppGender" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.effectivePeriod">
      <path value="ChargeItemDefinition.effectivePeriod" />
      <short value="Validity period" />
      <definition value="The period during which the prescription or usage unit is or was valid." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.effectivePeriod.start">
      <path value="ChargeItemDefinition.effectivePeriod.start" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.effectivePeriod.end">
      <path value="ChargeItemDefinition.effectivePeriod.end" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.code">
      <path value="ChargeItemDefinition.code" />
      <short value="Coding" />
      <definition value="DiGA only: Pharmaceutical registration number (PZN) of the prescription unit of a digital health application (DiGA)." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.code.extension:validUntil">
      <path value="ChargeItemDefinition.code.extension" />
      <sliceName value="validUntil" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitCodeValidUntil" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.code.coding">
      <path value="ChargeItemDefinition.code.coding" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://fhir.de/StructureDefinition/CodingPZN" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.code.coding.system">
      <path value="ChargeItemDefinition.code.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.code.coding.code">
      <path value="ChargeItemDefinition.code.coding.code" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.instance">
      <path value="ChargeItemDefinition.instance" />
      <short value="HealthAppModule" />
      <definition value="Reference to the parent module of the digital application (HealthAppModule)." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.instance.extension">
      <path value="ChargeItemDefinition.instance.extension" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.instance.extension:deviceDefinition">
      <path value="ChargeItemDefinition.instance.extension" />
      <sliceName value="deviceDefinition" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitHealthAppModuleLink" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup">
      <path value="ChargeItemDefinition.propertyGroup" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.extension">
      <path value="ChargeItemDefinition.propertyGroup.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
    </element>
    <element id="ChargeItemDefinition.propertyGroup.extension:nonRefundable">
      <path value="ChargeItemDefinition.propertyGroup.extension" />
      <sliceName value="nonRefundable" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/HealthAppPrescriptionUnitPropertyGroupNonRefundable" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent" />
      <short value="Price information" />
      <definition value="Price information for the prescription or usage unit." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent.type">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent.type" />
      <short value="Price component type" />
      <definition value="The type of the price component. This is always set to informational; meaning the gross price including VAT." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.bfarm.de/ValueSet/HealthAppPrescriptionUnitPriceComponentType" />
      </binding>
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent.code">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent.code" />
      <short value="Price component code" />
      <definition value="The kind of price represented by this component, as defined by HealthAppPriceCode." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent.code.coding">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent.code.coding" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="https://fhir.bfarm.de/StructureDefinition/CodingHealthAppPriceCode" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent.amount">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent.amount" />
      <short value="Amount" />
      <definition value="Amount for the respective price component." />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent.amount.value">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent.amount.value" />
      <mustSupport value="true" />
    </element>
    <element id="ChargeItemDefinition.propertyGroup.priceComponent.amount.currency">
      <path value="ChargeItemDefinition.propertyGroup.priceComponent.amount.currency" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>