PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.1
    https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request
description: 'eMP-Eintrag: Hält die Medikationsinformationen eines Eintrags für den elektronischen MedikationsPlan (eMP) vor und stellt das zentrale Element dar. Es stellt die Verbindung zwischen der Planung und einem oder mehrerer Verschreibungsprozesse oder Nachträge.'
package_name: de.gematik.epa.medication
derivation: constraint
name: EMPMedicationRequest
type: MedicationRequest
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 65}
      identifier:
        mustSupport: true
        index: 66
        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}
      display: {mustSupport: true, index: 75}
  reasonCode:
    mustSupport: true
    index: 79
    elements:
      coding:
        mustSupport: true
        index: 80
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            icd-10-gm:
              match: {system: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'}
              schema:
                type: Coding
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/bfarm/icd-10-gm'}
                index: 81
                extensions:
                  Mehrfachcodierungs-Kennzeichen:
                    url: null
                    mustSupport: true
                    index: 82
                    elements:
                      url: {mustSupport: true, index: 83}
                      value:
                        mustSupport: true
                        choices: []
                        index: 85
                      value[x]:
                        elements:
                          system: {mustSupport: true, index: 86}
                          version: {mustSupport: true, index: 87}
                          code: {mustSupport: true, index: 88}
                          display: {mustSupport: true, index: 89}
                  Seitenlokalisation:
                    url: null
                    mustSupport: true
                    index: 90
                    elements:
                      url: {mustSupport: true, index: 91}
                      value:
                        mustSupport: true
                        choices: []
                        index: 93
                      value[x]:
                        elements:
                          system: {mustSupport: true, index: 94}
                          version: {mustSupport: true, index: 95}
                          code: {mustSupport: true, index: 96}
                          display: {mustSupport: true, index: 97}
                  Diagnosesicherheit:
                    url: null
                    mustSupport: true
                    index: 98
                    elements:
                      url: {mustSupport: true, index: 99}
                      value:
                        mustSupport: true
                        choices: []
                        index: 101
                      value[x]:
                        elements:
                          system: {mustSupport: true, index: 102}
                          version: {mustSupport: true, index: 103}
                          code: {mustSupport: true, index: 104}
                          display: {mustSupport: true, index: 105}
                elements:
                  extension:
                    mustSupport: true
                    index: 82
                    slicing:
                      slices:
                        Mehrfachcodierungs-Kennzeichen:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 82
                            elements:
                              url: {mustSupport: true, index: 83}
                              value:
                                mustSupport: true
                                choices: []
                                index: 85
                              value[x]:
                                elements:
                                  system: {mustSupport: true, index: 86}
                                  version: {mustSupport: true, index: 87}
                                  code: {mustSupport: true, index: 88}
                                  display: {mustSupport: true, index: 89}
                        Seitenlokalisation:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 90
                            elements:
                              url: {mustSupport: true, index: 91}
                              value:
                                mustSupport: true
                                choices: []
                                index: 93
                              value[x]:
                                elements:
                                  system: {mustSupport: true, index: 94}
                                  version: {mustSupport: true, index: 95}
                                  code: {mustSupport: true, index: 96}
                                  display: {mustSupport: true, index: 97}
                        Diagnosesicherheit:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 98
                            elements:
                              url: {mustSupport: true, index: 99}
                              value:
                                mustSupport: true
                                choices: []
                                index: 101
                              value[x]:
                                elements:
                                  system: {mustSupport: true, index: 102}
                                  version: {mustSupport: true, index: 103}
                                  code: {mustSupport: true, index: 104}
                                  display: {mustSupport: true, index: 105}
                  system: {mustSupport: true, index: 106}
                  version: {mustSupport: true, index: 107}
                  code: {mustSupport: true, index: 108}
                  display: {mustSupport: true, index: 109}
                required: [display]
  authoredOn:
    constraint:
      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request', severity: error, expression: 'toString().matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$'')'}
    mustSupport: true
    index: 78
  note:
    short: Zusätzliche Informationen durch einen Leistungserbringenden
    mustSupport: true
    index: 110
    elements:
      time: {mustSupport: true, index: 111}
      text: {mustSupport: true, index: 112}
  extension:
    index: 3
    slicing:
      slices:
        context:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
            index: 4
            elements:
              url: {mustSupport: true, index: 5}
              value:
                mustSupport: true
                pattern: {type: Code, value: EMP}
                choices: []
                index: 7
        activity:
          match: {}
          schema:
            type: Extension
            short: Aktivität die zu diesem Planelement gehört
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension
            index: 8
            extensions:
              reference:
                url: null
                mustSupport: true
                index: 9
                elements:
                  url: {mustSupport: true, index: 10}
                  value:
                    mustSupport: true
                    choices: []
                    index: 12
              addedOn:
                url: null
                mustSupport: true
                index: 13
                elements:
                  url: {mustSupport: true, index: 14}
                  value:
                    mustSupport: true
                    choices: []
                    index: 16
            elements:
              extension:
                mustSupport: true
                index: 9
                slicing:
                  slices:
                    reference:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 9
                        elements:
                          url: {mustSupport: true, index: 10}
                          value:
                            mustSupport: true
                            choices: []
                            index: 12
                    addedOn:
                      match: {}
                      schema:
                        mustSupport: true
                        index: 13
                        elements:
                          url: {mustSupport: true, index: 14}
                          value:
                            mustSupport: true
                            choices: []
                            index: 16
        reasonPatientInstruction:
          match: {}
          schema:
            short: Patientenlesbarer Grund für den Planungseintrag
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension
            index: 17
            elements:
              url: {mustSupport: true, index: 18}
              value:
                mustSupport: true
                choices: []
                index: 20
        patientNote:
          match: {}
          schema:
            short: Hinweis für den Patienten
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension
            index: 21
            elements:
              url: {mustSupport: true, index: 22}
              value:
                mustSupport: true
                choices: []
                index: 24
        effectiveDosePeriod:
          match: {}
          schema:
            short: Zeitraum, in dem die Medikation eingenommen werden soll.
            type: Extension
            mustSupport: true
            url: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod
            index: 25
            elements:
              value[x]:
                elements:
                  start:
                    constraint:
                      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request', severity: error, expression: 'toString().matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$'')'}
                    mustSupport: true
                    index: 26
                  end:
                    constraint:
                      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request', severity: error, expression: 'toString().matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$'')'}
                    mustSupport: true
                    index: 27
        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: 28
            elements:
              url: {mustSupport: true, index: 29}
              value:
                mustSupport: true
                choices: []
                index: 31
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 32
            extensions:
              language:
                url: null
                index: 33
                elements:
                  url: {mustSupport: true, index: 34}
              algorithmVersion:
                url: null
                index: 35
                elements:
                  url: {mustSupport: true, index: 36}
            elements:
              extension:
                index: 33
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 33
                        elements:
                          url: {mustSupport: true, index: 34}
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 35
                        elements:
                          url: {mustSupport: true, index: 36}
              url: {mustSupport: true, index: 37}
        originMedication:
          match: {}
          schema:
            short: Referenz auf die Ursprungs-Medication (Basis des eMP-Eintrags)
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension
            index: 38
            elements:
              value:
                mustSupport: true
                choices: []
                index: 40
              value[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}
  status:
    short: active | on-hold | completed | entered-in-error | stopped
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/emp-medicationrequest-status-vs'}
    mustSupport: true
    index: 60
  dosageInstruction:
    type: Dosage
    short: Hier werden Informationen zur Dosierung angegeben.
    mustSupport: true
    index: 113
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 115
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 117
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 118
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 118}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 119}
  identifier:
    index: 52
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: null
      slices:
        MedicationPlanIdentifier:
          match: {system: 'https://gematik.de/fhir/sid/emp-identifier'}
          schema:
            type: Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/sid/emp-identifier'}
            index: 53
            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}
  intent:
    short: plan
    pattern: {type: Code, value: plan}
    index: 61
  medicationReference:
    type: Reference
    short: Arzneimittel, welches geplant wird
    mustSupport: true
    choiceOf: medication
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication', 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication']
    index: 64
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 76
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 77}
    required: [identifier]
  medication:
    short: Arzneimittel, welches geplant wird
    mustSupport: true
    choices: [medicationReference]
    index: 63
