PackagesCanonicalsLogsProblems
    Packages
    kbv.ita.vos@2.1.0
    https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference
description: Übergabe von Rezepten, signierten eRezepten oder Medikationsplänen als pkcs#7-, pdf- oder XML-Dateien vom PVS an die VoS und vice versa.
package_name: kbv.ita.vos
derivation: constraint
name: KBV_PR_VoS_DocumentReference
type: DocumentReference
elements:
  description: {index: 88}
  category:
    mustSupport: true
    index: 46
    elements:
      coding:
        mustSupport: true
        index: 47
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          max: 1
          slices:
            XDS:
              match: {system: 'http://ihe-d.de/CodeSystems/IHEXDSclassCode'}
              schema:
                binding: {strength: required, valueSet: 'http://ihe-d.de/ValueSets/IHEXDSclassCode'}
                pattern:
                  type: Coding
                  value: {system: 'http://ihe-d.de/CodeSystems/IHEXDSclassCode'}
                _required: true
                index: 48
                elements:
                  system: {mustSupport: true, index: 49}
                  code: {mustSupport: true, index: 50}
                  display: {mustSupport: true, index: 51}
                required: [display, system, code]
    required: [coding]
  date: {mustSupport: true, index: 57}
  meta:
    mustSupport: true
    index: 1
    elements:
      source: {index: 2}
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference|2.1.0'}
        index: 3
      security: {index: 4}
      tag: {index: 5}
    required: [profile]
  docStatus: {index: 35}
  content:
    mustSupport: true
    index: 90
    elements:
      attachment:
        mustSupport: true
        index: 91
        elements:
          contentType:
            binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_VoS_ContentTypes'}
            mustSupport: true
            index: 92
          data: {mustSupport: true, index: 93}
        required: [contentType, data]
  implicitRules: {index: 6}
  type:
    mustSupport: true
    index: 36
    elements:
      coding:
        mustSupport: true
        array: true
        min: 1
        max: 2
        index: 37
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          max: 2
          slices:
            Dokumententyp:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_VoS_DocumentType'}
                mustSupport: true
                _required: true
                index: 38
                elements:
                  system: {mustSupport: true, index: 39}
                  code: {mustSupport: true, index: 40}
                required: [system, code]
            XDS:
              match: {system: 'http://ihe-d.de/CodeSystems/IHEXDStypeCode'}
              schema:
                short: Dokumenttyp gem. IHE-De-Terminologie
                mustSupport: true
                binding: {strength: required, valueSet: 'http://ihe-d.de/ValueSets/IHEXDStypeCode'}
                pattern:
                  type: Coding
                  value: {system: 'http://ihe-d.de/CodeSystems/IHEXDStypeCode'}
                index: 41
                elements:
                  system: {mustSupport: true, index: 42}
                  code: {mustSupport: true, index: 43}
                  display: {mustSupport: true, index: 44}
                required: [display, system, code]
      text: {index: 45}
    required: [coding]
  author:
    mustSupport: true
    array: true
    max: 2
    index: 58
    slicing:
      rules: closed
      discriminator:
      - {path: type, type: value}
      min: null
      max: 2
      slices:
        Behandelnder:
          match: {type: Practitioner}
          schema:
            type: Reference
            mustSupport: true
            refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Practitioner|2.1.0']
            index: 59
            elements:
              reference: {mustSupport: true, index: 60}
              type:
                pattern: {type: Uri, value: Practitioner}
                mustSupport: true
                index: 61
              identifier: {index: 62}
              display: {index: 63}
            required: [reference, type]
        AusstellendesSystem:
          match: {type: Device}
          schema:
            mustSupport: true
            index: 64
            elements:
              reference: {index: 65}
              type:
                pattern: {type: Uri, value: Device}
                mustSupport: true
                index: 66
              identifier:
                mustSupport: true
                index: 67
                elements:
                  use: {index: 68}
                  type: {index: 69}
                  system:
                    pattern: {type: Uri, value: 'https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer'}
                    mustSupport: true
                    index: 70
                  value: {mustSupport: true, index: 71}
                  period: {index: 72}
                  assigner: {index: 73}
                required: [value, system]
              display: {index: 74}
            required: [identifier, type]
  extension:
    index: 9
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 0
      max: 1
      slices:
        eRezept-Zugriffsdaten:
          match: {url: null}
          schema:
            type: Extension
            isModifier: false
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_VoS_ePrescription_Access|2.1.0
            index: 10
            extensions:
              AccessCode:
                url: null
                mustSupport: true
                _required: true
                index: 12
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 14
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 16
              Task-ID:
                url: null
                mustSupport: true
                _required: true
                index: 17
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 19
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 21
            elements:
              extension:
                array: true
                min: 2
                index: 11
                slicing:
                  rules: closed
                  discriminator:
                  - {path: url, type: value}
                  min: 2
                  slices:
                    AccessCode:
                      match: {url: null}
                      schema:
                        mustSupport: true
                        _required: true
                        index: 12
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 14
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    choices: []
                                    index: 16
                    Task-ID:
                      match: {url: null}
                      schema:
                        mustSupport: true
                        _required: true
                        index: 17
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 19
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    choices: []
                                    index: 21
  contained: {index: 8}
  masterIdentifier:
    short: Versionsspezifischer Identifikator
    mustSupport: true
    index: 22
    elements:
      use: {index: 23}
      type: {index: 24}
      value: {mustSupport: true, index: 25}
      period: {index: 26}
      assigner: {index: 27}
    required: [value]
  custodian:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Organization|2.1.0']
    index: 76
    elements:
      reference: {mustSupport: true, index: 77}
      type: {index: 78}
      identifier: {index: 79}
      display: {index: 80}
    required: [reference]
  status:
    pattern: {type: Code, value: current}
    mustSupport: true
    index: 34
  language: {index: 7}
  id: {mustSupport: true, index: 0}
  identifier:
    short: Versionsunabhängiger Identifikator
    mustSupport: true
    index: 28
    elements:
      use: {index: 29}
      type: {index: 30}
      value: {mustSupport: true, index: 31}
      period: {index: 32}
      assigner: {index: 33}
    required: [value]
  relatesTo:
    short: Medikationsplanverknüpfung
    mustSupport: true
    index: 81
    elements:
      code: {mustSupport: true, index: 82}
      target:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference|2.1.0']
        index: 83
        elements:
          reference: {mustSupport: true, index: 84}
          type: {index: 85}
          identifier: {index: 86}
          display: {index: 87}
        required: [reference]
  context:
    mustSupport: true
    index: 94
    elements:
      encounter: {index: 95}
      event: {index: 96}
      period: {index: 97}
      facilityType: {index: 98}
      practiceSetting: {index: 99}
      sourcePatientInfo: {index: 100}
      related:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Prescription|2.1.0']
        index: 101
        elements:
          reference: {mustSupport: true, index: 102}
          type: {index: 103}
          identifier: {index: 104}
          display: {index: 105}
        required: [reference]
    required: [related]
  securityLabel: {index: 89}
  subject:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Patient|2.1.0']
    index: 52
    elements:
      reference: {mustSupport: true, index: 53}
      type: {index: 54}
      identifier: {index: 55}
      display: {index: 56}
    required: [reference]
  authenticator: {index: 75}
package_version: 2.1.0
extensions:
  eRezept-Zugriffsdaten:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_VoS_ePrescription_Access|2.1.0
    type: Extension
    isModifier: false
    mustSupport: true
    index: 10
    extensions:
      AccessCode:
        url: null
        mustSupport: true
        _required: true
        index: 12
        elements:
          value:
            mustSupport: true
            choices: []
            index: 14
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: []
                    index: 16
      Task-ID:
        url: null
        mustSupport: true
        _required: true
        index: 17
        elements:
          value:
            mustSupport: true
            choices: []
            index: 19
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: []
                    index: 21
    elements:
      extension:
        array: true
        min: 2
        index: 11
        slicing:
          rules: closed
          discriminator:
          - {path: url, type: value}
          min: 2
          slices:
            AccessCode:
              match: {url: null}
              schema:
                mustSupport: true
                _required: true
                index: 12
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 14
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 16
            Task-ID:
              match: {url: null}
              schema:
                mustSupport: true
                _required: true
                index: 17
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 19
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 21
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference
base: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_DocumentReference|1.3.0
version: 2.1.0
required: [id, type, meta, date]