PackagesCanonicalsLogsProblems
    Packages
    de.gevko.emdaf@0.9.0
    https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Composition
description: Composition für das elektronische Medikations-Datenaustauschformat (eMDAF)
package_name: de.gevko.emdaf
derivation: constraint
name: EMDAF_PR_Composition
type: Composition
elements:
  category: {index: 59}
  meta:
    mustSupport: true
    index: 0
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Composition|0.9.0'}
        index: 1
    required: [profile]
  encounter: {index: 70}
  section:
    mustSupport: true
    array: true
    min: 1
    max: 7
    index: 133
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.code, type: value}
      min: 1
      max: 7
      slices:
        Leistungserbringer-Kommentar:
          match:
            code:
              coding: {code: 86467-8}
          schema:
            short: übergeordneter Kommentar zwischen Leistungserbringern
            mustSupport: true
            index: 134
            elements:
              orderedBy: {index: 148}
              section: {index: 155}
              mode: {index: 147}
              title:
                short: Kommentarfeld zwischen Leistungserbringern
                pattern: {type: String, value: Leistungserbringer-Kommentar}
                mustSupport: true
                index: 135
              emptyReason: {index: 154}
              author: {index: 144}
              code:
                mustSupport: true
                index: 136
                elements:
                  coding:
                    mustSupport: true
                    index: 137
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 138
                      version: {index: 139}
                      code:
                        short: Report comment
                        pattern: {type: Code, value: 86467-8}
                        mustSupport: true
                        index: 140
                      display:
                        pattern: {type: String, value: Report comment Narrative}
                        mustSupport: true
                        index: 141
                      userSelected: {index: 142}
                    required: [system, code]
                  text: {index: 143}
                required: [coding]
              focus: {index: 145}
              entry:
                type: Reference
                short: Kommentarfeld zwischen Leistungserbringern
                mustSupport: true
                refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Kommentar_LE']
                index: 149
                elements:
                  reference: {mustSupport: true, index: 150}
                  type: {index: 151}
                  identifier: {index: 152}
                  display: {index: 153}
                required: [reference]
              text: {index: 146}
            required: [entry, title, code]
        Klinische_Parameter:
          match:
            code:
              coding: {code: 55752-0}
          schema:
            mustSupport: true
            index: 156
            elements:
              orderedBy: {index: 170}
              section: {index: 245}
              mode: {index: 169}
              title:
                pattern: {type: String, value: Klinische Parameter}
                mustSupport: true
                index: 157
              emptyReason: {index: 244}
              author: {index: 166}
              code:
                mustSupport: true
                index: 158
                elements:
                  coding:
                    mustSupport: true
                    index: 159
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 160
                      version: {index: 161}
                      code:
                        pattern: {type: Code, value: 55752-0}
                        mustSupport: true
                        index: 162
                      display:
                        pattern: {type: String, value: Clinical information}
                        mustSupport: true
                        index: 163
                      userSelected: {index: 164}
                    required: [system, code]
                  text: {index: 165}
                required: [coding]
              focus: {index: 167}
              entry:
                index: 171
                slicing:
                  rules: closed
                  discriminator:
                  - {path: identifier.type.coding.code, type: value}
                  min: null
                  slices:
                    Koerpergroesse:
                      match:
                        identifier:
                          type:
                            coding: {code: 8302-2}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Koerpergroesse']
                        index: 172
                        elements:
                          reference: {mustSupport: true, index: 173}
                          type: {index: 174}
                          identifier:
                            mustSupport: true
                            index: 175
                            elements:
                              use: {index: 176}
                              type:
                                mustSupport: true
                                index: 177
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 178
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 179
                                      version: {index: 180}
                                      code:
                                        pattern: {type: Code, value: 8302-2}
                                        mustSupport: true
                                        index: 181
                                      display:
                                        pattern: {type: String, value: Body height}
                                        mustSupport: true
                                        index: 182
                                      userSelected: {index: 183}
                                    required: [system, code]
                                  text: {index: 184}
                                required: [coding]
                              system: {index: 185}
                              value: {index: 186}
                              period: {index: 187}
                              assigner: {index: 188}
                            required: [type]
                          display: {index: 189}
                        required: [identifier, reference]
                    Koerpergewicht:
                      match:
                        identifier:
                          type:
                            coding: {code: 29463-7}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Koerpergewicht']
                        index: 190
                        elements:
                          reference: {mustSupport: true, index: 191}
                          type: {index: 192}
                          identifier:
                            mustSupport: true
                            index: 193
                            elements:
                              use: {index: 194}
                              type:
                                mustSupport: true
                                index: 195
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 196
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 197
                                      version: {index: 198}
                                      code:
                                        pattern: {type: Code, value: 29463-7}
                                        mustSupport: true
                                        index: 199
                                      display:
                                        pattern: {type: String, value: Body weight}
                                        mustSupport: true
                                        index: 200
                                      userSelected: {index: 201}
                                    required: [system, code]
                                  text: {index: 202}
                                required: [coding]
                              system: {index: 203}
                              value: {index: 204}
                              period: {index: 205}
                              assigner: {index: 206}
                            required: [type]
                          display: {index: 207}
                        required: [identifier, reference]
                    Kreatinin:
                      match:
                        identifier:
                          type:
                            coding: {code: 2160-0}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Kreatinin']
                        index: 208
                        elements:
                          reference: {mustSupport: true, index: 209}
                          type: {index: 210}
                          identifier:
                            mustSupport: true
                            index: 211
                            elements:
                              use: {index: 212}
                              type:
                                mustSupport: true
                                index: 213
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 214
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 215
                                      version: {index: 216}
                                      code:
                                        pattern: {type: Code, value: 2160-0}
                                        mustSupport: true
                                        index: 217
                                      display:
                                        pattern: {type: String, value: 'Creatinine [Mass/volume] in Serum or Plasma'}
                                        mustSupport: true
                                        index: 218
                                      userSelected: {index: 219}
                                    required: [system, code]
                                  text: {index: 220}
                                required: [coding]
                              system: {index: 221}
                              value: {index: 222}
                              period: {index: 223}
                              assigner: {index: 224}
                            required: [type]
                          display: {index: 225}
                        required: [identifier, reference]
                    Laborparameter:
                      match:
                        identifier:
                          type:
                            coding: {code: 11502-2}
                      schema:
                        short: Weitere Laborparameter außer die hier separat aufgeführten Parameter
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Laborparameter']
                        type: Reference
                        mustSupport: true
                        index: 226
                        elements:
                          reference: {mustSupport: true, index: 227}
                          type: {index: 228}
                          identifier:
                            mustSupport: true
                            index: 229
                            elements:
                              use: {index: 230}
                              type:
                                mustSupport: true
                                index: 231
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 232
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 233
                                      version: {index: 234}
                                      code:
                                        pattern: {type: Code, value: 11502-2}
                                        mustSupport: true
                                        index: 235
                                      display:
                                        pattern: {type: String, value: Laboratory report}
                                        mustSupport: true
                                        index: 236
                                      userSelected: {index: 237}
                                    required: [system, code]
                                  text: {index: 238}
                                required: [coding]
                              system: {index: 239}
                              value: {index: 240}
                              period: {index: 241}
                              assigner: {index: 242}
                            required: [type]
                          display: {index: 243}
                        required: [identifier, reference]
              text: {index: 168}
            required: [title, code]
        Allergien_und_Unvertraeglichkeiten:
          match:
            code:
              coding: {code: 48765-2}
          schema:
            mustSupport: true
            index: 246
            elements:
              orderedBy: {index: 260}
              section: {index: 267}
              mode: {index: 259}
              title:
                pattern: {type: String, value: Allergien und Unverträglichkeiten}
                mustSupport: true
                index: 247
              emptyReason: {index: 266}
              author: {index: 256}
              code:
                mustSupport: true
                index: 248
                elements:
                  coding:
                    mustSupport: true
                    index: 249
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 250
                      version: {index: 251}
                      code:
                        pattern: {type: Code, value: 48765-2}
                        mustSupport: true
                        index: 252
                      display:
                        pattern: {type: String, value: Allergies and adverse reactions Document}
                        mustSupport: true
                        index: 253
                      userSelected: {index: 254}
                    required: [system, code]
                  text: {index: 255}
                required: [coding]
              focus: {index: 257}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_AllergyIntolerance']
                index: 261
                elements:
                  reference: {mustSupport: true, index: 262}
                  type: {index: 263}
                  identifier: {index: 264}
                  display: {index: 265}
                required: [reference]
              text: {index: 258}
            required: [entry, title, code]
        Gesundheitsbelange:
          match:
            code:
              coding: {code: 75310-3}
          schema:
            mustSupport: true
            index: 268
            elements:
              orderedBy: {index: 282}
              section: {index: 321}
              mode: {index: 281}
              title:
                pattern: {type: String, value: Gesundheitsbelange}
                index: 269
              emptyReason: {index: 320}
              author: {index: 278}
              code:
                mustSupport: true
                index: 270
                elements:
                  coding:
                    index: 271
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 272
                      version: {index: 273}
                      code:
                        pattern: {type: Code, value: 75310-3}
                        mustSupport: true
                        index: 274
                      display:
                        pattern: {type: String, value: Health concerns Document}
                        mustSupport: true
                        index: 275
                      userSelected: {index: 276}
                    required: [system, code]
                  text: {index: 277}
                required: [coding]
              focus: {index: 279}
              entry:
                array: true
                min: 1
                max: 2
                index: 283
                slicing:
                  rules: open
                  discriminator:
                  - {path: identifier.type.coding.code, type: value}
                  min: 1
                  max: 2
                  slices:
                    Schwangerschaft:
                      match:
                        identifier:
                          type:
                            coding: {code: 11449-6}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Schwangerschaft']
                        index: 284
                        elements:
                          reference: {mustSupport: true, index: 285}
                          type: {index: 286}
                          identifier:
                            mustSupport: true
                            index: 287
                            elements:
                              use: {index: 288}
                              type:
                                mustSupport: true
                                index: 289
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 290
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        index: 291
                                      version: {index: 292}
                                      code:
                                        pattern: {type: Code, value: 11449-6}
                                        mustSupport: true
                                        index: 293
                                      display:
                                        pattern: {type: String, value: Pregnancy status - Reported}
                                        mustSupport: true
                                        index: 294
                                      userSelected: {index: 295}
                                    required: [system, code]
                                  text:
                                    pattern: {type: String, value: Schwangerschaft}
                                    mustSupport: true
                                    index: 296
                                required: [coding]
                              system: {index: 297}
                              value: {index: 298}
                              period: {index: 299}
                              assigner: {index: 300}
                            required: [type]
                          display: {index: 301}
                        required: [identifier, reference]
                    Stillzeit:
                      match:
                        identifier:
                          type:
                            coding: {code: 63895-7}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Stillzeit']
                        index: 302
                        elements:
                          reference: {mustSupport: true, index: 303}
                          type: {index: 304}
                          identifier:
                            mustSupport: true
                            index: 305
                            elements:
                              use: {index: 306}
                              type:
                                mustSupport: true
                                index: 307
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 308
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 309
                                      version: {index: 310}
                                      code:
                                        pattern: {type: Code, value: 63895-7}
                                        mustSupport: true
                                        index: 311
                                      display:
                                        pattern: {type: String, value: Breastfeeding status}
                                        mustSupport: true
                                        index: 312
                                      userSelected: {index: 313}
                                    required: [system, code]
                                  text:
                                    pattern: {type: String, value: Stillzeit Status}
                                    mustSupport: true
                                    index: 314
                                required: [coding]
                              system: {index: 315}
                              value: {index: 316}
                              period: {index: 317}
                              assigner: {index: 318}
                            required: [type]
                          display: {index: 319}
                        required: [identifier, reference]
              text: {index: 280}
            required: [entry, title, code]
        Medikation:
          match:
            code:
              coding: {code: 19009-0}
          schema:
            constraint:
              ent-1: {human: 'Wenn kein Medikationseintrag vorhanden ist, dann muss ein Grund angegeben werden!', source: 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Composition', severity: error, expression: $this.entry.exists() or $this.emptyReason.exists()}
            mustSupport: true
            _required: true
            index: 322
            elements:
              orderedBy: {index: 336}
              section: {index: 350}
              mode: {index: 335}
              title:
                pattern: {type: String, value: Medikationsplan}
                mustSupport: true
                index: 323
              emptyReason:
                short: Unavailable
                constraint:
                  unavail-1: {human: Es sind keine Medikationseinträge vorhanden., source: 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Composition', severity: error, expression: Composition.section.entry.exists().not()}
                mustSupport: true
                index: 342
                elements:
                  coding:
                    index: 343
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://hl7.org/fhir/list-empty-reason'}
                        mustSupport: true
                        index: 344
                      version: {index: 345}
                      code:
                        pattern: {type: Code, value: unavailable}
                        mustSupport: true
                        index: 346
                      display: {index: 347}
                      userSelected: {index: 348}
                    required: [system, code]
                  text: {index: 349}
                required: [coding]
              author: {index: 332}
              code:
                mustSupport: true
                index: 324
                elements:
                  coding:
                    mustSupport: true
                    index: 325
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 326
                      version: {index: 327}
                      code:
                        pattern: {type: Code, value: 19009-0}
                        mustSupport: true
                        index: 328
                      display:
                        pattern: {type: String, value: Medication current}
                        mustSupport: true
                        index: 329
                      userSelected: {index: 330}
                    required: [system, code]
                  text: {index: 331}
                required: [coding]
              focus: {index: 333}
              entry:
                type: Reference
                constraint:
                  ave-1: {human: Es sind keine Medikationseinträge vorhanden., source: Composition, severity: error, expression: Composition.section.emptyReason.exists().not()}
                mustSupport: true
                refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_MedicationStatementList']
                index: 337
                elements:
                  reference: {mustSupport: true, index: 338}
                  type: {index: 339}
                  identifier: {index: 340}
                  display: {index: 341}
                required: [reference]
              text: {short: 'ggf. freitextliche Begründung, wenn keine Medikationsliste vorhanden ist', index: 334}
            required: [title, code]
        Sozialanamnese:
          match:
            code:
              coding: {code: 29762-2}
          schema:
            mustSupport: true
            index: 351
            elements:
              orderedBy: {index: 365}
              section: {index: 458}
              mode: {index: 364}
              title:
                pattern: {type: String, value: Sozialanamnese}
                mustSupport: true
                index: 352
              emptyReason: {index: 457}
              author: {index: 361}
              code:
                mustSupport: true
                index: 353
                elements:
                  coding:
                    mustSupport: true
                    index: 354
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 355
                      version: {index: 356}
                      code:
                        short: Social history Narrative
                        pattern: {type: Code, value: 29762-2}
                        mustSupport: true
                        index: 357
                      display:
                        pattern: {type: String, value: Social history Narrative}
                        mustSupport: true
                        index: 358
                      userSelected: {index: 359}
                    required: [system, code]
                  text: {index: 360}
                required: [coding]
              focus: {index: 362}
              entry:
                array: true
                max: 5
                index: 366
                slicing:
                  rules: open
                  discriminator:
                  - {path: identifier.type.coding.code, type: value}
                  min: null
                  max: 5
                  slices:
                    Datenuebermittlung:
                      match:
                        identifier:
                          type:
                            coding: {code: DU}
                      schema:
                        short: Gibt Auskunft darüber, ob der Patient der Übermittlung der Daten zugestimmt hat oder
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Datenuebermittlung']
                        type: Reference
                        mustSupport: true
                        index: 367
                        elements:
                          reference: {mustSupport: true, index: 368}
                          type: {index: 369}
                          identifier:
                            mustSupport: true
                            index: 370
                            elements:
                              use: {index: 371}
                              type:
                                mustSupport: true
                                index: 372
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 373
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'https://fhir.gevko.de/CodeSystem/EMDAF_VS_section_type'}
                                        mustSupport: true
                                        index: 374
                                      version: {index: 375}
                                      code:
                                        pattern: {type: Code, value: DU}
                                        mustSupport: true
                                        index: 376
                                      display:
                                        pattern: {type: String, value: Datenübermittlung}
                                        mustSupport: true
                                        index: 377
                                      userSelected: {index: 378}
                                    required: [system, code]
                                  text: {index: 379}
                                required: [coding]
                              system: {index: 380}
                              value: {index: 381}
                              period: {index: 382}
                              assigner: {index: 383}
                            required: [type]
                          display: {index: 384}
                        required: [identifier, reference]
                    Tabakgebrauch:
                      match:
                        identifier:
                          type:
                            coding: {code: 72166-2}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Rauchen']
                        index: 385
                        elements:
                          reference: {mustSupport: true, index: 386}
                          type: {index: 387}
                          identifier:
                            mustSupport: true
                            index: 388
                            elements:
                              use: {index: 389}
                              type:
                                mustSupport: true
                                index: 390
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 391
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 392
                                      version: {index: 393}
                                      code:
                                        pattern: {type: Code, value: 72166-2}
                                        mustSupport: true
                                        index: 394
                                      display:
                                        pattern: {type: String, value: Tobacco smoking status}
                                        mustSupport: true
                                        index: 395
                                      userSelected: {index: 396}
                                    required: [system, code]
                                  text: {index: 397}
                                required: [coding]
                              system: {index: 398}
                              value: {index: 399}
                              period: {index: 400}
                              assigner: {index: 401}
                            required: [type]
                          display: {index: 402}
                        required: [identifier, reference]
                    Alkoholgebrauch:
                      match:
                        identifier:
                          type:
                            coding: {code: 74013-4}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Alkoholgebrauch']
                        index: 403
                        elements:
                          reference: {mustSupport: true, index: 404}
                          type: {index: 405}
                          identifier:
                            mustSupport: true
                            index: 406
                            elements:
                              use: {index: 407}
                              type:
                                mustSupport: true
                                index: 408
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 409
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 410
                                      version: {index: 411}
                                      code:
                                        pattern: {type: Code, value: 74013-4}
                                        mustSupport: true
                                        index: 412
                                      display:
                                        pattern: {type: String, value: Alcoholic drinks per day}
                                        mustSupport: true
                                        index: 413
                                      userSelected: {index: 414}
                                    required: [system, code]
                                  text: {index: 415}
                                required: [coding]
                              system: {index: 416}
                              value: {index: 417}
                              period: {index: 418}
                              assigner: {index: 419}
                            required: [type]
                          display: {index: 420}
                        required: [identifier, reference]
                    Alkoholabusus:
                      match:
                        identifier:
                          type:
                            coding: {code: 74043-1}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Alkoholabusus']
                        index: 421
                        elements:
                          reference: {mustSupport: true, index: 422}
                          type: {index: 423}
                          identifier:
                            mustSupport: true
                            index: 424
                            elements:
                              use: {index: 425}
                              type:
                                mustSupport: true
                                index: 426
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 427
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'http://loinc.org'}
                                        mustSupport: true
                                        index: 428
                                      version: {index: 429}
                                      code:
                                        pattern: {type: Code, value: 74043-1}
                                        mustSupport: true
                                        index: 430
                                      display:
                                        pattern: {type: String, value: Alcohol abuse or dependence}
                                        mustSupport: true
                                        index: 431
                                      userSelected: {index: 432}
                                    required: [system, code]
                                  text: {index: 433}
                                required: [coding]
                              system: {index: 434}
                              value: {index: 435}
                              period: {index: 436}
                              assigner: {index: 437}
                            required: [type]
                          display: {index: 438}
                        required: [identifier, reference]
                    Leistungssportler:
                      match:
                        identifier:
                          type:
                            coding: {code: LS}
                      schema:
                        type: Reference
                        mustSupport: true
                        refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Leistungssportler']
                        index: 439
                        elements:
                          reference: {mustSupport: true, index: 440}
                          type: {index: 441}
                          identifier:
                            mustSupport: true
                            index: 442
                            elements:
                              use: {index: 443}
                              type:
                                index: 444
                                elements:
                                  coding:
                                    mustSupport: true
                                    index: 445
                                    elements:
                                      system:
                                        pattern: {type: Uri, value: 'https://fhir.gevko.de/CodeSystem/EMDAF_VS_section_type'}
                                        mustSupport: true
                                        index: 446
                                      version: {index: 447}
                                      code:
                                        pattern: {type: Code, value: LS}
                                        mustSupport: true
                                        index: 448
                                      display:
                                        pattern: {type: String, value: Leistungssportler}
                                        mustSupport: true
                                        index: 449
                                      userSelected: {index: 450}
                                    required: [system, code]
                                  text: {index: 451}
                                required: [coding]
                              system: {index: 452}
                              value: {index: 453}
                              period: {index: 454}
                              assigner: {index: 455}
                            required: [type]
                          display: {index: 456}
                        required: [identifier, reference]
              text: {index: 363}
            required: [title, code]
        Hinweise:
          match:
            code:
              coding: {code: 69730-0}
          schema:
            short: Wichtige Angaben
            mustSupport: true
            index: 459
            elements:
              orderedBy: {index: 473}
              section: {index: 480}
              mode: {index: 472}
              title:
                pattern: {type: String, value: Wichtige Angaben}
                mustSupport: true
                index: 460
              emptyReason: {index: 479}
              author: {index: 469}
              code:
                mustSupport: true
                index: 461
                elements:
                  coding:
                    mustSupport: true
                    index: 462
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://loinc.org'}
                        mustSupport: true
                        index: 463
                      version: {index: 464}
                      code:
                        pattern: {type: Code, value: 69730-0}
                        mustSupport: true
                        index: 465
                      display:
                        pattern: {type: String, value: Instructions}
                        mustSupport: true
                        index: 466
                      userSelected: {index: 467}
                    required: [system, code]
                  text: {index: 468}
                required: [coding]
              focus: {index: 470}
              entry:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Observation_Wichtige_Hinweise']
                index: 474
                elements:
                  reference: {mustSupport: true, index: 475}
                  type: {index: 476}
                  identifier: {index: 477}
                  display: {index: 478}
                required: [reference]
              text: {index: 471}
            required: [entry, title, code]
  implicitRules: {index: 2}
  attester:
    mustSupport: true
    index: 110
    slicing:
      rules: open
      discriminator:
      - {path: party.reference, type: profile}
      min: null
      max: 1
      slices:
        AMTS-Pruefung:
          match: {}
          schema:
            short: Arzneimitteltherapiesicherheit Prüfung
            mustSupport: true
            index: 111
            elements:
              mode:
                pattern: {type: Code, value: professional}
                index: 112
              time: {short: Datum der letzten AMTS-Prüfung, mustSupport: true, index: 113}
              party:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_PractitionerRole_Apotheker', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_PractitionerRole_Arzt', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_PractitionerRole_Pflegearzt', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Practitioner_Apotheker', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Practitioner_Arzt']
                index: 114
                elements:
                  reference: {mustSupport: true, index: 115}
                  type: {index: 116}
                  identifier: {index: 117}
                  display: {index: 118}
                required: [reference]
            required: [time, party]
        Kurator:
          match: {}
          schema:
            short: Kurator
            mustSupport: true
            index: 119
            elements:
              mode:
                pattern: {type: Code, value: professional}
                index: 120
              party:
                type: Reference
                mustSupport: true
                refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_PractitionerRole_Pflegearzt', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Practitioner_Arzt']
                index: 121
                elements:
                  reference: {mustSupport: true, index: 122}
                  type: {index: 123}
                  identifier: {index: 124}
                  display: {index: 125}
                required: [reference]
            required: [party]
  type:
    mustSupport: true
    index: 51
    elements:
      coding:
        mustSupport: true
        index: 52
        elements:
          system:
            pattern: {type: Uri, value: 'http://loinc.org'}
            mustSupport: true
            index: 53
          version: {index: 54}
          code:
            pattern: {type: Code, value: 77603-9}
            mustSupport: true
            index: 55
          display:
            pattern: {type: String, value: Medication treatment plan}
            mustSupport: true
            index: 56
          userSelected: {index: 57}
        required: [system, code]
      text:
        pattern: {type: String, value: Medikationsplan}
        mustSupport: true
        index: 58
    required: [coding, text]
  title:
    pattern: {type: String, value: Medikations-Datenaustauschformat}
    mustSupport: true
    index: 108
  author:
    mustSupport: true
    array: true
    max: 2
    index: 71
    slicing:
      rules: open
      discriminator:
      - {path: identifier.type.coding.code, type: value}
      min: null
      max: 2
      slices:
        arzt:
          match:
            identifier:
              type:
                coding: {code: BEHA}
          schema:
            short: Arzt
            refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_PractitionerRole_Arzt', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_PractitionerRole_Pflegearzt', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Practitioner_Arzt']
            type: Reference
            mustSupport: true
            _required: true
            index: 72
            elements:
              reference: {mustSupport: true, index: 73}
              type: {index: 74}
              identifier:
                mustSupport: true
                index: 75
                elements:
                  use: {index: 76}
                  type:
                    mustSupport: true
                    index: 77
                    elements:
                      coding:
                        mustSupport: true
                        index: 78
                        elements:
                          system:
                            pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_PERSONFUNKTION'}
                            mustSupport: true
                            index: 79
                          version: {index: 80}
                          code:
                            pattern: {type: Code, value: BEHA}
                            mustSupport: true
                            index: 81
                          display:
                            pattern: {type: String, value: Behandelnde Arzt}
                            mustSupport: true
                            index: 82
                          userSelected: {index: 83}
                        required: [system, code]
                      text: {index: 84}
                    required: [coding]
                  system: {index: 85}
                  value: {index: 86}
                  period: {index: 87}
                  assigner: {index: 88}
                required: [type]
              display: {index: 89}
            required: [identifier, reference]
        softwareSystem:
          match:
            identifier:
              type:
                coding: {code: 55080-6}
          schema:
            short: Angabe zum erstellenden Software-System
            refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_SoftwareSystem']
            type: Reference
            mustSupport: true
            index: 90
            elements:
              reference: {mustSupport: true, index: 91}
              type: {index: 92}
              identifier:
                mustSupport: true
                index: 93
                elements:
                  use: {index: 94}
                  type:
                    mustSupport: true
                    index: 95
                    elements:
                      coding:
                        mustSupport: true
                        index: 96
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://loinc.org'}
                            mustSupport: true
                            index: 97
                          version: {index: 98}
                          code:
                            pattern: {type: Code, value: 55080-6}
                            mustSupport: true
                            index: 99
                          display:
                            pattern: {type: String, value: Product name Software}
                            mustSupport: true
                            index: 100
                          userSelected: {index: 101}
                        required: [system, code]
                      text: {index: 102}
                    required: [coding]
                  system: {index: 103}
                  value: {index: 104}
                  period: {index: 105}
                  assigner: {index: 106}
                required: [type]
              display: {index: 107}
            required: [identifier, reference]
  extension:
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        eMP_AMTS_ID:
          match: {url: null}
          schema:
            short: ID eMP/AMTS
            type: Extension
            mustSupport: true
            url: https://fhir.gevko.de/StructureDefinition/EMDAF_EX_eMP_AMTS_ID
            index: 6
            elements:
              value:
                mustSupport: true
                choices: []
                index: 8
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 9
                    elements:
                      coding:
                        mustSupport: true
                        index: 10
                        elements:
                          system: {mustSupport: true, index: 11}
                          code: {mustSupport: true, index: 12}
                          display: {mustSupport: true, index: 13}
                  system: {mustSupport: true, index: 14}
                  value: {short: AMTS-ID, mustSupport: true, index: 15}
        laenderkennzeichen:
          match: {url: null}
          schema:
            type: Extension
            short: Länderkennzeichen (für die Nutzung)
            mustSupport: true
            url: https://fhir.gevko.de/StructureDefinition/EMDAF_EX_Laenderkennzeichen
            index: 16
            elements:
              value:
                mustSupport: true
                choices: []
                index: 18
              value[x]:
                elements:
                  coding:
                    mustSupport: true
                    index: 19
                    elements:
                      system: {short: Offizieller Name eines Staates in deutscher Sprache ISO-3166, mustSupport: true, index: 20}
                      version: {index: 21}
                      code: {mustSupport: true, index: 22}
                      display: {mustSupport: true, index: 23}
                      userSelected: {index: 24}
                  text: {index: 25}
        versionsnummer:
          match: {url: null}
          schema:
            type: Extension
            short: Versionsnummer des Formats
            mustSupport: true
            url: https://fhir.gevko.de/StructureDefinition/EMDAF_EX_Versionsnummer
            index: 26
            elements:
              value:
                mustSupport: true
                choices: []
                index: 28
              value[x]:
                elements:
                  type:
                    mustSupport: true
                    index: 29
                    elements:
                      coding:
                        mustSupport: true
                        index: 30
                        elements:
                          system: {mustSupport: true, index: 31}
                          code: {mustSupport: true, index: 32}
                          display: {mustSupport: true, index: 33}
                  system: {mustSupport: true, index: 34}
                  value: {short: Versionsnummer des Formats, mustSupport: true, index: 35}
  contained: {index: 4}
  event: {index: 132}
  custodian:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Organization_Apotheke', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Organization_Krankenhaus', 'https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Organization_Praxis']
    index: 126
    elements:
      reference: {mustSupport: true, index: 127}
      type: {index: 128}
      identifier: {index: 129}
      display: {index: 130}
    required: [reference]
  status:
    pattern: {type: Code, value: final}
    index: 50
  language: {short: Sprachkennzeichen (des Medikationsplans), mustSupport: true, index: 3}
  identifier:
    short: Instanz-ID BMP
    mustSupport: true
    index: 36
    elements:
      use: {index: 37}
      type:
        mustSupport: true
        index: 38
        elements:
          coding:
            mustSupport: true
            index: 39
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.gevko.de/CodeSystem/EMDAF_CS_section_type'}
                mustSupport: true
                index: 40
              version: {index: 41}
              code:
                pattern: {type: Code, value: BMP-ID}
                mustSupport: true
                index: 42
              display:
                pattern: {type: String, value: Bundeseinheitliche Medikationsplan ID}
                mustSupport: true
                index: 43
              userSelected: {index: 44}
            required: [system, code]
          text: {index: 45}
        required: [coding]
      system:
        pattern: {type: Uri, value: 'https://fhir.gevko.de/NamingSystem/EMDAF_NS_BMP_ID'}
        mustSupport: true
        index: 46
      value: {short: Weltweit eindeutige Identifikation eines BMP, mustSupport: true, index: 47}
      period: {index: 48}
      assigner: {index: 49}
    required: [value, type, system]
  relatesTo: {index: 131}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Patient']
    index: 60
    elements:
      reference: {mustSupport: true, index: 61}
      type: {index: 62}
      identifier:
        index: 63
        elements:
          type:
            elements:
              coding:
                elements:
                  system: {index: 64}
                  version: {index: 65}
                  code: {index: 66}
                  userSelected: {index: 67}
                required: [system, code]
          assigner: {index: 68}
      display: {index: 69}
    required: [reference]
  confidentiality: {short: Standardwert ist N, index: 109}
