PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa@1.4.0-ballot.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
derivation: constraint
name: EMPMedicationRequest
type: MedicationRequest
elements:
  reasonCode: {index: 29}
  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)))?$'')'}
    index: 28
  note:
    short: Zusätzliche Informationen durch einen Leistungserbringenden
    index: 36
    elements:
      time: {index: 37}
  extension:
    index: 0
    slicing:
      slices:
        context:
          match: {}
          schema:
            index: 0
            elements:
              value:
                pattern: {type: Code, value: EMP}
                choices: []
                index: 2
        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: 3
            extensions:
              reference: {url: null, mustSupport: true, index: 4}
              addedOn: {url: null, mustSupport: true, index: 5}
            elements:
              extension:
                mustSupport: true
                index: 4
                slicing:
                  slices:
                    reference:
                      match: {}
                      schema: {mustSupport: true, index: 4}
                    addedOn:
                      match: {}
                      schema: {mustSupport: true, index: 5}
        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: 6}
          min: 0
          max: 1
        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: 7}
          min: 0
          max: 1
        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: 8
            elements:
              value:
                mustSupport: true
                choices: []
                index: 10
              value[x]:
                elements:
                  reference: {mustSupport: true, index: 11}
                  identifier:
                    mustSupport: true
                    index: 12
                    elements:
                      system: {mustSupport: true, index: 13}
                      value: {mustSupport: true, index: 14}
                  display: {mustSupport: true, index: 15}
        category:
          match: {}
          schema:
            short: Kategoriezugehörigkeit (Zwischenüberschrift) des eMP-Eintrags
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa/StructureDefinition/emp-category-extension
            index: 16
            elements:
              value:
                mustSupport: true
                choices: []
                index: 18
        sortPriority:
          match: {}
          schema:
            short: Sortierreihenfolge des eMP-Eintrags
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa/StructureDefinition/emp-sort-priority-extension
            index: 19
            elements:
              value:
                mustSupport: true
                choices: []
                index: 21
  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'}
    index: 23
  dosageInstruction:
    elements:
      timing:
        elements:
          repeat:
            elements:
              bounds:
                short: Zeitraum, in dem die Medikation eingenommen werden soll.
                choices: [boundsPeriod]
                index: 39
                slicing:
                  slices:
                    boundsPeriod:
                      match: {}
                      schema:
                        short: Zeitraum, in dem die Medikation eingenommen werden soll.
                        choices: [boundsPeriod]
                        index: 39
              boundsPeriod:
                type: Period
                short: Zeitraum, in dem die Medikation eingenommen werden soll.
                choiceOf: bounds
                index: 40
                slicing:
                  slices:
                    boundsPeriod:
                      match: {}
                      schema: {type: Period, short: 'Zeitraum, in dem die Medikation eingenommen werden soll.', choiceOf: bounds, index: 40}
              bounds[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)))?$'')'}
                    index: 41
                  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)))?$'')'}
                    index: 42
  identifier:
    type: Identifier
    mustSupport: true
    pattern:
      type: Identifier
      value: {system: 'https://gematik.de/fhir/sid/emp-identifier'}
    index: 22
    slicing:
      slices:
        MedicationPlanIdentifier:
          match: {}
          schema:
            type: Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value: {system: 'https://gematik.de/fhir/sid/emp-identifier'}
            index: 22
          min: 0
          max: 1
  intent:
    short: plan
    pattern: {type: Code, value: plan}
    index: 24
  medicationReference:
    type: Reference
    short: Arzneimittel, welches geplant wird
    choiceOf: medication
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication', 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication']
    index: 27
  medication:
    short: Arzneimittel, welches geplant wird
    choices: [medicationReference]
    index: 26
  reasonReference:
    type: Reference
    short: Grund für die Verordnung (Diagnose als ICD-10-GM)
    mustSupport: true
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-reason-condition']
    index: 30
    elements:
      reference: {mustSupport: true, index: 31}
      identifier:
        mustSupport: true
        index: 32
        elements:
          system: {mustSupport: true, index: 33}
          value: {mustSupport: true, index: 34}
      display: {mustSupport: true, index: 35}
package_version: 1.4.0-ballot.1
extensions:
  context:
    url: null
    index: 0
    elements:
      value:
        pattern: {type: Code, value: EMP}
        choices: []
        index: 2
  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: 3
    extensions:
      reference: {url: null, mustSupport: true, index: 4}
      addedOn: {url: null, mustSupport: true, index: 5}
    elements:
      extension:
        mustSupport: true
        index: 4
        slicing:
          slices:
            reference:
              match: {}
              schema: {mustSupport: true, index: 4}
            addedOn:
              match: {}
              schema: {mustSupport: true, index: 5}
  reasonPatientInstruction: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension', min: 0, max: 1, short: Patientenlesbarer Grund für den Planungseintrag, type: Extension, mustSupport: true, index: 6}
  patientNote: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/patient-note-extension', min: 0, max: 1, short: Hinweis für den Patienten, type: Extension, mustSupport: true, index: 7}
  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: 8
    elements:
      value:
        mustSupport: true
        choices: []
        index: 10
      value[x]:
        elements:
          reference: {mustSupport: true, index: 11}
          identifier:
            mustSupport: true
            index: 12
            elements:
              system: {mustSupport: true, index: 13}
              value: {mustSupport: true, index: 14}
          display: {mustSupport: true, index: 15}
  category:
    url: https://gematik.de/fhir/epa/StructureDefinition/emp-category-extension
    short: Kategoriezugehörigkeit (Zwischenüberschrift) des eMP-Eintrags
    type: Extension
    mustSupport: true
    index: 16
    elements:
      value:
        mustSupport: true
        choices: []
        index: 18
  sortPriority:
    url: https://gematik.de/fhir/epa/StructureDefinition/emp-sort-priority-extension
    short: Sortierreihenfolge des eMP-Eintrags
    type: Extension
    mustSupport: true
    index: 19
    elements:
      value:
        mustSupport: true
        choices: []
        index: 21
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request
base: https://gematik.de/fhir/ti/StructureDefinition/ti-medication-request-dgmp
version: 1.4.0