PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.1
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
description: Defines the medication request resource for the Medication Service in the ePA system.
package_name: de.gematik.epa.medication
derivation: constraint
name: EPAMedicationRequest
type: MedicationRequest
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  substitution:
    mustSupport: true
    index: 148
    elements:
      allowed:
        mustSupport: true
        choices: [allowedBoolean]
        index: 150
      allowedBoolean: {type: boolean, mustSupport: true, choiceOf: allowed, index: 151}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 94}
      identifier:
        mustSupport: true
        index: 95
        elements:
          type:
            mustSupport: true
            index: 96
            elements:
              coding:
                mustSupport: true
                index: 97
                elements:
                  system: {mustSupport: true, index: 98}
                  version: {mustSupport: true, index: 99}
                  code: {mustSupport: true, index: 100}
                  display: {mustSupport: true, index: 101}
          system: {mustSupport: true, index: 102}
          value: {mustSupport: true, index: 103}
      display: {mustSupport: true, index: 104}
  dispenseRequest:
    mustSupport: true
    index: 141
    elements:
      quantity:
        mustSupport: true
        index: 142
        elements:
          value: {short: Number of Prescribed Packages, mustSupport: true, index: 143}
          unit: {mustSupport: true, index: 144}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: true
            index: 145
          code: {mustSupport: true, index: 146}
        required: [value]
      expectedSupplyDuration: {mustSupport: true, index: 147}
  authoredOn: {short: Issue Date, mustSupport: true, index: 107}
  note:
    mustSupport: true
    index: 132
    elements:
      text: {short: Dispensing Note, mustSupport: true, index: 133}
  extension:
    type: Extension
    mustSupport: true
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
    index: 3
    slicing:
      slices:
        patientID:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
            index: 50
            elements:
              url: {mustSupport: true, index: 51}
              value:
                mustSupport: true
                choices: []
                index: 53
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 54
                    elements:
                      coding:
                        mustSupport: true
                        index: 55
                        elements:
                          system: {mustSupport: true, index: 56}
                          version: {mustSupport: true, index: 57}
                          code: {mustSupport: true, index: 58}
                          display: {mustSupport: true, index: 59}
                  system: {mustSupport: true, index: 60}
                  value: {mustSupport: true, index: 61}
        isBvg:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
            index: 30
            elements:
              url: {mustSupport: true, index: 31}
              value:
                mustSupport: true
                choices: []
                index: 33
        prescriberID:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
            index: 38
            elements:
              url: {mustSupport: true, index: 39}
              value:
                mustSupport: true
                choices: []
                index: 41
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 42
                    elements:
                      coding:
                        mustSupport: true
                        index: 43
                        elements:
                          system: {mustSupport: true, index: 44}
                          version: {mustSupport: true, index: 45}
                          code: {mustSupport: true, index: 46}
                          display: {mustSupport: true, index: 47}
                  system: {mustSupport: true, index: 48}
                  value: {mustSupport: true, index: 49}
        multiplePrescription:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
            index: 3
            extensions:
              indicator:
                url: null
                mustSupport: true
                index: 5
                elements:
                  url: {mustSupport: true, index: 6}
                  value:
                    mustSupport: true
                    choices: []
                    index: 8
              counter:
                url: null
                mustSupport: true
                index: 9
                elements:
                  url: {mustSupport: true, index: 10}
                  value:
                    mustSupport: true
                    choices: []
                    index: 12
                  value[x]:
                    elements:
                      numerator:
                        mustSupport: true
                        index: 13
                        elements:
                          value: {mustSupport: true, index: 14}
                      denominator:
                        mustSupport: true
                        index: 15
                        elements:
                          value: {mustSupport: true, index: 16}
              period:
                url: null
                mustSupport: true
                index: 17
                elements:
                  url: {mustSupport: true, index: 18}
                  value:
                    mustSupport: true
                    choices: []
                    index: 20
                  value[x]:
                    elements:
                      start: {mustSupport: true, index: 21}
                      end: {mustSupport: true, index: 22}
              id:
                url: null
                mustSupport: true
                index: 23
                elements:
                  url: {mustSupport: true, index: 24}
                  value:
                    mustSupport: true
                    choices: []
                    index: 26
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 27}
                      value: {mustSupport: true, index: 28}
            elements:
              extension:
                mustSupport: true
                index: 4
                slicing:
                  slices:
                    indicator:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 5
                        elements:
                          url: {mustSupport: true, index: 6}
                          value:
                            mustSupport: true
                            choices: []
                            index: 8
                    counter:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 9
                        elements:
                          url: {mustSupport: true, index: 10}
                          value:
                            mustSupport: true
                            choices: []
                            index: 12
                          value[x]:
                            elements:
                              numerator:
                                mustSupport: true
                                index: 13
                                elements:
                                  value: {mustSupport: true, index: 14}
                              denominator:
                                mustSupport: true
                                index: 15
                                elements:
                                  value: {mustSupport: true, index: 16}
                    period:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 17
                        elements:
                          url: {mustSupport: true, index: 18}
                          value:
                            mustSupport: true
                            choices: []
                            index: 20
                          value[x]:
                            elements:
                              start: {mustSupport: true, index: 21}
                              end: {mustSupport: true, index: 22}
                    id:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 23
                        elements:
                          url: {mustSupport: true, index: 24}
                          value:
                            mustSupport: true
                            choices: []
                            index: 26
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 27}
                              value: {mustSupport: true, index: 28}
              url: {mustSupport: true, index: 29}
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 68
            extensions:
              language:
                url: null
                index: 69
                elements:
                  url: {mustSupport: true, index: 70}
              algorithmVersion:
                url: null
                index: 71
                elements:
                  url: {mustSupport: true, index: 72}
            elements:
              extension:
                index: 69
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 69
                        elements:
                          url: {mustSupport: true, index: 70}
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 71
                        elements:
                          url: {mustSupport: true, index: 72}
              url: {mustSupport: true, index: 73}
        isSer:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
            index: 34
            elements:
              url: {mustSupport: true, index: 35}
              value:
                mustSupport: true
                choices: []
                index: 37
        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-MedicationRequest.renderedDosageInstruction
            index: 64
            elements:
              url: {mustSupport: true, index: 65}
              value:
                mustSupport: true
                choices: []
                index: 67
        narcotics:
          match: {}
          schema: {short: Betäubungsmittel (BtM), type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension', index: 62}
          min: 0
          max: 1
        teratogenic:
          match: {}
          schema: {short: T-Rezept, type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension', index: 63}
          min: 0
          max: 1
  requester:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole']
    index: 108
    elements:
      reference: {mustSupport: true, index: 109}
      identifier:
        mustSupport: true
        index: 110
        elements:
          type:
            mustSupport: true
            index: 111
            elements:
              coding:
                mustSupport: true
                index: 112
                elements:
                  system: {mustSupport: true, index: 113}
                  version: {mustSupport: true, index: 114}
                  code: {mustSupport: true, index: 115}
                  display: {mustSupport: true, index: 116}
          system: {mustSupport: true, index: 117}
          value: {mustSupport: true, index: 118}
      display: {mustSupport: true, index: 119}
  status:
    short: Status of Medication Request
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/ti-medication-request-status-vs'}
    mustSupport: true
    index: 89
  dosageInstruction:
    type: Dosage
    short: Hier werden Informationen zur Dosierung angegeben.
    mustSupport: true
    index: 134
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 136
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 138
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 139
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 139}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 140}
  identifier:
    index: 74
    slicing:
      rules: open
      ordered: false
      description: ePrescription identifier and overall transaction identifier
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        RxPrescriptionProcessIdentifier:
          match: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier'}
          schema:
            type: Identifier
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier'}
            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}
        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: 82
            elements:
              type:
                mustSupport: true
                index: 83
                elements:
                  coding:
                    mustSupport: true
                    index: 84
                    elements:
                      system: {mustSupport: true, index: 85}
                      version: {mustSupport: true, index: 86}
                      code: {mustSupport: true, index: 87}
                      display: {mustSupport: true, index: 88}
  intent: {short: filler-order, mustSupport: true, index: 90}
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request']
    index: 120
    elements:
      reference: {mustSupport: true, index: 121}
      identifier:
        type: Identifier
        mustSupport: true
        index: 122
        elements:
          type:
            mustSupport: true
            index: 123
            elements:
              coding:
                mustSupport: true
                index: 124
                elements:
                  system: {mustSupport: true, index: 125}
                  version: {mustSupport: true, index: 126}
                  code: {mustSupport: true, index: 127}
                  display: {mustSupport: true, index: 128}
          system: {mustSupport: true, index: 129}
          value: {mustSupport: true, index: 130}
      display: {mustSupport: true, index: 131}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 93
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 105
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 106}
    required: [identifier]
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 92
package_version: 1.3.1
extensions:
  patientID:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
    type: Extension
    index: 50
    elements:
      url: {mustSupport: true, index: 51}
      value:
        mustSupport: true
        choices: []
        index: 53
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 54
            elements:
              coding:
                mustSupport: true
                index: 55
                elements:
                  system: {mustSupport: true, index: 56}
                  version: {mustSupport: true, index: 57}
                  code: {mustSupport: true, index: 58}
                  display: {mustSupport: true, index: 59}
          system: {mustSupport: true, index: 60}
          value: {mustSupport: true, index: 61}
  isBvg:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
    type: Extension
    mustSupport: true
    index: 30
    elements:
      url: {mustSupport: true, index: 31}
      value:
        mustSupport: true
        choices: []
        index: 33
  prescriberID:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
    type: Extension
    index: 38
    elements:
      url: {mustSupport: true, index: 39}
      value:
        mustSupport: true
        choices: []
        index: 41
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 42
            elements:
              coding:
                mustSupport: true
                index: 43
                elements:
                  system: {mustSupport: true, index: 44}
                  version: {mustSupport: true, index: 45}
                  code: {mustSupport: true, index: 46}
                  display: {mustSupport: true, index: 47}
          system: {mustSupport: true, index: 48}
          value: {mustSupport: true, index: 49}
  multiplePrescription:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
    type: Extension
    mustSupport: true
    index: 3
    extensions:
      indicator:
        url: null
        mustSupport: true
        index: 5
        elements:
          url: {mustSupport: true, index: 6}
          value:
            mustSupport: true
            choices: []
            index: 8
      counter:
        url: null
        mustSupport: true
        index: 9
        elements:
          url: {mustSupport: true, index: 10}
          value:
            mustSupport: true
            choices: []
            index: 12
          value[x]:
            elements:
              numerator:
                mustSupport: true
                index: 13
                elements:
                  value: {mustSupport: true, index: 14}
              denominator:
                mustSupport: true
                index: 15
                elements:
                  value: {mustSupport: true, index: 16}
      period:
        url: null
        mustSupport: true
        index: 17
        elements:
          url: {mustSupport: true, index: 18}
          value:
            mustSupport: true
            choices: []
            index: 20
          value[x]:
            elements:
              start: {mustSupport: true, index: 21}
              end: {mustSupport: true, index: 22}
      id:
        url: null
        mustSupport: true
        index: 23
        elements:
          url: {mustSupport: true, index: 24}
          value:
            mustSupport: true
            choices: []
            index: 26
          value[x]:
            elements:
              system: {mustSupport: true, index: 27}
              value: {mustSupport: true, index: 28}
    elements:
      extension:
        mustSupport: true
        index: 4
        slicing:
          slices:
            indicator:
              match: {}
              schema:
                mustSupport: true
                index: 5
                elements:
                  url: {mustSupport: true, index: 6}
                  value:
                    mustSupport: true
                    choices: []
                    index: 8
            counter:
              match: {}
              schema:
                mustSupport: true
                index: 9
                elements:
                  url: {mustSupport: true, index: 10}
                  value:
                    mustSupport: true
                    choices: []
                    index: 12
                  value[x]:
                    elements:
                      numerator:
                        mustSupport: true
                        index: 13
                        elements:
                          value: {mustSupport: true, index: 14}
                      denominator:
                        mustSupport: true
                        index: 15
                        elements:
                          value: {mustSupport: true, index: 16}
            period:
              match: {}
              schema:
                mustSupport: true
                index: 17
                elements:
                  url: {mustSupport: true, index: 18}
                  value:
                    mustSupport: true
                    choices: []
                    index: 20
                  value[x]:
                    elements:
                      start: {mustSupport: true, index: 21}
                      end: {mustSupport: true, index: 22}
            id:
              match: {}
              schema:
                mustSupport: true
                index: 23
                elements:
                  url: {mustSupport: true, index: 24}
                  value:
                    mustSupport: true
                    choices: []
                    index: 26
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 27}
                      value: {mustSupport: true, index: 28}
      url: {mustSupport: true, index: 29}
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 68
    extensions:
      language:
        url: null
        index: 69
        elements:
          url: {mustSupport: true, index: 70}
      algorithmVersion:
        url: null
        index: 71
        elements:
          url: {mustSupport: true, index: 72}
    elements:
      extension:
        index: 69
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 69
                elements:
                  url: {mustSupport: true, index: 70}
            algorithmVersion:
              match: {}
              schema:
                index: 71
                elements:
                  url: {mustSupport: true, index: 72}
      url: {mustSupport: true, index: 73}
  isSer:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
    type: Extension
    mustSupport: true
    index: 34
    elements:
      url: {mustSupport: true, index: 35}
      value:
        mustSupport: true
        choices: []
        index: 37
  renderedDosageInstruction:
    url: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
    short: Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen).
    type: Extension
    mustSupport: true
    index: 64
    elements:
      url: {mustSupport: true, index: 65}
      value:
        mustSupport: true
        choices: []
        index: 67
  narcotics: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension', min: 0, max: 1, short: Betäubungsmittel (BtM), type: Extension, mustSupport: true, index: 62}
  teratogenic: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension', min: 0, max: 1, short: T-Rezept, type: Extension, mustSupport: true, index: 63}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.3.0
required: [authoredOn]