PackagesCanonicalsLogsProblems
    Packages
    de.gematik.ti@1.4.0-ballot.2
    https://gematik.de/fhir/ti/StructureDefinition/ti-medication-statement-dgmp
description: Hält die Medikationsinformationen eines Patienten.
package_name: de.gematik.ti
derivation: constraint
name: TIMedicationStatementDgMP
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: 30}
  derivedFrom:
    type: Reference
    short: Information des Verschreibungs- und Dispensierprozesses
    mustSupport: true
    refers: ['https://gematik.de/fhir/ti/StructureDefinition/ti-medication-dispense-dgmp', 'https://gematik.de/fhir/ti/StructureDefinition/ti-medication-request-dgmp']
    index: 29
  effective[x]:
    elements:
      start:
        constraint:
          epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/ti/StructureDefinition/ti-medication-statement-dgmp', 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/ti/StructureDefinition/ti-medication-statement-dgmp', 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
  extension:
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        context:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension', index: 4}
          min: 0
          max: 1
        rxPrescriptionProcessIdentifier:
          match: {url: null}
          schema: {type: Extension, url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', index: 5}
          min: 0
          max: 1
        renderedDosageInstruction:
          match: {url: null}
          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: 6
            extensions: {}
            elements:
              extension: {index: 7}
              value:
                mustSupport: true
                choices: []
                index: 9
        generatedDosageInstructionsMeta:
          match: {url: null}
          schema: {short: Metadaten zu den generierten Dosierungsanweisungen, type: Extension, mustSupport: true, url: 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta', index: 10}
          min: 0
          max: 1
  effectiveDateTime:
    constraint:
      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/ti/StructureDefinition/ti-medication-statement-dgmp', 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: 22
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            constraint:
              epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/ti/StructureDefinition/ti-medication-statement-dgmp', 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: 22
          min: 0
          max: 1
  status: {mustSupport: true, index: 12}
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 24
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            mustSupport: true
            choices: [effectivePeriod]
            index: 24
          min: 0
          max: 1
  dateAsserted:
    constraint:
      epa-datetime: {human: 'dateTime muss mindestens aus Tag, Monat und Jahr bestehen', source: 'https://gematik.de/fhir/ti/StructureDefinition/ti-medication-statement-dgmp', 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: 28
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['https://gematik.de/fhir/ti/StructureDefinition/ti-medication-request-dgmp']
    index: 11
  medicationReference:
    type: Reference
    short: Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
    mustSupport: true
    choiceOf: medication
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    index: 15
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 16
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 17}
    required: [identifier]
  effectivePeriod:
    type: Period
    mustSupport: true
    choiceOf: effective
    index: 25
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, mustSupport: true, choiceOf: effective, index: 25}
          min: 0
          max: 1
  medication:
    short: Arzneimittel, welches diese Medikationsinformation bzw. dieses MedicationStatement näher beschreibt
    mustSupport: true
    choices: [medicationReference]
    index: 14
package_version: 1.4.0-ballot.2
extensions:
  context: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/context-extension', min: 0, max: 1, type: Extension, mustSupport: true, index: 4}
  rxPrescriptionProcessIdentifier: {url: 'https://gematik.de/fhir/epa-medication/StructureDefinition/rx-prescription-process-identifier-extension', min: 0, max: 1, type: Extension, index: 5}
  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: 6
    extensions: {}
    elements:
      extension: {index: 7}
      value:
        mustSupport: true
        choices: []
        index: 9
  generatedDosageInstructionsMeta: {url: 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta', min: 0, max: 1, short: Metadaten zu den generierten Dosierungsanweisungen, type: Extension, mustSupport: true, index: 10}
class: profile
kind: resource
url: https://gematik.de/fhir/ti/StructureDefinition/ti-medication-statement-dgmp
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 1.4.0