PackagesCanonicalsLogsProblems
    Packages
    tiplu.maia.schnittstellendefinition@1.1.3
    https://tiplu.de/fhir/maia/StructureDefinition/MaiaDokument
description: Das vorliegende Composition-Profil im Use Case eines Dokumentes beschreibt alle verpflichtenden und optionalen Informationen, die ein Datenlieferant für Maia liefern muss.
package_name: tiplu.maia.schnittstellendefinition
derivation: constraint
name: MaiaDokument
type: Composition
elements:
  date:
    mustSupport: true
    index: 13
    extensions:
      DocumentCreationDate: {url: 'https://tiplu.de/fhir/StructureDefinition/DocumentCreationDate', min: 1, max: 1, type: Extension, mustSupport: true, index: 15}
    elements:
      extension:
        index: 14
        slicing:
          slices:
            DocumentCreationDate:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'https://tiplu.de/fhir/StructureDefinition/DocumentCreationDate', index: 15}
              min: 1
              max: 1
    required: [extension]
  encounter:
    type: Reference
    mustSupport: true
    refers: ['https://tiplu.de/fhir/maia/StructureDefinition/MaiaKontaktGesundheitseinrichtung']
    index: 12
  section:
    mustSupport: true
    index: 17
    elements:
      title: {mustSupport: true, index: 18}
      code:
        elements:
          coding:
            mustSupport: true
            index: 19
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: pattern}
              min: 1
              slices:
                TipluCode:
                  match: {system: 'https://tiplu.de/fhir/CodeSystem/DocumentSection'}
                  schema:
                    binding: {strength: required, valueSet: 'https://tiplu.de/fhir/ValueSet/DocumentSection'}
                    mustSupport: true
                    pattern:
                      type: Coding
                      value: {system: 'https://tiplu.de/fhir/CodeSystem/DocumentSection'}
                    _required: true
                    type: Coding
                    index: 20
                    elements:
                      system: {mustSupport: true, index: 21}
                      code: {mustSupport: true, index: 22}
                    required: [code, system]
        required: [coding]
      text: {mustSupport: true, index: 23}
    required: [text]
  type:
    mustSupport: true
    index: 6
    elements:
      coding:
        mustSupport: true
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            TipluCode:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'https://tiplu.de/fhir/ValueSet/DocumentType'}
                mustSupport: true
                _required: true
                index: 8
                elements:
                  system: {mustSupport: true, index: 9}
                  code: {mustSupport: true, index: 10}
                required: [code, system]
    required: [coding]
  title: {mustSupport: true, index: 16}
  extension:
    type: Extension
    mustSupport: true
    url: http://hl7.org/fhir/StructureDefinition/extension-Composition.status
    index: 1
    slicing:
      slices:
        DocumentCompositionStatus:
          match: {}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/StructureDefinition/extension-Composition.status', index: 1}
          min: 0
          max: 1
  status:
    mustSupport: true
    index: 3
    extensions:
      KundenCode: {url: 'https://tiplu.de/fhir/StructureDefinition/DocumentCustomerStatus', min: 0, max: 1, type: Extension, mustSupport: true, index: 5}
    elements:
      extension:
        index: 4
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: null
          slices:
            KundenCode:
              match: {url: null}
              schema: {type: Extension, mustSupport: true, url: 'https://tiplu.de/fhir/StructureDefinition/DocumentCustomerStatus', index: 5}
              min: 0
              max: 1
  id: {mustSupport: true, index: 0}
  identifier: {mustSupport: true, index: 2}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://tiplu.de/fhir/maia/StructureDefinition/MaiaPatient']
    index: 11
package_version: 1.1.3
extensions:
  DocumentCompositionStatus: {url: 'http://hl7.org/fhir/StructureDefinition/extension-Composition.status', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: https://tiplu.de/fhir/maia/StructureDefinition/MaiaDokument
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 1.0.1
required: [encounter, id, subject]