This page is part of the FHIR Specification (v4.3.0: R4B - STU). 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
Structured Documents Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: 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><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource "example" </p></div><p><b>masterIdentifier</b>: id: urn:oid:1.3.6.1.4.1.21367.2005.3.7</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>: Outpatient Note <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#34108-1)</span></p><p><b>category</b>: History and Physical <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (classCodes#History and Physical)</span></p><p><b>subject</b>: <a href=\"patient-xcda.html\">Patient/xcda</a> "Henry LEVIN"</p><p><b>date</b>: 24/12/2005 9:43:41 AM</p><p><b>author</b>: </p><ul><li><a href=\"practitioner-xcda1.html\">Practitioner/xcda1</a> "Sherry DOPPLEMEYER"</li><li><a name=\"a2\"> </a></li></ul><blockquote><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource "a2" </p></div><p><b>name</b>: Gerald Smitty </p></blockquote><p><b>authenticator</b>: <a href=\"organization-f001.html\">Organization/f001</a> "Burgers University Medical Center"</p><p><b>custodian</b>: <a href=\"organization-f001.html\">Organization/f001</a> "Burgers University Medical Center"</p><h3>RelatesTos</h3><table class=\"grid\"><tr><td>-</td><td><b>Code</b></td><td><b>Target</b></td></tr><tr><td>*</td><td>appends</td><td><a href=\"documentreference-example.html\">DocumentReference/example</a></td></tr></table><p><b>description</b>: Physical</p><p><b>securityLabel</b>: very restricted <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-v3-Confidentiality.html\">Confidentiality</a>#V)</span></p><blockquote><p><b>content</b></p><p><b>format</b>: History and Physical Specification (Details: urn:oid:1.3.6.1.4.1.19376.1.2.3 code urn:ihe:pcc:handp:2008 = 'urn:ihe:pcc:handp:2008', stated as 'History and Physical Specification')</p></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td>-</td><td><b>Encounter</b></td><td><b>Event</b></td><td><b>Period</b></td><td><b>FacilityType</b></td><td><b>PracticeSetting</b></td><td><b>SourcePatientInfo</b></td><td><b>Related</b></td></tr><tr><td>*</td><td><a href=\"encounter-xcda.html\">Encounter/xcda</a></td><td>Arm <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (eventCodes#T-D8200)</span></td><td>2004-12-23T08:00:00+11:00 --> 2004-12-23T08:01:00+11:00</td><td>Outpatient <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (healthcareFacilityTypeCodes#Outpatient)</span></td><td>General Medicine <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (practiceSettingCodes#General Medicine)</span></td><td><a href=\"patient-xcda.html\">Patient/xcda</a> "Henry LEVIN"</td><td><a href=\"patient-xcda.html\">Patient/xcda</a> "Henry LEVIN"</td></tr></table></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.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.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.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.authenticator [ 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:nonNegativeInteger ]; 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.context [ fhir:DocumentReference.context.encounter [ fhir:index 0; fhir:link <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"^^xsd:dateTime ]; fhir:Period.end [ fhir:value "2004-12-23T08:01:00+11:00"^^xsd: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:link <http://hl7.org/fhir/Patient/xcda>; fhir:Reference.reference [ fhir:value "Patient/xcda" ] ]; fhir:DocumentReference.context.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/Practitioner/xcda1> a fhir:Practitioner . <http://hl7.org/fhir/Organization/f001> a fhir:Organization . <http://hl7.org/fhir/Encounter/xcda> a fhir:Encounter . # - 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.