R6 Ballot (2nd Draft)

Publish-box (todo)

Example Composition/example (XML)

Structured Documents Work GroupMaturity Level: N/AStandards 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="LP183761-8"/> 
      <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"/> 
  <attester> 
    <mode> 
      <coding> 
        <system value="http://hl7.org/fhir/composition-attestation-mode"/> 
        <code value="legal"/> 
        <display value="Legal"/> 
      </coding> 
    </mode> 
    <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> 
    <type value="replaces"/> 
    <resourceReference> 
      <reference value="Composition/old-example"/> 
    </resourceReference> 
  </relatesTo> 
  <relatesTo> 
    <type value="appends"/> 
    <resourceReference> 
      <identifier> 
        <system value="http://example.org/fhir/NamingSystem/document-ids"/> 
        <value value="ABC123"/> 
      </identifier> 
    </resourceReference> 
  </relatesTo> 
  <event> 
    <period> 
      <start value="2010-07-18"/> 
      <end value="2012-11-12"/> 
    </period> 
    <detail> 
      <concept> 
        <coding> 
          <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/> 
          <code value="HEALTHREC"/> 
          <display value="health record"/> 
        </coding> 
      </concept> 
      <reference> 
        <reference value="Observation/example"/> 
      </reference> 
    </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> 
    <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> 
    <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.