PackagesCanonicalsLogsProblems
    Packages
    rs/de.gkvsv.erezeptabrechnungsdaten@1.3.0-rc1
    https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition
description: TA7 Rechnung - Composition
package_name: rs/de.gkvsv.erezeptabrechnungsdaten
derivation: constraint
name: GKVSV_PR_TA7_Rechnung_Composition
type: Composition
elements:
  category: {index: 27}
  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: 30
    extensions:
      Rechnungsdatum: {url: 'https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_ERP_TA7_Rechnungsdatum', min: 1, max: 1, type: Extension, index: 32}
    elements:
      extension:
        index: 31
        slicing:
          rules: open
          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: 32}
              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.3'}
        type: canonical
        index: 1
    required: [profile]
  encounter: {index: 29}
  section:
    array: true
    min: 2
    index: 50
    slicing:
      rules: closed
      discriminator:
      - {path: code.coding.code, type: value}
      min: 2
      slices:
        Rechnung_List:
          match:
            code:
              coding: {code: LR}
          schema:
            _required: true
            index: 51
            elements:
              orderedBy: {index: 65}
              section: {index: 72}
              mode: {index: 64}
              title: {index: 52}
              emptyReason: {index: 71}
              author: {index: 61}
              code:
                index: 53
                elements:
                  coding:
                    index: 54
                    elements:
                      system:
                        pattern: {type: uri, value: 'https://fhir.gkvsv.de/CodeSystem/GKVSV_CS_ERP_TA7'}
                        type: uri
                        index: 55
                      version: {index: 56}
                      code:
                        pattern: {type: code, value: LR}
                        type: code
                        index: 57
                      display:
                        pattern: {type: string, value: Liste der Rechnungen}
                        type: string
                        index: 58
                      userSelected: {index: 59}
                    required: [code, system]
                  text: {index: 60}
                required: [coding]
              focus: {index: 62}
              entry:
                type: Reference
                refers: ['https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_List|1.3']
                index: 66
                elements:
                  reference: {index: 67}
                  type: {index: 68}
                  identifier: {index: 69}
                  display: {index: 70}
                required: [reference]
              text: {index: 63}
            required: [code, entry]
        Abrechnungsdaten:
          match:
            code:
              coding: {code: AR}
          schema:
            _required: true
            index: 73
            elements:
              orderedBy: {index: 87}
              section: {index: 94}
              mode: {index: 86}
              title: {index: 74}
              emptyReason: {index: 93}
              author: {index: 83}
              code:
                index: 75
                elements:
                  coding:
                    index: 76
                    elements:
                      system:
                        pattern: {type: uri, value: 'https://fhir.gkvsv.de/CodeSystem/GKVSV_CS_ERP_TA7'}
                        type: uri
                        index: 77
                      version: {index: 78}
                      code:
                        pattern: {type: code, value: AR}
                        type: code
                        index: 79
                      display:
                        pattern: {type: string, value: Abrechnungsdaten}
                        type: string
                        index: 80
                      userSelected: {index: 81}
                    required: [code, system]
                  text: {index: 82}
                required: [coding]
              focus: {index: 84}
              entry:
                type: Reference
                refers: ['https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_ERP_eAbrechnungsdaten|1.3']
                index: 88
                elements:
                  reference: {index: 89}
                  type: {index: 90}
                  identifier: {index: 91}
                  display: {index: 92}
                required: [reference]
              text: {index: 85}
            required: [code, entry]
  implicitRules: {index: 2}
  attester: {index: 46}
  type:
    short: Rechnungsart
    index: 19
    elements:
      coding:
        index: 20
        elements:
          system:
            pattern: {type: uri, value: 'https://fhir.gkvsv.de/CodeSystem/GKVSV_CS_ERP_Rechnungsart'}
            type: uri
            index: 21
          version: {index: 22}
          code: {index: 23}
          display:
            pattern: {type: string, value: Rechnung}
            type: string
            index: 24
          userSelected: {index: 25}
        required: [code, system]
      text: {index: 26}
    required: [coding]
  title:
    pattern: {type: string, value: elektronische Rechnung}
    type: string
    index: 44
  author:
    short: Absender-IK
    index: 33
    elements:
      reference: {index: 34}
      type: {index: 35}
      identifier:
        index: 36
        elements:
          use: {index: 37}
          type: {index: 38}
          system:
            pattern: {type: uri, value: 'http://fhir.de/NamingSystem/arge-ik/iknr'}
            type: uri
            index: 39
          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: 40
          period: {index: 41}
          assigner: {index: 42}
        required: [system, value]
      display: {index: 43}
    required: [identifier]
  extension:
    array: true
    min: 2
    index: 6
    slicing:
      rules: open
      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
            elements:
              value[x]:
                elements:
                  value: {short: Empfänger-IK, index: 8}
        kostentraegerIK:
          match: {url: null}
          schema:
            type: Extension
            short: Kostenträger-IK
            url: https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Kostentraeger
            index: 9
            elements:
              value[x]:
                elements:
                  value: {short: Kostenträger-IK, index: 10}
  contained: {index: 5}
  event: {index: 49}
  custodian: {index: 47}
  status:
    pattern: {type: code, value: final}
    type: code
    index: 18
  language: {index: 3}
  identifier:
    short: Rechnungsnummer
    index: 11
    elements:
      use: {index: 12}
      type: {index: 13}
      system:
        pattern: {type: uri, value: 'https://fhir.gkvsv.de/NamingSystem/GKVSV_NS_Rechnungsnummer'}
        type: uri
        index: 14
      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: 15
      period: {index: 16}
      assigner: {index: 17}
    required: [system, value]
  relatesTo: {index: 48}
  subject: {index: 28}
  confidentiality: {index: 45}
  text: {index: 4}
package_version: 1.3.0-rc1
extensions:
  empfaengerIK:
    url: https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Empfaenger
    type: Extension
    short: Empfänger-IK
    index: 7
    elements:
      value[x]:
        elements:
          value: {short: Empfänger-IK, index: 8}
  kostentraegerIK:
    url: https://fhir.gkvsv.de/StructureDefinition/GKVSV_EX_TA7_IK_Kostentraeger
    type: Extension
    short: Kostenträger-IK
    index: 9
    elements:
      value[x]:
        elements:
          value: {short: Kostenträger-IK, index: 10}
class: profile
kind: resource
url: https://fhir.gkvsv.de/StructureDefinition/GKVSV_PR_TA7_Rechnung_Composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: '1.3'
required: [identifier, meta]