{
"description": "Übergabe von Rezepten, signierten eRezepten oder Medikationsplänen als pkcs#7-, pdf- oder XML-Dateien vom PVS an die VoS und vice versa.",
"_filename": "StructureDefinition-KBV-PR-VoS-DocumentReference.json",
"package_name": "kbv.ita.vos",
"date": "2025-10-01",
"derivation": "constraint",
"publisher": "Kassenärztliche Bundesvereinigung",
"fhirVersion": "4.0.1",
"name": "KBV_PR_VoS_DocumentReference",
"mapping": [ {
"uri": "http://hl7.org/v3/cda",
"name": "CDA (R2)",
"identity": "cda"
}, {
"uri": "http://hl7.org/fhir/composition",
"name": "FHIR Composition",
"identity": "fhircomposition"
}, {
"uri": "http://hl7.org/v3",
"name": "RIM Mapping",
"identity": "rim"
}, {
"uri": "http://hl7.org/v2",
"name": "HL7 v2 Mapping",
"identity": "v2"
}, {
"uri": "http://hl7.org/fhir/fivews",
"name": "FiveWs Pattern Mapping",
"identity": "w5"
}, {
"uri": "http://hl7.org/fhir/workflow",
"name": "Workflow Pattern",
"identity": "workflow"
}, {
"uri": "http://ihe.net/xds",
"name": "XDS metadata equivalent",
"identity": "xds"
} ],
"abstract": false,
"type": "DocumentReference",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "KBV_PR_VoS_DocumentReference",
"package_version": "2.2.0-kommentierung2",
"status": "draft",
"id": "bba6e4f8-75fa-4c1a-b724-75fe13c1d98a",
"kind": "resource",
"url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference",
"version": "2.2.0",
"differential": {
"element": [ {
"id": "DocumentReference",
"path": "DocumentReference",
"constraint": [ {
"key": "-vos-Extension-eRezept",
"human": "Die Extension mit den Zugriffsdaten des eRezepts muss genau dann verwendet werden, wenn der DokumentenTyp ein signiertes eRezept ist.",
"source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference",
"severity": "error",
"expression": "(extension('https://fhir.kbv.de/StructureDefinition/KBV_EX_VoS_ePrescription_Access').empty() and (type.coding.where(code='Signiertes_eRezept').exists().not())) or (extension('https://fhir.kbv.de/StructureDefinition/KBV_EX_VoS_ePrescription_Access').exists() and type.coding.where(code='Signiertes_eRezept').exists())"
} ],
"definition": "Das Profil beinhaltet ein Rezept, ein signiertes eRezept oder einen Medikationsplan als pkcs#7-, pdf- oder XML-Datei"
}, {
"id": "DocumentReference.id",
"min": 1,
"path": "DocumentReference.id",
"mustSupport": true
}, {
"id": "DocumentReference.meta",
"min": 1,
"path": "DocumentReference.meta",
"mustSupport": true
}, {
"id": "DocumentReference.meta.source",
"max": "0",
"path": "DocumentReference.meta.source"
}, {
"id": "DocumentReference.meta.profile",
"min": 1,
"path": "DocumentReference.meta.profile",
"slicing": {
"rules": "open",
"discriminator": [ {
"path": "$this",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "DocumentReference.meta.profile:vosProfile",
"max": "1",
"min": 1,
"path": "DocumentReference.meta.profile",
"sliceName": "vosProfile",
"mustSupport": true,
"fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference|2.2.0"
}, {
"id": "DocumentReference.meta.security",
"max": "0",
"path": "DocumentReference.meta.security"
}, {
"id": "DocumentReference.meta.tag",
"max": "0",
"path": "DocumentReference.meta.tag"
}, {
"id": "DocumentReference.implicitRules",
"max": "0",
"path": "DocumentReference.implicitRules"
}, {
"id": "DocumentReference.language",
"max": "0",
"path": "DocumentReference.language"
}, {
"id": "DocumentReference.contained",
"max": "0",
"path": "DocumentReference.contained"
}, {
"id": "DocumentReference.extension",
"max": "1",
"path": "DocumentReference.extension",
"slicing": {
"rules": "closed",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
}
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten",
"max": "1",
"min": 0,
"path": "DocumentReference.extension",
"type": [ {
"code": "Extension",
"profile": [ "https://fhir.kbv.de/StructureDefinition/KBV_EX_VoS_ePrescription_Access" ]
} ],
"sliceName": "eRezept-Zugriffsdaten",
"isModifier": false,
"mustSupport": true
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten.extension:AccessCode",
"path": "DocumentReference.extension.extension",
"sliceName": "AccessCode",
"mustSupport": true
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten.extension:AccessCode.value[x]",
"path": "DocumentReference.extension.extension.value[x]",
"mustSupport": true
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten.extension:AccessCode.value[x]:valueString",
"path": "DocumentReference.extension.extension.value[x]",
"type": [ {
"code": "string"
} ],
"sliceName": "valueString",
"mustSupport": true
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten.extension:Task-ID",
"path": "DocumentReference.extension.extension",
"sliceName": "Task-ID",
"mustSupport": true
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten.extension:Task-ID.value[x]",
"path": "DocumentReference.extension.extension.value[x]",
"mustSupport": true
}, {
"id": "DocumentReference.extension:eRezept-Zugriffsdaten.extension:Task-ID.value[x]:valueString",
"path": "DocumentReference.extension.extension.value[x]",
"type": [ {
"code": "string"
} ],
"sliceName": "valueString",
"mustSupport": true
}, {
"id": "DocumentReference.masterIdentifier",
"path": "DocumentReference.masterIdentifier",
"short": "Versionsspezifischer Identifikator",
"definition": "Angabe eines versionsabhängigen Identifiers für das Dokument.",
"mustSupport": true
}, {
"id": "DocumentReference.masterIdentifier.use",
"max": "0",
"path": "DocumentReference.masterIdentifier.use"
}, {
"id": "DocumentReference.masterIdentifier.type",
"max": "0",
"path": "DocumentReference.masterIdentifier.type"
}, {
"id": "DocumentReference.masterIdentifier.value",
"min": 1,
"path": "DocumentReference.masterIdentifier.value",
"mustSupport": true
}, {
"id": "DocumentReference.masterIdentifier.period",
"max": "0",
"path": "DocumentReference.masterIdentifier.period"
}, {
"id": "DocumentReference.masterIdentifier.assigner",
"max": "0",
"path": "DocumentReference.masterIdentifier.assigner"
}, {
"id": "DocumentReference.identifier",
"path": "DocumentReference.identifier",
"short": "Versionsunabhängiger Identifikator",
"definition": "Angabe von versionsunabhängigen Identifiern für das Dokument.",
"mustSupport": true
}, {
"id": "DocumentReference.identifier.use",
"max": "0",
"path": "DocumentReference.identifier.use"
}, {
"id": "DocumentReference.identifier.type",
"max": "0",
"path": "DocumentReference.identifier.type"
}, {
"id": "DocumentReference.identifier.value",
"min": 1,
"path": "DocumentReference.identifier.value",
"mustSupport": true
}, {
"id": "DocumentReference.identifier.period",
"max": "0",
"path": "DocumentReference.identifier.period"
}, {
"id": "DocumentReference.identifier.assigner",
"max": "0",
"path": "DocumentReference.identifier.assigner"
}, {
"id": "DocumentReference.status",
"path": "DocumentReference.status",
"fixedCode": "current",
"mustSupport": true
}, {
"id": "DocumentReference.docStatus",
"max": "0",
"path": "DocumentReference.docStatus"
}, {
"id": "DocumentReference.type",
"min": 1,
"path": "DocumentReference.type",
"mustSupport": true
}, {
"id": "DocumentReference.type.coding",
"max": "2",
"min": 1,
"path": "DocumentReference.type.coding",
"slicing": {
"rules": "closed",
"discriminator": [ {
"path": "$this",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "DocumentReference.type.coding:xds",
"path": "DocumentReference.type.coding",
"short": "Dokumenttyp gem. IHE-De-Terminologie",
"sliceName": "xds",
"definition": "Die Übermittlung des xds-Type-Codes ist im Rahmen der Dokumentenbereitstellung für Clients nicht verpflichtend, muss jedoch vom Server bei der Entgegennahme ggf. ergänzt und bei der Dokumentenabfrage zurückgegeben werden. Der XDS-Type-Code kann über die im Rahmen der [KDL-Spezifikation](https://simplifier.net/kdl) publizierten [ConceptMaps](https://simplifier.net/kdl/~resources?category=ConceptMap) aus dem KDL-Code ermittelt werden.",
"mustSupport": true,
"patternCoding": {
"system": "http://ihe-d.de/CodeSystems/IHEXDStypeCode"
}
}, {
"id": "DocumentReference.type.coding:xds.system",
"path": "DocumentReference.type.coding.system",
"mustSupport": true
}, {
"id": "DocumentReference.type.coding:xds.code",
"path": "DocumentReference.type.coding.code",
"mustSupport": true
}, {
"id": "DocumentReference.type.coding:xds.display",
"path": "DocumentReference.type.coding.display",
"mustSupport": true
}, {
"id": "DocumentReference.type.coding:Dokumententyp",
"max": "1",
"min": 1,
"path": "DocumentReference.type.coding",
"binding": {
"strength": "required",
"valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_VoS_DocumentType"
},
"sliceName": "Dokumententyp",
"mustSupport": true
}, {
"id": "DocumentReference.type.coding:Dokumententyp.system",
"min": 1,
"path": "DocumentReference.type.coding.system",
"mustSupport": true
}, {
"id": "DocumentReference.type.coding:Dokumententyp.code",
"min": 1,
"path": "DocumentReference.type.coding.code",
"mustSupport": true
}, {
"id": "DocumentReference.type.text",
"max": "0",
"path": "DocumentReference.type.text"
}, {
"id": "DocumentReference.category",
"max": "1",
"path": "DocumentReference.category",
"mustSupport": true
}, {
"id": "DocumentReference.category.coding",
"max": "1",
"min": 1,
"path": "DocumentReference.category.coding",
"slicing": {
"rules": "closed",
"discriminator": [ {
"path": "$this",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "DocumentReference.category.coding:xds",
"min": 1,
"path": "DocumentReference.category.coding",
"sliceName": "xds",
"mustSupport": true,
"patternCoding": {
"system": "http://ihe-d.de/CodeSystems/IHEXDSclassCode"
}
}, {
"id": "DocumentReference.category.coding:xds.system",
"path": "DocumentReference.category.coding.system",
"mustSupport": true
}, {
"id": "DocumentReference.category.coding:xds.code",
"path": "DocumentReference.category.coding.code",
"mustSupport": true
}, {
"id": "DocumentReference.category.coding:xds.display",
"path": "DocumentReference.category.coding.display",
"mustSupport": true
}, {
"id": "DocumentReference.subject",
"path": "DocumentReference.subject",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Patient|2.2.0" ]
} ],
"mustSupport": true
}, {
"id": "DocumentReference.subject.reference",
"min": 1,
"path": "DocumentReference.subject.reference",
"mustSupport": true
}, {
"id": "DocumentReference.subject.type",
"max": "0",
"path": "DocumentReference.subject.type"
}, {
"id": "DocumentReference.subject.identifier",
"max": "0",
"path": "DocumentReference.subject.identifier"
}, {
"id": "DocumentReference.subject.display",
"max": "0",
"path": "DocumentReference.subject.display"
}, {
"id": "DocumentReference.date",
"min": 1,
"path": "DocumentReference.date",
"mustSupport": true
}, {
"id": "DocumentReference.author",
"max": "2",
"path": "DocumentReference.author",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_PractitionerRole|1.7.0", "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.7.0", "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization|1.7.0", "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.7.0", "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.7.0", "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Device|1.7.0" ]
} ],
"slicing": {
"rules": "closed",
"discriminator": [ {
"path": "type",
"type": "value"
} ]
},
"mustSupport": true
}, {
"id": "DocumentReference.author:Behandelnder",
"max": "1",
"min": 0,
"path": "DocumentReference.author",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Practitioner|2.2.0" ]
} ],
"sliceName": "Behandelnder",
"mustSupport": true
}, {
"id": "DocumentReference.author:Behandelnder.reference",
"min": 1,
"path": "DocumentReference.author.reference",
"mustSupport": true
}, {
"id": "DocumentReference.author:Behandelnder.type",
"min": 1,
"path": "DocumentReference.author.type",
"fixedUri": "Practitioner",
"mustSupport": true
}, {
"id": "DocumentReference.author:Behandelnder.identifier",
"max": "0",
"path": "DocumentReference.author.identifier"
}, {
"id": "DocumentReference.author:Behandelnder.display",
"max": "0",
"path": "DocumentReference.author.display"
}, {
"id": "DocumentReference.author:AusstellendesSystem",
"max": "1",
"min": 0,
"path": "DocumentReference.author",
"sliceName": "AusstellendesSystem",
"mustSupport": true
}, {
"id": "DocumentReference.author:AusstellendesSystem.reference",
"max": "0",
"path": "DocumentReference.author.reference"
}, {
"id": "DocumentReference.author:AusstellendesSystem.type",
"min": 1,
"path": "DocumentReference.author.type",
"fixedUri": "Device",
"mustSupport": true
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier",
"min": 1,
"path": "DocumentReference.author.identifier",
"mustSupport": true
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier.use",
"max": "0",
"path": "DocumentReference.author.identifier.use"
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier.type",
"max": "0",
"path": "DocumentReference.author.identifier.type"
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier.system",
"min": 1,
"path": "DocumentReference.author.identifier.system",
"fixedUri": "https://fhir.kbv.de/NamingSystem/KBV_NS_FOR_Pruefnummer",
"mustSupport": true
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier.value",
"min": 1,
"path": "DocumentReference.author.identifier.value",
"mustSupport": true
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier.period",
"max": "0",
"path": "DocumentReference.author.identifier.period"
}, {
"id": "DocumentReference.author:AusstellendesSystem.identifier.assigner",
"max": "0",
"path": "DocumentReference.author.identifier.assigner"
}, {
"id": "DocumentReference.author:AusstellendesSystem.display",
"max": "0",
"path": "DocumentReference.author.display"
}, {
"id": "DocumentReference.authenticator",
"max": "0",
"path": "DocumentReference.authenticator"
}, {
"id": "DocumentReference.custodian",
"path": "DocumentReference.custodian",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Organization|2.2.0" ]
} ],
"mustSupport": true
}, {
"id": "DocumentReference.custodian.reference",
"min": 1,
"path": "DocumentReference.custodian.reference",
"mustSupport": true
}, {
"id": "DocumentReference.custodian.type",
"max": "0",
"path": "DocumentReference.custodian.type"
}, {
"id": "DocumentReference.custodian.identifier",
"max": "0",
"path": "DocumentReference.custodian.identifier"
}, {
"id": "DocumentReference.custodian.display",
"max": "0",
"path": "DocumentReference.custodian.display"
}, {
"id": "DocumentReference.relatesTo",
"path": "DocumentReference.relatesTo",
"short": "Medikationsplanverknüpfung",
"definition": "Verknüpfung zwischen verschiedenen Repräsentationen (PDF oder XML) eines bundeseinheitlichen Medikationsplans. In diesem Fall ist relatesTo.code = transforms. Alternativ können auch Verknüpfungen zwischen verschiedenen Seiten eines bundeseinheitlichen Medikationsplans übertragen werden. In diesem Fall ist relatesTo.code = appends.",
"mustSupport": true
}, {
"id": "DocumentReference.relatesTo.code",
"path": "DocumentReference.relatesTo.code",
"mustSupport": true
}, {
"id": "DocumentReference.relatesTo.target",
"path": "DocumentReference.relatesTo.target",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_DocumentReference|2.2.0" ]
} ],
"mustSupport": true
}, {
"id": "DocumentReference.relatesTo.target.reference",
"min": 1,
"path": "DocumentReference.relatesTo.target.reference",
"mustSupport": true
}, {
"id": "DocumentReference.relatesTo.target.type",
"max": "0",
"path": "DocumentReference.relatesTo.target.type"
}, {
"id": "DocumentReference.relatesTo.target.identifier",
"max": "0",
"path": "DocumentReference.relatesTo.target.identifier"
}, {
"id": "DocumentReference.relatesTo.target.display",
"max": "0",
"path": "DocumentReference.relatesTo.target.display"
}, {
"id": "DocumentReference.description",
"max": "0",
"path": "DocumentReference.description"
}, {
"id": "DocumentReference.securityLabel",
"max": "0",
"path": "DocumentReference.securityLabel"
}, {
"id": "DocumentReference.content",
"max": "1",
"path": "DocumentReference.content"
}, {
"id": "DocumentReference.content:verweis",
"max": "0",
"path": "DocumentReference.content",
"sliceName": "verweis"
}, {
"id": "DocumentReference.content:anhang",
"max": "1",
"min": 1,
"path": "DocumentReference.content",
"sliceName": "anhang",
"mustSupport": true
}, {
"id": "DocumentReference.content:anhang.attachment",
"path": "DocumentReference.content.attachment",
"mustSupport": true
}, {
"id": "DocumentReference.content:anhang.attachment.contentType",
"path": "DocumentReference.content.attachment.contentType",
"binding": {
"strength": "required",
"valueSet": "https://fhir.kbv.de/ValueSet/KBV_VS_VoS_ContentTypes",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "MimeType"
}, {
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
"valueBoolean": true
} ]
},
"definition": "Hier wird das Dateiformat ausgewählt. PDF-Dokument: application/pdf, XML-Dokument: application/xml, pkcs#7-Datei: application/pkcs7-mime",
"mustSupport": true
}, {
"id": "DocumentReference.content:anhang.attachment.data",
"path": "DocumentReference.content.attachment.data",
"mustSupport": true
}, {
"id": "DocumentReference.context",
"path": "DocumentReference.context",
"definition": "Verweis auf die im PDF-Ausdruck eines Rezeptes vorhandenen FHIR-Ressourcen gemäß https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Prescription bzw. auf die eRezept-Bundles gemäß https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle aus dem Patientenausdruck.",
"mustSupport": true
}, {
"id": "DocumentReference.context.encounter",
"max": "0",
"path": "DocumentReference.context.encounter"
}, {
"id": "DocumentReference.context.event",
"max": "0",
"path": "DocumentReference.context.event"
}, {
"id": "DocumentReference.context.period",
"max": "0",
"path": "DocumentReference.context.period"
}, {
"id": "DocumentReference.context.facilityType",
"max": "0",
"path": "DocumentReference.context.facilityType"
}, {
"id": "DocumentReference.context.practiceSetting",
"max": "0",
"path": "DocumentReference.context.practiceSetting"
}, {
"id": "DocumentReference.context.sourcePatientInfo",
"max": "0",
"path": "DocumentReference.context.sourcePatientInfo"
}, {
"id": "DocumentReference.context.related",
"min": 1,
"path": "DocumentReference.context.related",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://fhir.kbv.de/StructureDefinition/KBV_PR_VoS_Prescription|2.2.0", "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Bundle" ]
} ],
"mustSupport": true
}, {
"id": "DocumentReference.context.related.reference",
"min": 1,
"path": "DocumentReference.context.related.reference",
"mustSupport": true
}, {
"id": "DocumentReference.context.related.type",
"max": "0",
"path": "DocumentReference.context.related.type"
}, {
"id": "DocumentReference.context.related.identifier",
"max": "0",
"path": "DocumentReference.context.related.identifier"
}, {
"id": "DocumentReference.context.related.display",
"max": "0",
"path": "DocumentReference.context.related.display"
} ]
},
"baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_DocumentReference|1.7.0"
}