PackagesCanonicalsLogsProblems
    Packages
    odilab.evo@0.0.1
    http://fhir.odilab.de/StructureDefinition/CompositionHiMi
description: null
package_name: odilab.evo
derivation: constraint
name: CompositionHiMi
type: Composition
elements:
  category: {index: 45}
  date: {mustSupport: true, index: 52}
  meta:
    mustSupport: true
    index: 1
    elements:
      versionId: {index: 2}
      lastUpdated: {index: 3}
      source: {index: 4}
      profile: {mustSupport: true, index: 5}
      security: {index: 6}
      tag: {index: 7}
    required: [profile]
  encounter: {index: 51}
  section:
    mustSupport: true
    index: 87
    slicing:
      rules: closed
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      slices:
        Verordnung_Arzneimittel:
          match:
            code:
              coding: {code: Prescription}
          schema:
            mustSupport: true
            index: 88
            elements:
              orderedBy: {index: 102}
              section: {index: 109}
              mode: {index: 101}
              title: {index: 89}
              emptyReason: {index: 108}
              author: {index: 98}
              code:
                mustSupport: true
                index: 90
                elements:
                  coding:
                    mustSupport: true
                    index: 91
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type'}
                        mustSupport: true
                        index: 92
                      version: {index: 93}
                      code:
                        pattern: {type: Code, value: Prescription}
                        mustSupport: true
                        index: 94
                      display: {index: 95}
                      userSelected: {index: 96}
                    required: [system, code]
                  text: {index: 97}
                required: [coding]
              focus: {index: 99}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription|1.1.0']
                index: 103
                elements:
                  reference: {mustSupport: true, index: 104}
                  type: {index: 105}
                  identifier: {index: 106}
                  display: {index: 107}
                required: [reference]
              text: {index: 100}
            required: [entry, code]
        Verordnung_Sprechstundenbedarf:
          match:
            code:
              coding: {code: PracticeSupply}
          schema:
            mustSupport: true
            index: 110
            elements:
              orderedBy: {index: 124}
              section: {index: 131}
              mode: {index: 123}
              title: {index: 111}
              emptyReason: {index: 130}
              author: {index: 120}
              code:
                mustSupport: true
                index: 112
                elements:
                  coding:
                    mustSupport: true
                    index: 113
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type'}
                        mustSupport: true
                        index: 114
                      version: {index: 115}
                      code:
                        pattern: {type: Code, value: PracticeSupply}
                        mustSupport: true
                        index: 116
                      display: {index: 117}
                      userSelected: {index: 118}
                    required: [system, code]
                  text: {index: 119}
                required: [coding]
              focus: {index: 121}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply|1.1.0']
                index: 125
                elements:
                  reference: {mustSupport: true, index: 126}
                  type: {index: 127}
                  identifier: {index: 128}
                  display: {index: 129}
                required: [reference]
              text: {index: 122}
            required: [entry, code]
        Krankenversicherungsverhaeltnis:
          match:
            code:
              coding: {code: Coverage}
          schema:
            mustSupport: true
            index: 132
            elements:
              orderedBy: {index: 146}
              section: {index: 153}
              mode: {index: 145}
              title: {index: 133}
              emptyReason: {index: 152}
              author: {index: 142}
              code:
                mustSupport: true
                index: 134
                elements:
                  coding:
                    mustSupport: true
                    index: 135
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type'}
                        mustSupport: true
                        index: 136
                      version: {index: 137}
                      code:
                        pattern: {type: Code, value: Coverage}
                        mustSupport: true
                        index: 138
                      display: {index: 139}
                      userSelected: {index: 140}
                    required: [system, code]
                  text: {index: 141}
                required: [coding]
              focus: {index: 143}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.1.0']
                index: 147
                elements:
                  reference: {mustSupport: true, index: 148}
                  type: {index: 149}
                  identifier: {index: 150}
                  display: {index: 151}
                required: [reference]
              text: {index: 144}
            required: [entry, code]
        ASV-Ausuebung:
          match:
            code:
              coding: {code: FOR_PractitionerRole}
          schema:
            mustSupport: true
            index: 154
            elements:
              orderedBy: {index: 168}
              section: {index: 175}
              mode: {index: 167}
              title: {index: 155}
              emptyReason: {index: 174}
              author: {index: 164}
              code:
                mustSupport: true
                index: 156
                elements:
                  coding:
                    mustSupport: true
                    index: 157
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type'}
                        mustSupport: true
                        index: 158
                      version: {index: 159}
                      code:
                        pattern: {type: Code, value: FOR_PractitionerRole}
                        mustSupport: true
                        index: 160
                      display: {index: 161}
                      userSelected: {index: 162}
                    required: [system, code]
                  text: {index: 163}
                required: [coding]
              focus: {index: 165}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_PractitionerRole']
                index: 169
                elements:
                  reference: {mustSupport: true, index: 170}
                  type: {index: 171}
                  identifier: {index: 172}
                  display: {index: 173}
                required: [reference]
              text: {index: 166}
            required: [entry, code]
        Verordnung_Hilfsmittel:
          match:
            code:
              coding: {code: PrescriptionHilfsmittel}
          schema:
            index: 176
            elements:
              orderedBy: {index: 189}
              section: {index: 196}
              mode: {index: 188}
              title: {index: 177}
              emptyReason: {index: 195}
              author: {index: 185}
              code:
                mustSupport: true
                index: 178
                elements:
                  coding:
                    mustSupport: true
                    index: 179
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Section_Type'}
                        mustSupport: true
                        index: 180
                      version: {index: 181}
                      code:
                        pattern: {type: Code, value: PrescriptionHilfsmittel}
                        mustSupport: true
                        index: 182
                      display: {index: 183}
                      userSelected: {index: 184}
                    required: [system, code]
                required: [coding]
              focus: {index: 186}
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://fhir.odilab.de/StructureDefinition/PrescriptionDevice']
                index: 190
                elements:
                  reference: {mustSupport: true, index: 191}
                  type: {index: 192}
                  identifier: {index: 193}
                  display: {index: 194}
                required: [reference]
              text: {index: 187}
            required: [entry, code]
  implicitRules: {index: 8}
  attester:
    short: Daten der verantwortliche Person
    mustSupport: true
    index: 72
    elements:
      mode:
        pattern: {type: Code, value: legal}
        mustSupport: true
        index: 73
      time: {index: 74}
      party:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0']
        index: 75
        elements:
          reference: {mustSupport: true, index: 76}
          type: {index: 77}
          identifier: {index: 78}
          display: {index: 79}
        required: [reference]
    required: [party]
  type:
    mustSupport: true
    index: 37
    elements:
      coding:
        mustSupport: true
        index: 38
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.odilab.de/ValueSet/VS_HIMI_HEIMI_KBV_FORMULAR_ART'}
            mustSupport: true
            index: 39
          version: {index: 40}
          code:
            short: Dokumententyp
            binding: {strength: required, valueSet: 'http://fhir.odilab.de/ValueSet/VS-HIMI-HEIMI-KBV-FORMULAR-ART'}
            mustSupport: true
            index: 41
          display: {index: 42}
          userSelected: {index: 43}
        required: [system, code]
      text: {index: 44}
    required: [coding]
  title:
    pattern: {type: String, value: elektronische Arznei- Heil- Hilfsmittelverordnung}
    mustSupport: true
    index: 70
  author:
    mustSupport: true
    array: true
    max: 2
    index: 53
    slicing:
      rules: closed
      discriminator:
      - {path: type, type: value}
      min: null
      max: 2
      slices:
        Arzt:
          match: {type: Practitioner}
          schema:
            type: Reference
            mustSupport: true
            refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0']
            _required: true
            index: 54
            elements:
              reference: {mustSupport: true, index: 55}
              type:
                pattern: {type: Uri, value: Practitioner}
                mustSupport: true
                index: 56
              identifier: {index: 57}
              display: {index: 58}
            required: [reference, type]
        Pruefnummer:
          match: {type: Device}
          schema:
            mustSupport: true
            index: 59
            elements:
              reference: {index: 60}
              type:
                pattern: {type: Uri, value: Device}
                mustSupport: true
                index: 61
              identifier:
                mustSupport: true
                index: 62
                elements:
                  use: {index: 63}
                  type: {index: 64}
                  system:
                    pattern: {type: Uri, value: 'https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer'}
                    mustSupport: true
                    index: 65
                  value: {short: Prüfnummer, mustSupport: true, index: 66}
                  period: {index: 67}
                  assigner: {index: 68}
                required: [value, system]
              display: {index: 69}
            required: [identifier, type]
  extension:
    index: 11
    slicing:
      rules: closed
      description: Extensions are always sliced by (at least) url
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        Rechtsgrundlage:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis
            index: 12
            extensions: {}
            elements:
              extension: {index: 13}
              value:
                mustSupport: true
                choices: []
                index: 15
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueCoding]
                        index: 17
              valueCoding:
                type: Coding
                mustSupport: true
                choiceOf: value
                index: 18
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema: {type: Coding, mustSupport: true, choiceOf: value, index: 18}
              value[x]:
                elements:
                  code: {short: Kennzeichen Rechtsgrundlage, index: 19}
        PKV-Tarif:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_PKV_Tariff
            index: 20
            extensions: {}
            elements:
              extension: {index: 21}
              value:
                mustSupport: true
                choices: []
                index: 23
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [valueCoding]
                        index: 25
              valueCoding:
                type: Coding
                mustSupport: true
                choiceOf: value
                index: 26
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema: {type: Coding, mustSupport: true, choiceOf: value, index: 26}
              value[x]:
                elements:
                  system: {mustSupport: true, index: 27}
                  code: {mustSupport: true, index: 28}
  contained: {index: 10}
  event: {index: 86}
  custodian:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Organization|1.1.0']
    index: 80
    elements:
      reference: {mustSupport: true, index: 81}
      type: {index: 82}
      identifier: {index: 83}
      display: {index: 84}
    required: [reference]
  status:
    pattern: {type: Code, value: final}
    mustSupport: true
    index: 36
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  identifier:
    mustSupport: false
    index: 29
    elements:
      use: {index: 30}
      type: {index: 31}
      system: {mustSupport: false, index: 32}
      value: {mustSupport: false, index: 33}
      period: {index: 34}
      assigner: {index: 35}
  relatesTo: {index: 85}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.1.0']
    index: 46
    elements:
      reference: {mustSupport: true, index: 47}
      type: {index: 48}
      identifier: {index: 49}
      display: {index: 50}
    required: [reference]
  confidentiality: {index: 71}
