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
Simple Example of a Composition
@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//Composition/example> a fhir:Composition; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "example"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:Composition.identifier [ fhir:Identifier.system [ fhir:value "http://healthintersections.com.au/test" ]; fhir:Identifier.value [ fhir:value "1" ] ]; fhir:Composition.date [ fhir:value "2012-01-04T09:10:14Z"^^xs:dateTime]; fhir:Composition.type [ a loinc:11488-4; fhir:CodeableConcept.coding [ fhir:index 0; a loinc:11488-4; fhir:Coding.system [ fhir:value "http://loinc.org" ]; fhir:Coding.code [ fhir:value "11488-4" ]; fhir:Coding.display [ fhir:value "Consult note" ] ] ]; fhir:Composition.class [ a loinc:LP173421-1; fhir:CodeableConcept.coding [ fhir:index 0; a loinc:LP173421-1; fhir:Coding.system [ fhir:value "http://loinc.org" ]; fhir:Coding.code [ fhir:value "LP173421-1" ]; fhir:Coding.display [ fhir:value "Report" ] ] ]; fhir:Composition.title [ fhir:value "Consultation Note"]; fhir:Composition.status [ fhir:value "final"]; fhir:Composition.confidentiality [ fhir:value "N"]; fhir:Composition.subject [ fhir:reference <http://hl7.org/fhir/Patient/xcda>; fhir:Reference.reference [ fhir:value "Patient/xcda" ]; fhir:Reference.display [ fhir:value "Henry Levin the 7th" ] ]; fhir:Composition.authorReference [ fhir:index 0; fhir:reference <http://hl7.org/fhir/Practitioner/xcda-author>; fhir:Reference.reference [ fhir:value "Practitioner/xcda-author" ]; fhir:Reference.display [ fhir:value "Harold Hippocrates, MD" ] ]; fhir:Composition.attester [ fhir:index 0; fhir:Composition.attester.mode [ fhir:value "legal"; fhir:index 0 ]; fhir:Composition.attester.time [ fhir:value "2012-01-04T09:10:14Z"^^xs:dateTime ]; fhir:Composition.attester.partyReference [ fhir:reference <http://hl7.org/fhir/Practitioner/xcda-author>; fhir:Reference.reference [ fhir:value "Practitioner/xcda-author" ]; fhir:Reference.display [ fhir:value "Harold Hippocrates, MD" ] ] ]; fhir:Composition.custodian [ fhir:reference <http://hl7.org/fhir/Organization/2.16.840.1.113883.19.5>; fhir:Reference.reference [ fhir:value "Organization/2.16.840.1.113883.19.5" ]; fhir:Reference.display [ fhir:value "Good Health Clinic" ] ]; fhir:Composition.event [ fhir:index 0; fhir:Composition.event.code [ fhir:index 0; fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://hl7.org/fhir/v3/ActCode" ]; fhir:Coding.code [ fhir:value "HEALTHREC" ]; fhir:Coding.display [ fhir:value "health record" ] ] ]; fhir:Composition.event.period [ fhir:Period.start [ fhir:value "2010-07-18"^^xs:date ]; fhir:Period.end [ fhir:value "2012-11-12"^^xs:date ] ]; fhir:Composition.event.detail [ fhir:index 0; fhir:reference <http://hl7.org/fhir/Observation/example>; fhir:Reference.reference [ fhir:value "Observation/example" ] ] ]; fhir:Composition.encounter [ fhir:reference <http://hl7.org/fhir/Encounter/xcda>; fhir:Reference.reference [ fhir:value "Encounter/xcda" ] ]; fhir:Composition.section [ fhir:index 0; fhir:Composition.section.title [ fhir:value "History of present illness" ]; fhir:Composition.section.code [ a loinc:11348-0; fhir:CodeableConcept.coding [ fhir:index 0; a loinc:11348-0; fhir:Coding.system [ fhir:value "http://loinc.org" ]; fhir:Coding.code [ fhir:value "11348-0" ]; fhir:Coding.display [ fhir:value "History of past illness Narrative" ] ] ]; fhir:Composition.section.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:Composition.section.mode [ fhir:value "snapshot" ]; fhir:Composition.section.orderedBy [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://hl7.org/fhir/list-order" ]; fhir:Coding.code [ fhir:value "event-date" ]; fhir:Coding.display [ fhir:value "Sorted by Event Date" ] ] ]; fhir:Composition.section.entry [ fhir:index 0; fhir:reference <http://hl7.org/fhir/Condition/stroke>; fhir:Reference.reference [ fhir:value "Condition/stroke" ] ]; fhir:Composition.section.entry [ fhir:index 1; fhir:reference <http://hl7.org/fhir/Condition/example>; fhir:Reference.reference [ fhir:value "Condition/example" ] ]; fhir:Composition.section.entry [ fhir:index 2; fhir:reference <http://hl7.org/fhir/Condition/example2>; fhir:Reference.reference [ fhir:value "Condition/example2" ] ] ]; fhir:Composition.section [ fhir:index 1; fhir:Composition.section.title [ fhir:value "History of family member diseases" ]; fhir:Composition.section.code [ a loinc:10157-6; fhir:CodeableConcept.coding [ fhir:index 0; a loinc:10157-6; fhir:Coding.system [ fhir:value "http://loinc.org" ]; fhir:Coding.code [ fhir:value "10157-6" ]; fhir:Coding.display [ fhir:value "History of family member diseases Narrative" ] ] ]; fhir:Composition.section.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:Composition.section.mode [ fhir:value "snapshot" ]; fhir:Composition.section.emptyReason [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://hl7.org/fhir/list-empty-reason" ]; fhir:Coding.code [ fhir:value "withheld" ]; fhir:Coding.display [ fhir:value "Information Withheld" ] ] ] ]. # -------------------------------------------------------------------------------------
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.