PackagesCanonicalsLogsProblems
    Packages
    de.gkvsv.erezeptabrechnungsdaten@1.5.0-rc
    https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition
description: TA7 Rechnung - Composition
package_name: de.gkvsv.erezeptabrechnungsdaten
derivation: constraint
name: GKVSV_PR_TA7_Rechnung_Composition
type: Composition
elements:
  category: {index: 24}
  date:
    short: Abrechnungszeitraum
    constraint:
      form-1: {human: 'Wert muss ein Datum in der Form: YYYY-MM-DD sein.', source: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', severity: error, expression: 'toString().matches(''^([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?$'')'}
    index: 27
    extensions:
      Rechnungsdatum: {url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_ERP_TA7_Rechnungsdatum', min: 1, max: 1, type: Extension, index: 29}
    elements:
      extension:
        index: 28
        slicing:
          rules: closed
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            Rechnungsdatum:
              match: {url: null}
              schema: {type: Extension, url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_ERP_TA7_Rechnungsdatum', index: 29}
              min: 1
              max: 1
    required: [extension]
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition|1.5'}
        index: 1
    required: [profile]
  encounter: {index: 26}
  section:
    array: true
    min: 2
    index: 47
    slicing:
      rules: closed
      discriminator:
      - {path: code.coding.code, type: value}
      min: 2
      slices:
        Rechnung_List:
          match:
            code:
              coding: {code: LR}
          schema:
            _required: true
            index: 48
            elements:
              orderedBy: {index: 62}
              section:
                elementReference: ['https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', elements, org/fhir/StructureDefinition/Composition#Composition, elements, section]
                index: 69
              mode: {index: 61}
              title: {index: 49}
              emptyReason: {index: 68}
              author: {index: 58}
              code:
                index: 50
                elements:
                  coding:
                    index: 51
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.gkvsv.de/CodeSystem/GKVSV_CS_ERP_TA7'}
                        index: 52
                      version: {index: 53}
                      code:
                        pattern: {type: Code, value: LR}
                        index: 54
                      display:
                        pattern: {type: String, value: Liste der Rechnungen}
                        index: 55
                      userSelected: {index: 56}
                    required: [system, code]
                  text: {index: 57}
                required: [coding]
              focus: {index: 59}
              entry:
                type: Reference
                refers: ['https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_List|1.5.0']
                index: 63
                elements:
                  reference: {index: 64}
                  type: {index: 65}
                  identifier: {index: 66}
                  display: {index: 67}
                required: [reference]
              text: {index: 60}
            required: [entry, code]
        RezeptBundle:
          match:
            code:
              coding: {code: RB}
          schema:
            _required: true
            index: 70
            elements:
              orderedBy: {index: 84}
              section:
                elementReference: ['https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', elements, org/fhir/StructureDefinition/Composition#Composition, elements, section]
                index: 91
              mode: {index: 83}
              title: {index: 71}
              emptyReason: {index: 90}
              author: {index: 80}
              code:
                index: 72
                elements:
                  coding:
                    index: 73
                    elements:
                      system:
                        pattern: {type: Uri, value: 'https://fhir.gkvsv.de/CodeSystem/GKVSV_CS_ERP_TA7'}
                        index: 74
                      version: {index: 75}
                      code:
                        pattern: {type: Code, value: RB}
                        index: 76
                      display:
                        pattern: {type: String, value: Rezept-Bundle}
                        index: 77
                      userSelected: {index: 78}
                    required: [system, code]
                  text: {index: 79}
                required: [coding]
              focus: {index: 81}
              entry:
                type: Reference
                refers: ['https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_RezeptBundle']
                index: 85
                elements:
                  reference: {index: 86}
                  type: {index: 87}
                  identifier: {index: 88}
                  display: {index: 89}
                required: [reference]
              text: {index: 82}
            required: [entry, code]
  implicitRules: {index: 2}
  attester: {index: 43}
  type:
    short: Rechnungsart
    index: 17
    elements:
      coding:
        index: 18
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.gkvsv.de/CodeSystem/GKVSV_CS_ERP_Rechnungsart'}
            index: 19
          version: {index: 20}
          code: {index: 21}
          userSelected: {index: 22}
        required: [system, code]
      text: {index: 23}
    required: [coding]
  title:
    pattern: {type: String, value: elektronische Rechnung}
    index: 41
  author:
    short: Absender-IK
    index: 30
    elements:
      reference: {index: 31}
      type: {index: 32}
      identifier:
        index: 33
        elements:
          use: {index: 34}
          type: {index: 35}
          system:
            pattern: {type: Uri, value: 'http://fhir.de/sid/arge-ik/iknr'}
            index: 36
          value:
            short: Absender-IK
            constraint:
              AbsenderIK-length: {human: Die IK des Absenders muss 9 Zeichen lang und numerisch sein., source: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', severity: error, expression: 'toString().matches(''^\\d{9}$'')'}
            index: 37
          period: {index: 38}
          assigner: {index: 39}
        required: [value, system]
      display: {index: 40}
    required: [identifier]
  extension:
    array: true
    min: 2
    index: 6
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        empfaengerIK:
          match: {url: null}
          schema: {type: Extension, short: Empfänger-IK, url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Empfaenger', index: 7}
          min: 1
          max: 1
        kostentraegerIK:
          match: {url: null}
          schema: {type: Extension, short: Kostenträger-IK, url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Kostentraeger', index: 8}
          min: 1
          max: 1
  contained: {index: 5}
  event: {index: 46}
  custodian: {index: 44}
  status:
    pattern: {type: Code, value: final}
    index: 16
  language: {index: 3}
  identifier:
    short: Rechnungsnummer
    index: 9
    elements:
      use: {index: 10}
      type: {index: 11}
      system:
        pattern: {type: Uri, value: 'https://fhir.gkvsv.de/NamingSystem/GKVSV_NS_Rechnungsnummer'}
        index: 12
      value:
        short: Rechnungsnummer
        constraint:
          Rechnungsnummer-maxLength: {human: Die Rechnungsnummer darf maximal 20 Zeichen lang sein., source: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', severity: error, expression: length() <= 20}
          char-1: {human: 'Die Rechnungsnummer darf nicht die Zeichen  "/:?*\"<>|" enthalten.', source: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', severity: error, expression: 'toString().matches(''^\\S*[\/:?*\\\"<>|]\\S*$'').not()'}
          char-2: {human: Die Rechnungsnummer darf nicht die Zeichenkette "\\" enthalten., source: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition', severity: error, expression: toString().contains('\\').not()}
        index: 13
      period: {index: 14}
      assigner: {index: 15}
    required: [value, system]
  relatesTo: {index: 45}
  subject: {index: 25}
  confidentiality: {index: 42}
  text: {index: 4}
package_version: 1.5.0-rc
extensions:
  empfaengerIK: {url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Empfaenger', min: 1, max: 1, type: Extension, short: Empfänger-IK, index: 7}
  kostentraegerIK: {url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Kostentraeger', min: 1, max: 1, type: Extension, short: Kostenträger-IK, index: 8}
class: profile
kind: resource
url: https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 1.5.0
required: [identifier, meta]