PackagesCanonicalsLogsProblems
    Packages
    de.gematik.dipag@1.0.4
    https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang
description: null
package_name: de.gematik.dipag
derivation: constraint
name: DiPagDokumentenmetadatenEingang
type: DocumentReference
elements:
  identifier:
    mustSupport: true
    index: 0
    elements:
      system: {mustSupport: true, index: 1}
      value: {mustSupport: true, index: 2}
    required: [value, system]
  status:
    mustSupport: true
    pattern: {type: Code, value: current}
    index: 3
  type:
    mustSupport: true
    index: 4
    elements:
      coding:
        index: 5
        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: 6
                elements:
                  system: {mustSupport: true, index: 7}
                  code: {mustSupport: true, index: 8}
                  display: {mustSupport: true, index: 9}
                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: 10
              min: 0
              max: 1
    required: [coding]
  subject:
    mustSupport: true
    index: 11
    elements:
      display: {mustSupport: true, index: 12}
    required: [display]
  description: {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:
                    binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-vs'}
                    mustSupport: true
                    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.0.4
class: profile
kind: resource
url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.0.4
required: [identifier, subject, type, description]