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