PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept@patientenrechnung.r4-1.0.1
    https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_ChargeItem
description: null
package_name: de.gematik.erezept
derivation: constraint
name: GEM_ERPCHRG_PR_ChargeItem
type: ChargeItem
elements:
  meta:
    index: 0
    elements:
      versionId: {index: 1}
      source: {index: 2}
      profile:
        pattern: {type: Canonical, value: 'https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_ChargeItem|1.0'}
        index: 3
      security: {index: 4}
    required: [profile]
  extension:
    index: 5
    slicing:
      rules: closed
      description: Extensions are always sliced by (at least) url
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        markingFlag:
          match: {url: null}
          schema: {type: Extension, short: 'Flag list whether submitted Abrechnungsinformationen for PKV, Taxes, Subsidy', mustSupport: true, url: 'https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_EX_MarkingFlag', index: 6}
          min: 0
          max: 1
  identifier:
    index: 7
    slicing:
      rules: closed
      description: The task ressource contains three identifier. The first one is the identifier for the ask representing one e-prescription. The other identifier are representing the patient as owner of the prescription. One is the "Krankenversichertennummer" which identify each patient by his health insurance company and the other is "Institutionskennzeichen".
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        PrescriptionID:
          match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'}
          schema:
            short: Prescription Identifier
            _required: true
            index: 8
            elements:
              system:
                pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId'}
                index: 9
              value: {index: 10}
            required: [value, system]
        AccessCode:
          match: {system: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode'}
          schema:
            short: AccessCode Identifier
            index: 11
            elements:
              system:
                pattern: {type: Uri, value: 'https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_AccessCode'}
                index: 12
              value: {index: 13}
            required: [value, system]
  status:
    pattern: {type: Code, value: billable}
    index: 14
  code:
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/data-absent-reason'}
            index: 15
          code:
            pattern: {type: Code, value: not-applicable}
            index: 16
  subject:
    elements:
      identifier: {type: Identifier, index: 17}
    required: [identifier]
  enterer:
    short: Pharmacy that initially provided the Abgabedaten in ChargeItem
    index: 18
    elements:
      identifier: {type: Identifier, index: 19}
    required: [identifier]
  supportingInformation:
    mustSupport: true
    array: true
    min: 1
    max: 4
    index: 20
    slicing:
      rules: closed
      discriminator:
      - {path: display, type: value}
      min: 1
      max: 4
      slices:
        prescriptionItemBundle:
          match: {display: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle'}
          schema:
            type: Reference
            refers: ['http://hl7.org/fhir/StructureDefinition/Bundle']
            index: 21
            elements:
              display:
                pattern: {type: String, value: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle'}
                index: 22
            required: [display]
        dispenseItemBinary:
          match: {display: Binary}
          schema:
            type: Reference
            refers: ['http://hl7.org/fhir/StructureDefinition/Binary']
            index: 23
            elements:
              display:
                pattern: {type: String, value: Binary}
                index: 24
            required: [display]
        dispenseItemBundle:
          match: {display: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PKV-PR-ERP-AbgabedatenBundle'}
          schema:
            type: Reference
            refers: ['http://hl7.org/fhir/StructureDefinition/Bundle']
            index: 25
            elements:
              display:
                pattern: {type: String, value: 'http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PKV-PR-ERP-AbgabedatenBundle'}
                index: 26
            required: [display]
        receiptBundle:
          match: {display: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Bundle'}
          schema:
            type: Reference
            refers: ['http://hl7.org/fhir/StructureDefinition/Bundle']
            index: 27
            elements:
              display:
                pattern: {type: String, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Bundle'}
                index: 28
            required: [display]
package_version: patientenrechnung.r4-1.0.1
extensions:
  markingFlag: {url: 'https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_EX_MarkingFlag', min: 0, max: 1, type: Extension, short: 'Flag list whether submitted Abrechnungsinformationen for PKV, Taxes, Subsidy', mustSupport: true, index: 6}
class: profile
kind: resource
url: https://gematik.de/fhir/erpchrg/StructureDefinition/GEM_ERPCHRG_PR_ChargeItem
base: http://hl7.org/fhir/StructureDefinition/ChargeItem
version: '1.0'
required: [supportingInformation, identifier, meta]