PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.1
    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: 32
    elements:
      coding:
        mustSupport: true
        index: 33
        elements:
          system: {mustSupport: true, index: 34}
          version: {mustSupport: true, index: 35}
          code: {mustSupport: true, index: 36}
          display: {mustSupport: true, index: 37}
  whenHandedOver: {mustSupport: true, index: 79}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  substitution:
    mustSupport: true
    index: 87
    elements:
      wasSubstituted: {mustSupport: true, index: 88}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 41}
      identifier:
        mustSupport: true
        index: 42
        elements:
          type:
            mustSupport: true
            index: 43
            elements:
              coding:
                mustSupport: true
                index: 44
                elements:
                  system: {mustSupport: true, index: 45}
                  version: {mustSupport: true, index: 46}
                  code: {mustSupport: true, index: 47}
                  display: {mustSupport: true, index: 48}
          system: {mustSupport: true, index: 49}
          value: {mustSupport: true, index: 50}
      display: {mustSupport: true, index: 51}
  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
            elements:
              url: {mustSupport: true, index: 4}
              value:
                mustSupport: true
                choices: []
                index: 6
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 7
                    elements:
                      coding:
                        mustSupport: true
                        index: 8
                        elements:
                          system: {mustSupport: true, index: 9}
                          version: {mustSupport: true, index: 10}
                          code: {mustSupport: true, index: 11}
                          display: {mustSupport: true, index: 12}
        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: 13
            elements:
              url: {mustSupport: true, index: 14}
              value:
                mustSupport: true
                choices: []
                index: 16
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 17
            extensions:
              language:
                url: null
                index: 18
                elements:
                  url: {mustSupport: true, index: 19}
              algorithmVersion:
                url: null
                index: 20
                elements:
                  url: {mustSupport: true, index: 21}
            elements:
              extension:
                index: 18
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 18
                        elements:
                          url: {mustSupport: true, index: 19}
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 20
                        elements:
                          url: {mustSupport: true, index: 21}
              url: {mustSupport: true, index: 22}
  status:
    short: Status of medication dispense
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/ti-medication-dispense-status-vs'}
    mustSupport: true
    index: 31
  dosageInstruction:
    type: Dosage
    short: Hier werden Informationen zur Dosierung angegeben.
    mustSupport: true
    index: 80
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 82
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 84
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 85
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 85}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 86}
  identifier:
    index: 23
    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
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-originator-process-identifier'}
            index: 24
            elements:
              type:
                mustSupport: true
                index: 25
                elements:
                  coding:
                    mustSupport: true
                    index: 26
                    elements:
                      system: {mustSupport: true, index: 27}
                      version: {mustSupport: true, index: 28}
                      code: {mustSupport: true, index: 29}
                      display: {mustSupport: true, index: 30}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 40
  authorizingPrescription:
    mustSupport: true
    index: 67
    elements:
      reference: {mustSupport: true, index: 68}
      identifier:
        mustSupport: true
        index: 69
        elements:
          type:
            mustSupport: true
            index: 70
            elements:
              coding:
                mustSupport: true
                index: 71
                elements:
                  system: {mustSupport: true, index: 72}
                  version: {mustSupport: true, index: 73}
                  code: {mustSupport: true, index: 74}
                  display: {mustSupport: true, index: 75}
          system: {mustSupport: true, index: 76}
          value: {mustSupport: true, index: 77}
      display: {mustSupport: true, index: 78}
    required: [reference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 52
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 53}
    required: [identifier]
  performer:
    mustSupport: true
    index: 54
    elements:
      actor:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole']
        index: 55
        elements:
          reference: {mustSupport: true, index: 56}
          identifier:
            mustSupport: true
            index: 57
            elements:
              type:
                mustSupport: true
                index: 58
                elements:
                  coding:
                    mustSupport: true
                    index: 59
                    elements:
                      system: {mustSupport: true, index: 60}
                      version: {mustSupport: true, index: 61}
                      code: {mustSupport: true, index: 62}
                      display: {mustSupport: true, index: 63}
              system: {mustSupport: true, index: 64}
              value: {mustSupport: true, index: 65}
          display: {mustSupport: true, index: 66}
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 39
package_version: 1.3.1
extensions:
  rxPrescriptionProcessIdentifier:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    type: Extension
    index: 3
    elements:
      url: {mustSupport: true, index: 4}
      value:
        mustSupport: true
        choices: []
        index: 6
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 7
            elements:
              coding:
                mustSupport: true
                index: 8
                elements:
                  system: {mustSupport: true, index: 9}
                  version: {mustSupport: true, index: 10}
                  code: {mustSupport: true, index: 11}
                  display: {mustSupport: true, index: 12}
  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: 13
    elements:
      url: {mustSupport: true, index: 14}
      value:
        mustSupport: true
        choices: []
        index: 16
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 17
    extensions:
      language:
        url: null
        index: 18
        elements:
          url: {mustSupport: true, index: 19}
      algorithmVersion:
        url: null
        index: 20
        elements:
          url: {mustSupport: true, index: 21}
    elements:
      extension:
        index: 18
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 18
                elements:
                  url: {mustSupport: true, index: 19}
            algorithmVersion:
              match: {}
              schema:
                index: 20
                elements:
                  url: {mustSupport: true, index: 21}
      url: {mustSupport: true, index: 22}
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.0
required: [whenHandedOver, subject, performer]