PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.3
    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: 97
    elements:
      doseAndRate:
        elements:
          dose:
            mustSupport: true
            choices: []
            index: 99
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema:
                    choices: [doseQuantity]
                    index: 101
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 102
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 102}
          dose[x]:
            elements:
              value: {mustSupport: true, index: 103}
  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: 85
    elements:
      reference: {mustSupport: true, index: 86}
      identifier:
        mustSupport: true
        index: 87
        elements:
          type:
            mustSupport: true
            index: 88
            elements:
              coding:
                mustSupport: true
                index: 89
                elements:
                  system: {mustSupport: true, index: 90}
                  version: {mustSupport: true, index: 91}
                  code: {mustSupport: true, index: 92}
                  display: {mustSupport: true, index: 93}
          system: {mustSupport: true, index: 94}
          value: {mustSupport: true, index: 95}
      display: {mustSupport: true, index: 96}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 61}
      identifier:
        mustSupport: true
        index: 62
        elements:
          type:
            mustSupport: true
            index: 63
            elements:
              coding:
                mustSupport: true
                index: 64
                elements:
                  system: {mustSupport: true, index: 65}
                  version: {mustSupport: true, index: 66}
                  code: {mustSupport: true, index: 67}
                  display: {mustSupport: true, index: 68}
          system: {mustSupport: true, index: 69}
          value: {mustSupport: true, index: 70}
      display: {mustSupport: true, index: 71}
  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: 82
      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: 83
  extension:
    mustSupport: true
    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
            mustSupport: true
            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
            extensions:
              event:
                url: null
                index: 20
                elements:
                  url: {mustSupport: true, index: 21}
              dateTime:
                url: null
                index: 22
                elements:
                  url: {mustSupport: true, index: 23}
            elements:
              extension:
                mustSupport: true
                index: 19
                slicing:
                  slices:
                    event:
                      match: {}
                      schema:
                        index: 20
                        elements:
                          url: {mustSupport: true, index: 21}
                    dateTime:
                      match: {}
                      schema:
                        index: 22
                        elements:
                          url: {mustSupport: true, index: 23}
              url: {mustSupport: true, index: 24}
        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: 25
            extensions: {}
            elements:
              extension: {index: 26}
              url: {mustSupport: true, index: 27}
              value:
                mustSupport: true
                choices: []
                index: 29
        generatedDosageInstructionsMeta:
          match: {}
          schema:
            short: Metadaten zu den generierten Dosierungsanweisungen
            type: Extension
            mustSupport: true
            url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
            index: 30
            extensions:
              language:
                url: null
                index: 31
                elements:
                  url: {mustSupport: true, index: 32}
                  value:
                    mustSupport: true
                    choices: []
                    index: 34
              algorithmVersion:
                url: null
                index: 35
                elements:
                  url: {mustSupport: true, index: 36}
                  value:
                    mustSupport: true
                    choices: []
                    index: 38
            elements:
              extension:
                index: 31
                slicing:
                  slices:
                    language:
                      match: {}
                      schema:
                        index: 31
                        elements:
                          url: {mustSupport: true, index: 32}
                          value:
                            mustSupport: true
                            choices: []
                            index: 34
                    algorithmVersion:
                      match: {}
                      schema:
                        index: 35
                        elements:
                          url: {mustSupport: true, index: 36}
                          value:
                            mustSupport: true
                            choices: []
                            index: 38
              url: {mustSupport: true, index: 39}
  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: 78
    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: 78
          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: 57
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 80
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            mustSupport: true
            choices: [effectivePeriod]
            index: 80
          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: 84
  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: 40
    extensions:
      isEMP:
        url: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
        type: Extension
        mustSupport: true
        index: 42
        elements:
          url: {mustSupport: true, index: 43}
          value:
            mustSupport: true
            choices: []
            index: 45
    elements:
      extension:
        mustSupport: true
        index: 41
        slicing:
          slices:
            isEMP:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/epa-medication/StructureDefinition/is-emp-extension
                index: 42
                elements:
                  url: {mustSupport: true, index: 43}
                  value:
                    mustSupport: true
                    choices: []
                    index: 45
      reference: {mustSupport: true, index: 46}
      identifier:
        mustSupport: true
        index: 47
        elements:
          type:
            mustSupport: true
            index: 48
            elements:
              coding:
                mustSupport: true
                index: 49
                elements:
                  system: {mustSupport: true, index: 50}
                  version: {mustSupport: true, index: 51}
                  code: {mustSupport: true, index: 52}
                  display: {mustSupport: true, index: 53}
          system: {mustSupport: true, index: 54}
          value: {mustSupport: true, index: 55}
      display: {mustSupport: true, index: 56}
  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: 60
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 72
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 73}
    required: [identifier]
  effectivePeriod:
    type: Period
    mustSupport: true
    choiceOf: effective
    index: 81
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, mustSupport: true, choiceOf: effective, index: 81}
          min: 0
          max: 1
  medication:
    short: Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
    mustSupport: true
    choices: [medicationReference]
    index: 59
package_version: 1.3.3
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
    mustSupport: true
    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
    extensions:
      event:
        url: null
        index: 20
        elements:
          url: {mustSupport: true, index: 21}
      dateTime:
        url: null
        index: 22
        elements:
          url: {mustSupport: true, index: 23}
    elements:
      extension:
        mustSupport: true
        index: 19
        slicing:
          slices:
            event:
              match: {}
              schema:
                index: 20
                elements:
                  url: {mustSupport: true, index: 21}
            dateTime:
              match: {}
              schema:
                index: 22
                elements:
                  url: {mustSupport: true, index: 23}
      url: {mustSupport: true, index: 24}
  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: 25
    extensions: {}
    elements:
      extension: {index: 26}
      url: {mustSupport: true, index: 27}
      value:
        mustSupport: true
        choices: []
        index: 29
  generatedDosageInstructionsMeta:
    url: http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta
    short: Metadaten zu den generierten Dosierungsanweisungen
    type: Extension
    mustSupport: true
    index: 30
    extensions:
      language:
        url: null
        index: 31
        elements:
          url: {mustSupport: true, index: 32}
          value:
            mustSupport: true
            choices: []
            index: 34
      algorithmVersion:
        url: null
        index: 35
        elements:
          url: {mustSupport: true, index: 36}
          value:
            mustSupport: true
            choices: []
            index: 38
    elements:
      extension:
        index: 31
        slicing:
          slices:
            language:
              match: {}
              schema:
                index: 31
                elements:
                  url: {mustSupport: true, index: 32}
                  value:
                    mustSupport: true
                    choices: []
                    index: 34
            algorithmVersion:
              match: {}
              schema:
                index: 35
                elements:
                  url: {mustSupport: true, index: 36}
                  value:
                    mustSupport: true
                    choices: []
                    index: 38
      url: {mustSupport: true, index: 39}
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.2
required: [extension]