PackagesCanonicalsLogsProblems
    Packages
    rs/de.gematik.epa.medication@1.0.2-rc1
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication
description: Defines the medication resource for the Medication Service in the ePA system.
package_name: rs/de.gematik.epa.medication
derivation: constraint
name: EPAMedication
type: Medication
elements:
  amount:
    mustSupport: true
    index: 79
    elements:
      numerator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 80
        extensions:
          packagingSize:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
            type: Extension
            index: 81
            elements:
              value:
                mustSupport: true
                choices: []
                index: 83
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueString]
                        index: 85
              valueString:
                type: string
                mustSupport: true
                choiceOf: value
                index: 86
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, mustSupport: true, choiceOf: value, index: 86}
          totalQuantity:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
            type: Extension
            index: 87
            elements:
              value:
                mustSupport: true
                choices: []
                index: 89
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueString]
                        index: 91
              valueString:
                type: string
                mustSupport: true
                choiceOf: value
                index: 92
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, mustSupport: true, choiceOf: value, index: 92}
        elements:
          extension:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
            index: 81
            slicing:
              slices:
                packagingSize:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
                    index: 81
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 83
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: [valueString]
                                index: 85
                      valueString:
                        type: string
                        mustSupport: true
                        choiceOf: value
                        index: 86
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema: {type: string, mustSupport: true, choiceOf: value, index: 86}
                totalQuantity:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension
                    index: 87
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 89
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: [valueString]
                                index: 91
                      valueString:
                        type: string
                        mustSupport: true
                        choiceOf: value
                        index: 92
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema: {type: string, mustSupport: true, choiceOf: value, index: 92}
          value: {mustSupport: true, index: 93}
          unit: {mustSupport: true, index: 94}
          system: {mustSupport: true, index: 95}
          code: {mustSupport: true, index: 96}
      denominator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 97
        elements:
          value: {mustSupport: true, index: 98}
          unit: {mustSupport: true, index: 99}
          system: {mustSupport: true, index: 100}
          code: {mustSupport: true, index: 101}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  batch:
    short: Batch Information
    index: 158
    elements:
      lotNumber: {short: Batch Number, mustSupport: true, index: 159}
  extension:
    type: Extension
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    index: 3
    slicing:
      slices:
        rxPrescriptionProcessIdentifier:
          match: {}
          schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', index: 3}
          min: 0
          max: 1
        isVaccine:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension
            index: 4
            elements:
              value:
                mustSupport: true
                choices: []
                index: 6
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueBoolean]
                        index: 8
              valueBoolean:
                type: boolean
                mustSupport: true
                choiceOf: value
                index: 9
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema: {type: boolean, mustSupport: true, choiceOf: value, index: 9}
        drugCategory:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
            index: 10
            elements:
              value:
                mustSupport: true
                choices: []
                index: 12
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueCoding]
                        index: 14
              valueCoding:
                type: Coding
                mustSupport: true
                choiceOf: value
                index: 15
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema: {type: Coding, mustSupport: true, choiceOf: value, index: 15}
              value[x]:
                elements:
                  system: {mustSupport: true, index: 16}
                  code: {mustSupport: true, index: 17}
        normSizeCode:
          match: {}
          schema:
            type: Extension
            short: Package size according to N-designation
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 18
            elements:
              value:
                mustSupport: true
                choices: []
                index: 20
            required: [value]
        packaging:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
            index: 21
            elements:
              value:
                mustSupport: true
                choices: []
                index: 23
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueString]
                        index: 25
              valueString:
                type: string
                mustSupport: true
                choiceOf: value
                index: 26
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, mustSupport: true, choiceOf: value, index: 26}
        manufacturingInstructions:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension
            index: 27
            elements:
              value:
                mustSupport: true
                choices: []
                index: 29
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueString]
                        index: 31
              valueString:
                type: string
                mustSupport: true
                choiceOf: value
                index: 32
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, mustSupport: true, choiceOf: value, index: 32}
  ingredient:
    short: Information on Components (Rezeptur)
    mustSupport: true
    index: 102
    extensions:
      darreichungsform:
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
        type: Extension
        index: 103
        elements:
          value:
            mustSupport: true
            choices: []
            index: 105
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: [valueString]
                    index: 107
          valueString:
            type: string
            mustSupport: true
            choiceOf: value
            index: 108
            slicing:
              slices:
                valueString:
                  match: {}
                  schema: {type: string, mustSupport: true, choiceOf: value, index: 108}
    elements:
      extension:
        type: Extension
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
        index: 103
        slicing:
          slices:
            darreichungsform:
              match: {}
              schema:
                type: Extension
                url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
                index: 103
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 105
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: [valueString]
                            index: 107
                  valueString:
                    type: string
                    mustSupport: true
                    choiceOf: value
                    index: 108
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema: {type: string, mustSupport: true, choiceOf: value, index: 108}
      item:
        short: Component (reference to another medication)
        choices: [itemReference]
        index: 138
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Component (reference to another medication)
                choices: [itemReference]
                index: 138
              min: 0
              max: 1
      itemCodeableConcept:
        short: Component in coded form or, if necessary, as free text
        type: CodeableConcept
        mustSupport: true
        choiceOf: item
        index: 113
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {short: 'Component in coded form or, if necessary, as free text', type: CodeableConcept, mustSupport: true, choiceOf: item, index: 113}
              min: 0
              max: 1
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 114
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: pattern}
              min: null
              slices:
                ask:
                  match: {system: 'http://fhir.de/CodeSystem/ask'}
                  schema:
                    mustSupport: true
                    pattern:
                      type: Coding
                      value: {system: 'http://fhir.de/CodeSystem/ask'}
                    array: true
                    type: Coding
                    index: 115
                    elements:
                      system: {mustSupport: true, index: 116}
                      code: {mustSupport: true, index: 117}
                      display: {mustSupport: true, index: 118}
                    required: [code, system]
                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
                    type: Coding
                    index: 119
                    elements:
                      system: {mustSupport: true, index: 120}
                      code: {mustSupport: true, index: 121}
                      display: {mustSupport: true, index: 122}
                    required: [code, system]
                pzn:
                  match: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
                  schema:
                    mustSupport: true
                    pattern:
                      type: Coding
                      value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
                    array: true
                    type: Coding
                    index: 123
                    elements:
                      system: {mustSupport: true, index: 124}
                      code: {mustSupport: true, index: 125}
                      display: {mustSupport: true, index: 126}
                    required: [code, system]
                wg14:
                  match: {system: 'http://fhir.de/CodeSystem/abdata/wg14'}
                  schema:
                    pattern:
                      type: Coding
                      value: {system: 'http://fhir.de/CodeSystem/abdata/wg14'}
                    array: true
                    type: Coding
                    index: 127
                    elements:
                      system: {mustSupport: true, index: 128}
                      code: {mustSupport: true, index: 129}
                      display: {mustSupport: true, index: 130}
                    required: [code, system]
                snomed:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    pattern:
                      type: Coding
                      value: {system: 'http://snomed.info/sct'}
                    array: true
                    type: Coding
                    index: 131
                    elements:
                      system: {mustSupport: true, index: 132}
                      version: {mustSupport: true, index: 133}
                      code: {mustSupport: true, index: 134}
                      display: {mustSupport: true, index: 135}
                    required: [code, system]
          text: {mustSupport: true, index: 136}
      itemReference:
        short: Component (reference to another medication)
        refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://hl7.org/fhir/StructureDefinition/Substance']
        type: Reference
        choiceOf: item
        index: 139
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Component (reference to another medication)
                refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'http://hl7.org/fhir/StructureDefinition/Substance']
                type: Reference
                choiceOf: item
                index: 139
              min: 0
              max: 1
      isActive: {short: 'Is it an active ingredient?', index: 140}
      strength:
        short: Strength
        mustSupport: true
        index: 141
        extensions:
          amountText:
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            type: Extension
            index: 142
            elements:
              value:
                mustSupport: true
                choices: []
                index: 144
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueString]
                        index: 146
              valueString:
                type: string
                mustSupport: true
                choiceOf: value
                index: 147
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema: {type: string, mustSupport: true, choiceOf: value, index: 147}
        elements:
          extension:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            index: 142
            slicing:
              slices:
                amountText:
                  match: {}
                  schema:
                    type: Extension
                    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
                    index: 142
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 144
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: [valueString]
                                index: 146
                      valueString:
                        type: string
                        mustSupport: true
                        choiceOf: value
                        index: 147
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema: {type: string, mustSupport: true, choiceOf: value, index: 147}
          numerator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 148
            elements:
              value: {mustSupport: true, index: 149}
              unit: {mustSupport: true, index: 150}
              system: {mustSupport: true, index: 151}
              code: {mustSupport: true, index: 152}
            required: [code, system, value]
          denominator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 153
            elements:
              value: {mustSupport: true, index: 154}
              unit: {mustSupport: true, index: 155}
              system: {mustSupport: true, index: 156}
              code: {mustSupport: true, index: 157}
            required: [code, system, value]
        required: [numerator]
  status: {short: Status of Medication Information, mustSupport: true, index: 61}
  code:
    short: Medication in coded form or as free text if necessary
    mustSupport: true
    index: 36
    elements:
      coding:
        mustSupport: true
        index: 37
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          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'}
                type: Coding
                index: 38
                elements:
                  system: {mustSupport: true, index: 39}
                  version: {mustSupport: true, index: 40}
                  code: {mustSupport: true, index: 41}
                  display: {mustSupport: true, index: 42}
                required: [code, system]
            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
                type: Coding
                index: 43
                elements:
                  system: {mustSupport: true, index: 44}
                  code: {mustSupport: true, index: 45}
                  display: {mustSupport: true, index: 46}
                required: [code, system]
            ask:
              match: {system: 'http://fhir.de/CodeSystem/ask'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/ask'}
                array: true
                type: Coding
                index: 47
                elements:
                  system: {mustSupport: true, index: 48}
                  code: {mustSupport: true, index: 49}
                  display: {mustSupport: true, index: 50}
                required: [code, system]
            wg14:
              match: {system: 'http://fhir.de/CodeSystem/abdata/wg14'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/abdata/wg14'}
                array: true
                type: Coding
                index: 51
                elements:
                  system: {mustSupport: true, index: 52}
                  code: {mustSupport: true, index: 53}
                  display: {mustSupport: true, index: 54}
                required: [code, system]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                array: true
                type: Coding
                index: 55
                elements:
                  system: {mustSupport: true, index: 56}
                  version: {mustSupport: true, index: 57}
                  code: {mustSupport: true, index: 58}
                  display: {mustSupport: true, index: 59}
                required: [code, system]
      text: {mustSupport: true, index: 60}
  identifier:
    index: 33
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: pattern}
      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: 34
          min: 0
          max: 1
        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: 35
          min: 0
          max: 1
  manufacturer:
    short: Manufacturer of the Medication
    mustSupport: true
    index: 62
    elements:
      display: {mustSupport: true, index: 63}
    required: [display]
  form:
    short: Form of Dispensing
    mustSupport: true
    index: 64
    elements:
      coding:
        mustSupport: true
        index: 65
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            edqm:
              match: {system: 'http://standardterms.edqm.eu'}
              schema:
                binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/uv/ips/ValueSet/medicine-doseform'}
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://standardterms.edqm.eu'}
                array: true
                type: Coding
                index: 66
                elements:
                  system: {mustSupport: true, index: 67}
                  code: {mustSupport: true, index: 68}
                  display: {mustSupport: true, index: 69}
                required: [code, system]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                array: true
                type: Coding
                index: 70
                elements:
                  system: {mustSupport: true, index: 71}
                  version: {mustSupport: true, index: 72}
                  code: {mustSupport: true, index: 73}
                  display: {mustSupport: true, index: 74}
                required: [code, system]
            kbvDarreichungsform:
              match: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM'}
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
                array: true
                type: Coding
                index: 75
                elements:
                  system: {mustSupport: true, index: 76}
                  code: {mustSupport: true, index: 77}
                  display: {mustSupport: true, index: 78}
                required: [code, system]
package_version: 1.0.2-rc1
extensions:
  rxPrescriptionProcessIdentifier: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', min: 0, max: 1, type: Extension, index: 3}
  isVaccine:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-id-vaccine-extension
    type: Extension
    index: 4
    elements:
      value:
        mustSupport: true
        choices: []
        index: 6
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema:
                mustSupport: true
                choices: [valueBoolean]
                index: 8
      valueBoolean:
        type: boolean
        mustSupport: true
        choiceOf: value
        index: 9
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema: {type: boolean, mustSupport: true, choiceOf: value, index: 9}
  drugCategory:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
    type: Extension
    index: 10
    elements:
      value:
        mustSupport: true
        choices: []
        index: 12
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                mustSupport: true
                choices: [valueCoding]
                index: 14
      valueCoding:
        type: Coding
        mustSupport: true
        choiceOf: value
        index: 15
        slicing:
          slices:
            valueCoding:
              match: {}
              schema: {type: Coding, mustSupport: true, choiceOf: value, index: 15}
      value[x]:
        elements:
          system: {mustSupport: true, index: 16}
          code: {mustSupport: true, index: 17}
  normSizeCode:
    url: http://fhir.de/StructureDefinition/normgroesse
    type: Extension
    short: Package size according to N-designation
    index: 18
    elements:
      value:
        mustSupport: true
        choices: []
        index: 20
    required: [value]
  packaging:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension
    type: Extension
    index: 21
    elements:
      value:
        mustSupport: true
        choices: []
        index: 23
        slicing:
          slices:
            valueString:
              match: {}
              schema:
                mustSupport: true
                choices: [valueString]
                index: 25
      valueString:
        type: string
        mustSupport: true
        choiceOf: value
        index: 26
        slicing:
          slices:
            valueString:
              match: {}
              schema: {type: string, mustSupport: true, choiceOf: value, index: 26}
  manufacturingInstructions:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension
    type: Extension
    index: 27
    elements:
      value:
        mustSupport: true
        choices: []
        index: 29
        slicing:
          slices:
            valueString:
              match: {}
              schema:
                mustSupport: true
                choices: [valueString]
                index: 31
      valueString:
        type: string
        mustSupport: true
        choiceOf: value
        index: 32
        slicing:
          slices:
            valueString:
              match: {}
              schema: {type: string, mustSupport: true, choiceOf: value, index: 32}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.0.2-rc1