PackagesCanonicalsLogsProblems
    Packages
    de.gematik.dipag@1.0.7
    https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang
description: null
package_name: de.gematik.dipag
derivation: constraint
name: DiPagDokumentenmetadatenEingang
type: DocumentReference
elements:
  meta:
    extensions:
      markierung:
        url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung
        type: Extension
        mustSupport: true
        index: 0
        extensions:
          markierung:
            url: null
            mustSupport: true
            index: 1
            elements:
              value:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: persoenlich}
                choices: []
                index: 3
          details:
            url: null
            mustSupport: true
            index: 4
            elements:
              value:
                maxLength: 1024
                mustSupport: true
                choices: []
                index: 6
        elements:
          extension:
            mustSupport: true
            index: 1
            slicing:
              slices:
                markierung:
                  match: {}
                  schema:
                    mustSupport: true
                    index: 1
                    elements:
                      value:
                        mustSupport: true
                        pattern:
                          type: Coding
                          value: {code: persoenlich}
                        choices: []
                        index: 3
                details:
                  match: {}
                  schema:
                    mustSupport: true
                    index: 4
                    elements:
                      value:
                        maxLength: 1024
                        mustSupport: true
                        choices: []
                        index: 6
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung
        index: 0
        slicing:
          slices:
            markierung:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung
                index: 0
                extensions:
                  markierung:
                    url: null
                    mustSupport: true
                    index: 1
                    elements:
                      value:
                        mustSupport: true
                        pattern:
                          type: Coding
                          value: {code: persoenlich}
                        choices: []
                        index: 3
                  details:
                    url: null
                    mustSupport: true
                    index: 4
                    elements:
                      value:
                        maxLength: 1024
                        mustSupport: true
                        choices: []
                        index: 6
                elements:
                  extension:
                    mustSupport: true
                    index: 1
                    slicing:
                      slices:
                        markierung:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 1
                            elements:
                              value:
                                mustSupport: true
                                pattern:
                                  type: Coding
                                  value: {code: persoenlich}
                                choices: []
                                index: 3
                        details:
                          match: {}
                          schema:
                            mustSupport: true
                            index: 4
                            elements:
                              value:
                                maxLength: 1024
                                mustSupport: true
                                choices: []
                                index: 6
  identifier:
    mustSupport: true
    index: 7
    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: 8
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: anhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'}
                index: 9
              system: {short: NamingSystem des Anhangs-Identifier, mustSupport: true, index: 10}
              value: {short: Anhangs-Identifier, maxLength: 200, mustSupport: true, index: 11}
            required: [value, type, system]
  status:
    mustSupport: true
    pattern: {type: Code, value: current}
    index: 12
  type:
    mustSupport: true
    index: 13
    elements:
      coding:
        index: 14
        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: 15
                elements:
                  system: {mustSupport: true, index: 16}
                  code: {mustSupport: true, index: 17}
                  display: {mustSupport: true, index: 18}
                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: 19
              min: 0
              max: 1
    required: [coding]
  description: {maxLength: 5000, mustSupport: true, index: 20}
  content:
    mustSupport: true
    index: 21
    elements:
      attachment:
        elements:
          url: {index: 22}
    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: 23
            elements:
              attachment:
                mustSupport: true
                index: 24
                elements:
                  contentType:
                    mustSupport: true
                    pattern: {type: Code, value: application/pdf}
                    index: 25
                  data: {mustSupport: true, index: 26}
                  url: {index: 27}
                required: [contentType, data]
              format:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: originaleRechnung, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
                index: 28
            required: [format]
        strukturierterRechnungsinhalt:
          match:
            format: {code: rechnungsinhalt, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
          schema:
            mustSupport: true
            index: 29
            elements:
              attachment:
                mustSupport: true
                index: 30
                elements:
                  contentType:
                    mustSupport: true
                    pattern: {type: Code, value: application/fhir+json}
                    index: 31
                  data: {mustSupport: true, index: 32}
                  url: {index: 33}
                required: [contentType, data]
              format:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: rechnungsinhalt, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
                index: 34
            required: [format]
        anhang:
          match:
            format: {code: rechnungsanhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
          schema:
            mustSupport: true
            index: 35
            elements:
              attachment:
                mustSupport: true
                index: 36
                elements:
                  contentType:
                    mustSupport: true
                    pattern: {type: Code, value: application/pdf}
                    index: 37
                  data: {mustSupport: true, index: 38}
                  url: {index: 39}
                required: [contentType, data]
              format:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {code: rechnungsanhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'}
                index: 40
            required: [format]
package_version: 1.0.7
class: profile
kind: resource
url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.0.7
required: [type, description]