PackagesCanonicalsLogsProblems
    Packages
    de.gematik.dipag@1.3.0-beta
    https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang-base
description: Basisprofil für die Einreichung von Rechnungsdokumenten und Anhängen. Es enthält alle kontextübergreifenden Festlegungen. Kontextspezifische Festlegungen erfolgen in den abgeleiteten Profilen für den Versand an Versicherte (DiPagDokumentenmetadatenEingangPatient) und an Kostenträger-Organisationen (DiPagDokumentenmetadatenEingangOrganisation).
package_name: de.gematik.dipag
derivation: constraint
name: DiPagDokumentenmetadatenEingangBase
type: DocumentReference
elements:
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: null
      slices:
        AnhangIdentifier:
          match:
            type:
              coding:
              - {code: anhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'}
          schema:
            short: Anhangs-Identifier
            mustSupport: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: anhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'}
            index: 1
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: anhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'}
                index: 2
              system: {short: NamingSystem des Anhangs-Identifier, mustSupport: true, index: 3}
              value: {short: Anhangs-Identifier, maxLength: 200, mustSupport: true, index: 4}
            required: [value, type, system]
  status:
    mustSupport: true
    pattern: {type: Code, value: current}
    index: 5
  type:
    mustSupport: true
    index: 6
    elements:
      coding:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            DokumentenKlassifizierung:
              match: {system: 'http://dvmd.de/fhir/CodeSystem/kdl'}
              schema:
                binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-sonstigesdokument-type-vs'}
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'http://dvmd.de/fhir/CodeSystem/kdl'}
                index: 8
                elements:
                  system: {mustSupport: true, index: 9}
                  code: {mustSupport: true, index: 10}
                  display: {maxLength: 1024, mustSupport: true, index: 11}
                required: [display, system, code]
            Rechnungstyp:
              match: {code: AM010106, system: 'http://dvmd.de/fhir/CodeSystem/kdl'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: AM010106, system: 'http://dvmd.de/fhir/CodeSystem/kdl'}
                index: 12
              min: 0
              max: 1
    required: [coding]
  description: {maxLength: 5000, mustSupport: true, index: 13}
  content:
    mustSupport: true
    index: 14
    elements:
      attachment:
        elements:
          url: {index: 15}
    slicing:
      rules: open
      discriminator:
      - {path: format, type: pattern}
      min: null
      slices:
        originaleRechnung:
          match:
            format: {code: originaleRechnung, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
          schema:
            mustSupport: true
            index: 16
            elements:
              attachment:
                mustSupport: true
                index: 17
                elements:
                  contentType:
                    mustSupport: true
                    pattern: {type: Code, value: application/pdf}
                    index: 18
                  data: {mustSupport: true, index: 19}
                  url: {index: 20}
                required: [contentType, data]
              format:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: originaleRechnung, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
                index: 21
            required: [format]
        strukturierterRechnungsinhalt:
          match:
            format: {code: rechnungsinhalt, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
          schema:
            mustSupport: true
            index: 22
            elements:
              attachment:
                mustSupport: true
                index: 23
                elements:
                  contentType:
                    mustSupport: true
                    pattern: {type: Code, value: application/fhir+json}
                    index: 24
                  data: {mustSupport: true, index: 25}
                  url: {index: 26}
                required: [contentType, data]
              format:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: rechnungsinhalt, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
                index: 27
            required: [format]
        anhang:
          match:
            format: {code: rechnungsanhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
          schema:
            mustSupport: true
            index: 28
            elements:
              attachment:
                mustSupport: true
                index: 29
                elements:
                  contentType:
                    mustSupport: true
                    pattern: {type: Code, value: application/pdf}
                    index: 30
                  data: {mustSupport: true, index: 31}
                  url: {index: 32}
                required: [contentType, data]
              format:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: rechnungsanhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
                index: 33
            required: [format]
package_version: 1.3.0-beta
class: profile
kind: resource
url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang-base
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.3.0-beta
required: [type, description]