Release 5 Draft Ballot

This page is part of the FHIR Specification (v4.6.0: R5 Draft Ballot). 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

Documentreference-example.ttl

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

Raw Turtle (+ also see Turtle/RDF Format Specification)

Generic example

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <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:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>identifier</b>: id: urn:oid:1.3.6.1.4.1.21367.2005.3.7.1234</p><p><b>status</b>: current</p><p><b>docStatus</b>: preliminary</p><p><b>type</b>: <span>Outpatient Note</span></p><p><b>category</b>: <span>History and Physical</span></p><p><b>subject</b>: <a>Generated Summary: Medical record number: 12345 (USUAL); active; Henry Levin ; gender: male; birthDate: 1932-09-24</a></p><p><b>encounter</b>: <a>Generated Summary: id: 1234213.52345873 (OFFICIAL); status: completed; <span>ambulatory</span></a></p><p><b>event</b>: <span>Arm</span></p><p><b>facilityType</b>: <span>Outpatient</span></p><p><b>practiceSetting</b>: <span>General Medicine</span></p><p><b>period</b>: 23 Dec. 2004, 8:00:00 am --&gt; 23 Dec. 2004, 8:01:00 am</p><p><b>date</b>: 24 Dec. 2005, 9:43:41 am</p><p><b>author</b>: </p><ul><li><a>Generated Summary: id: D234123 (OFFICIAL); Sherry Dopplemeyer ; john.doe@healthcare.example.org</a></li><li><a> </a></li></ul><blockquote><p><b>name</b>: Gerald Smitty </p></blockquote><h3>Attesters</h3><table><tr><td>-</td><td><b>Mode</b></td><td><b>Party</b></td></tr><tr><td>*</td><td>official</td><td><a>Generated Summary: id: 91654 (OFFICIAL), id: 17-0112278 (USUAL); <span>University Medical Hospital</span>; name: Burgers University Medical Center; Phone: 022-655 2300</a></td></tr></table><p><b>custodian</b>: <a>Generated Summary: id: 91654 (OFFICIAL), id: 17-0112278 (USUAL); <span>University Medical Hospital</span>; name: Burgers University Medical Center; Phone: 022-655 2300</a></p><h3>RelatesTos</h3><table><tr><td>-</td><td><b>Code</b></td><td><b>Target</b></td></tr><tr><td>*</td><td>appends</td><td><a>Generated Summary: id: urn:oid:1.3.6.1.4.1.21367.2005.3.7.1234; status: current; docStatus: preliminary; <span>Outpatient Note</span>; <span>History and Physical</span>; <span>Arm</span>; <span>Outpatient</span>; <span>General Medicine</span>; period: 23 Dec. 2004, 8:00:00 am --&gt; 23 Dec. 2004, 8:01:00 am; date: 24 Dec. 2005, 9:43:41 am; description: Physical; <span>very restricted</span></a></td></tr></table><p><b>description</b>: Physical</p><p><b>securityLabel</b>: <span>very restricted</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table><tr><td>-</td></tr><tr><td>*</td></tr></table><p><b>format</b>: <span>History and Physical Specification</span></p><p><b>identifier</b>: id: urn:oid:1.3.6.1.4.1.21367.2005.3.7</p></blockquote><p><b>sourcePatientInfo</b>: <a>Generated Summary: Medical record number: 12345 (USUAL); active; Henry Levin ; gender: male; birthDate: 1932-09-24</a></p><p><b>related</b>: <a>Generated Summary: Medical record number: 12345 (USUAL); active; Henry Levin ; gender: male; birthDate: 1932-09-24</a></p></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Practitioner;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "a2" ];
     fhir:Practitioner.name [
       fhir:index 0;
       fhir:HumanName.family [ fhir:value "Smitty" ];
       fhir:HumanName.given [
         fhir:value "Gerald";
         fhir:index 0
       ]
     ]
  ];
  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.status [ fhir:value "current"];
  fhir:DocumentReference.docStatus [ fhir:value "preliminary"];
  fhir:DocumentReference.type [
     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.category [
     fhir:index 0;
     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.subject [
     fhir:link <http://hl7.org/fhir/Patient/xcda>;
     fhir:Reference.reference [ fhir:value "Patient/xcda" ]
  ];
  fhir:DocumentReference.encounter [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/Encounter/xcda>;
     fhir:Reference.reference [ fhir:value "Encounter/xcda" ]
  ];
  fhir:DocumentReference.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.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.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.period [
     fhir:Period.start [ fhir:value "2004-12-23T08:00:00+11:00"^^xsd:dateTime ];
     fhir:Period.end [ fhir:value "2004-12-23T08:01:00+11:00"^^xsd:dateTime ]
  ];
  fhir:DocumentReference.date [ fhir:value "2005-12-24T09:43:41+11:00"^^xsd:dateTime];
  fhir:DocumentReference.author [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/Practitioner/xcda1>;
     fhir:Reference.reference [ fhir:value "Practitioner/xcda1" ]
  ], [
     fhir:index 1;
     fhir:Reference.reference [ fhir:value "#a2" ]
  ];
  fhir:DocumentReference.attester [
     fhir:index 0;
     fhir:DocumentReference.attester.mode [ fhir:value "official" ];
     fhir:DocumentReference.attester.party [
       fhir:link <http://hl7.org/fhir/Organization/f001>;
       fhir:Reference.reference [ fhir:value "Organization/f001" ]
     ]
  ];
  fhir:DocumentReference.custodian [
     fhir:link <http://hl7.org/fhir/Organization/f001>;
     fhir:Reference.reference [ fhir:value "Organization/f001" ]
  ];
  fhir:DocumentReference.relatesTo [
     fhir:index 0;
     fhir:DocumentReference.relatesTo.code [ fhir:value "appends" ];
     fhir:DocumentReference.relatesTo.target [
       fhir:link <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://terminology.hl7.org/CodeSystem/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"^^xsd:long ];
       fhir:Attachment.hash [ fhir:value "2jmj7l5rSw0yVb/vlWAYkK/YBwk="^^xsd:base64Binary ];
       fhir:Attachment.title [ fhir:value "Physical" ];
       fhir:Attachment.creation [ fhir:value "2005-12-24T09:35:00+11:00"^^xsd:dateTime ]
     ];
     fhir:DocumentReference.content.format [
       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.content.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" ]
     ]
  ];
  fhir:DocumentReference.sourcePatientInfo [
     fhir:link <http://hl7.org/fhir/Patient/xcda>;
     fhir:Reference.reference [ fhir:value "Patient/xcda" ]
  ];
  fhir:DocumentReference.related [
     fhir:index 0;
     fhir:link <http://hl7.org/fhir/Patient/xcda>;
     fhir:Reference.reference [ fhir:value "Patient/xcda" ];
     fhir:Reference.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" ]
     ]
  ] .

<http://hl7.org/fhir/Patient/xcda> a fhir:Patient .

<http://hl7.org/fhir/Encounter/xcda> a fhir:Encounter .

<http://hl7.org/fhir/Practitioner/xcda1> a fhir:Practitioner .

<http://hl7.org/fhir/Organization/f001> a fhir:Organization .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/DocumentReference/example.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/DocumentReference/example.ttl> .

# -------------------------------------------------------------------------------------


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.