PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.4
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense
description: Defines the medication dispense resource for the Medication Service in the ePA system.
package_name: de.gematik.epa.medication
derivation: constraint
name: EPAMedicationDispense
type: MedicationDispense
elements:
  category:
    short: Fehlender oder nicht vorhandener Wert weist auf eine Abgabe mit Verschreibung hin.
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/ti-medication-dispense-category-vs'}
    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}
  whenHandedOver: {mustSupport: true, index: 84}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  substitution:
    mustSupport: true
    index: 92
    elements:
      wasSubstituted: {mustSupport: true, index: 93}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 46}
      identifier:
        mustSupport: true
        index: 47
        elements:
          type:
            mustSupport: true
            index: 48
            elements:
              coding:
                mustSupport: true
                index: 49
                elements:
                  system: {mustSupport: true, index: 50}
                  version: {mustSupport: true, index: 51}
                  code: {mustSupport: true, index: 52}
                  display: {mustSupport: true, index: 53}
          system: {mustSupport: true, index: 54}
          value: {mustSupport: true, index: 55}
      display: {mustSupport: true, index: 56}
  extension:
    mustSupport: true
    index: 3
    slicing:
      slices:
        rxPrescriptionProcessIdentifier:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
            index: 4
            elements:
              url: {mustSupport: true, index: 5}
              value:
                mustSupport: true
                choices: []
                index: 7
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 8
                    elements:
                      coding:
                        mustSupport: true
                        index: 9
                        elements:
                          system: {mustSupport: true, index: 10}
                          version: {mustSupport: true, index: 11}
                          code: {mustSupport: true, index: 12}
                          display: {mustSupport: true, index: 13}
        renderedDosageInstruction:
          match: {}
          schema:
            short: Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen).
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction
            index: 14
            elements:
              url: {mustSupport: true, index: 15}
              value:
                mustSupport: true
                choices: []
                index: 17
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 18
            extensions:
              language:
                url: null
                index: 19
                elements:
                  url: {mustSupport: true, index: 20}
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
              algorithmVersion:
                url: null
                index: 23
                elements:
                  url: {mustSupport: true, index: 24}
                  value:
                    mustSupport: true
                    choices: []
                    index: 26
            elements:
              extension:
                index: 19
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 19
                        elements:
                          url: {mustSupport: true, index: 20}
                          value:
                            mustSupport: true
                            choices: []
                            index: 22
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 23
                        elements:
                          url: {mustSupport: true, index: 24}
                          value:
                            mustSupport: true
                            choices: []
                            index: 26
              url: {mustSupport: true, index: 27}
  status:
    short: Status of medication dispense
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/ti-medication-dispense-status-vs'}
    mustSupport: true
    index: 36
  dosageInstruction:
    type: Dosage
    short: Hier werden Informationen zur Dosierung angegeben.
    mustSupport: true
    index: 85
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 87
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 89
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 90
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 90}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 91}
  identifier:
    mustSupport: true
    index: 28
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        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: 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}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 45
  authorizingPrescription:
    mustSupport: true
    index: 72
    elements:
      reference: {mustSupport: true, index: 73}
      identifier:
        mustSupport: true
        index: 74
        elements:
          type:
            mustSupport: true
            index: 75
            elements:
              coding:
                mustSupport: true
                index: 76
                elements:
                  system: {mustSupport: true, index: 77}
                  version: {mustSupport: true, index: 78}
                  code: {mustSupport: true, index: 79}
                  display: {mustSupport: true, index: 80}
          system: {mustSupport: true, index: 81}
          value: {mustSupport: true, index: 82}
      display: {mustSupport: true, index: 83}
    required: [reference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 57
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 58}
    required: [identifier]
  performer:
    mustSupport: true
    index: 59
    elements:
      actor:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole']
        index: 60
        elements:
          reference: {mustSupport: true, index: 61}
          identifier:
            mustSupport: true
            index: 62
            elements:
              type:
                mustSupport: true
                index: 63
                elements:
                  coding:
                    mustSupport: true
                    index: 64
                    elements:
                      system: {mustSupport: true, index: 65}
                      version: {mustSupport: true, index: 66}
                      code: {mustSupport: true, index: 67}
                      display: {mustSupport: true, index: 68}
              system: {mustSupport: true, index: 69}
              value: {mustSupport: true, index: 70}
          display: {mustSupport: true, index: 71}
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 44
package_version: 1.3.4
extensions:
  rxPrescriptionProcessIdentifier:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    type: Extension
    mustSupport: true
    index: 4
    elements:
      url: {mustSupport: true, index: 5}
      value:
        mustSupport: true
        choices: []
        index: 7
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 8
            elements:
              coding:
                mustSupport: true
                index: 9
                elements:
                  system: {mustSupport: true, index: 10}
                  version: {mustSupport: true, index: 11}
                  code: {mustSupport: true, index: 12}
                  display: {mustSupport: true, index: 13}
  renderedDosageInstruction:
    url: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationDispense.renderedDosageInstruction
    short: Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen).
    type: Extension
    mustSupport: true
    index: 14
    elements:
      url: {mustSupport: true, index: 15}
      value:
        mustSupport: true
        choices: []
        index: 17
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 18
    extensions:
      language:
        url: null
        index: 19
        elements:
          url: {mustSupport: true, index: 20}
          value:
            mustSupport: true
            choices: []
            index: 22
      algorithmVersion:
        url: null
        index: 23
        elements:
          url: {mustSupport: true, index: 24}
          value:
            mustSupport: true
            choices: []
            index: 26
    elements:
      extension:
        index: 19
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 19
                elements:
                  url: {mustSupport: true, index: 20}
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
            algorithmVersion:
              match: {}
              schema:
                index: 23
                elements:
                  url: {mustSupport: true, index: 24}
                  value:
                    mustSupport: true
                    choices: []
                    index: 26
      url: {mustSupport: true, index: 27}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.3.1
required: [whenHandedOver, subject, performer]