PackagesCanonicalsLogsProblems
    Packages
    de.gematik.ti@1.4.0-rc.1
    https://gematik.de/fhir/ti/StructureDefinition/ti-medication-dgmp
description: Defines the medication resource for the Medication Service in the TI ecosystem.
package_name: de.gematik.ti
derivation: constraint
name: TIMedicationDgMP
type: Medication
elements:
  amount:
    mustSupport: true
    index: 50
    elements:
      numerator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 51
        extensions:
          packagingSize: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 52}
          totalQuantity: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 53}
        elements:
          extension:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension
            index: 52
            slicing:
              slices:
                packagingSize:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-packaging-size-extension', index: 52}
                  min: 0
                  max: 1
                totalQuantity:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-total-quantity-formulation-extension', index: 53}
                  min: 0
                  max: 1
      denominator:
        binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
        mustSupport: true
        index: 54
        elements:
          value: {mustSupport: true, index: 55}
          unit: {mustSupport: true, index: 56}
          system: {mustSupport: true, index: 57}
          code: {mustSupport: true, index: 58}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  batch:
    mustSupport: true
    index: 97
    elements:
      lotNumber: {mustSupport: true, index: 98}
  extension:
    type: Extension
    mustSupport: true
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
    index: 4
    slicing:
      slices:
        context:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension', index: 4}
          min: 0
          max: 1
        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}
          min: 0
          max: 1
        drugCategory:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
            index: 7
            elements:
              value[x]:
                elements:
                  system: {mustSupport: true, index: 8}
                  code: {mustSupport: true, index: 9}
                required: [system, code]
        normSizeCode:
          match: {}
          schema:
            short: Package size according to N-designation
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 10
            elements:
              value:
                mustSupport: true
                choices: []
                index: 12
        packaging:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension', index: 13}
          min: 0
          max: 1
        manufacturingInstructions:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension', index: 14}
          min: 0
          max: 1
        type:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', index: 15}
          min: 0
          max: 1
  contained: {type: Medication, short: Enthält PZN-Bestandteile für Rezepturen sowie pharmazeutische Produkte im Falle einer 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: 59
    extensions:
      darreichungsform: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension', min: 0, max: 1, type: Extension, index: 60}
    elements:
      extension:
        type: Extension
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension
        index: 60
        slicing:
          slices:
            darreichungsform:
              match: {}
              schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-darreichungsform-extension', index: 60}
              min: 0
              max: 1
      item:
        short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
        mustSupport: true
        choices: [itemReference]
        index: 82
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
                mustSupport: true
                choices: [itemReference]
                index: 82
              min: 0
              max: 1
      itemCodeableConcept:
        short: Encoded description of the substance or component.
        type: CodeableConcept
        mustSupport: true
        choiceOf: item
        index: 65
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {short: Encoded description of the substance or component., type: CodeableConcept, mustSupport: true, choiceOf: item, index: 65}
              min: 0
              max: 1
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 66
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: value}
              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
                    index: 67
                    elements:
                      system: {mustSupport: true, index: 68}
                      code: {mustSupport: true, index: 69}
                      display: {mustSupport: true, index: 70}
                    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: 71
                    elements:
                      system: {mustSupport: true, index: 72}
                      version: {index: 73}
                      code: {mustSupport: true, index: 74}
                      display: {mustSupport: true, index: 75}
                    required: [version, system, code]
                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
                    index: 76
                    elements:
                      system: {mustSupport: true, index: 77}
                      code: {mustSupport: true, index: 78}
                      display: {mustSupport: true, index: 79}
                    required: [system, code]
          text: {mustSupport: true, index: 80}
      itemReference:
        short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
        refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
        type: Reference
        mustSupport: true
        choiceOf: item
        index: 83
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                short: Restricted EPAMedicationPZNIngredient & EPAMedicationPharmaceuticalProduct only
                refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
                type: Reference
                mustSupport: true
                choiceOf: item
                index: 83
              min: 0
              max: 1
      isActive: {short: 'Is it an active ingredient?', index: 84}
      strength:
        short: Strength
        mustSupport: true
        index: 85
        extensions:
          amountText: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension', min: 0, max: 1, type: Extension, index: 86}
        elements:
          extension:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension
            index: 86
            slicing:
              slices:
                amountText:
                  match: {}
                  schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-ingredient-amount-extension', index: 86}
                  min: 0
                  max: 1
          numerator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 87
            elements:
              value: {mustSupport: true, index: 88}
              unit: {mustSupport: true, index: 89}
              system: {mustSupport: true, index: 90}
              code: {mustSupport: true, index: 91}
            required: [value]
          denominator:
            binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-units'}
            mustSupport: true
            index: 92
            elements:
              value: {mustSupport: true, index: 93}
              unit: {mustSupport: true, index: 94}
              system: {mustSupport: true, index: 95}
              code: {mustSupport: true, index: 96}
            required: [value]
  status: {short: Status of Medication Information, mustSupport: true, index: 34}
  code:
    short: Medication in coded form or as free text if necessary
    mustSupport: true
    index: 18
    elements:
      coding:
        mustSupport: true
        index: 19
        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: 20
                elements:
                  system: {mustSupport: true, index: 21}
                  code: {mustSupport: true, index: 22}
                  display: {mustSupport: true, index: 23}
                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: 24
                elements:
                  system: {mustSupport: true, index: 25}
                  version: {index: 26}
                  code: {mustSupport: true, index: 27}
                  display: {mustSupport: true, index: 28}
                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: 29
                elements:
                  system: {mustSupport: true, index: 30}
                  code: {mustSupport: true, index: 31}
                  display: {mustSupport: true, index: 32}
                required: [system, code]
      text: {mustSupport: true, index: 33}
  identifier:
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: null
      slices:
        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: 17
          min: 0
          max: 1
  manufacturer:
    short: Manufacturer of the Medication
    mustSupport: true
    index: 35
    elements:
      display: {mustSupport: true, index: 36}
    required: [display]
  form:
    short: Form of Dispensing
    mustSupport: true
    index: 37
    extensions:
      dataAbsentReason: {url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', min: 0, max: 1, type: Extension, mustSupport: true, index: 39}
    elements:
      extension:
        mustSupport: true
        index: 38
        slicing:
          slices:
            dataAbsentReason:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', index: 39}
              min: 0
              max: 1
      coding:
        mustSupport: true
        index: 40
        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
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
                index: 41
                elements:
                  system: {mustSupport: true, index: 42}
                  code: {mustSupport: true, index: 43}
                  display: {mustSupport: true, index: 44}
                required: [system, code]
            ifaDarreichungsform:
              match: {system: 'https://fhir.ifaffm.de/CodeSystem/IFA_DARREICHUNGSFORM'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.ifaffm.de/CodeSystem/IFA_DARREICHUNGSFORM'}
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.ifaffm.de/CodeSystem/IFA_DARREICHUNGSFORM'}
                index: 45
                elements:
                  system: {mustSupport: true, index: 46}
                  code: {mustSupport: true, index: 47}
                  display: {mustSupport: true, index: 48}
                required: [system, code]
      text: {mustSupport: true, index: 49}
package_version: 1.4.0-rc.1
extensions:
  context: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 4}
  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', min: 0, max: 1, type: Extension, mustSupport: true, index: 6}
  drugCategory:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/drug-category-extension
    type: Extension
    mustSupport: true
    index: 7
    elements:
      value[x]:
        elements:
          system: {mustSupport: true, index: 8}
          code: {mustSupport: true, index: 9}
        required: [system, code]
  normSizeCode:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Package size according to N-designation
    type: Extension
    mustSupport: true
    index: 10
    elements:
      value:
        mustSupport: true
        choices: []
        index: 12
  packaging: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-formulation-packaging-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 13}
  manufacturingInstructions: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/medication-manufacturing-instructions-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 14}
  type: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-type-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 15}
class: profile
kind: resource
url: https://gematik.de/fhir/ti/StructureDefinition/ti-medication-dgmp
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.4.0