package_version: 0.9.0
extensions:
  eMP_AMTS_ID:
    url: https://fhir.gevko.de/StructureDefinition/EMDAF_EX_eMP_AMTS_ID
    short: ID eMP/AMTS
    type: Extension
    mustSupport: true
    index: 6
    elements:
      value:
        mustSupport: true
        choices: []
        index: 8
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 9
            elements:
              coding:
                mustSupport: true
                index: 10
                elements:
                  system: {mustSupport: true, index: 11}
                  code: {mustSupport: true, index: 12}
                  display: {mustSupport: true, index: 13}
          system: {mustSupport: true, index: 14}
          value: {short: AMTS-ID, mustSupport: true, index: 15}
  laenderkennzeichen:
    url: https://fhir.gevko.de/StructureDefinition/EMDAF_EX_Laenderkennzeichen
    type: Extension
    short: Länderkennzeichen (für die Nutzung)
    mustSupport: true
    index: 16
    elements:
      value:
        mustSupport: true
        choices: []
        index: 18
      value[x]:
        elements:
          coding:
            mustSupport: true
            index: 19
            elements:
              system: {short: Offizieller Name eines Staates in deutscher Sprache ISO-3166, mustSupport: true, index: 20}
              version: {index: 21}
              code: {mustSupport: true, index: 22}
              display: {mustSupport: true, index: 23}
              userSelected: {index: 24}
          text: {index: 25}
  versionsnummer:
    url: https://fhir.gevko.de/StructureDefinition/EMDAF_EX_Versionsnummer
    type: Extension
    short: Versionsnummer des Formats
    mustSupport: true
    index: 26
    elements:
      value:
        mustSupport: true
        choices: []
        index: 28
      value[x]:
        elements:
          type:
            mustSupport: true
            index: 29
            elements:
              coding:
                mustSupport: true
                index: 30
                elements:
                  system: {mustSupport: true, index: 31}
                  code: {mustSupport: true, index: 32}
                  display: {mustSupport: true, index: 33}
          system: {mustSupport: true, index: 34}
          value: {short: Versionsnummer des Formats, mustSupport: true, index: 35}
class: profile
kind: resource
url: https://fhir.gevko.de/StructureDefinition/EMDAF_PR_Composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.9.0
required: [section, subject, meta]