PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.1
    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: 68
    elements:
      numerator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 69
        extensions:
          packagingSize:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
            type: Extension
            index: 70
            elements:
              url: {mustSupport: true, index: 71}
              value:
                mustSupport: true
                choices: []
                index: 73
          totalQuantity:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
            type: Extension
            index: 74
            elements:
              url: {mustSupport: true, index: 75}
              value:
                mustSupport: true
                choices: []
                index: 77
        elements:
          extension:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
            index: 70
            slicing:
              slices:
                packagingSize:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
                    index: 70
                    elements:
                      url: {mustSupport: true, index: 71}
                      value:
                        mustSupport: true
                        choices: []
                        index: 73
                totalQuantity:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
                    index: 74
                    elements:
                      url: {mustSupport: true, index: 75}
                      value:
                        mustSupport: true
                        choices: []
                        index: 77
          value: {mustSupport: true, index: 78}
          unit: {mustSupport: true, index: 79}
          system: {mustSupport: true, index: 80}
          code: {mustSupport: true, index: 81}
      denominator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 82
        elements:
          value: {mustSupport: true, index: 83}
          unit: {mustSupport: true, index: 84}
          system: {mustSupport: true, index: 85}
          code: {mustSupport: true, index: 86}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  batch:
    short: Batch Information
    mustSupport: true
    index: 142
    elements:
      lotNumber: {short: Batch Number, mustSupport: true, index: 143}
  extension:
    type: Extension
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    index: 4
    slicing:
      slices:
        rxPrescriptionProcessIdentifier:
          match: {}
          schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', index: 4}
          min: 0
          max: 1
        isVaccine:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension
            index: 5
            elements:
              url: {mustSupport: true, index: 6}
              value:
                mustSupport: true
                choices: []
                index: 8
        drugCategory:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
            index: 9
            elements:
              url: {mustSupport: true, index: 10}
              value:
                mustSupport: true
                choices: []
                index: 12
              value[x]:
                elements:
                  system: {mustSupport: true, index: 13}
                  code: {mustSupport: true, index: 14}
                required: [system, code]
        normSizeCode:
          match: {}
          schema:
            type: Extension
            short: Package size according to N-designation
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 15
            elements:
              url: {mustSupport: true, index: 16}
              value:
                mustSupport: true
                choices: []
                index: 18
        packaging:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
            index: 19
            elements:
              url: {mustSupport: true, index: 20}
              value:
                mustSupport: true
                choices: []
                index: 22
        manufacturingInstructions:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension
            index: 23
            elements:
              url: {mustSupport: true, index: 24}
              value:
                mustSupport: true
                choices: []
                index: 26
        type:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', index: 27}
          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: 87
    extensions:
      darreichungsform:
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
        type: Extension
        mustSupport: true
        index: 88
        elements:
          url: {mustSupport: true, index: 89}
          value:
            mustSupport: true
            choices: []
            index: 91
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
        index: 88
        slicing:
          slices:
            darreichungsform:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
                index: 88
                elements:
                  url: {mustSupport: true, index: 89}
                  value:
                    mustSupport: true
                    choices: []
                    index: 91
      item:
        short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
        mustSupport: true
        choices: [itemReference]
        index: 113
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
                mustSupport: true
                choices: [itemReference]
                index: 113
              min: 0
              max: 1
      itemCodeableConcept:
        short: Encoded description of the substance or component.
        type: CodeableConcept
        mustSupport: true
        choiceOf: item
        index: 96
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {short: Encoded description of the substance or component., type: CodeableConcept, mustSupport: true, choiceOf: item, index: 96}
              min: 0
              max: 1
      item[x]:
        elements:
          reference: {mustSupport: true, index: 115}
          identifier:
            mustSupport: true
            index: 116
            elements:
              type:
                mustSupport: true
                index: 117
                elements:
                  coding:
                    mustSupport: true
                    index: 118
                    elements:
                      system: {mustSupport: true, index: 119}
                      version: {mustSupport: true, index: 120}
                      code: {mustSupport: true, index: 121}
                      display: {mustSupport: true, index: 122}
              system: {mustSupport: true, index: 123}
              value: {mustSupport: true, index: 124}
          display: {mustSupport: true, index: 125}
      itemReference:
        short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
        refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
        type: Reference
        mustSupport: true
        choiceOf: item
        index: 114
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
                refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
                type: Reference
                mustSupport: true
                choiceOf: item
                index: 114
              min: 0
              max: 1
      isActive: {short: 'Is it an active ingredient?', mustSupport: true, index: 126}
      strength:
        short: Strength
        mustSupport: true
        index: 127
        extensions:
          amountText:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            type: Extension
            index: 128
            elements:
              url: {mustSupport: true, index: 129}
              value:
                mustSupport: true
                choices: []
                index: 131
        elements:
          extension:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            index: 128
            slicing:
              slices:
                amountText:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
                    index: 128
                    elements:
                      url: {mustSupport: true, index: 129}
                      value:
                        mustSupport: true
                        choices: []
                        index: 131
          numerator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 132
            elements:
              value: {mustSupport: true, index: 133}
              unit: {mustSupport: true, index: 134}
              system: {mustSupport: true, index: 135}
              code: {mustSupport: true, index: 136}
            required: [value]
          denominator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 137
            elements:
              value: {mustSupport: true, index: 138}
              unit: {mustSupport: true, index: 139}
              system: {mustSupport: true, index: 140}
              code: {mustSupport: true, index: 141}
            required: [value]
  status: {short: Status of Medication Information, mustSupport: true, index: 59}
  code:
    short: Medication in coded form or as free text if necessary
    mustSupport: true
    index: 43
    elements:
      coding:
        mustSupport: true
        index: 44
        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: 45
                elements:
                  system: {mustSupport: true, index: 46}
                  code: {mustSupport: true, index: 47}
                  display: {mustSupport: true, index: 48}
                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: 49
                elements:
                  system: {mustSupport: true, index: 50}
                  version: {index: 51}
                  code: {mustSupport: true, index: 52}
                  display: {mustSupport: true, index: 53}
                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: 54
                elements:
                  system: {mustSupport: true, index: 55}
                  code: {mustSupport: true, index: 56}
                  display: {mustSupport: true, index: 57}
                required: [system, code]
      text: {mustSupport: true, index: 58}
  identifier:
    index: 28
    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
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/epa-medication-unique-identifier'}
            index: 29
            elements:
              type:
                mustSupport: true
                index: 30
                elements:
                  coding:
                    mustSupport: true
                    index: 31
                    elements:
                      system: {mustSupport: true, index: 32}
                      version: {mustSupport: true, index: 33}
                      code: {mustSupport: true, index: 34}
                      display: {mustSupport: true, index: 35}
        RxOriginatorProcessIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
            index: 36
            elements:
              type:
                mustSupport: true
                index: 37
                elements:
                  coding:
                    mustSupport: true
                    index: 38
                    elements:
                      system: {mustSupport: true, index: 39}
                      version: {mustSupport: true, index: 40}
                      code: {mustSupport: true, index: 41}
                      display: {mustSupport: true, index: 42}
  manufacturer:
    short: Manufacturer of the Medication
    mustSupport: true
    index: 60
    elements:
      display: {mustSupport: true, index: 61}
    required: [display]
  form:
    short: Form of Dispensing
    mustSupport: true
    index: 62
    elements:
      coding:
        mustSupport: true
        index: 63
        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: 64
                elements:
                  system: {mustSupport: true, index: 65}
                  code: {mustSupport: true, index: 66}
                  display: {mustSupport: true, index: 67}
                required: [system, code]
