Metadaten

Canonicalhttps://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang
Statusactive
Version1.0.6
Basishttp://hl7.org/fhir/StructureDefinition/DocumentReference

Inhalt

idΣ0..1string
id0..1string
id0..1string
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
valueCodingCoding
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
valueDateTimedateTime
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
valueStringstring
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
valueBooleanboolean
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
valueCodingCoding
id0..1string
extensionC0..0Extension
url1..1uriFixed Value
valueReferenceReference
url1..1uriFixed Value
versionIdΣ0..1id
lastUpdatedΣ0..1instant
sourceΣ0..1uri
profileΣ0..*canonical(StructureDefinition)
securityΣ0..*CodingBinding
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
extensionC0..*Extension
modifierExtension?! C0..*Extension
masterIdentifierΣ0..1Identifier
id0..1string
extensionC0..*Extension
useΣ ?!0..1codeBinding
typeΣ0..1CodeableConceptBinding
systemS Σ1..1uri
valueS Σ1..1string
periodΣ C0..1Period
assignerΣ C0..1Reference(Organization)
statusS Σ ?!1..1codeBindingPattern
docStatusΣ0..1codeBinding
id0..1string
extensionC0..*Extension
id0..1string
extensionC0..*Extension
systemS Σ1..1uriPattern
versionΣ0..1string
codeS Σ1..1code
displayS Σ1..1string
userSelectedΣ0..1boolean
RechnungstypS Σ0..1CodingPattern
textΣ0..1string
categoryΣ0..*CodeableConcept
id0..1string
extensionC0..*Extension
referenceΣ C0..1string
typeΣ0..1uriBinding
identifierΣ0..1Identifier
displayS Σ1..1string
dateΣ0..1instant
authorΣ C0..*Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)
authenticatorC0..1Reference(Organization | Practitioner | PractitionerRole)
custodianC0..1Reference(Organization)
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
codeΣ1..1codeBinding
targetΣ C1..1Reference(DocumentReference)
descriptionS Σ1..1string
securityLabelΣ0..*CodeableConceptBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
contentTypeΣ0..1codeBinding
languageΣ0..1codeBinding
data0..1base64Binary
urlΣ0..1url
sizeΣ0..1unsignedInt
hashΣ0..1base64Binary
titleΣ0..1string
creationΣ0..1dateTime
formatΣ0..1CodingBinding
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
contentTypeS Σ1..1codeBindingPattern
languageΣ0..1codeBinding
dataS1..1base64Binary
urlΣ0..0url
sizeΣ0..1unsignedInt
hashΣ0..1base64Binary
titleΣ0..1string
creationΣ0..1dateTime
formatS Σ1..1CodingBindingPattern
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
contentTypeS Σ1..1codeBindingPattern
languageΣ0..1codeBinding
dataS1..1base64Binary
urlΣ0..0url
sizeΣ0..1unsignedInt
hashΣ0..1base64Binary
titleΣ0..1string
creationΣ0..1dateTime
formatS Σ1..1CodingBindingPattern
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
id0..1string
extensionC0..*Extension
contentTypeS Σ1..1codeBindingPattern
languageΣ0..1codeBinding
dataS1..1base64Binary
urlΣ0..0url
sizeΣ0..1unsignedInt
hashΣ0..1base64Binary
titleΣ0..1string
creationΣ0..1dateTime
formatS Σ1..1CodingBindingPattern
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
encounterC0..*Reference(Encounter | EpisodeOfCare)
event0..*CodeableConcept
periodΣ C0..1Period
facilityType0..1CodeableConcept
practiceSetting0..1CodeableConcept
sourcePatientInfoC0..1Reference(Patient)
relatedC0..*Reference(Resource)
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="dipag-dokumentenmetadaten-eingang" />
<url value="https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang" />
<version value="1.0.6" />
<name value="DiPagDokumentenmetadatenEingang" />
<title value="Digitale Patientenrechnung Dokumentenmetadaten Eingang" />
<status value="active" />
<experimental value="false" />
<date value="2026-03-26" />
<publisher value="gematik GmbH" />
<system value="url" />
<value value="http://gematik.de/" />
</telecom>
</contact>
<fhirVersion value="4.0.1" />
<kind value="resource" />
<abstract value="false" />
<type value="DocumentReference" />
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
<derivation value="constraint" />
<element id="DocumentReference">
<path value="DocumentReference" />
<key value="RechnungOderAnhang" />
<severity value="error" />
<human value="Ein Dokument kann entweder ein Anhang enthalten oder ein Rechnungsdokument inkl. strukturierten Rechnungsinhalten." />
<expression value="content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'rechnungsanhang').exists() xor (content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'originaleRechnung').exists() and content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'rechnungsinhalt').exists())" />
<source value="https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang" />
</constraint>
</element>
<element id="DocumentReference.meta.extension:markierung">
<path value="DocumentReference.meta.extension" />
<sliceName value="markierung" />
<comment value="Beim Submit einer Rechnung darf nur die Markierung 'Persönlich' gesetzt werden. Alle anderen Markierungen sind ausschließlich im Fachdienst zu setzen.\n Ein optionaler Freitext mit Details zur Markierung kann über die Extension 'details' angegeben werden." />
<min value="0" />
<max value="*" />
<code value="Extension" />
<profile value="https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung" />
</type>
<mustSupport value="true" />
</element>
<element id="DocumentReference.meta.extension:markierung.extension:markierung">
<path value="DocumentReference.meta.extension.extension" />
<sliceName value="markierung" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.meta.extension:markierung.extension:markierung.value[x]">
<path value="DocumentReference.meta.extension.extension.value[x]" />
<code value="persoenlich" />
</patternCoding>
<mustSupport value="true" />
</element>
<element id="DocumentReference.meta.extension:markierung.extension:details">
<path value="DocumentReference.meta.extension.extension" />
<sliceName value="details" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.meta.extension:markierung.extension:details.value[x]">
<path value="DocumentReference.meta.extension.extension.value[x]" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.identifier">
<path value="DocumentReference.identifier" />
<comment value="Eindeutiger Identifikator vergeben durch das RE-PS (z.B. Interne Dokumentennummer). Das System MUSS eindeutig pro Leistungserbringer:in vergeben werden." />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.identifier.system">
<path value="DocumentReference.identifier.system" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.identifier.value">
<path value="DocumentReference.identifier.value" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.status">
<path value="DocumentReference.status" />
<comment value="Versionierung von Dokumenten ist nicht unterstützt. Nur jeweils die aktuelle Version des Dokumentes wird akzeptiert." />
<patternCode value="current" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.type">
<path value="DocumentReference.type" />
<comment value="Kodierung des Dokumentes als 'Rechnung', sowie darüber hinausgehende Klassifizierung per KDL" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.type.coding">
<path value="DocumentReference.type.coding" />
<type value="pattern" />
<path value="$this" />
</discriminator>
<rules value="open" />
</slicing>
<min value="1" />
</element>
<element id="DocumentReference.type.coding:DokumentenKlassifizierung">
<path value="DocumentReference.type.coding" />
<sliceName value="DokumentenKlassifizierung" />
<min value="0" />
<max value="1" />
<system value="http://dvmd.de/fhir/CodeSystem/kdl" />
</patternCoding>
<mustSupport value="true" />
<strength value="required" />
<valueSet value="https://gematik.de/fhir/dipag/ValueSet/dipag-sonstigesdokument-type-vs" />
</binding>
</element>
<element id="DocumentReference.type.coding:DokumentenKlassifizierung.system">
<path value="DocumentReference.type.coding.system" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.type.coding:DokumentenKlassifizierung.code">
<path value="DocumentReference.type.coding.code" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.type.coding:DokumentenKlassifizierung.display">
<path value="DocumentReference.type.coding.display" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.type.coding:Rechnungstyp">
<path value="DocumentReference.type.coding" />
<sliceName value="Rechnungstyp" />
<min value="0" />
<max value="1" />
<system value="http://dvmd.de/fhir/CodeSystem/kdl" />
<code value="AM010106" />
</patternCoding>
<mustSupport value="true" />
</element>
<element id="DocumentReference.subject">
<path value="DocumentReference.subject" />
<comment value="Vollständiger Name der behandelten Person. Siehe Informationsmodell 'Rechnung' des Feature-Dokuments Digitale Patientenrechnung." />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.subject.display">
<path value="DocumentReference.subject.display" />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.description">
<path value="DocumentReference.description" />
<comment value="Menschenlesbarer Titel des Dokumentes, der dem Versicherten in der UI angezeigt wird. Der Titel kann manuell erfasst oder vom Dateinamen/Metadaten abgeleitet werden. z.B. &quot;Laborbefund vom 28.9.2023&quot;." />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content">
<path value="DocumentReference.content" />
<type value="pattern" />
<path value="format" />
</discriminator>
<rules value="open" />
</slicing>
<mustSupport value="true" />
</element>
<element id="DocumentReference.content.attachment.url">
<path value="DocumentReference.content.attachment.url" />
<comment value="Der FD muss die Base64-kodierten Daten aus attachment.data extrahieren und in eine Binary-Ressource auslagern." />
</element>
<element id="DocumentReference.content:originaleRechnung">
<path value="DocumentReference.content" />
<sliceName value="originaleRechnung" />
<min value="0" />
<max value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:originaleRechnung.attachment">
<path value="DocumentReference.content.attachment" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:originaleRechnung.attachment.contentType">
<path value="DocumentReference.content.attachment.contentType" />
<comment value="Zum Zeitpunkt der Veröffentlichung werden nur PDF-Dokumente als Rechnung seitens der Leistungserbringer:in unterstützt." />
<min value="1" />
<patternCode value="application/pdf" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:originaleRechnung.attachment.data">
<path value="DocumentReference.content.attachment.data" />
<comment value="Base64-kodiertes PDF. Dieses Feld muss durch die Applikation der Leistungserbringer:in gefüllt werden." />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:originaleRechnung.attachment.url">
<path value="DocumentReference.content.attachment.url" />
<max value="0" />
</element>
<element id="DocumentReference.content:originaleRechnung.format">
<path value="DocumentReference.content.format" />
<min value="1" />
<system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs" />
<code value="originaleRechnung" />
</patternCoding>
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:strukturierterRechnungsinhalt">
<path value="DocumentReference.content" />
<sliceName value="strukturierterRechnungsinhalt" />
<min value="0" />
<max value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:strukturierterRechnungsinhalt.attachment">
<path value="DocumentReference.content.attachment" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:strukturierterRechnungsinhalt.attachment.contentType">
<path value="DocumentReference.content.attachment.contentType" />
<comment value="Strukturierte Rechnungsinhalte können seitens der Leistungserbringer:in sowohl als JSON als auch XML übergeben werden." />
<min value="1" />
<patternCode value="application/fhir+json" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:strukturierterRechnungsinhalt.attachment.data">
<path value="DocumentReference.content.attachment.data" />
<comment value="Base64-kodierte Repräsentation der Rechnungsinhalte. Alle Ressourcen sollen in einem collection Bundle zusammengefasst sein, welches durch das Profil [`DiPagRechnungsbundle`](https://gematik.de/fhir/dipag/StructureDefinition/dipag-rechnungsbundle) definiert ist. Dieses Feld muss durch die Applikation der Leistungserbringer:in gefüllt werden." />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:strukturierterRechnungsinhalt.attachment.url">
<path value="DocumentReference.content.attachment.url" />
<max value="0" />
</element>
<element id="DocumentReference.content:strukturierterRechnungsinhalt.format">
<path value="DocumentReference.content.format" />
<min value="1" />
<system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs" />
<code value="rechnungsinhalt" />
</patternCoding>
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:anhang">
<path value="DocumentReference.content" />
<sliceName value="anhang" />
<min value="0" />
<max value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:anhang.attachment">
<path value="DocumentReference.content.attachment" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:anhang.attachment.contentType">
<path value="DocumentReference.content.attachment.contentType" />
<comment value="Zum Zeitpunkt der Veröffentlichung werden nur PDF-Dokumente als Rechnungsanhänge seitens der Leistungserbringer:in unterstützt." />
<min value="1" />
<patternCode value="application/pdf" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:anhang.attachment.data">
<path value="DocumentReference.content.attachment.data" />
<comment value="Base64-kodiertes PDF. Dieses Feld muss durch die Applikation der Leistungserbringer:in gefüllt werden." />
<min value="1" />
<mustSupport value="true" />
</element>
<element id="DocumentReference.content:anhang.attachment.url">
<path value="DocumentReference.content.attachment.url" />
<max value="0" />
</element>
<element id="DocumentReference.content:anhang.format">
<path value="DocumentReference.content.format" />
<min value="1" />
<system value="https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs" />
<code value="rechnungsanhang" />
</patternCoding>
<mustSupport value="true" />
</element>
</differential>
</StructureDefinition>
{
"resourceType": "StructureDefinition",
"id": "dipag-dokumentenmetadaten-eingang",
"url": "https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang",
"version": "1.0.6",
"name": "DiPagDokumentenmetadatenEingang",
"title": "Digitale Patientenrechnung Dokumentenmetadaten Eingang",
"status": "active",
"experimental": false,
"date": "2026-03-26",
"publisher": "gematik GmbH",
"contact": [
{
"telecom": [
{
"system": "url",
"value": "http://gematik.de/"
}
]
}
],
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "DocumentReference",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
"derivation": "constraint",
"element": [
{
"id": "DocumentReference",
"path": "DocumentReference",
{
"key": "RechnungOderAnhang",
"severity": "error",
"human": "Ein Dokument kann entweder ein Anhang enthalten oder ein Rechnungsdokument inkl. strukturierten Rechnungsinhalten.",
"expression": "content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'rechnungsanhang').exists() xor (content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'originaleRechnung').exists() and content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'rechnungsinhalt').exists())",
"source": "https://gematik.de/fhir/dipag/StructureDefinition/dipag-dokumentenmetadaten-eingang"
}
]
},
{
"id": "DocumentReference.meta.extension:markierung",
"path": "DocumentReference.meta.extension",
"sliceName": "markierung",
"comment": "Beim Submit einer Rechnung darf nur die Markierung 'Persönlich' gesetzt werden. Alle anderen Markierungen sind ausschließlich im Fachdienst zu setzen.\n Ein optionaler Freitext mit Details zur Markierung kann über die Extension 'details' angegeben werden.",
"min": 0,
"max": "*",
"type": [
{
"code": "Extension",
"profile": [
"https://gematik.de/fhir/dipag/StructureDefinition/dipag-documentreference-markierung"
]
}
],
"mustSupport": true
},
{
"id": "DocumentReference.meta.extension:markierung.extension:markierung",
"path": "DocumentReference.meta.extension.extension",
"sliceName": "markierung",
"mustSupport": true
},
{
"id": "DocumentReference.meta.extension:markierung.extension:markierung.value[x]",
"path": "DocumentReference.meta.extension.extension.value[x]",
"code": "persoenlich"
},
"mustSupport": true
},
{
"id": "DocumentReference.meta.extension:markierung.extension:details",
"path": "DocumentReference.meta.extension.extension",
"sliceName": "details",
"mustSupport": true
},
{
"id": "DocumentReference.meta.extension:markierung.extension:details.value[x]",
"path": "DocumentReference.meta.extension.extension.value[x]",
"mustSupport": true
},
{
"id": "DocumentReference.identifier",
"path": "DocumentReference.identifier",
"comment": "Eindeutiger Identifikator vergeben durch das RE-PS (z.B. Interne Dokumentennummer). Das System MUSS eindeutig pro Leistungserbringer:in vergeben werden.",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.identifier.system",
"path": "DocumentReference.identifier.system",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.identifier.value",
"path": "DocumentReference.identifier.value",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.status",
"path": "DocumentReference.status",
"comment": "Versionierung von Dokumenten ist nicht unterstützt. Nur jeweils die aktuelle Version des Dokumentes wird akzeptiert.",
"patternCode": "current",
"mustSupport": true
},
{
"id": "DocumentReference.type",
"path": "DocumentReference.type",
"comment": "Kodierung des Dokumentes als 'Rechnung', sowie darüber hinausgehende Klassifizierung per KDL",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.type.coding",
"path": "DocumentReference.type.coding",
"slicing": {
{
"type": "pattern",
"path": "$this"
}
],
"rules": "open"
},
"min": 1
},
{
"id": "DocumentReference.type.coding:DokumentenKlassifizierung",
"path": "DocumentReference.type.coding",
"sliceName": "DokumentenKlassifizierung",
"min": 0,
"max": "1",
"system": "http://dvmd.de/fhir/CodeSystem/kdl"
},
"mustSupport": true,
"binding": {
"strength": "required",
"valueSet": "https://gematik.de/fhir/dipag/ValueSet/dipag-sonstigesdokument-type-vs"
}
},
{
"id": "DocumentReference.type.coding:DokumentenKlassifizierung.system",
"path": "DocumentReference.type.coding.system",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.type.coding:DokumentenKlassifizierung.code",
"path": "DocumentReference.type.coding.code",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.type.coding:DokumentenKlassifizierung.display",
"path": "DocumentReference.type.coding.display",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.type.coding:Rechnungstyp",
"path": "DocumentReference.type.coding",
"sliceName": "Rechnungstyp",
"min": 0,
"max": "1",
"system": "http://dvmd.de/fhir/CodeSystem/kdl",
"code": "AM010106"
},
"mustSupport": true
},
{
"id": "DocumentReference.subject",
"path": "DocumentReference.subject",
"comment": "Vollständiger Name der behandelten Person. Siehe Informationsmodell 'Rechnung' des Feature-Dokuments Digitale Patientenrechnung.",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.subject.display",
"path": "DocumentReference.subject.display",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.description",
"path": "DocumentReference.description",
"comment": "Menschenlesbarer Titel des Dokumentes, der dem Versicherten in der UI angezeigt wird. Der Titel kann manuell erfasst oder vom Dateinamen/Metadaten abgeleitet werden. z.B. &quot;Laborbefund vom 28.9.2023&quot;.",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.content",
"path": "DocumentReference.content",
"slicing": {
{
"type": "pattern",
"path": "format"
}
],
"rules": "open"
},
"mustSupport": true
},
{
"id": "DocumentReference.content.attachment.url",
"path": "DocumentReference.content.attachment.url",
"comment": "Der FD muss die Base64-kodierten Daten aus attachment.data extrahieren und in eine Binary-Ressource auslagern."
},
{
"id": "DocumentReference.content:originaleRechnung",
"path": "DocumentReference.content",
"sliceName": "originaleRechnung",
"min": 0,
"max": "1",
"mustSupport": true
},
{
"id": "DocumentReference.content:originaleRechnung.attachment",
"path": "DocumentReference.content.attachment",
"mustSupport": true
},
{
"id": "DocumentReference.content:originaleRechnung.attachment.contentType",
"path": "DocumentReference.content.attachment.contentType",
"comment": "Zum Zeitpunkt der Veröffentlichung werden nur PDF-Dokumente als Rechnung seitens der Leistungserbringer:in unterstützt.",
"min": 1,
"patternCode": "application/pdf",
"mustSupport": true
},
{
"id": "DocumentReference.content:originaleRechnung.attachment.data",
"path": "DocumentReference.content.attachment.data",
"comment": "Base64-kodiertes PDF. Dieses Feld muss durch die Applikation der Leistungserbringer:in gefüllt werden.",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.content:originaleRechnung.attachment.url",
"path": "DocumentReference.content.attachment.url",
"max": "0"
},
{
"id": "DocumentReference.content:originaleRechnung.format",
"path": "DocumentReference.content.format",
"min": 1,
"system": "https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs",
"code": "originaleRechnung"
},
"mustSupport": true
},
{
"id": "DocumentReference.content:strukturierterRechnungsinhalt",
"path": "DocumentReference.content",
"sliceName": "strukturierterRechnungsinhalt",
"min": 0,
"max": "1",
"mustSupport": true
},
{
"id": "DocumentReference.content:strukturierterRechnungsinhalt.attachment",
"path": "DocumentReference.content.attachment",
"mustSupport": true
},
{
"id": "DocumentReference.content:strukturierterRechnungsinhalt.attachment.contentType",
"path": "DocumentReference.content.attachment.contentType",
"comment": "Strukturierte Rechnungsinhalte können seitens der Leistungserbringer:in sowohl als JSON als auch XML übergeben werden.",
"min": 1,
"patternCode": "application/fhir+json",
"mustSupport": true
},
{
"id": "DocumentReference.content:strukturierterRechnungsinhalt.attachment.data",
"path": "DocumentReference.content.attachment.data",
"comment": "Base64-kodierte Repräsentation der Rechnungsinhalte. Alle Ressourcen sollen in einem collection Bundle zusammengefasst sein, welches durch das Profil [`DiPagRechnungsbundle`](https://gematik.de/fhir/dipag/StructureDefinition/dipag-rechnungsbundle) definiert ist. Dieses Feld muss durch die Applikation der Leistungserbringer:in gefüllt werden.",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.content:strukturierterRechnungsinhalt.attachment.url",
"path": "DocumentReference.content.attachment.url",
"max": "0"
},
{
"id": "DocumentReference.content:strukturierterRechnungsinhalt.format",
"path": "DocumentReference.content.format",
"min": 1,
"system": "https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs",
"code": "rechnungsinhalt"
},
"mustSupport": true
},
{
"id": "DocumentReference.content:anhang",
"path": "DocumentReference.content",
"sliceName": "anhang",
"min": 0,
"max": "1",
"mustSupport": true
},
{
"id": "DocumentReference.content:anhang.attachment",
"path": "DocumentReference.content.attachment",
"mustSupport": true
},
{
"id": "DocumentReference.content:anhang.attachment.contentType",
"path": "DocumentReference.content.attachment.contentType",
"comment": "Zum Zeitpunkt der Veröffentlichung werden nur PDF-Dokumente als Rechnungsanhänge seitens der Leistungserbringer:in unterstützt.",
"min": 1,
"patternCode": "application/pdf",
"mustSupport": true
},
{
"id": "DocumentReference.content:anhang.attachment.data",
"path": "DocumentReference.content.attachment.data",
"comment": "Base64-kodiertes PDF. Dieses Feld muss durch die Applikation der Leistungserbringer:in gefüllt werden.",
"min": 1,
"mustSupport": true
},
{
"id": "DocumentReference.content:anhang.attachment.url",
"path": "DocumentReference.content.attachment.url",
"max": "0"
},
{
"id": "DocumentReference.content:anhang.format",
"path": "DocumentReference.content.format",
"min": 1,
"system": "https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs",
"code": "rechnungsanhang"
},
"mustSupport": true
}
]
}
}

Constraints/Invarianten

NameSchweregradBeschreibungAusdruck
RechnungOderAnhangerrorEin Dokument kann entweder ein Anhang enthalten oder ein Rechnungsdokument inkl. strukturierten Rechnungsinhalten.content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'rechnungsanhang').exists() xor (content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'originaleRechnung').exists() and content.format.where(system = 'https://gematik.de/fhir/dipag/CodeSystem/dipag-attachment-format-cs' and code = 'rechnungsinhalt').exists())

Terminology-Bindings

ElementStaerkeValueSet
DocumentReference.type.coding:DokumentenKlassifizierungrequiredhttps://gematik.de/fhir/dipag/ValueSet/dipag-sonstigesdokument-type-vs