package_version: 1.3.1
extensions:
  context:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
    type: Extension
    mustSupport: true
    index: 4
    elements:
      url: {mustSupport: true, index: 5}
      value:
        mustSupport: true
        pattern: {type: Code, value: EMP}
        choices: []
        index: 7
  activity:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension
    type: Extension
    short: Aktivität die zu diesem Planelement gehört
    mustSupport: true
    index: 8
    extensions:
      reference:
        url: null
        mustSupport: true
        index: 9
        elements:
          url: {mustSupport: true, index: 10}
          value:
            mustSupport: true
            choices: []
            index: 12
      addedOn:
        url: null
        mustSupport: true
        index: 13
        elements:
          url: {mustSupport: true, index: 14}
          value:
            mustSupport: true
            choices: []
            index: 16
    elements:
      extension:
        mustSupport: true
        index: 9
        slicing:
          slices:
            reference:
              match: {}
              schema:
                mustSupport: true
                index: 9
                elements:
                  url: {mustSupport: true, index: 10}
                  value:
                    mustSupport: true
                    choices: []
                    index: 12
            addedOn:
              match: {}
              schema:
                mustSupport: true
                index: 13
                elements:
                  url: {mustSupport: true, index: 14}
                  value:
                    mustSupport: true
                    choices: []
                    index: 16
  reasonPatientInstruction:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension
    short: Patientenlesbarer Grund für den Planungseintrag
    type: Extension
    mustSupport: true
    index: 17
    elements:
      url: {mustSupport: true, index: 18}
      value:
        mustSupport: true
        choices: []
        index: 20
  patientNote:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension
    short: Hinweis für den Patienten
    type: Extension
    mustSupport: true
    index: 21
    elements:
      url: {mustSupport: true, index: 22}
      value:
        mustSupport: true
        choices: []
        index: 24
  effectiveDosePeriod:
    url: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.effectiveDosePeriod
    short: Zeitraum, in dem die Medikation eingenommen werden soll.
    type: Extension
    mustSupport: true
    index: 25
    elements:
      value[x]:
        elements:
          start:
            constraint:
              epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request', severity: error, expression: 'toString().matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$'')'}
            mustSupport: true
            index: 26
          end:
            constraint:
              epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request', severity: error, expression: 'toString().matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?$'')'}
            mustSupport: true
            index: 27
  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: 28
    elements:
      url: {mustSupport: true, index: 29}
      value:
        mustSupport: true
        choices: []
        index: 31
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 32
    extensions:
      language:
        url: null
        index: 33
        elements:
          url: {mustSupport: true, index: 34}
      algorithmVersion:
        url: null
        index: 35
        elements:
          url: {mustSupport: true, index: 36}
    elements:
      extension:
        index: 33
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 33
                elements:
                  url: {mustSupport: true, index: 34}
            algorithmVersion:
              match: {}
              schema:
                index: 35
                elements:
                  url: {mustSupport: true, index: 36}
      url: {mustSupport: true, index: 37}
  originMedication:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-origin-medication-extension
    short: Referenz auf die Ursprungs-Medication (Basis des eMP-Eintrags)
    type: Extension
    mustSupport: true
    index: 38
    elements:
      value:
        mustSupport: true
        choices: []
        index: 40
      value[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}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.3.1
required: [authoredOn, dosageInstruction, extension]