package_version: 0.0.1
extensions:
  Rechtsgrundlage:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Legal_basis
    type: Extension
    mustSupport: true
    index: 12
    extensions: {}
    elements:
      extension: {index: 13}
      value:
        mustSupport: true
        choices: []
        index: 15
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                mustSupport: true
                choices: [valueCoding]
                index: 17
      valueCoding:
        type: Coding
        mustSupport: true
        choiceOf: value
        index: 18
        slicing:
          slices:
            valueCoding:
              match: {}
              schema: {type: Coding, mustSupport: true, choiceOf: value, index: 18}
      value[x]:
        elements:
          code: {short: Kennzeichen Rechtsgrundlage, index: 19}
  PKV-Tarif:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_PKV_Tariff
    type: Extension
    mustSupport: true
    index: 20
    extensions: {}
    elements:
      extension: {index: 21}
      value:
        mustSupport: true
        choices: []
        index: 23
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                mustSupport: true
                choices: [valueCoding]
                index: 25
      valueCoding:
        type: Coding
        mustSupport: true
        choiceOf: value
        index: 26
        slicing:
          slices:
            valueCoding:
              match: {}
              schema: {type: Coding, mustSupport: true, choiceOf: value, index: 26}
      value[x]:
        elements:
          system: {mustSupport: true, index: 27}
          code: {mustSupport: true, index: 28}
class: profile
kind: resource
url: http://fhir.odilab.de/StructureDefinition/CompositionHiMi
base: http://hl7.org/fhir/StructureDefinition/Composition
version: null
required: [id, section, meta, custodian]