PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.4
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication
description: Defines the medication resource for the Medication Service in the ePA system.
package_name: de.gematik.epa.medication
derivation: constraint
name: EPAMedication
type: Medication
elements:
  amount:
    mustSupport: true
    index: 74
    elements:
      numerator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 75
        extensions:
          packagingSize:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
            type: Extension
            mustSupport: true
            index: 77
            elements:
              url: {mustSupport: true, index: 78}
              value:
                mustSupport: true
                choices: []
                index: 80
          totalQuantity:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
            type: Extension
            mustSupport: true
            index: 81
            elements:
              url: {mustSupport: true, index: 82}
              value:
                mustSupport: true
                choices: []
                index: 84
        elements:
          extension:
            mustSupport: true
            index: 76
            slicing:
              slices:
                packagingSize:
                  match: {}
                  schema:
                    type: Extension
                    mustSupport: true
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
                    index: 77
                    elements:
                      url: {mustSupport: true, index: 78}
                      value:
                        mustSupport: true
                        choices: []
                        index: 80
                totalQuantity:
                  match: {}
                  schema:
                    type: Extension
                    mustSupport: true
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
                    index: 81
                    elements:
                      url: {mustSupport: true, index: 82}
                      value:
                        mustSupport: true
                        choices: []
                        index: 84
          value: {mustSupport: true, index: 85}
          unit: {mustSupport: true, index: 86}
          system: {mustSupport: true, index: 87}
          code: {mustSupport: true, index: 88}
      denominator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 89
        elements:
          value: {mustSupport: true, index: 90}
          unit: {mustSupport: true, index: 91}
          system: {mustSupport: true, index: 92}
          code: {mustSupport: true, index: 93}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  batch:
    short: Batch Information
    mustSupport: true
    index: 152
    elements:
      lotNumber: {short: Batch Number, mustSupport: true, index: 153}
  extension:
    mustSupport: true
    index: 4
    slicing:
      slices:
        rxPrescriptionProcessIdentifier:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', index: 5}
          min: 0
          max: 1
        isVaccine:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension
            index: 6
            elements:
              url: {mustSupport: true, index: 7}
              value:
                mustSupport: true
                choices: []
                index: 9
        drugCategory:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
            index: 10
            elements:
              url: {mustSupport: true, index: 11}
              value:
                mustSupport: true
                choices: []
                index: 13
              value[x]:
                elements:
                  system: {mustSupport: true, index: 14}
                  version: {mustSupport: true, index: 15}
                  code: {mustSupport: true, index: 16}
                  display: {mustSupport: true, index: 17}
                required: [system, code]
        normSizeCode:
          match: {}
          schema:
            short: Package size according to N-designation
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 18
            elements:
              url: {mustSupport: true, index: 19}
              value:
                mustSupport: true
                choices: []
                index: 21
        packaging:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
            index: 22
            elements:
              url: {mustSupport: true, index: 23}
              value:
                mustSupport: true
                choices: []
                index: 25
        manufacturingInstructions:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension
            index: 26
            elements:
              url: {mustSupport: true, index: 27}
              value:
                mustSupport: true
                choices: []
                index: 29
        type:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', index: 30}
          min: 0
          max: 1
  contained: {type: Medication, short: Contains PZN Ingredients for Compounding Medications & PharmaceuticalProducts in case of a 'Kombipackung', mustSupport: true, index: 3}
  ingredient:
    short: Active or inactive ingredients of the medication, including pharmaceutical substances as well as individual medicinal products in combination packs.
    mustSupport: true
    index: 94
    extensions:
      darreichungsform:
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
        type: Extension
        mustSupport: true
        index: 96
        elements:
          url: {mustSupport: true, index: 97}
          value:
            mustSupport: true
            choices: []
            index: 99
    elements:
      extension:
        mustSupport: true
        index: 95
        slicing:
          slices:
            darreichungsform:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
                index: 96
                elements:
                  url: {mustSupport: true, index: 97}
                  value:
                    mustSupport: true
                    choices: []
                    index: 99
      item:
        short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
        mustSupport: true
        choices: [itemReference]
        index: 123
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
                mustSupport: true
                choices: [itemReference]
                index: 123
              min: 0
              max: 1
      itemCodeableConcept:
        short: Encoded description of the substance or component.
        type: CodeableConcept
        mustSupport: true
        choiceOf: item
        index: 104
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {short: Encoded description of the substance or component., type: CodeableConcept, mustSupport: true, choiceOf: item, index: 104}
              min: 0
              max: 1
      item[x]:
        elements:
          reference: {mustSupport: true, index: 125}
          identifier:
            mustSupport: true
            index: 126
            elements:
              type:
                mustSupport: true
                index: 127
                elements:
                  coding:
                    mustSupport: true
                    index: 128
                    elements:
                      system: {mustSupport: true, index: 129}
                      version: {mustSupport: true, index: 130}
                      code: {mustSupport: true, index: 131}
                      display: {mustSupport: true, index: 132}
              system: {mustSupport: true, index: 133}
              value: {mustSupport: true, index: 134}
          display: {mustSupport: true, index: 135}
      itemReference:
        short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
        refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
        type: Reference
        mustSupport: true
        choiceOf: item
        index: 124
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
                refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
                type: Reference
                mustSupport: true
                choiceOf: item
                index: 124
              min: 0
              max: 1
      isActive: {short: 'Is it an active ingredient?', mustSupport: true, index: 136}
      strength:
        short: Strength
        mustSupport: true
        index: 137
        extensions:
          amountText:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            type: Extension
            index: 138
            elements:
              url: {mustSupport: true, index: 139}
              value:
                mustSupport: true
                choices: []
                index: 141
        elements:
          extension:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            index: 138
            slicing:
              slices:
                amountText:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
                    index: 138
                    elements:
                      url: {mustSupport: true, index: 139}
                      value:
                        mustSupport: true
                        choices: []
                        index: 141
          numerator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 142
            elements:
              value: {mustSupport: true, index: 143}
              unit: {mustSupport: true, index: 144}
              system: {mustSupport: true, index: 145}
              code: {mustSupport: true, index: 146}
            required: [value]
          denominator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 147
            elements:
              value: {mustSupport: true, index: 148}
              unit: {mustSupport: true, index: 149}
              system: {mustSupport: true, index: 150}
              code: {mustSupport: true, index: 151}
            required: [value]
  status: {short: Status of Medication Information, mustSupport: true, index: 64}
  code:
    short: Medication in coded form or as free text if necessary
    mustSupport: true
    index: 46
    elements:
      coding:
        mustSupport: true
        index: 47
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: value}
          min: null
          slices:
            pzn:
              match: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
                index: 48
                elements:
                  system: {mustSupport: true, index: 49}
                  version: {mustSupport: true, index: 50}
                  code: {mustSupport: true, index: 51}
                  display: {mustSupport: true, index: 52}
                required: [system, code]
            atc-de:
              match: {system: 'http://fhir.de/CodeSystem/bfarm/atc'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/bfarm/atc'}
                array: true
                index: 53
                elements:
                  system: {mustSupport: true, index: 54}
                  version: {mustSupport: true, index: 55}
                  code: {mustSupport: true, index: 56}
                  display: {mustSupport: true, index: 57}
                required: [version, system, code]
            ask:
              match: {system: 'http://fhir.de/CodeSystem/ask'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/ask'}
                array: true
                index: 58
                elements:
                  system: {mustSupport: true, index: 59}
                  version: {mustSupport: true, index: 60}
                  code: {mustSupport: true, index: 61}
                  display: {mustSupport: true, index: 62}
                required: [system, code]
      text: {mustSupport: true, index: 63}
  identifier:
    mustSupport: true
    index: 31
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: null
      slices:
        EPAMedicationUniqueIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier'}
          schema:
            type: Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier'}
            index: 32
            elements:
              type:
                mustSupport: true
                index: 33
                elements:
                  coding:
                    mustSupport: true
                    index: 34
                    elements:
                      system: {mustSupport: true, index: 35}
                      version: {mustSupport: true, index: 36}
                      code: {mustSupport: true, index: 37}
                      display: {mustSupport: true, index: 38}
        RxOriginatorProcessIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
          schema:
            type: Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
            index: 39
            elements:
              type:
                mustSupport: true
                index: 40
                elements:
                  coding:
                    mustSupport: true
                    index: 41
                    elements:
                      system: {mustSupport: true, index: 42}
                      version: {mustSupport: true, index: 43}
                      code: {mustSupport: true, index: 44}
                      display: {mustSupport: true, index: 45}
  manufacturer:
    short: Manufacturer of the Medication
    mustSupport: true
    index: 65
    elements:
      display: {mustSupport: true, index: 66}
    required: [display]
  form:
    short: Form of Dispensing
    mustSupport: true
    index: 67
    elements:
      coding:
        mustSupport: true
        index: 68
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: value}
          min: null
          slices:
            kbvDarreichungsform:
              match: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
              schema:
                mustSupport: true
                array: true
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM'}
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
                index: 69
                elements:
                  system: {mustSupport: true, index: 70}
                  version: {mustSupport: true, index: 71}
                  code: {mustSupport: true, index: 72}
                  display: {mustSupport: true, index: 73}
                required: [system, code]
package_version: 1.3.4
extensions:
  rxPrescriptionProcessIdentifier: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 5}
  isVaccine:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension
    type: Extension
    mustSupport: true
    index: 6
    elements:
      url: {mustSupport: true, index: 7}
      value:
        mustSupport: true
        choices: []
        index: 9
  drugCategory:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
    type: Extension
    mustSupport: true
    index: 10
    elements:
      url: {mustSupport: true, index: 11}
      value:
        mustSupport: true
        choices: []
        index: 13
      value[x]:
        elements:
          system: {mustSupport: true, index: 14}
          version: {mustSupport: true, index: 15}
          code: {mustSupport: true, index: 16}
          display: {mustSupport: true, index: 17}
        required: [system, code]
  normSizeCode:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Package size according to N-designation
    type: Extension
    mustSupport: true
    index: 18
    elements:
      url: {mustSupport: true, index: 19}
      value:
        mustSupport: true
        choices: []
        index: 21
  packaging:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
    type: Extension
    mustSupport: true
    index: 22
    elements:
      url: {mustSupport: true, index: 23}
      value:
        mustSupport: true
        choices: []
        index: 25
  manufacturingInstructions:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension
    type: Extension
    mustSupport: true
    index: 26
    elements:
      url: {mustSupport: true, index: 27}
      value:
        mustSupport: true
        choices: []
        index: 29
  type: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 30}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.3.2