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