description: null package_name: de.gematik.dipag derivation: constraint name: DiPagDokumentenmetadatenIntern type: DocumentReference elements: description: {mustSupport: true, index: 65} meta: extensions: markierung: url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung type: Extension mustSupport: true index: 2 extensions: markierung: url: null mustSupport: true index: 3 elements: value: mustSupport: true choices: [] index: 5 zeitpunkt: url: null mustSupport: true index: 6 elements: value: mustSupport: true choices: [] index: 8 details: url: null mustSupport: true index: 9 elements: value: mustSupport: true choices: [] index: 11 artDerArchivierung: url: null mustSupport: true index: 12 elements: value: mustSupport: true choices: [] index: 14 kostentraeger: url: null mustSupport: true index: 15 elements: value: mustSupport: true choices: [] index: 17 value[x]: elements: identifier: {mustSupport: true, index: 18} display: {mustSupport: true, index: 19} elements: extension: mustSupport: true index: 3 slicing: slices: markierung: match: {} schema: mustSupport: true index: 3 elements: value: mustSupport: true choices: [] index: 5 zeitpunkt: match: {} schema: mustSupport: true index: 6 elements: value: mustSupport: true choices: [] index: 8 details: match: {} schema: mustSupport: true index: 9 elements: value: mustSupport: true choices: [] index: 11 artDerArchivierung: match: {} schema: mustSupport: true index: 12 elements: value: mustSupport: true choices: [] index: 14 kostentraeger: match: {} schema: mustSupport: true index: 15 elements: value: mustSupport: true choices: [] index: 17 value[x]: elements: identifier: {mustSupport: true, index: 18} display: {mustSupport: true, index: 19} elements: extension: mustSupport: true index: 1 slicing: slices: markierung: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung index: 2 extensions: markierung: url: null mustSupport: true index: 3 elements: value: mustSupport: true choices: [] index: 5 zeitpunkt: url: null mustSupport: true index: 6 elements: value: mustSupport: true choices: [] index: 8 details: url: null mustSupport: true index: 9 elements: value: mustSupport: true choices: [] index: 11 artDerArchivierung: url: null mustSupport: true index: 12 elements: value: mustSupport: true choices: [] index: 14 kostentraeger: url: null mustSupport: true index: 15 elements: value: mustSupport: true choices: [] index: 17 value[x]: elements: identifier: {mustSupport: true, index: 18} display: {mustSupport: true, index: 19} elements: extension: mustSupport: true index: 3 slicing: slices: markierung: match: {} schema: mustSupport: true index: 3 elements: value: mustSupport: true choices: [] index: 5 zeitpunkt: match: {} schema: mustSupport: true index: 6 elements: value: mustSupport: true choices: [] index: 8 details: match: {} schema: mustSupport: true index: 9 elements: value: mustSupport: true choices: [] index: 11 artDerArchivierung: match: {} schema: mustSupport: true index: 12 elements: value: mustSupport: true choices: [] index: 14 kostentraeger: match: {} schema: mustSupport: true index: 15 elements: value: mustSupport: true choices: [] index: 17 value[x]: elements: identifier: {mustSupport: true, index: 18} display: {mustSupport: true, index: 19} tag: mustSupport: true index: 20 slicing: rules: open discriminator: - {path: $this, type: pattern} min: null slices: dipag-rechnungsstatus: match: {} schema: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-rechnungsstatus-vs'} mustSupport: true index: 21 elements: system: {mustSupport: true, index: 22} code: {mustSupport: true, index: 23} required: [system, code] content: mustSupport: true index: 66 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: 67 elements: attachment: mustSupport: true index: 68 extensions: signature: url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature type: Extension mustSupport: true index: 69 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 70 when: {mustSupport: true, index: 71} who: mustSupport: true index: 72 elements: identifier: mustSupport: true index: 73 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 74 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 75 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 76 sigFormat: {mustSupport: true, index: 77} data: {mustSupport: true, index: 78} elements: extension: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 69 slicing: slices: signature: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 69 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 70 when: {mustSupport: true, index: 71} who: mustSupport: true index: 72 elements: identifier: mustSupport: true index: 73 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 74 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 75 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 76 sigFormat: {mustSupport: true, index: 77} data: {mustSupport: true, index: 78} contentType: mustSupport: true pattern: {type: Code, value: application/pdf} index: 79 data: {index: 80} url: {mustSupport: true, index: 81} required: [url, contentType] format: mustSupport: true pattern: type: Coding value: {code: originaleRechnung, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} index: 82 required: [format] angereicherteRechnung: match: format: {code: angereichertesPDF, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} schema: mustSupport: true index: 83 elements: attachment: mustSupport: true index: 84 extensions: signature: url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature type: Extension mustSupport: true index: 85 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 86 when: {mustSupport: true, index: 87} who: mustSupport: true index: 88 elements: identifier: mustSupport: true index: 89 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 90 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 91 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 92 sigFormat: {mustSupport: true, index: 93} data: {mustSupport: true, index: 94} elements: extension: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 85 slicing: slices: signature: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 85 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 86 when: {mustSupport: true, index: 87} who: mustSupport: true index: 88 elements: identifier: mustSupport: true index: 89 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 90 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 91 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 92 sigFormat: {mustSupport: true, index: 93} data: {mustSupport: true, index: 94} contentType: mustSupport: true pattern: {type: Code, value: application/pdf} index: 95 data: {index: 96} url: {mustSupport: true, index: 97} required: [url, contentType] format: mustSupport: true pattern: type: Coding value: {code: angereichertesPDF, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} index: 98 required: [format] strukturierterRechnungsinhalt: match: format: {code: rechnungsinhalt, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} schema: mustSupport: true index: 99 elements: attachment: mustSupport: true index: 100 extensions: signature: url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature type: Extension mustSupport: true index: 101 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 102 when: {mustSupport: true, index: 103} who: mustSupport: true index: 104 elements: identifier: mustSupport: true index: 105 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 106 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 107 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 108 sigFormat: {mustSupport: true, index: 109} data: {mustSupport: true, index: 110} elements: extension: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 101 slicing: slices: signature: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 101 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 102 when: {mustSupport: true, index: 103} who: mustSupport: true index: 104 elements: identifier: mustSupport: true index: 105 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 106 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 107 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 108 sigFormat: {mustSupport: true, index: 109} data: {mustSupport: true, index: 110} contentType: mustSupport: true pattern: {type: Code, value: application/fhir+json} index: 111 data: {index: 112} url: {mustSupport: true, index: 113} required: [url, contentType] format: mustSupport: true pattern: type: Coding value: {code: rechnungsinhalt, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} index: 114 required: [format] anhang: match: format: {code: rechnungsanhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} schema: mustSupport: true index: 115 elements: attachment: mustSupport: true index: 116 extensions: signature: url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature type: Extension mustSupport: true index: 117 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 118 when: {mustSupport: true, index: 119} who: mustSupport: true index: 120 elements: identifier: mustSupport: true index: 121 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 122 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 123 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 124 sigFormat: {mustSupport: true, index: 125} data: {mustSupport: true, index: 126} elements: extension: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 117 slicing: slices: signature: match: {} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 117 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 118 when: {mustSupport: true, index: 119} who: mustSupport: true index: 120 elements: identifier: mustSupport: true index: 121 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 122 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 123 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 124 sigFormat: {mustSupport: true, index: 125} data: {mustSupport: true, index: 126} contentType: mustSupport: true pattern: {type: Code, value: application/pdf} index: 127 data: {index: 128} url: {mustSupport: true, index: 129} required: [url, contentType] format: mustSupport: true pattern: type: Coding value: {code: rechnungsanhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs'} index: 130 required: [format] type: mustSupport: true index: 53 elements: coding: index: 54 slicing: rules: open discriminator: - {path: $this, type: pattern} min: 1 slices: DokumentenKlassifizierung: match: {} schema: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-sonstigesdokument-type-vs'} mustSupport: true index: 55 elements: system: {mustSupport: true, index: 56} code: {mustSupport: true, index: 57} display: {maxLength: 1024, mustSupport: true, index: 58} 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: 59 min: 0 max: 1 required: [coding] author: mustSupport: true index: 62 elements: identifier: {type: Identifier, mustSupport: true, index: 63} display: {maxLength: 1024, mustSupport: true, index: 64} required: [identifier, display] extension: mustSupport: true index: 24 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: docRef-signature: match: {url: null} schema: type: Extension mustSupport: true url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature index: 25 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 26 when: {mustSupport: true, index: 27} who: mustSupport: true index: 28 elements: identifier: mustSupport: true index: 29 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 30 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 31 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 32 sigFormat: {mustSupport: true, index: 33} data: {mustSupport: true, index: 34} rechnungsdatum: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-rechnungsdatum', index: 35} min: 0 max: 1 zahlungszieldatum: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-zahlungsziel', index: 36} min: 0 max: 1 gesamtbetrag: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-gesamtbetrag', index: 37} min: 0 max: 1 fachrichtung: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-fachrichtung', index: 38} min: 0 max: 1 behandlungsart: match: {url: null} schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-behandlungsart', index: 39} min: 0 max: 1 status: mustSupport: true pattern: {type: Code, value: current} index: 52 id: {index: 0} identifier: mustSupport: true index: 40 slicing: rules: open discriminator: - {path: $this, type: pattern} min: 1 slices: Token: match: {system: 'https://gematik.de/fhir/sid/dipag-token'} schema: short: Rechnungs-Token (Dokumenttoken) mustSupport: true _required: true pattern: type: Identifier value: {system: 'https://gematik.de/fhir/sid/dipag-token'} index: 41 elements: system: short: NamingSystem des Rechnungs-Tokens pattern: {type: Uri, value: 'https://gematik.de/fhir/sid/dipag-token'} mustSupport: true index: 42 value: {short: Rechnungs-Token (Dokumenttoken), mustSupport: true, index: 43} required: [value, system] Rechnungsnummer: match: type: coding: - {code: invoice, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'} schema: short: Rechnungs-Nr. (der LEI) mustSupport: true pattern: type: Identifier value: type: coding: - {code: invoice, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'} index: 44 elements: type: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: invoice, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'} index: 45 system: {short: NamingSystem der Rechnungs-Nr. (der LEI), mustSupport: true, index: 46} value: {short: Rechnungs-Nr. (der LEI), mustSupport: true, index: 47} required: [value, type, system] 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: 48 elements: type: mustSupport: true pattern: type: CodeableConcept value: coding: - {code: anhang, system: 'https://gematik.de/fhir/dipag/CodeSystem/dipag-rechnung-identifier-type-cs'} index: 49 system: {short: NamingSystem des Anhangs-Identifier, mustSupport: true, index: 50} value: {short: Anhangs-Identifier, mustSupport: true, index: 51} required: [value, type, system] context: mustSupport: true index: 131 elements: related: mustSupport: true index: 132 slicing: rules: open discriminator: - {path: type, type: pattern} min: 1 slices: patient: match: {type: Patient} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Patient'] _required: true index: 133 elements: type: pattern: {type: Uri, value: Patient} mustSupport: true index: 134 required: [type] anhaenge: match: {type: DocumentReference} schema: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/DocumentReference'] array: true index: 135 elements: type: pattern: {type: Uri, value: DocumentReference} mustSupport: true index: 136 required: [type] required: [related] subject: mustSupport: true index: 60 elements: display: {maxLength: 1024, mustSupport: true, index: 61} required: [display] package_version: 1.0.8 extensions: docRef-signature: url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-signature type: Extension mustSupport: true index: 25 elements: value[x]: elements: type: mustSupport: true pattern: type: Coding value: {code: 1.2.840.10065.1.12.1.13, system: 'urn:iso-astm:E1762-95:2013'} index: 26 when: {mustSupport: true, index: 27} who: mustSupport: true index: 28 elements: identifier: mustSupport: true index: 29 elements: system: pattern: {type: Uri, value: 'urn:ietf:rfc:3986'} mustSupport: true index: 30 value: mustSupport: true pattern: {type: String, value: 'urn:oid:1.2.276.0.76.4.323'} index: 31 targetFormat: binding: {strength: required, valueSet: 'https://gematik.de/fhir/dipag/ValueSet/dipag-restricted-mime-types-in-binary-vs'} mustSupport: true index: 32 sigFormat: {mustSupport: true, index: 33} data: {mustSupport: true, index: 34} rechnungsdatum: {url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-rechnungsdatum', min: 0, max: 1, type: Extension, mustSupport: true, index: 35} zahlungszieldatum: {url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-zahlungsziel', min: 0, max: 1, type: Extension, mustSupport: true, index: 36} gesamtbetrag: {url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-gesamtbetrag', min: 0, max: 1, type: Extension, mustSupport: true, index: 37} fachrichtung: {url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-docref-fachrichtung', min: 0, max: 1, type: Extension, mustSupport: true, index: 38} behandlungsart: {url: 'https://gematik.de/fhir/dipag/StructureDefinition/dipag-behandlungsart', min: 0, max: 1, type: Extension, mustSupport: true, index: 39} class: profile kind: resource url: https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-intern base: http://hl7.org/fhir/StructureDefinition/DocumentReference version: 1.0.8 required: [identifier, subject, type, description]