PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.1.0-rc1
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement
description: Dieses Profil bildet die Medikationsinformation ab.
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, mustSupport: true, index: 94}
  medication[x]:
    elements:
      reference: {mustSupport: true, index: 34}
    required: [reference]
  reasonCode:
    mustSupport: true
    index: 51
    elements:
      coding:
        mustSupport: true
        index: 52
        slicing:
          rules: open
          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: 53
                extensions:
                  Mehrfachcodierungs-Kennzeichen:
                    url: null
                    mustSupport: true
                    index: 55
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 57
                  Seitenlokalisation:
                    url: null
                    mustSupport: true
                    index: 58
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 60
                  Diagnosesicherheit:
                    url: null
                    mustSupport: true
                    index: 61
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 63
                elements:
                  extension:
                    mustSupport: true
                    index: 54
                    slicing:
                      slices:
                        Mehrfachcodierungs-Kennzeichen:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 55
                            elements:
                              value:
                                mustSupport: true
                                choices: []
                                index: 57
                        Seitenlokalisation:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 58
                            elements:
                              value:
                                mustSupport: true
                                choices: []
                                index: 60
                        Diagnosesicherheit:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 61
                            elements:
                              value:
                                mustSupport: true
                                choices: []
                                index: 63
                  system: {mustSupport: true, index: 64}
                  version: {mustSupport: true, index: 65}
                  code: {mustSupport: true, index: 66}
                  display: {mustSupport: true, index: 67}
                required: [display]
            alphaId:
              match: {system: 'http://fhir.de/CodeSystem/bfarm/alpha-id'}
              schema:
                type: Coding
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/bfarm/alpha-id'}
                index: 68
                elements:
                  system: {mustSupport: true, index: 69}
                  version: {mustSupport: true, index: 70}
                  code: {mustSupport: true, index: 71}
                  display: {mustSupport: true, index: 72}
                required: [display]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 73
                elements:
                  system: {mustSupport: true, index: 74}
                  version: {mustSupport: true, index: 75}
                  code: {mustSupport: true, index: 76}
                  display: {mustSupport: true, index: 77}
                required: [version, display, system, code]
            orphanet:
              match: {system: 'http://www.orpha.net'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://www.orpha.net'}
                index: 78
                elements:
                  system: {mustSupport: true, index: 79}
                  code: {mustSupport: true, index: 80}
                  display: {mustSupport: true, index: 81}
                required: [display, system, code]
      text: {mustSupport: true, index: 82}
    required: [text]
  statusReason:
    mustSupport: true
    index: 20
    elements:
      coding:
        mustSupport: true
        index: 21
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                mustSupport: true
                binding: {strength: extensible, valueSet: 'https://gematik.de/fhir/epa-medication/ValueSet/epa-drug-therapy-status-snomed-ct-vs'}
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 22
                elements:
                  system: {mustSupport: true, index: 23}
                  version: {mustSupport: true, index: 24}
                  code: {mustSupport: true, index: 25}
                  display: {mustSupport: true, index: 26}
                required: [version, display, system, code]
      text: {mustSupport: true, index: 27}
  note:
    mustSupport: true
    index: 83
    elements:
      author:
        mustSupport: true
        choices: [authorReference]
        index: 88
        slicing:
          slices:
            authorReference:
              match: {}
              schema:
                mustSupport: true
                choices: [authorReference]
                index: 88
              min: 0
              max: 1
      authorReference:
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner']
        type: Reference
        mustSupport: true
        choiceOf: author
        index: 89
        slicing:
          slices:
            authorReference:
              match: {}
              schema:
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner']
                type: Reference
                mustSupport: true
                choiceOf: author
                index: 89
              min: 0
              max: 1
      author[x]:
        elements:
          reference: {mustSupport: true, index: 90}
          identifier: {type: Identifier, mustSupport: true, index: 91}
      time: {mustSupport: true, index: 92}
      text: {mustSupport: true, index: 93}
  effective[x]:
    elements:
      start: {mustSupport: true, index: 45}
      end: {mustSupport: true, index: 46}
    required: [start]
  extension:
    mustSupport: true
    index: 5
    slicing:
      slices:
        treatmentGoal:
          match: {}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/resource-pertainsToGoal', index: 6}
          min: 0
        replaces:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/replaces', index: 7}
          min: 0
          max: 1
        Zwischenueberschrift:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-entry-heading-extension
            index: 8
            elements:
              value:
                mustSupport: true
                choices: []
                index: 10
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueCodeableConcept]
                        index: 12
              valueCodeableConcept:
                type: CodeableConcept
                mustSupport: true
                choiceOf: value
                index: 13
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 13}
              value[x]:
                elements:
                  coding:
                    mustSupport: true
                    index: 14
                    elements:
                      system: {mustSupport: true, index: 15}
                      version: {mustSupport: true, index: 16}
                      code: {mustSupport: true, index: 17}
                      display: {mustSupport: true, index: 18}
  effectiveDateTime:
    type: dateTime
    mustSupport: true
    choiceOf: effective
    index: 41
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, mustSupport: true, choiceOf: effective, index: 41}
          min: 0
          max: 1
  status: {mustSupport: true, index: 19}
  effective:
    mustSupport: true
    choices: [effectivePeriod]
    index: 43
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            mustSupport: true
            choices: [effectivePeriod]
            index: 43
          min: 0
          max: 1
  dateAsserted: {mustSupport: true, index: 47}
  medicationReference:
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
    type: Reference
    mustSupport: true
    choiceOf: medication
    index: 33
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication']
            type: Reference
            mustSupport: true
            _required: true
            choiceOf: medication
            index: 33
          min: 1
          max: 1
  informationSource:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole']
    index: 48
    elements:
      reference: {mustSupport: true, index: 49}
      identifier: {type: Identifier, mustSupport: true, index: 50}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 35
    elements:
      identifier: {type: Identifier, mustSupport: true, index: 36}
    required: [identifier]
  effectivePeriod:
    type: Period
    mustSupport: true
    choiceOf: effective
    index: 44
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, mustSupport: true, choiceOf: effective, index: 44}
          min: 0
          max: 1
  medication:
    mustSupport: true
    choices: [medicationReference]
    index: 32
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            mustSupport: true
            choices: [medicationReference]
            _required: true
            index: 32
          min: 1
          max: 1
  text:
    index: 3
    elements:
      status:
        pattern: {type: Code, value: extensions}
        index: 4
package_version: 1.1.0-rc1
extensions:
  treatmentGoal: {url: 'http://hl7.org/fhir/StructureDefinition/resource-pertainsToGoal', min: 0, type: Extension, index: 6}
  replaces: {url: 'http://hl7.org/fhir/StructureDefinition/replaces', min: 0, max: 1, type: Extension, mustSupport: true, index: 7}
  Zwischenueberschrift:
    url: https://gematik.de/fhir/epa-medication/StructureDefinition/medication-entry-heading-extension
    type: Extension
    mustSupport: true
    index: 8
    elements:
      value:
        mustSupport: true
        choices: []
        index: 10
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema:
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 12
      valueCodeableConcept:
        type: CodeableConcept
        mustSupport: true
        choiceOf: value
        index: 13
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 13}
      value[x]:
        elements:
          coding:
            mustSupport: true
            index: 14
            elements:
              system: {mustSupport: true, index: 15}
              version: {mustSupport: true, index: 16}
              code: {mustSupport: true, index: 17}
              display: {mustSupport: true, index: 18}
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-statement
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 1.1.0-rc1
required: [medication, medicationReference, effective]