package_version: 1.3.1
extensions:
  rxPrescriptionProcessIdentifier: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', min: 0, max: 1, type: Extension, index: 4}
  isVaccine:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension
    type: Extension
    index: 5
    elements:
      url: {mustSupport: true, index: 6}
      value:
        mustSupport: true
        choices: []
        index: 8
  drugCategory:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
    type: Extension
    index: 9
    elements:
      url: {mustSupport: true, index: 10}
      value:
        mustSupport: true
        choices: []
        index: 12
      value[x]:
        elements:
          system: {mustSupport: true, index: 13}
          code: {mustSupport: true, index: 14}
        required: [system, code]
  normSizeCode:
    url: http://fhir.de/StructureDefinition/normgroesse
    type: Extension
    short: Package size according to N-designation
    index: 15
    elements:
      url: {mustSupport: true, index: 16}
      value:
        mustSupport: true
        choices: []
        index: 18
  packaging:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
    type: Extension
    index: 19
    elements:
      url: {mustSupport: true, index: 20}
      value:
        mustSupport: true
        choices: []
        index: 22
  manufacturingInstructions:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension
    type: Extension
    index: 23
    elements:
      url: {mustSupport: true, index: 24}
      value:
        mustSupport: true
        choices: []
        index: 26
  type: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 27}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.3.1