PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.2.0-ballot.1
    https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request
description: 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:
  instantiatesCanonical: {index: 28}
  eventHistory: {index: 40}
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  instantiatesUri: {index: 29}
  substitution: {index: 37}
  detectedIssue: {index: 39}
  dispenseRequest: {index: 36}
  reasonCode:
    mustSupport: true
    index: 20
    elements:
      coding:
        mustSupport: true
        index: 21
        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: 22
                elements:
                  system: {mustSupport: true, index: 23}
                  version: {mustSupport: true, index: 24}
                  code: {mustSupport: true, index: 25}
                  display: {mustSupport: true, index: 26}
                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: 19
  note:
    mustSupport: true
    index: 32
    elements:
      time: {mustSupport: true, index: 33}
      text: {mustSupport: true, index: 34}
  extension:
    index: 4
    slicing:
      slices:
        context:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
            index: 5
            elements:
              value:
                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}
          min: 0
        reasonPatientInstruction:
          match: {}
          schema: {type: Extension, short: Patientenlesbarer Grund für den Planungseintrag, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension', index: 9}
          min: 0
          max: 1
  contained: {index: 3}
  status:
    short: active | on-hold | completed | entered-in-error | stopped | draft
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/emp-medicationrequest-status-vs'}
    mustSupport: true
    index: 12
  dosageInstruction: {type: Dosage, short: Hier werden Informationen zur Dosierung angegeben., mustSupport: true, index: 35}
  groupIdentifier: {index: 30}
  identifier:
    index: 10
    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: 11
          min: 0
          max: 1
  intent:
    short: plan
    pattern: {type: Code, value: plan}
    index: 13
  priorPrescription: {index: 38}
  medicationReference:
    type: Reference
    short: Arzneimittel, welches geplant wird
    mustSupport: true
    choiceOf: medication
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication']
    index: 16
  courseOfTherapyType: {index: 31}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 17
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 18}
    required: [identifier]
  medication:
    short: Arzneimittel, welches geplant wird
    mustSupport: true
    choices: [medicationReference]
    index: 15
  reasonReference: {index: 27}
package_version: 1.2.0-ballot.1
extensions:
  context:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension
    type: Extension
    mustSupport: true
    index: 5
    elements:
      value:
        pattern: {type: Code, value: EMP}
        choices: []
        index: 7
  activity: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medicationrequest-activity-extension', min: 0, type: Extension, short: Aktivität die zu diesem Planelement gehört, mustSupport: true, index: 8}
  reasonPatientInstruction: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/reason-patient-instruction-extension', min: 0, max: 1, type: Extension, short: Patientenlesbarer Grund für den Planungseintrag, mustSupport: true, index: 9}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.2.0-ballot.1
required: [authoredOn, extension]