Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example DocumentReference/example-comprehensive (Turtle)

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

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

XDS Comprehensive metadata

@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

[a fhir:DocumentReference;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "example-comprehensive"];
  fhir:Resource.meta [
     fhir:Meta.security [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ];
       fhir:Coding.code [ fhir:value "HTEST" ]
     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: DocumentReference</b><a name=\"example-comprehensive\"> </a></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 DocumentReference &quot;example-comprehensive&quot; </p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>sourcepatient</b>: <a name=\"in-patient\"> </a></p><blockquote><p><b>Anonymous Patient</b> (no stated gender), DoB Unknown</p></blockquote><p><b>identifier</b>: id: urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46340, id: urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb21</p><p><b>status</b>: current</p><p><b>type</b>: Addendum Document <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#55107-7)</span></p><p><b>category</b>: History of immunization Narrative <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://loinc.org/\">LOINC</a>#11369-6)</span></p><p><b>subject</b>: <a href=\"patient-example-xcda.html\">Patient/xcda</a> &quot;Henry LEVIN&quot;</p><h3>Events</h3><table class=\"grid\"><tr><td>-</td><td><b>Concept</b></td><td><b>Reference</b></td></tr><tr><td>*</td><td>account receivable <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-v3-ActCode.html\">ActCode</a>#ACCTRECEIVABLE)</span></td><td> </td></tr><tr><td>*</td><td> </td><td><span/></td></tr></table><p><b>facilityType</b>: Children's hospital <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#82242000)</span></p><p><b>practiceSetting</b>: Adult mental illness - speciality <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#408467006)</span></p><p><b>period</b>: 2020-12-31T23:50:50-05:00 --&gt; 2020-12-31T23:50:50-05:00</p><p><b>date</b>: 01/01/2021 3:50:50 PM</p><p><b>author</b>: <a name=\"in-author\"> </a></p><blockquote><p/><p><a name=\"in-author\"> </a></p><p><b>telecom</b>: <a href=\"mailto:JohnMoehrke@gmail.com\">JohnMoehrke@gmail.com</a></p></blockquote><h3>Attesters</h3><table class=\"grid\"><tr><td>-</td><td><b>Mode</b></td><td><b>Party</b></td></tr><tr><td>*</td><td>Professional <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"codesystem-composition-attestation-mode.html\">CompositionAttestationMode</a>#professional)</span></td><td><a name=\"in-author\"> </a><blockquote><p/><p><a name=\"in-author\"> </a></p><p><b>telecom</b>: <a href=\"mailto:JohnMoehrke@gmail.com\">JohnMoehrke@gmail.com</a></p></blockquote></td></tr></table><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 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"codesystem-document-relationship-type.html\">DocumentRelationshipType</a>#appends)</span></td><td><a href=\"documentreference-example.html\">DocumentReference/example</a></td></tr></table><p><b>description</b>: Example of a Comprehensive DocumentReference resource. This is fully filled for all mandatory elements and all optional elements.</p><p><b>securityLabel</b>: normal <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>#N)</span></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td>-</td><td><b>ContentType</b></td><td><b>Language</b></td><td><b>Url</b></td><td><b>Size</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td>*</td><td>text/plain</td><td>en</td><td><a href=\"http://example.com/nowhere.txt\">http://example.com/nowhere.txt</a></td><td>190</td><td>OGEzOGYyNjMzMDA2ZmQ1MzUxNDljNDRhM2E3M2YzMTI0MzdiMzQ3OA==</td><td>DocumentReference for Comprehensive fully filled metadata</td><td>2020-12-31T23:50:50-05:00</td></tr></table><h3>Profiles</h3><table class=\"grid\"><tr><td>-</td><td><b>Value[x]</b></td></tr><tr><td>*</td><td>ITI XDS-SD TEXT (Details: http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode code urn:ihe:iti:xds-sd:text:2008 = 'ITI XDS-SD TEXT', stated as 'null')</td></tr></table></blockquote></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Practitioner;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "in-author" ];
     fhir:Practitioner.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "email" ];
       fhir:ContactPoint.value [ fhir:value "JohnMoehrke@gmail.com" ]
     ]
  ], [
     a fhir:Patient;
     fhir:index 1;
     fhir:Resource.id [ fhir:value "in-patient" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/documentreference-sourcepatient" ];
     fhir:Extension.valueReference [
       fhir:Reference.reference [ fhir:value "#in-patient" ]
     ]
  ];
  fhir:DocumentReference.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:oid:1.2.840.113556.1.8000.2554.58783.21864.3474.19410.44358.58254.41281.46340" ]
  ], [
     fhir:index 1;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
     fhir:Identifier.value [ fhir:value "urn:uuid:0c287d32-01e3-4d87-9953-9fcc9404eb21" ]
  ];
  fhir:DocumentReference.status [ fhir:value "current"];
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a loinc:55107-7;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "55107-7" ]
     ]
  ];
  fhir:DocumentReference.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a loinc:11369-6;
       fhir:Coding.system [ fhir:value "http://loinc.org" ];
       fhir:Coding.code [ fhir:value "11369-6" ]
     ]
  ];
  fhir:DocumentReference.subject [
     fhir:Reference.reference [ fhir:value "Patient/xcda" ]
  ];
  fhir:DocumentReference.event [
     fhir:index 0;
     fhir:CodeableReference.concept [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActCode" ];
         fhir:Coding.code [ fhir:value "ACCTRECEIVABLE" ]
       ]
     ]
  ], [
     fhir:index 1;
     fhir:CodeableReference.reference [
       fhir:Reference.identifier [
         fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
         fhir:Identifier.value [ fhir:value "urn:oid:1.2.840.113556.1.8000.2554.17917.46600.21181.17878.33419.62048.57128.2759" ]
       ]
     ]
  ];
  fhir:DocumentReference.facilityType [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:82242000;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "82242000" ]
     ]
  ];
  fhir:DocumentReference.practiceSetting [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:408467006;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "408467006" ]
     ]
  ];
  fhir:DocumentReference.period [
     fhir:Period.start [ fhir:value "2020-12-31T23:50:50-05:00"^^xsd:dateTime ];
     fhir:Period.end [ fhir:value "2020-12-31T23:50:50-05:00"^^xsd:dateTime ]
  ];
  fhir:DocumentReference.date [ fhir:value "2020-12-31T23:50:50-05:00"^^xsd:dateTime];
  fhir:DocumentReference.author [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "#in-author" ]
  ];
  fhir:DocumentReference.attester [
     fhir:index 0;
     fhir:DocumentReference.attester.mode [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/composition-attestation-mode" ];
         fhir:Coding.code [ fhir:value "professional" ]
       ]
     ];
     fhir:DocumentReference.attester.party [
       fhir:Reference.reference [ fhir:value "#in-author" ]
     ]
  ];
  fhir:DocumentReference.relatesTo [
     fhir:index 0;
     fhir:DocumentReference.relatesTo.code [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://hl7.org/fhir/document-relationship-type" ];
         fhir:Coding.code [ fhir:value "appends" ]
       ]
     ];
     fhir:DocumentReference.relatesTo.target [
       fhir:Reference.reference [ fhir:value "DocumentReference/example" ]
     ]
  ];
  fhir:DocumentReference.description [ fhir:value "Example of a Comprehensive DocumentReference resource. This is fully filled for all mandatory elements and all optional elements."];
  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 "N" ]
     ]
  ];
  fhir:DocumentReference.content [
     fhir:index 0;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "text/plain" ];
       fhir:Attachment.language [ fhir:value "en" ];
       fhir:Attachment.url [ fhir:value "http://example.com/nowhere.txt" ];
       fhir:Attachment.size [ fhir:value "190"^^xsd:long ];
       fhir:Attachment.hash [ fhir:value "OGEzOGYyNjMzMDA2ZmQ1MzUxNDljNDRhM2E3M2YzMTI0MzdiMzQ3OA=="^^xsd:base64Binary ];
       fhir:Attachment.title [ fhir:value "DocumentReference for Comprehensive fully filled metadata" ];
       fhir:Attachment.creation [ fhir:value "2020-12-31T23:50:50-05:00"^^xsd:dateTime ]
     ];
     fhir:DocumentReference.content.profile [
       fhir:index 0;
       fhir:DocumentReference.content.profile.valueCoding [
         fhir:Coding.system [ fhir:value "http://ihe.net/fhir/ihe.formatcode.fhir/CodeSystem/formatcode" ];
         fhir:Coding.code [ fhir:value "urn:ihe:iti:xds-sd:text:2008" ]
       ]
     ]
  ]] .

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

[a owl:Ontology;
  owl:imports fhir:fhir.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.