PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.4
    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: 166
    elements:
      allowed:
        mustSupport: true
        choices: [allowedBoolean]
        index: 168
      allowedBoolean: {type: boolean, mustSupport: true, choiceOf: allowed, index: 169}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 111}
      identifier:
        mustSupport: true
        index: 112
        elements:
          type:
            mustSupport: true
            index: 113
            elements:
              coding:
                mustSupport: true
                index: 114
                elements:
                  system: {mustSupport: true, index: 115}
                  version: {mustSupport: true, index: 116}
                  code: {mustSupport: true, index: 117}
                  display: {mustSupport: true, index: 118}
          system: {mustSupport: true, index: 119}
          value: {mustSupport: true, index: 120}
      display: {mustSupport: true, index: 121}
  dispenseRequest:
    mustSupport: true
    index: 159
    elements:
      quantity:
        mustSupport: true
        index: 160
        elements:
          value: {short: Number of Prescribed Packages, mustSupport: true, index: 161}
          unit: {mustSupport: true, index: 162}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: true
            index: 163
          code: {mustSupport: true, index: 164}
        required: [value]
      expectedSupplyDuration: {mustSupport: true, index: 165}
  authoredOn: {short: Issue Date, mustSupport: true, index: 124}
  note:
    mustSupport: true
    index: 149
    elements:
      time: {mustSupport: true, index: 150}
      text: {short: Dispensing Note, mustSupport: true, index: 151}
  extension:
    mustSupport: true
    index: 3
    slicing:
      slices:
        patientID:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
            index: 63
            elements:
              url: {mustSupport: true, index: 64}
              value:
                mustSupport: true
                choices: []
                index: 66
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 67
                    elements:
                      coding:
                        mustSupport: true
                        index: 68
                        elements:
                          system: {mustSupport: true, index: 69}
                          version: {mustSupport: true, index: 70}
                          code: {mustSupport: true, index: 71}
                          display: {mustSupport: true, index: 72}
                  system: {mustSupport: true, index: 73}
                  value: {mustSupport: true, index: 74}
        isBvg:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
            index: 43
            elements:
              url: {mustSupport: true, index: 44}
              value:
                mustSupport: true
                choices: []
                index: 46
        prescriberID:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
            index: 51
            elements:
              url: {mustSupport: true, index: 52}
              value:
                mustSupport: true
                choices: []
                index: 54
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 55
                    elements:
                      coding:
                        mustSupport: true
                        index: 56
                        elements:
                          system: {mustSupport: true, index: 57}
                          version: {mustSupport: true, index: 58}
                          code: {mustSupport: true, index: 59}
                          display: {mustSupport: true, index: 60}
                  system: {mustSupport: true, index: 61}
                  value: {mustSupport: true, index: 62}
        multiplePrescription:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
            index: 4
            extensions:
              indicator:
                url: null
                mustSupport: true
                index: 6
                elements:
                  url: {mustSupport: true, index: 7}
                  value:
                    mustSupport: true
                    choices: []
                    index: 9
              counter:
                url: null
                mustSupport: true
                index: 10
                elements:
                  url: {mustSupport: true, index: 11}
                  value:
                    mustSupport: true
                    choices: []
                    index: 13
                  value[x]:
                    elements:
                      numerator:
                        mustSupport: true
                        index: 14
                        elements:
                          value: {mustSupport: true, index: 15}
                          unit: {mustSupport: true, index: 16}
                          system: {mustSupport: true, index: 17}
                          code: {mustSupport: true, index: 18}
                      denominator:
                        mustSupport: true
                        index: 19
                        elements:
                          value: {mustSupport: true, index: 20}
                          unit: {mustSupport: true, index: 21}
                          system: {mustSupport: true, index: 22}
                          code: {mustSupport: true, index: 23}
              period:
                url: null
                mustSupport: true
                index: 24
                elements:
                  url: {mustSupport: true, index: 25}
                  value:
                    mustSupport: true
                    choices: []
                    index: 27
                  value[x]:
                    elements:
                      start: {mustSupport: true, index: 28}
                      end: {mustSupport: true, index: 29}
              id:
                url: null
                mustSupport: true
                index: 30
                elements:
                  url: {mustSupport: true, index: 31}
                  value:
                    mustSupport: true
                    choices: []
                    index: 33
                  value[x]:
                    elements:
                      type:
                        mustSupport: true
                        index: 34
                        elements:
                          coding:
                            mustSupport: true
                            index: 35
                            elements:
                              system: {mustSupport: true, index: 36}
                              version: {mustSupport: true, index: 37}
                              code: {mustSupport: true, index: 38}
                              display: {mustSupport: true, index: 39}
                      system: {mustSupport: true, index: 40}
                      value: {mustSupport: true, index: 41}
            elements:
              extension:
                mustSupport: true
                index: 5
                slicing:
                  slices:
                    indicator:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 6
                        elements:
                          url: {mustSupport: true, index: 7}
                          value:
                            mustSupport: true
                            choices: []
                            index: 9
                    counter:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 10
                        elements:
                          url: {mustSupport: true, index: 11}
                          value:
                            mustSupport: true
                            choices: []
                            index: 13
                          value[x]:
                            elements:
                              numerator:
                                mustSupport: true
                                index: 14
                                elements:
                                  value: {mustSupport: true, index: 15}
                                  unit: {mustSupport: true, index: 16}
                                  system: {mustSupport: true, index: 17}
                                  code: {mustSupport: true, index: 18}
                              denominator:
                                mustSupport: true
                                index: 19
                                elements:
                                  value: {mustSupport: true, index: 20}
                                  unit: {mustSupport: true, index: 21}
                                  system: {mustSupport: true, index: 22}
                                  code: {mustSupport: true, index: 23}
                    period:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 24
                        elements:
                          url: {mustSupport: true, index: 25}
                          value:
                            mustSupport: true
                            choices: []
                            index: 27
                          value[x]:
                            elements:
                              start: {mustSupport: true, index: 28}
                              end: {mustSupport: true, index: 29}
                    id:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 30
                        elements:
                          url: {mustSupport: true, index: 31}
                          value:
                            mustSupport: true
                            choices: []
                            index: 33
                          value[x]:
                            elements:
                              type:
                                mustSupport: true
                                index: 34
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 35
                                    elements:
                                      system: {mustSupport: true, index: 36}
                                      version: {mustSupport: true, index: 37}
                                      code: {mustSupport: true, index: 38}
                                      display: {mustSupport: true, index: 39}
                              system: {mustSupport: true, index: 40}
                              value: {mustSupport: true, index: 41}
              url: {mustSupport: true, index: 42}
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 81
            extensions:
              language:
                url: null
                index: 82
                elements:
                  url: {mustSupport: true, index: 83}
                  value:
                    mustSupport: true
                    choices: []
                    index: 85
              algorithmVersion:
                url: null
                index: 86
                elements:
                  url: {mustSupport: true, index: 87}
                  value:
                    mustSupport: true
                    choices: []
                    index: 89
            elements:
              extension:
                index: 82
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 82
                        elements:
                          url: {mustSupport: true, index: 83}
                          value:
                            mustSupport: true
                            choices: []
                            index: 85
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 86
                        elements:
                          url: {mustSupport: true, index: 87}
                          value:
                            mustSupport: true
                            choices: []
                            index: 89
              url: {mustSupport: true, index: 90}
        isSer:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
            index: 47
            elements:
              url: {mustSupport: true, index: 48}
              value:
                mustSupport: true
                choices: []
                index: 50
        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: 77
            elements:
              url: {mustSupport: true, index: 78}
              value:
                mustSupport: true
                choices: []
                index: 80
        narcotics:
          match: {}
          schema: {short: Betäubungsmittel (BtM), type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension', index: 75}
          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: 76}
          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: 125
    elements:
      reference: {mustSupport: true, index: 126}
      identifier:
        mustSupport: true
        index: 127
        elements:
          type:
            mustSupport: true
            index: 128
            elements:
              coding:
                mustSupport: true
                index: 129
                elements:
                  system: {mustSupport: true, index: 130}
                  version: {mustSupport: true, index: 131}
                  code: {mustSupport: true, index: 132}
                  display: {mustSupport: true, index: 133}
          system: {mustSupport: true, index: 134}
          value: {mustSupport: true, index: 135}
      display: {mustSupport: true, index: 136}
  status:
    short: Status of Medication Request
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/terminology/ValueSet/ti-medication-request-status-vs'}
    mustSupport: true
    index: 106
  dosageInstruction:
    type: Dosage
    short: Hier werden Informationen zur Dosierung angegeben.
    mustSupport: true
    index: 152
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 154
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 156
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 157
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 157}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 158}
  identifier:
    mustSupport: true
    index: 91
    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
            mustSupport: true
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/epa-medication/sid/rx-prescription-process-identifier'}
            index: 92
            elements:
              type:
                mustSupport: true
                index: 93
                elements:
                  coding:
                    mustSupport: true
                    index: 94
                    elements:
                      system: {mustSupport: true, index: 95}
                      version: {mustSupport: true, index: 96}
                      code: {mustSupport: true, index: 97}
                      display: {mustSupport: true, index: 98}
        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: 99
            elements:
              type:
                mustSupport: true
                index: 100
                elements:
                  coding:
                    mustSupport: true
                    index: 101
                    elements:
                      system: {mustSupport: true, index: 102}
                      version: {mustSupport: true, index: 103}
                      code: {mustSupport: true, index: 104}
                      display: {mustSupport: true, index: 105}
  intent: {short: filler-order, mustSupport: true, index: 107}
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request']
    index: 137
    elements:
      reference: {mustSupport: true, index: 138}
      identifier:
        type: Identifier
        mustSupport: true
        index: 139
        elements:
          type:
            mustSupport: true
            index: 140
            elements:
              coding:
                mustSupport: true
                index: 141
                elements:
                  system: {mustSupport: true, index: 142}
                  version: {mustSupport: true, index: 143}
                  code: {mustSupport: true, index: 144}
                  display: {mustSupport: true, index: 145}
          system: {mustSupport: true, index: 146}
          value: {mustSupport: true, index: 147}
      display: {mustSupport: true, index: 148}
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 110
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 122
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 123}
    required: [identifier]
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 109
package_version: 1.3.4
extensions:
  patientID:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
    type: Extension
    mustSupport: true
    index: 63
    elements:
      url: {mustSupport: true, index: 64}
      value:
        mustSupport: true
        choices: []
        index: 66
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 67
            elements:
              coding:
                mustSupport: true
                index: 68
                elements:
                  system: {mustSupport: true, index: 69}
                  version: {mustSupport: true, index: 70}
                  code: {mustSupport: true, index: 71}
                  display: {mustSupport: true, index: 72}
          system: {mustSupport: true, index: 73}
          value: {mustSupport: true, index: 74}
  isBvg:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-bvg-extension
    type: Extension
    mustSupport: true
    index: 43
    elements:
      url: {mustSupport: true, index: 44}
      value:
        mustSupport: true
        choices: []
        index: 46
  prescriberID:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
    type: Extension
    mustSupport: true
    index: 51
    elements:
      url: {mustSupport: true, index: 52}
      value:
        mustSupport: true
        choices: []
        index: 54
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 55
            elements:
              coding:
                mustSupport: true
                index: 56
                elements:
                  system: {mustSupport: true, index: 57}
                  version: {mustSupport: true, index: 58}
                  code: {mustSupport: true, index: 59}
                  display: {mustSupport: true, index: 60}
          system: {mustSupport: true, index: 61}
          value: {mustSupport: true, index: 62}
  multiplePrescription:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
    type: Extension
    mustSupport: true
    index: 4
    extensions:
      indicator:
        url: null
        mustSupport: true
        index: 6
        elements:
          url: {mustSupport: true, index: 7}
          value:
            mustSupport: true
            choices: []
            index: 9
      counter:
        url: null
        mustSupport: true
        index: 10
        elements:
          url: {mustSupport: true, index: 11}
          value:
            mustSupport: true
            choices: []
            index: 13
          value[x]:
            elements:
              numerator:
                mustSupport: true
                index: 14
                elements:
                  value: {mustSupport: true, index: 15}
                  unit: {mustSupport: true, index: 16}
                  system: {mustSupport: true, index: 17}
                  code: {mustSupport: true, index: 18}
              denominator:
                mustSupport: true
                index: 19
                elements:
                  value: {mustSupport: true, index: 20}
                  unit: {mustSupport: true, index: 21}
                  system: {mustSupport: true, index: 22}
                  code: {mustSupport: true, index: 23}
      period:
        url: null
        mustSupport: true
        index: 24
        elements:
          url: {mustSupport: true, index: 25}
          value:
            mustSupport: true
            choices: []
            index: 27
          value[x]:
            elements:
              start: {mustSupport: true, index: 28}
              end: {mustSupport: true, index: 29}
      id:
        url: null
        mustSupport: true
        index: 30
        elements:
          url: {mustSupport: true, index: 31}
          value:
            mustSupport: true
            choices: []
            index: 33
          value[x]:
            elements:
              type:
                mustSupport: true
                index: 34
                elements:
                  coding:
                    mustSupport: true
                    index: 35
                    elements:
                      system: {mustSupport: true, index: 36}
                      version: {mustSupport: true, index: 37}
                      code: {mustSupport: true, index: 38}
                      display: {mustSupport: true, index: 39}
              system: {mustSupport: true, index: 40}
              value: {mustSupport: true, index: 41}
    elements:
      extension:
        mustSupport: true
        index: 5
        slicing:
          slices:
            indicator:
              match: {}
              schema:
                mustSupport: true
                index: 6
                elements:
                  url: {mustSupport: true, index: 7}
                  value:
                    mustSupport: true
                    choices: []
                    index: 9
            counter:
              match: {}
              schema:
                mustSupport: true
                index: 10
                elements:
                  url: {mustSupport: true, index: 11}
                  value:
                    mustSupport: true
                    choices: []
                    index: 13
                  value[x]:
                    elements:
                      numerator:
                        mustSupport: true
                        index: 14
                        elements:
                          value: {mustSupport: true, index: 15}
                          unit: {mustSupport: true, index: 16}
                          system: {mustSupport: true, index: 17}
                          code: {mustSupport: true, index: 18}
                      denominator:
                        mustSupport: true
                        index: 19
                        elements:
                          value: {mustSupport: true, index: 20}
                          unit: {mustSupport: true, index: 21}
                          system: {mustSupport: true, index: 22}
                          code: {mustSupport: true, index: 23}
            period:
              match: {}
              schema:
                mustSupport: true
                index: 24
                elements:
                  url: {mustSupport: true, index: 25}
                  value:
                    mustSupport: true
                    choices: []
                    index: 27
                  value[x]:
                    elements:
                      start: {mustSupport: true, index: 28}
                      end: {mustSupport: true, index: 29}
            id:
              match: {}
              schema:
                mustSupport: true
                index: 30
                elements:
                  url: {mustSupport: true, index: 31}
                  value:
                    mustSupport: true
                    choices: []
                    index: 33
                  value[x]:
                    elements:
                      type:
                        mustSupport: true
                        index: 34
                        elements:
                          coding:
                            mustSupport: true
                            index: 35
                            elements:
                              system: {mustSupport: true, index: 36}
                              version: {mustSupport: true, index: 37}
                              code: {mustSupport: true, index: 38}
                              display: {mustSupport: true, index: 39}
                      system: {mustSupport: true, index: 40}
                      value: {mustSupport: true, index: 41}
      url: {mustSupport: true, index: 42}
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 81
    extensions:
      language:
        url: null
        index: 82
        elements:
          url: {mustSupport: true, index: 83}
          value:
            mustSupport: true
            choices: []
            index: 85
      algorithmVersion:
        url: null
        index: 86
        elements:
          url: {mustSupport: true, index: 87}
          value:
            mustSupport: true
            choices: []
            index: 89
    elements:
      extension:
        index: 82
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 82
                elements:
                  url: {mustSupport: true, index: 83}
                  value:
                    mustSupport: true
                    choices: []
                    index: 85
            algorithmVersion:
              match: {}
              schema:
                index: 86
                elements:
                  url: {mustSupport: true, index: 87}
                  value:
                    mustSupport: true
                    choices: []
                    index: 89
      url: {mustSupport: true, index: 90}
  isSer:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
    type: Extension
    mustSupport: true
    index: 47
    elements:
      url: {mustSupport: true, index: 48}
      value:
        mustSupport: true
        choices: []
        index: 50
  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: 77
    elements:
      url: {mustSupport: true, index: 78}
      value:
        mustSupport: true
        choices: []
        index: 80
  narcotics: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension', min: 0, max: 1, short: Betäubungsmittel (BtM), type: Extension, mustSupport: true, index: 75}
  teratogenic: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension', min: 0, max: 1, short: T-Rezept, type: Extension, mustSupport: true, index: 76}
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.2
required: [authoredOn]