This page is part of the FHIR Specification (v0.11: DSTU 1 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

Resource Roadmap - Examples 6.8.10

Example Index:

Example of a discharge summaryXMLJSON

DischargeSummary 6.8.10.1

Example of a discharge summary

Example of a discharge summary (id = "father")

Raw XML

<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Discharge Summary</title>

    <id>urn:uuid:500bee81-d973-4afe-b592-d39fe71e38</id>
    <link href="urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc52" rel="self"/>
    <updated>2013-05-28T22:12:21Z</updated>

    <author>
        <name>Dr Dave</name>
    </author>
    <!--   The document resource   -->
    <entry>
        <title>Document</title>
        <id>urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc57</id>
        <updated>2013-05-28T22:12:21Z</updated>

        <content type="text/xml">
            <Document xmlns="http://hl7.org/fhir">
                <created value="2013-02-01T12:30:02"/>
                <type>
                    <coding>
                        <system value="www.loinc.org"/>
                        <code value="28655-9"/>
                    </coding>
                    <text value="Discharge Summary from Responsible Clinician"/>
                </type>
                <status value="final"/>
                <confidentiality>
                    <system value="www.nz.org"/>
                    <code value="1234-5"/>
                    <display value="Normal"/>
                </confidentiality>
                <subject>
                    <type value="Patient"/>
                    <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"/>
                    <display value="Eve Everywoman"/>
                </subject>
                <author>
                    <type value="Practitioner"/>
                    <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/practitioner/@example"/>
                    <display value="Doctor Dave"/>
                </author>
                <!--   The Encounter resource. Points directly to an Encounter resource. Contains the dates
         of admission, specialtyu etc.   -->

                <section>
                    <code>
                        <text value="Encounter Information"/>
                    </code>
                    <content>
                        <type value="Encounter"/>
                        <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/encounter/@example"/>
                    </content>
                </section>

                <section>
                    <code>
                        <coding>
                            <system value="http://loinc.org"/>
                            <code value="46241-6"/>
                        </coding>
                        <text value="Reason for admission"/>
                    </code>
                    <content>
                        <type value="Observation"/>
                        <reference value="urn:guid:d0dd51d3-3ab2-4c84-b697-a630c3e40e7a"/>
                    </content>
                </section>


                <!--   Points to the list that groups the medications on discharge   -->
                <section>
                    <code>
                        <coding>
                            <system value="http://loinc.org"/>
                            <code value="10183-2"/>
                        </coding>
                        <text value="Medications on Discharge"/>
                    </code>
                    <content>
                        <type value="List"/>
                        <reference value="urn:guid:673f8db5-0ffd-4395-9657-6da00420bbc1"/>
                    </content>
                </section>

                <!--   Points to the list that groups the allergies   -->
                <section>
                    <code>
                        <coding>
                            <system value="http://loinc.org"/>
                            <code value="48765-2"/>
                        </coding>
                        <text value="Known allergies"/>
                    </code>
                    <content>
                        <type value="List"/>
                        <reference value="urn:guid:68f86194-e6e1-4f65-b64a-5314256f8d7b"/>
                    </content>
                </section>

            </Document>
        </content>
    </entry>



    <!--   The Practitioner Resource. In this document they are the author of the document 
    (There is a reference from the document resource). Note that, strictly, it doesn't
   need to be within the document as the
    recipient knows where to go and get it if they need it - assuming it is available
   on-line of course.  -->
    <entry>
        <title>Written by Doctor Dave</title>
        <id>http://hl7connect.healthintersections.com.au/svc/fhir/practitioner/@example</id>
        <link href="http://hl7connect.healthintersections.com.au/svc/fhir/practitioner/@example/history/@1" rel="self"/>

        <updated>2013-05-05T16:13:03Z</updated>
        <published>2013-05-28T22:12:21Z</published>
        <author>
            <name>68.151.217.168</name>
        </author>
        <content type="text/xml">
            <Practitioner xmlns="http://hl7.org/fhir">
                <text>
                    <status value="generated"/>
                    <div xmlns="http://www.w3.org/1999/xhtml">
                        <h5>Doctor dave</h5>
                    </div>
                </text>
                    <name>
                        <text value="Doctor Dave"/>
                    </name>  
            </Practitioner>
        </content>
    </entry>

    <!--   The Patient who is the subject of the document. Same coments as practitioner.   -->
    <entry>
        <title>About Eve Everywoman</title>
        <id>http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1</id>
        <link href="http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1/history/@10" rel="self"/>


        <updated>2013-05-05T16:13:03Z</updated>

        <author>
            <name>68.151.217.168</name>
        </author>
        <content type="text/xml">
            <Patient xmlns="http://hl7.org/fhir">
                <text>
                    <status value="generated"/>
                    <div xmlns="http://www.w3.org/1999/xhtml">
                        <h5>Eve Everywoman</h5>
                    </div>
                </text>
                <identifier>
                    <system value="nhi"/>
                </identifier>
                <name>
                        <text value="Eve Everywoman"/>
                        <family value="Everywoman1"/>
                        <given value="Eve"/>
                    </name>
                <telecom>
                    <system value="phone"/>
                    <value value="555-555-2003"/>
                    <use value="work"/>
                </telecom>
                <gender>
                    <coding>
                        <system value="http://hl7.org/fhir/v3/AdministrativeGender"/>
                        <code value="F"/>
                        <display value="Female"/>
                    </coding>
                </gender>
                <birthDate value="1955-01-06"/>
                <address>
                        <use value="home"/>
                        <line value="2222 Home Street"/>
                    </address>

                <active value="true"/>
            </Patient>
        </content>
        <summary type="xhtml">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <h5>Eve Everywoman</h5>
            </div>
        </summary>
    </entry>

    <!--   The encounter that is being documented.  -->
    <entry>
        <title>Admission to Middlemore </title>
        <id>http://hl7connect.healthintersections.com.au/svc/fhir/encounter/@example</id>
        <link href="http://hl7connect.healthintersections.com.au/svc/fhir/encounter/@example/history/@1" rel="self"/>

        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>68.151.217.168</name>
        </author>
        <content type="text/xml">
            <Encounter xmlns="http://hl7.org/fhir">
                <text>
                    <status value="generated"/>
                    <div xmlns="http://www.w3.org/1999/xhtml"> Admitted to Orthopedics Service,
                        Middlemore Hospital between Jan 20 and Feb ist 2013 </div>
                </text>
                <identifier>
                    <key value="S100"/>
                </identifier>
                <status value="finished"/>
                <class value="inpatient"/>
                <type>
                    <text value="Orthopedic Admission"/>
                </type>
                <subject>
                    <type value="Patient"/>
                    <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"/>
                </subject>
                <hospitalization>
                    <period>
                        <start value="2013-01-20T12:30:02"/>
                        <end value="2013-02-01T12:30:02"/>
                    </period>
                    <dischargeDisposition>
                        <text value="Discharged to care of GP"/>
                    </dischargeDisposition>
                </hospitalization>
            </Encounter>
        </content>

    </entry>

    <!--   The Reason for admission.  -->
    <entry>
        <title>Admission Reason</title>
        <id>urn:guid:d0dd51d3-3ab2-4c84-b697-a630c3e40e7a</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <Observation xmlns="http://hl7.org/fhir">
                <text>
                    <status value="additional"/>
                    <div xmlns="http://www.w3.org/1999/xhtml"> Acute Asthmatic attack. Was wheezing
                        for days prior to admission. </div>
                </text>
                <name>
                    <coding>
                        <system value="http://loinc.org"/>
                        <code value="46241-6"/>
                    </coding>
                    <text value="Reason for admission"/>
                </name>
                <valueString value="Acute Asthmatic attack. Was wheezing for days prior to admission."/>
                <status value="final"/>
                <reliability value="ok"/>
            </Observation>
        </content>
    </entry>

    <!--   The list of medications on discharge  -->
    <entry>
        <title>List of Medications</title>
        <id>urn:guid:673f8db5-0ffd-4395-9657-6da00420bbc1</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <List xmlns="http://hl7.org/fhir">
                <text>
                    <status value="additional"/>
                    <div xmlns="http://www.w3.org/1999/xhtml">
                        <table>
                            <thead>
                                <tr>
                                    <td>Medication</td>
                                    <td>Last Change</td>
                                    <td>Last ChangeReason</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Theophylline 200mg BD after meals</td>
                                    <td>continued</td>
                                </tr>
                                <tr>
                                    <td>Ventolin Inhaler</td>
                                    <td>stopped</td>
                                    <td>Getting side effect of tremor</td>
                                </tr>
                            </tbody>

                        </table>
                    </div>
                </text>
                <code>
                    <coding>
                        <system value="http://loinc.org"/>
                        <code value="10183-2"/>
                        <display value="Medication List"/>
                    </coding>

                </code>
                <mode value="working"/>
                <!--   This is an entry that refers to a MedicationPrescription resource in this document.
                It is a new medication (as indicated by the flag)  -->
                <entry>
                    <flag>
                        <coding>
                            <!--   The flag refers to the valueset containing permissable codes for changes
                            to medication status that occurred during this encounter.
               Possible values are started,
                            continued, stopped, changed  -->
                            <system value="http://www.ithealthboard.health.nz/fhir/valueset/@medicationStatus"/>
                            <code value="started"/>
                        </coding>
                    </flag>
                    <item>
                        <type value="MedicationPrescription"/>
                        <reference value="urn:guid:124a6916-5d84-4b8c-b250-10cefb8e6e86"/>
                    </item>
                </entry>

                <!--   This is an entry that refers to a medicationPrescription that is available on an external
         server.
                In practice, you may still want an entry in the document as well, but
         it's not necessary. The medication
                was stopped on this admission. Note that the deleted element is also true.
         Because the resource is
                no longer active, we assume that it was deleted on the server, so following
         the link would result 
                in an http status code of 410 (Though you can always use the history to
         get previous versions)  -->
                <entry>
                    <flag>
                        <coding>
                            <system value="http://www.ithealthboard.health.nz/fhir/valueset/@medicationStatus"/>
                            <code value="stopped"/>
                        </coding>
                    </flag>
                    <deleted value="true"/>
                    <item>
                        <type value="MedicationPrescription"/>
                        <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/medicationprescription/@1"/>
                        <display value="use of Ventolin Inhaler was discontinued"/>
                    </item>
                </entry>
            </List>
        </content>
    </entry>

    <!--   The first medication in the medications list   -->
    <entry>
        <title>Medication #1</title>
        <id>urn:guid:124a6916-5d84-4b8c-b250-10cefb8e6e86</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <MedicationPrescription xmlns="http://hl7.org/fhir">

                <!--   The Human readible version of the script   -->
                <text>
                    <status value="generated"/>
                    <!--   This text section can be exctly the same as CDA   -->
                    <div xmlns="http://www.w3.org/1999/xhtml">
                        <p>Theophylline 200mg twice a day</p>
                    </div>
                </text>

                <!--   The medication. This is currently modelled as a contained resource within the prescription,
         but could also be a separate
                    resource either within the document bundle, or a reference to the
         medication on a server. The latter
                    (ie where the medication terminology is hosted on a publically available
         server and simply referenced from the
                MedicationPrescription resource is particularly attractive...   -->
                <contained>
                    <Medication id="med1">
                        <name value="Theophylline 200mg"/>
                        <code>
                            <coding>
                                <system value="http:/snomed.org"/>
                                <code value="66493003"/>
                            </coding>
                        </code>
                    </Medication>
                </contained>

                <!--   The patient details will generally be in the Document resource in the Document bundle,
         but could just as easily
        point to a patient resource on a server  -->
                <patient>
                    <type value="Patient"/>
                    <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"/>
                    <display value="Peter Patient"/>
                </patient>

                <!--   The prescriber details could also be within the bundle, but has the same options as
         patient  -->
                <prescriber>
                    <type value="Practitioner"/>
                    <reference value="practitioner/@example"/>
                    <display value="Peter Practitioner"/>
                </prescriber>

                <reasonForPrescribingString value="Management of Asthma"/>

                <!--   a reference to the medication being prescribed. As described earlier, this could be
         contained (as is the example here), separately
        within the document bundle or simply a reference to a remote server. See comment
         in the contained resource  -->
                <medication>
                    <type value="Medication"/>
                    <reference value="medication/@example"/>
                    <display value="Theophylline 200mg BD"/>
                </medication>

                <dosageInstruction>
                    <additionalInstructionsString value="Take with Food"/>
                    <!--   twice a day   -->
                    <timingSchedule>
                        <repeat>
                            <frequency value="2"/>
                            <duration value="1"/>
                            <units value="d"/>
                        </repeat>
                    </timingSchedule>
                    <!--   Orally   -->
                    <route>
                        <coding>
                            <system value="http://snomed.info/sct"/>
                            <code value="363743006"/>
                            <display value="oral administration of treatment"/>
                        </coding>
                    </route>

                    <doseQuantity>
                        <value value="1"/>
                        <units value="tablet"/>
                        <system value="http://unitsofmeasure.org"/>
                        <code value="tbl"/>
                    </doseQuantity>
                </dosageInstruction>

            </MedicationPrescription>
        </content>
    </entry>



    <!--   The list of known allergies  -->
    <entry>
        <title>List of Allergies</title>
        <id>urn:guid:68f86194-e6e1-4f65-b64a-5314256f8d7b</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <List xmlns="http://hl7.org/fhir">
                <text>
                    <status value="additional"/>
                    <div xmlns="http://www.w3.org/1999/xhtml">
                        <table>
                            <thead>
                                <tr>
                                    <td>Allergen</td>
                                    <td>Reaction</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>Doxycycline</td>
                                    <td>Hives</td>
                                </tr>
                            </tbody>

                        </table>
                    </div>
                </text>
                <code>
                    <coding>
                        <system value="http://loinc.org"/>
                        <code value="48765-2"/>
                        <display value="Allergies"/>
                    </coding>

                </code>
                <mode value="working"/>
                <!--   This is an entry that refers to an allergy resource in this document.   -->
                <entry>
                    <item>
                        <type value="AllergyIntolerance"/>
                        <reference value="urn:guid:47600e0f-b6b5-4308-84b5-5dec157f7637"/>
                    </item>
                </entry>


            </List>
        </content>
    </entry>




    <!--   The Allergy.  -->
    <entry>
        <title>Allergy to Doxycycline</title>
        <id>urn:guid:47600e0f-b6b5-4308-84b5-5dec157f7637</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <AllergyIntolerance xmlns="http://hl7.org/fhir">
                <text>
                    <status value="generated"/>
                    <div xmlns="http://www.w3.org/1999/xhtml">Sensitivity to Doxycycline :
                        Hives</div>
                </text>

                <criticality value="fatal"/>
                <sensitivityType value="allergy"/>
                <recordedDate value="2012-09-17"/>
                <status value="confirmed"/>
                <subject>
                    <type value="Patient"/>
                    <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"/>
                    <display value="Eve Everywoman"/>
                </subject>
                <substance>
                    <type value="Substance"/>
                    <reference value="urn:guid:4c2d16c0-b102-486c-aa7c-b266ce98709f"/>
                    <display value="Doxycycline"/>
                </substance>
                <reaction>
                    <type value="AdverseReaction"/>
                    <reference value="urn:guid:25be7cdf-7055-40fa-80ac-defd531180dd"/>
                    <display value="Hives"/>
                </reaction>

            </AllergyIntolerance>
        </content>
    </entry>

    <!--    The adverse reaction    -->
    <entry>
        <title>Adverse Reaction</title>
        <id>urn:guid:25be7cdf-7055-40fa-80ac-defd531180dd</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <AdverseReaction xmlns="http://hl7.org/fhir">
                <subject>
                    <type value="Patient"/>
                    <reference value="http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"/>
                    <display value="Eve Everywoman"/>
                </subject>
                <didNotOccurFlag value="false"/>
                <symptom>
                    <code>
                        <coding>
                            <system value="sys"/>
                            <code value="xxx"/>
                            <display value="Hives"/>
                        </coding>
                        <text value="Hives"/>
                    </code>
                </symptom>
            </AdverseReaction>
        </content>
    </entry>

    <!--   Substance   -->
    <entry>
        <title>Substance</title>
        <id>urn:guid:4c2d16c0-b102-486c-aa7c-b266ce98709f</id>
        <updated>2013-05-05T16:13:03Z</updated>
        <author>
            <name>Dr Dave</name>
        </author>
        <content type="text/xml">
            <Substance xmlns="http://hl7.org/fhir">
                <text>
                    <status value="generated"/>
                    <div xmlns="http://www.w3.org/1999/xhtml">Doxycycline</div>
                </text>
                <name value="Doxycycline"/>
                <type>
                  <coding>
                    <system value="codesys"/>
                    <code value="123445"/>
                    <display value="Doxycycline"/>
                  </coding>
                </type>
            </Substance>
        </content>
    </entry>

</feed>

JSON Equivalent

Example of a discharge summary

{
  "feed":{
    "title":"Discharge Summary",
    "id":"urn:uuid:500bee81-d973-4afe-b592-d39fe71e38",
    "link":[
      {
        "rel":"self",
        "href":"urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc52"
      }
    ],
    "updated":"2013-05-28T22:12:21Z",
    "author":[
      {
        "name":"Dr Dave"
      }
    ],
    "entry":[
      {
        "title":"Document",
        "id":"urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc57",
        "updated":"2013-05-28T22:12:21Z",
        "content":{
          "Document":{
            "created":{
              "value":"2013-02-01T12:30:02+11:00"
            },
            "type":{
              "coding":[
                {
                  "system":{
                    "value":"www.loinc.org"
                  },
                  "code":{
                    "value":"28655-9"
                  }
                }
              ],
              "text":{
                "value":"Discharge Summary from Responsible Clinician"
              }
            },
            "status":{
              "value":"final"
            },
            "confidentiality":{
              "system":{
                "value":"www.nz.org"
              },
              "code":{
                "value":"1234-5"
              },
              "display":{
                "value":"Normal"
              }
            },
            "subject":{
              "type":{
                "value":"Patient"
              },
              "reference":{
                "value":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"
              },
              "display":{
                "value":"Eve Everywoman"
              }
            },
            "author":[
              {
                "type":{
                  "value":"Practitioner"
                },
                "reference":{
                  "value":"http://hl7connect.healthintersections.com.au/svc/fhir/practitioner/@example"
                },
                "display":{
                  "value":"Doctor Dave"
                }
              }
            ],
            "section":[
              {
                "code":{
                  "text":{
                    "value":"Encounter Information"
                  }
                },
                "content":{
                  "type":{
                    "value":"Encounter"
                  },
                  "reference":{
                    "value":"http://hl7connect.healthintersections.com.au/svc/fhir/encounter/@example"
                  }
                }
              },
              {
                "code":{
                  "coding":[
                    {
                      "system":{
                        "value":"http://loinc.org"
                      },
                      "code":{
                        "value":"46241-6"
                      }
                    }
                  ],
                  "text":{
                    "value":"Reason for admission"
                  }
                },
                "content":{
                  "type":{
                    "value":"Observation"
                  },
                  "reference":{
                    "value":"urn:guid:d0dd51d3-3ab2-4c84-b697-a630c3e40e7a"
                  }
                }
              },
              {
                "code":{
                  "coding":[
                    {
                      "system":{
                        "value":"http://loinc.org"
                      },
                      "code":{
                        "value":"10183-2"
                      }
                    }
                  ],
                  "text":{
                    "value":"Medications on Discharge"
                  }
                },
                "content":{
                  "type":{
                    "value":"List"
                  },
                  "reference":{
                    "value":"urn:guid:673f8db5-0ffd-4395-9657-6da00420bbc1"
                  }
                }
              },
              {
                "code":{
                  "coding":[
                    {
                      "system":{
                        "value":"http://loinc.org"
                      },
                      "code":{
                        "value":"48765-2"
                      }
                    }
                  ],
                  "text":{
                    "value":"Known allergies"
                  }
                },
                "content":{
                  "type":{
                    "value":"List"
                  },
                  "reference":{
                    "value":"urn:guid:68f86194-e6e1-4f65-b64a-5314256f8d7b"
                  }
                }
              }
            ]
          }
        }
      },
      {
        "title":"Written by Doctor Dave",
        "id":"http://hl7connect.healthintersections.com.au/svc/fhir/practitioner/@example",
        "link":[
          {
            "rel":"self",
            "href":"http://hl7connect.healthintersections.com.au/svc/fhir/practitioner/@example/history/@1"
          }
        ],
        "updated":"2013-05-05T16:13:03Z",
        "published":"2013-05-28T22:12:21Z",
        "author":[
          {
            "name":"68.151.217.168"
          }
        ],
        "content":{
          "Practitioner":{
            "text":{
              "status":{
                "value":"generated"
              },
              "div":"<div>\n                        <h5>Doctor dave<\/h5>\n                    <\/div>"
            },
            "name":{
              "text":{
                "value":"Doctor Dave"
              }
            }
          }
        }
      },
      {
        "title":"About Eve Everywoman",
        "id":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1",
        "link":[
          {
            "rel":"self",
            "href":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1/history/@10"
          }
        ],
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"68.151.217.168"
          }
        ],
        "content":{
          "Patient":{
            "text":{
              "status":{
                "value":"generated"
              },
              "div":"<div>\n                        <h5>Eve Everywoman<\/h5>\n                    <\/div>"
            },
            "identifier":[
              {
                "system":{
                  "value":"nhi"
                }
              }
            ],
            "name":[
              {
                "text":{
                  "value":"Eve Everywoman"
                },
                "family":[
                  {
                    "value":"Everywoman1"
                  }
                ],
                "given":[
                  {
                    "value":"Eve"
                  }
                ]
              }
            ],
            "telecom":[
              {
                "system":{
                  "value":"phone"
                },
                "value":{
                  "value":"555-555-2003"
                },
                "use":{
                  "value":"work"
                }
              }
            ],
            "gender":{
              "coding":[
                {
                  "system":{
                    "value":"http://hl7.org/fhir/v3/AdministrativeGender"
                  },
                  "code":{
                    "value":"F"
                  },
                  "display":{
                    "value":"Female"
                  }
                }
              ]
            },
            "birthDate":{
              "value":"1955-01-06"
            },
            "address":[
              {
                "use":{
                  "value":"home"
                },
                "line":[
                  {
                    "value":"2222 Home Street"
                  }
                ]
              }
            ],
            "active":{
              "value":true
            }
          }
        },
        "summary":"<div>\n                <h5>Eve Everywoman<\/h5>\n            <\/div>"
      },
      {
        "title":"Admission to Middlemore ",
        "id":"http://hl7connect.healthintersections.com.au/svc/fhir/encounter/@example",
        "link":[
          {
            "rel":"self",
            "href":"http://hl7connect.healthintersections.com.au/svc/fhir/encounter/@example/history/@1"
          }
        ],
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"68.151.217.168"
          }
        ],
        "content":{
          "Encounter":{
            "text":{
              "status":{
                "value":"generated"
              },
              "div":"<div> Admitted to Orthopedics Service,\n                        Middlemore Hospital between Jan 20 and Feb ist 2013 <\/div>"
            },
            "identifier":[
              {
                "key":{
                  "value":"S100"
                }
              }
            ],
            "status":{
              "value":"finished"
            },
            "class":{
              "value":"inpatient"
            },
            "type":[
              {
                "text":{
                  "value":"Orthopedic Admission"
                }
              }
            ],
            "subject":{
              "type":{
                "value":"Patient"
              },
              "reference":{
                "value":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"
              }
            },
            "hospitalization":{
              "period":{
                "start":{
                  "value":"2013-01-20T12:30:02"
                },
                "end":{
                  "value":"2013-02-01T12:30:02"
                }
              },
              "dischargeDisposition":{
                "text":{
                  "value":"Discharged to care of GP"
                }
              }
            }
          }
        }
      },
      {
        "title":"Admission Reason",
        "id":"urn:guid:d0dd51d3-3ab2-4c84-b697-a630c3e40e7a",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "Observation":{
            "text":{
              "status":{
                "value":"additional"
              },
              "div":"<div> Acute Asthmatic attack. Was wheezing\n                        for days prior to admission. <\/div>"
            },
            "name":{
              "coding":[
                {
                  "system":{
                    "value":"http://loinc.org"
                  },
                  "code":{
                    "value":"46241-6"
                  }
                }
              ],
              "text":{
                "value":"Reason for admission"
              }
            },
            "valueString":{
              "value":"Acute Asthmatic attack. Was wheezing for days prior to admission."
            },
            "status":{
              "value":"final"
            },
            "reliability":{
              "value":"ok"
            }
          }
        }
      },
      {
        "title":"List of Medications",
        "id":"urn:guid:673f8db5-0ffd-4395-9657-6da00420bbc1",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "List":{
            "text":{
              "status":{
                "value":"additional"
              },
              "div":"<div>\n                        <table>\n                            <thead>\n                                <tr>\n                                    <td>Medication<\/td>\n                                    <td>Last Change<\/td>\n                                    <td>Last ChangeReason<\/td>\n                                <\/tr>\n                            <\/thead>\n                            <tbody>\n                                <tr>\n                                    <td>Theophylline 200mg BD after meals<\/td>\n                                    <td>continued<\/td>\n                                <\/tr>\n                                <tr>\n                                    <td>Ventolin Inhaler<\/td>\n                                    <td>stopped<\/td>\n                                    <td>Getting side effect of tremor<\/td>\n                                <\/tr>\n                            <\/tbody>\n\n                        <\/table>\n                    <\/div>"
            },
            "code":{
              "coding":[
                {
                  "system":{
                    "value":"http://loinc.org"
                  },
                  "code":{
                    "value":"10183-2"
                  },
                  "display":{
                    "value":"Medication List"
                  }
                }
              ]
            },
            "mode":{
              "value":"working"
            },
            "entry":[
              {
                "flag":[
                  {
                    "coding":[
                      {
                        "system":{
                          "value":"http://www.ithealthboard.health.nz/fhir/valueset/@medicationStatus"
                        },
                        "code":{
                          "value":"started"
                        }
                      }
                    ]
                  }
                ],
                "item":{
                  "type":{
                    "value":"MedicationPrescription"
                  },
                  "reference":{
                    "value":"urn:guid:124a6916-5d84-4b8c-b250-10cefb8e6e86"
                  }
                }
              },
              {
                "flag":[
                  {
                    "coding":[
                      {
                        "system":{
                          "value":"http://www.ithealthboard.health.nz/fhir/valueset/@medicationStatus"
                        },
                        "code":{
                          "value":"stopped"
                        }
                      }
                    ]
                  }
                ],
                "deleted":{
                  "value":true
                },
                "item":{
                  "type":{
                    "value":"MedicationPrescription"
                  },
                  "reference":{
                    "value":"http://hl7connect.healthintersections.com.au/svc/fhir/medicationprescription/@1"
                  },
                  "display":{
                    "value":"use of Ventolin Inhaler was discontinued"
                  }
                }
              }
            ]
          }
        }
      },
      {
        "title":"Medication #1",
        "id":"urn:guid:124a6916-5d84-4b8c-b250-10cefb8e6e86",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "MedicationPrescription":{
            "text":{
              "status":{
                "value":"generated"
              },
              "div":"<div>\n                        <p>Theophylline 200mg twice a day<\/p>\n                    <\/div>"
            },
            "contained":[
              {
                "Medication":{
                  "_id":"med1",
                  "name":{
                    "value":"Theophylline 200mg"
                  },
                  "code":{
                    "coding":[
                      {
                        "system":{
                          "value":"http:/snomed.org"
                        },
                        "code":{
                          "value":"66493003"
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "patient":{
              "type":{
                "value":"Patient"
              },
              "reference":{
                "value":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"
              },
              "display":{
                "value":"Peter Patient"
              }
            },
            "prescriber":{
              "type":{
                "value":"Practitioner"
              },
              "reference":{
                "value":"practitioner/@example"
              },
              "display":{
                "value":"Peter Practitioner"
              }
            },
            "reasonForPrescribingString":{
              "value":"Management of Asthma"
            },
            "medication":{
              "type":{
                "value":"Medication"
              },
              "reference":{
                "value":"medication/@example"
              },
              "display":{
                "value":"Theophylline 200mg BD"
              }
            },
            "dosageInstruction":[
              {
                "additionalInstructionsString":{
                  "value":"Take with Food"
                },
                "timingSchedule":{
                  "repeat":{
                    "frequency":{
                      "value":2
                    },
                    "duration":{
                      "value":"1"
                    },
                    "units":{
                      "value":"d"
                    }
                  }
                },
                "route":{
                  "coding":[
                    {
                      "system":{
                        "value":"http://snomed.info/sct"
                      },
                      "code":{
                        "value":"363743006"
                      },
                      "display":{
                        "value":"oral administration of treatment"
                      }
                    }
                  ]
                },
                "doseQuantity":{
                  "value":{
                    "value":"1"
                  },
                  "units":{
                    "value":"tablet"
                  },
                  "system":{
                    "value":"http://unitsofmeasure.org"
                  },
                  "code":{
                    "value":"tbl"
                  }
                }
              }
            ]
          }
        }
      },
      {
        "title":"List of Allergies",
        "id":"urn:guid:68f86194-e6e1-4f65-b64a-5314256f8d7b",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "List":{
            "text":{
              "status":{
                "value":"additional"
              },
              "div":"<div>\n                        <table>\n                            <thead>\n                                <tr>\n                                    <td>Allergen<\/td>\n                                    <td>Reaction<\/td>\n                                <\/tr>\n                            <\/thead>\n                            <tbody>\n                                <tr>\n                                    <td>Doxycycline<\/td>\n                                    <td>Hives<\/td>\n                                <\/tr>\n                            <\/tbody>\n\n                        <\/table>\n                    <\/div>"
            },
            "code":{
              "coding":[
                {
                  "system":{
                    "value":"http://loinc.org"
                  },
                  "code":{
                    "value":"48765-2"
                  },
                  "display":{
                    "value":"Allergies"
                  }
                }
              ]
            },
            "mode":{
              "value":"working"
            },
            "entry":[
              {
                "item":{
                  "type":{
                    "value":"AllergyIntolerance"
                  },
                  "reference":{
                    "value":"urn:guid:47600e0f-b6b5-4308-84b5-5dec157f7637"
                  }
                }
              }
            ]
          }
        }
      },
      {
        "title":"Allergy to Doxycycline",
        "id":"urn:guid:47600e0f-b6b5-4308-84b5-5dec157f7637",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "AllergyIntolerance":{
            "text":{
              "status":{
                "value":"generated"
              },
              "div":"<div>Sensitivity to Doxycycline :\n                        Hives<\/div>"
            },
            "criticality":{
              "value":"fatal"
            },
            "sensitivityType":{
              "value":"allergy"
            },
            "recordedDate":{
              "value":"2012-09-17"
            },
            "status":{
              "value":"confirmed"
            },
            "subject":{
              "type":{
                "value":"Patient"
              },
              "reference":{
                "value":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"
              },
              "display":{
                "value":"Eve Everywoman"
              }
            },
            "substance":{
              "type":{
                "value":"Substance"
              },
              "reference":{
                "value":"urn:guid:4c2d16c0-b102-486c-aa7c-b266ce98709f"
              },
              "display":{
                "value":"Doxycycline"
              }
            },
            "reaction":[
              {
                "type":{
                  "value":"AdverseReaction"
                },
                "reference":{
                  "value":"urn:guid:25be7cdf-7055-40fa-80ac-defd531180dd"
                },
                "display":{
                  "value":"Hives"
                }
              }
            ]
          }
        }
      },
      {
        "title":"Adverse Reaction",
        "id":"urn:guid:25be7cdf-7055-40fa-80ac-defd531180dd",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "AdverseReaction":{
            "subject":{
              "type":{
                "value":"Patient"
              },
              "reference":{
                "value":"http://hl7connect.healthintersections.com.au/svc/fhir/patient/@d1"
              },
              "display":{
                "value":"Eve Everywoman"
              }
            },
            "didNotOccurFlag":{
              "value":false
            },
            "symptom":[
              {
                "code":{
                  "coding":[
                    {
                      "system":{
                        "value":"sys"
                      },
                      "code":{
                        "value":"xxx"
                      },
                      "display":{
                        "value":"Hives"
                      }
                    }
                  ],
                  "text":{
                    "value":"Hives"
                  }
                }
              }
            ]
          }
        }
      },
      {
        "title":"Substance",
        "id":"urn:guid:4c2d16c0-b102-486c-aa7c-b266ce98709f",
        "updated":"2013-05-05T16:13:03Z",
        "author":[
          {
            "name":"Dr Dave"
          }
        ],
        "content":{
          "Substance":{
            "text":{
              "status":{
                "value":"generated"
              },
              "div":"<div>Doxycycline<\/div>"
            },
            "name":{
              "value":"Doxycycline"
            },
            "type":{
              "coding":[
                {
                  "system":{
                    "value":"codesys"
                  },
                  "code":{
                    "value":"123445"
                  },
                  "display":{
                    "value":"Doxycycline"
                  }
                }
              ]
            }
          }
        }
      }
    ]
  }
}