This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
. Page versions: R5 R4B R4 R3
Example of documentreference
@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir//DocumentReference/example> a fhir:DocumentReference;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "example"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ]
];
fhir:DomainResource.contained [
fhir:index 0;
fhir:Practitioner [
fhir:index 0;
fhir:Resource.id [ fhir:value "a2" ];
fhir:Practitioner.name [
fhir:index 0;
fhir:HumanName.family [
fhir:value "Smitty";
fhir:index 0 ];
fhir:HumanName.given [
fhir:value "Gerald";
fhir:index 0 ] ];
fhir:Practitioner.practitionerRole [
fhir:index 0;
fhir:Practitioner.practitionerRole.organization [
fhir:Reference.display [ fhir:value "Cleveland Clinic" ] ];
fhir:Practitioner.practitionerRole.role [
fhir:CodeableConcept.text [ fhir:value "Attending" ] ];
fhir:Practitioner.practitionerRole.specialty [
fhir:index 0;
fhir:CodeableConcept.text [ fhir:value "Orthopedic" ] ] ] ]
];
fhir:DocumentReference.masterIdentifier [
fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
fhir:Identifier.value [ fhir:value "urn:oid:1.3.6.1.4.1.21367.2005.3.7" ]
];
fhir:DocumentReference.identifier [
fhir:index 0;
fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
fhir:Identifier.value [ fhir:value "urn:oid:1.3.6.1.4.1.21367.2005.3.7.1234" ]
];
fhir:DocumentReference.subjectReference [
fhir:reference <http://hl7.org/fhir/Patient/xcda>;
fhir:Reference.reference [ fhir:value "Patient/xcda" ]
];
fhir:DocumentReference.type [
a loinc:34108-1;
fhir:CodeableConcept.coding [
fhir:index 0;
a loinc:34108-1;
fhir:Coding.system [ fhir:value "http://loinc.org" ];
fhir:Coding.code [ fhir:value "34108-1" ];
fhir:Coding.display [ fhir:value "Outpatient Note" ] ]
];
fhir:DocumentReference.class [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://ihe.net/xds/connectathon/classCodes" ];
fhir:Coding.code [ fhir:value "History and Physical" ];
fhir:Coding.display [ fhir:value "History and Physical" ] ]
];
fhir:DocumentReference.authorReference [
fhir:index 0;
fhir:reference <http://hl7.org/fhir/Practitioner/xcda1>;
fhir:Reference.reference [ fhir:value "Practitioner/xcda1" ]
];
fhir:DocumentReference.authorReference [
fhir:index 1;
fhir:Reference.reference [ fhir:value "#a2" ]
];
fhir:DocumentReference.custodian [
fhir:reference <http://hl7.org/fhir/Organization/organization-example>;
fhir:Reference.reference [ fhir:value "Organization/organization-example" ]
];
fhir:DocumentReference.authenticatorReference [
fhir:reference <http://hl7.org/fhir/Organization/organization-example>;
fhir:Reference.reference [ fhir:value "Organization/organization-example" ]
];
fhir:DocumentReference.created [ fhir:value "2005-12-24T09:35:00+11:00"^^xs:dateTime];
fhir:DocumentReference.indexed [ fhir:value "2005-12-24T09:43:41+11:00"^^xs:dateTime];
fhir:DocumentReference.status [ fhir:value "current"];
fhir:DocumentReference.docStatus [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/composition-status" ];
fhir:Coding.code [ fhir:value "preliminary" ];
fhir:Coding.display [ fhir:value "preliminary" ] ]
];
fhir:DocumentReference.relatesTo [
fhir:index 0;
fhir:DocumentReference.relatesTo.code [ fhir:value "appends" ];
fhir:DocumentReference.relatesTo.target [
fhir:reference <http://hl7.org/fhir/DocumentReference/example>;
fhir:Reference.reference [ fhir:value "DocumentReference/example" ] ]
];
fhir:DocumentReference.description [ fhir:value "Physical"];
fhir:DocumentReference.securityLabel [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/Confidentiality" ];
fhir:Coding.code [ fhir:value "V" ];
fhir:Coding.display [ fhir:value "very restricted" ] ]
];
fhir:DocumentReference.content [
fhir:index 0;
fhir:DocumentReference.content.attachment [
fhir:Attachment.contentType [ fhir:value "application/hl7-v3+xml" ];
fhir:Attachment.language [ fhir:value "en-US" ];
fhir:Attachment.url [ fhir:value "http://example.org/xds/mhd/Binary/07a6483f-732b-461e-86b6-edb665c45510" ];
fhir:Attachment.size [ fhir:value "3654"^^xs:int ];
fhir:Attachment.hash [ fhir:value "2jmj7l5rSw0yVb/vlWAYkK/YBwk="^^xs:base64Binary ] ];
fhir:DocumentReference.content.format [
fhir:index 0;
fhir:Coding.system [ fhir:value "urn:oid:1.3.6.1.4.1.19376.1.2.3" ];
fhir:Coding.code [ fhir:value "urn:ihe:pcc:handp:2008" ];
fhir:Coding.display [ fhir:value "History and Physical Specification" ] ]
];
fhir:DocumentReference.context [
fhir:DocumentReference.context.encounter [
fhir:reference <http://hl7.org/fhir/Encounter/xcda>;
fhir:Reference.reference [ fhir:value "Encounter/xcda" ] ];
fhir:DocumentReference.context.event [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://ihe.net/xds/connectathon/eventCodes" ];
fhir:Coding.code [ fhir:value "T-D8200" ];
fhir:Coding.display [ fhir:value "Arm" ] ] ];
fhir:DocumentReference.context.period [
fhir:Period.start [ fhir:value "2004-12-23T08:00:00+11:00"^^xs:dateTime ];
fhir:Period.end [ fhir:value "2004-12-23T08:01:00+11:00"^^xs:dateTime ] ];
fhir:DocumentReference.context.facilityType [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://www.ihe.net/xds/connectathon/healthcareFacilityTypeCodes" ];
fhir:Coding.code [ fhir:value "Outpatient" ];
fhir:Coding.display [ fhir:value "Outpatient" ] ] ];
fhir:DocumentReference.context.practiceSetting [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://www.ihe.net/xds/connectathon/practiceSettingCodes" ];
fhir:Coding.code [ fhir:value "General Medicine" ];
fhir:Coding.display [ fhir:value "General Medicine" ] ] ];
fhir:DocumentReference.context.sourcePatientInfo [
fhir:reference <http://hl7.org/fhir/Patient/xcda>;
fhir:Reference.reference [ fhir:value "Patient/xcda" ] ];
fhir:DocumentReference.context.related [
fhir:index 0;
fhir:DocumentReference.context.related.identifier [
fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
fhir:Identifier.value [ fhir:value "urn:oid:1.3.6.1.4.1.21367.2005.3.7.2345" ] ];
fhir:DocumentReference.context.related.ref [
fhir:reference <http://hl7.org/fhir/Patient/xcda>;
fhir:Reference.reference [ fhir:value "Patient/xcda" ] ] ]
].
# -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.