PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.1
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement
description: Hält die Medikationsinformationen eines Eintrags in der elektronischen Medikationsliste (eML) vor und stellt das zentrale Element dar. Es wird zu Verschreibungs- und Dispensierinformationen als auch Nachträgen in der eML genutzt.
package_name: de.gematik.epa.medication
derivation: constraint
name: EPAMedicationStatement
type: MedicationStatement
elements:
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  dosage:
    type: Dosage
    short: Strukturierte Dosierung/Gebrauchsanweisung
    mustSupport: true
    index: 87
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 89
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 91
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 92
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 92}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 93}
  derivedFrom:
    type: Reference
    short: Information des Verschreibungs- und Dispensierprozesses
    mustSupport: true
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-dispense', 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request']
    index: 75
    elements:
      reference: {mustSupport: true, index: 76}
      identifier:
        mustSupport: true
        index: 77
        elements:
          type:
            mustSupport: true
            index: 78
            elements:
              coding:
                mustSupport: true
                index: 79
                elements:
                  system: {mustSupport: true, index: 80}
                  version: {mustSupport: true, index: 81}
                  code: {mustSupport: true, index: 82}
                  display: {mustSupport: true, index: 83}
          system: {mustSupport: true, index: 84}
          value: {mustSupport: true, index: 85}
      display: {mustSupport: true, index: 86}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 51}
      identifier:
        mustSupport: true
        index: 52
        elements:
          type:
            mustSupport: true
            index: 53
            elements:
              coding:
                mustSupport: true
                index: 54
                elements:
                  system: {mustSupport: true, index: 55}
                  version: {mustSupport: true, index: 56}
                  code: {mustSupport: true, index: 57}
                  display: {mustSupport: true, index: 58}
          system: {mustSupport: true, index: 59}
          value: {mustSupport: true, index: 60}
      display: {mustSupport: true, index: 61}
  effective[x]:
    elements:
      start:
        constraint:
          epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement', 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: 72
      end:
        constraint:
          epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement', 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: 73
  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
                choices: []
                index: 7
        rxPrescriptionProcessIdentifier:
          match: {}
          schema:
            type: Extension
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
            index: 8
            elements:
              url: {mustSupport: true, index: 9}
              value:
                mustSupport: true
                choices: []
                index: 11
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 12
                    elements:
                      coding:
                        mustSupport: true
                        index: 13
                        elements:
                          system: {mustSupport: true, index: 14}
                          version: {mustSupport: true, index: 15}
                          code: {mustSupport: true, index: 16}
                          display: {mustSupport: true, index: 17}
        processingEvent:
          match: {}
          schema:
            type: Extension
            short: Ein Ereignis, welches während eines Prozessschritts auftritt.
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
            index: 18
            elements:
              url: {mustSupport: true, index: 19}
        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-MedicationStatement.renderedDosageInstruction
            index: 20
            elements:
              url: {mustSupport: true, index: 21}
              value:
                mustSupport: true
                choices: []
                index: 23
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 24
            extensions:
              language:
                url: null
                index: 25
                elements:
                  url: {mustSupport: true, index: 26}
              algorithmVersion:
                url: null
                index: 27
                elements:
                  url: {mustSupport: true, index: 28}
            elements:
              extension:
                index: 25
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 25
                        elements:
                          url: {mustSupport: true, index: 26}
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 27
                        elements:
                          url: {mustSupport: true, index: 28}
              url: {mustSupport: true, index: 29}
  effectiveDateTime:
    constraint:
      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement', 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)))?$'')'}
    type: dateTime
    mustSupport: true
    choiceOf: effective
    index: 68
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            constraint:
              epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement', 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)))?$'')'}
            type: dateTime
            mustSupport: true
            choiceOf: effective
            index: 68
          min: 0
          max: 1
  status:
    short: unknown | entered-in-error | intended
    binding: {strength: required, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/epa-medication-statement-status-vs'}
    mustSupport: true
    index: 47
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 70
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            mustSupport: true
            choices: [effectivePeriod]
            index: 70
          min: 0
          max: 1
  dateAsserted:
    constraint:
      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement', 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: 74
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/emp-medication-request', 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request']
    index: 30
    extensions:
      isEMP:
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
        type: Extension
        mustSupport: true
        index: 32
        elements:
          url: {mustSupport: true, index: 33}
          value:
            mustSupport: true
            choices: []
            index: 35
    elements:
      extension:
        mustSupport: true
        index: 31
        slicing:
          slices:
            isEMP:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
                index: 32
                elements:
                  url: {mustSupport: true, index: 33}
                  value:
                    mustSupport: true
                    choices: []
                    index: 35
      reference: {mustSupport: true, index: 36}
      identifier:
        mustSupport: true
        index: 37
        elements:
          type:
            mustSupport: true
            index: 38
            elements:
              coding:
                mustSupport: true
                index: 39
                elements:
                  system: {mustSupport: true, index: 40}
                  version: {mustSupport: true, index: 41}
                  code: {mustSupport: true, index: 42}
                  display: {mustSupport: true, index: 43}
          system: {mustSupport: true, index: 44}
          value: {mustSupport: true, index: 45}
      display: {mustSupport: true, index: 46}
  medicationReference:
    type: Reference
    short: Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
    mustSupport: true
    choiceOf: medication
    refers: ['https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication']
    index: 50
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 62
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 63}
    required: [identifier]
  effectivePeriod:
    type: Period
    mustSupport: true
    choiceOf: effective
    index: 71
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, mustSupport: true, choiceOf: effective, index: 71}
          min: 0
          max: 1
  medication:
    short: Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
    mustSupport: true
    choices: [medicationReference]
    index: 49
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
        choices: []
        index: 7
  rxPrescriptionProcessIdentifier:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension
    type: Extension
    index: 8
    elements:
      url: {mustSupport: true, index: 9}
      value:
        mustSupport: true
        choices: []
        index: 11
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 12
            elements:
              coding:
                mustSupport: true
                index: 13
                elements:
                  system: {mustSupport: true, index: 14}
                  version: {mustSupport: true, index: 15}
                  code: {mustSupport: true, index: 16}
                  display: {mustSupport: true, index: 17}
  processingEvent:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medicationstatement-processing-event-extension
    type: Extension
    short: Ein Ereignis, welches während eines Prozessschritts auftritt.
    mustSupport: true
    index: 18
    elements:
      url: {mustSupport: true, index: 19}
  renderedDosageInstruction:
    url: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationStatement.renderedDosageInstruction
    short: Vollständige Darstellung der Dosierungsanweisungen (generiert aus den Dosage-Elementen).
    type: Extension
    mustSupport: true
    index: 20
    elements:
      url: {mustSupport: true, index: 21}
      value:
        mustSupport: true
        choices: []
        index: 23
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 24
    extensions:
      language:
        url: null
        index: 25
        elements:
          url: {mustSupport: true, index: 26}
      algorithmVersion:
        url: null
        index: 27
        elements:
          url: {mustSupport: true, index: 28}
    elements:
      extension:
        index: 25
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 25
                elements:
                  url: {mustSupport: true, index: 26}
            algorithmVersion:
              match: {}
              schema:
                index: 27
                elements:
                  url: {mustSupport: true, index: 28}
      url: {mustSupport: true, index: 29}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 1.3.0
required: [extension]