<?xml version=“1.0” encoding=“UTF-8”?> <Composition xmlns=“hl7.org/fhir”>

      <id value="example"/>
      <meta>
  <security>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
    <code value="HTEST"/>
    <display value="test health data"/>
  </security>
</meta>

      <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>