R4 Ballot #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). 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 R2

Composition-example.xml

Structured Documents Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

Simple Example of a Composition (id = "example")

<?xml version="1.0" encoding="UTF-8"?>

<Composition xmlns="http://hl7.org/fhir">
  <id value="example"/> 
  <text> 
    <status value="generated"/> 
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p> Consultation note for Henry Levin the 7th</p> 
      <p> Managed by Good Health Clinic</p> 
    </div> 
  </text> 
  <identifier> 
    <system value="http://healthintersections.com.au/test"/> 
    <value value="1"/> 
  </identifier> 
  <status value="final"/> 
  <type> 
    <coding> 
      <system value="http://loinc.org"/> 
      <code value="11488-4"/> 
      <display value="Consult note"/> 
    </coding> 
  </type> 
  <category> 
    <coding> 
      <system value="http://loinc.org"/> 
      <code value="LP173421-1"/> 
      <display value="Report"/> 
    </coding> 
  </category> 
  <subject> 
    <reference value="Patient/xcda"/> 
    <display value="Henry Levin the 7th"/> 
  </subject> 
  <encounter> 
    <reference value="Encounter/xcda"/> 
  </encounter> 
  <date value="2012-01-04T09:10:14Z"/> 
  <author> 
    <reference value="Practitioner/xcda-author"/> 
    <display value="Harold Hippocrates, MD"/> 
  </author> 
  <title value="Consultation Note"/> 
  <confidentiality value="N"/> 
  <attester> 
    <mode value="legal"/> 
    <time value="2012-01-04T09:10:14Z"/> 
    <party> 
      <reference value="Practitioner/xcda-author"/> 
      <display value="Harold Hippocrates, MD"/> 
    </party> 
  </attester> 
  <custodian> 
    <reference value="Organization/2.16.840.1.113883.19.5"/> 
    <display value="Good Health Clinic"/> 
  </custodian> 
  <relatesTo> 
    <code value="replaces"/> 
    <!--   
      you can identify a composition or a document.
      A document is a frozen version of a composition
      that is wrapped in a bundle
      - can refer to the composition or document by identifier
      - or by reference. to refer to a document by reference, Bundle/xxxx
      -->
    <targetReference> 
      <reference value="Composition/old-example"/> 
    </targetReference> 
  </relatesTo> 
  <relatesTo> 
    <code value="appends"/> 
    <targetIdentifier> 
      <system value="http://example.org/fhir/NamingSystem/document-ids"/> 
      <value value="ABC123"/> 
    </targetIdentifier> 
  </relatesTo> 
  <event> 
    <code> 
      <coding> 
        <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/> 
        <code value="HEALTHREC"/> 
        <display value="health record"/> 
      </coding> 
    </code> 
    <period> 
      <start value="2010-07-18"/> 
      <end value="2012-11-12"/> 
    </period> 
    <detail> 
      <reference value="Observation/example"/> 
    </detail> 
  </event> 
  <section> 
    <title value="History of present illness"/> 
    <code> 
      <coding> 
        <system value="http://loinc.org"/> 
        <code value="11348-0"/> 
        <display value="History of past illness Narrative"/> 
      </coding> 
    </code> 
    <text> 
      <status value="generated"/> 
      <div xmlns="http://www.w3.org/1999/xhtml">
        <table> 
          <tr> 
            <td> 
              <b> Code</b> 
            </td> 
            <td> 
              <b> Date</b> 
            </td> 
            <td> 
              <b> Type</b> 
            </td> 
            <td> 
              <b> BodySite</b> 
            </td> 
            <td> 
              <b> Severity</b> 
            </td> 
          </tr> 
          <tr> 
            <td> Stroke</td> 
            <td> 2010-07-18</td> 
            <td> Diagnosis</td> 
            <td/>  
            <td/>  
          </tr> 
          <tr> 
            <td> Burnt Ear</td> 
            <td> 2012-05-24</td> 
            <td> Diagnosis</td> 
            <td> Left Ear</td> 
            <td/>  
          </tr> 
          <tr> 
            <td> Asthma</td> 
            <td> 2012-11-12</td> 
            <td> Finding</td> 
            <td/>  
            <td> Mild</td> 
          </tr> 
        </table> 
      </div> 
    </text> 
    <mode value="snapshot"/> 
    <orderedBy> 
      <coding> 
        <system value="http://terminology.hl7.org/CodeSystem/list-order"/> 
        <code value="event-date"/> 
        <display value="Sorted by Event Date"/> 
      </coding> 
    </orderedBy> 
    <entry> 
      <reference value="Condition/stroke"/> 
    </entry> 
    <entry> 
      <reference value="Condition/example"/> 
    </entry> 
    <entry> 
      <reference value="Condition/example2"/> 
    </entry> 
  </section> 
  <section> 
    <title value="History of family member diseases"/> 
    <code> 
      <coding> 
        <system value="http://loinc.org"/> 
        <code value="10157-6"/> 
        <display value="History of family member diseases Narrative"/> 
      </coding> 
    </code> 
    <text> 
      <status value="generated"/> 
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p> History of family member diseases - not available</p> 
      </div> 
    </text> 
    <mode value="snapshot"/> 
    <emptyReason> 
      <coding> 
        <system value="http://terminology.hl7.org/CodeSystem/list-empty-reason"/> 
        <code value="withheld"/> 
        <display value="Information Withheld"/> 
      </coding> 
    </emptyReason> 
  </section> 
</Composition> 

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.