This page is part of the FHIR Specification (v0.0.82: DSTU 1). 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 Content Examples Formal Definitions Mappings Profiles 6.8.6 Resource Composition - Examples Example Index: Simple Example of a Composition XML JSON Example of a discharge summary XML JSON 6.8.6.1 Example XML Simple Example of a Composition (id = "example") Raw XML </Composition> JSON Simple Example of a Composition { "resourceType": "Composition", "text": { "status": "generated", "div": "<div>\n <p>Consultation note for Henry Levin the 7th</p>\n </div>" }, "identifier": { "system": "http://healthintersections.com.au/test", "value": "1" }, "date": "2012-01-04T09:10:14Z", "type": { "coding": [ { "system": "http://loinc.org", "code": "11488-4", "display": "Consult note" } ] }, "status": "final", "confidentiality": { "system": "http://ihe.net/xds/connectathon/confidentialityCodes", "code": "1.3.6.1.4.1.21367.2006.7.101", "display": "Clinical-Staff" }, "subject": { "reference": "Patient/xcda", "display": "Henry Levin the 7th" }, "author": [ { "reference": "Practitioner/xcda-author", "display": "Robert Dolin MD" } ], "attester": [ { "mode": [ "legal" ], "party": { "reference": "Practitioner/xcda-author", "display": "Robert Dolin MD" } } ], "custodian": { "reference": "Organization/2.16.840.1.113883.19.5", "display": "Good Health Clinic" }, "section": [ { "title": "History of present illness", "code": { "coding": [ { "system": "http://loinc.org", "code": "10164-2" } ] }, "content": { "reference": "MedicationAdministration/example" } } ] } 6.8.6.2 DischargeSummary XML Example of a discharge summary (id = "father") Raw XML : 1-Feb 2013 12:30 : : final_ : : Doctor Dave <!-- The Encounter resource. Points directly to an Encounter resource. Contains the dates of admission, specialtyu etc. --> Admitted to Orthopedics Service, Middlemore Hospital between Jan 20 and Feb ist 2013 Acute Asthmatic attack. Was wheezing for days prior to admission. <!-- This is an entry that refers to a MedicationPrescription resource in this document. It is a new medication (as indicated by the flag) --> <!-- 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 --> <!-- 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) --> <!-- 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 (i.e. where the medication terminology is hosted on a publically available server and simply referenced from the MedicationPrescription resource is particularly attractive... --> <!-- 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 --> <!-- The prescriber details could also be within the bundle, but has the same options as patient --> <!-- 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 --> Sensitivity to Doxycycline : Hives : Eve Everywoman : false </feed> JSON Example of a discharge summary { "resourceType": "Bundle", "title": "Discharge Summary", "id": "urn:uuid:500bee81-d973-4afe-b592-d39fe71e38", "updated": "2013-05-28T22:12:21Z", "category": [ { "scheme": "http://hl7.org/fhir/tag", "term": "http://hl7.org/fhir/tag/document" } ], "author": [ { "name": "Dr Dave" } ], "entry": [ { "title": "Composition", "id": "urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc57", "updated": "2013-05-28T22:12:21Z", "content": { "resourceType": "Composition", "text": { "status": "generated", "div": "<div>\n <p>\n <b>Generated Narrative</b>\n </p>\n <p>\n <b>date</b>: 1-Feb 2013 12:30\n </p>\n <p>\n <b>type</b>: \n <span title=\"Codes: {www.loinc.org 28655-9}\">Discharge Summary from Responsible Clinician</span>\n </p>\n <p>\n <b>status</b>: final_\n </p>\n <p>\n <b>confidentiality</b>: \n <span title=\"{www.nz.org 1234-5}\">Normal</span>\n </p>\n <p>\n <b>author</b>: Doctor Dave\n </p>\n </div>" }, "date": "2013-02-01T12:30:02", "type": { "coding": [ { "system": "www.loinc.org", "code": "28655-9" } ], "text": "Discharge Summary from Responsible Clinician" }, "status": "final", "confidentiality": { "system": "www.nz.org", "code": "1234-5", "display": "Normal" }, "subject": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Patient/d1", "display": "Eve Everywoman" }, "author": [ { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Practitioner/example", "display": "Doctor Dave" } ], "section": [ { "title": "Encounter Information", "content": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Encounter/example" } }, { "title": "Reason for admission", "code": { "coding": [ { "system": "http://loinc.org", "code": "46241-6" } ] }, "content": { "reference": "urn:guid:d0dd51d3-3ab2-4c84-b697-a630c3e40e7a" } }, { "title": "Medications on Discharge", "code": { "coding": [ { "system": "http://loinc.org", "code": "10183-2" } ] }, "content": { "reference": "urn:guid:673f8db5-0ffd-4395-9657-6da00420bbc1" } }, { "title": "Known allergies", "code": { "coding": [ { "system": "http://loinc.org", "code": "48765-2" } ] }, "content": { "reference": "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": { "resourceType": "Practitioner", "text": { "status": "generated", "div": "<div>\n \n <h5>Doctor dave</h5>\n \n </div>" }, "name": { "text": "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": { "resourceType": "Patient", "text": { "status": "generated", "div": "<div>\n \n <h5>Eve Everywoman</h5>\n \n </div>" }, "identifier": [ { "system": "nhi" } ], "name": [ { "text": "Eve Everywoman", "family": [ "Everywoman1" ], "given": [ "Eve" ] } ], "telecom": [ { "system": "phone", "value": "555-555-2003", "use": "work" } ], "gender": { "coding": [ { "system": "http://hl7.org/fhir/v3/AdministrativeGender", "code": "F", "display": "Female" } ] }, "birthDate": "1955-01-06", "address": [ { "use": "home", "line": [ "2222 Home Street" ] } ], "active": true }, "summary": "<div>\n \n <h5>Eve Everywoman</h5>\n \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": { "resourceType": "Encounter", "text": { "status": "generated", "div": "<div> Admitted to Orthopedics Service,\n Middlemore Hospital between Jan 20 and Feb ist 2013 </div>" }, "identifier": [ { "value": "S100" } ], "status": "finished", "class": "inpatient", "type": [ { "text": "Orthopedic Admission" } ], "subject": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Patient/d1" }, "hospitalization": { "period": { "start": "2013-01-20T12:30:02", "end": "2013-02-01T12:30:02" }, "dischargeDisposition": { "text": "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": { "resourceType": "Observation", "text": { "status": "additional", "div": "<div> Acute Asthmatic attack. Was wheezing\n for days prior to admission. </div>" }, "name": { "coding": [ { "system": "http://loinc.org", "code": "46241-6" } ], "text": "Reason for admission" }, "valueString": "Acute Asthmatic attack. Was wheezing for days prior to admission.", "status": "final", "reliability": "ok" } }, { "title": "List of Medications", "id": "urn:guid:673f8db5-0ffd-4395-9657-6da00420bbc1", "updated": "2013-05-05T16:13:03Z", "author": [ { "name": "Dr Dave" } ], "content": { "resourceType": "List", "text": { "status": "additional", "div": "<div>\n \n <table>\n \n <thead>\n \n <tr>\n \n <td>Medication</td>\n \n <td>Last Change</td>\n \n <td>Last ChangeReason</td>\n \n </tr>\n \n </thead>\n \n <tbody>\n \n <tr>\n \n <td>Theophylline 200mg BD after meals</td>\n \n <td>continued</td>\n \n </tr>\n \n <tr>\n \n <td>Ventolin Inhaler</td>\n \n <td>stopped</td>\n \n <td>Getting side effect of tremor</td>\n \n </tr>\n \n </tbody>\n\n \n </table>\n \n </div>" }, "code": { "coding": [ { "system": "http://loinc.org", "code": "10183-2", "display": "Hospital discharge medications" } ] }, "mode": "working", "entry": [ { "flag": [ { "coding": [ { "system": "http://www.ithealthboard.health.nz/fhir/ValueSet/medicationStatus", "code": "started" } ] } ], "item": { "reference": "urn:guid:124a6916-5d84-4b8c-b250-10cefb8e6e86" } }, { "flag": [ { "coding": [ { "system": "http://www.ithealthboard.health.nz/fhir/ValueSet/medicationStatus", "code": "stopped" } ] } ], "deleted": true, "item": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/MedicationPrescription/1", "display": "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": { "resourceType": "MedicationPrescription", "text": { "status": "generated", "div": "<div>\n \n <p>Theophylline 200mg twice a day</p>\n \n </div>" }, "contained": [ { "resourceType": "Medication", "id": "med1", "name": "Theophylline 200mg", "code": { "coding": [ { "system": "http:/snomed.org", "code": "66493003" } ] } } ], "patient": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Patient/d1", "display": "Peter Patient" }, "prescriber": { "reference": "Practitioner/example", "display": "Peter Practitioner" }, "reasonCodeableConcept": { "text": "Management of Asthma" }, "medication": { "reference": "Medication/example", "display": "Theophylline 200mg BD" }, "dosageInstruction": [ { "additionalInstructions": { "text": "Take with Food" }, "timingSchedule": { "repeat": { "frequency": 2, "duration": 1, "units": "d" } }, "route": { "coding": [ { "system": "http://snomed.info/sct", "code": "394899003", "display": "oral administration of treatment" } ] }, "doseQuantity": { "value": 1, "units": "tablet", "system": "http://unitsofmeasure.org", "code": "tbl" } } ] } }, { "title": "List of Allergies", "id": "urn:guid:68f86194-e6e1-4f65-b64a-5314256f8d7b", "updated": "2013-05-05T16:13:03Z", "author": [ { "name": "Dr Dave" } ], "content": { "resourceType": "List", "text": { "status": "additional", "div": "<div>\n \n <table>\n \n <thead>\n \n <tr>\n \n <td>Allergen</td>\n \n <td>Reaction</td>\n \n </tr>\n \n </thead>\n \n <tbody>\n \n <tr>\n \n <td>Doxycycline</td>\n \n <td>Hives</td>\n \n </tr>\n \n </tbody>\n\n \n </table>\n \n </div>" }, "code": { "coding": [ { "system": "http://loinc.org", "code": "48765-2", "display": "Allergies and adverse reactions Document" } ] }, "mode": "working", "entry": [ { "item": { "reference": "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": { "resourceType": "AllergyIntolerance", "text": { "status": "generated", "div": "<div>Sensitivity to Doxycycline :\n Hives</div>" }, "criticality": "fatal", "sensitivityType": "allergy", "recordedDate": "2012-09-17", "status": "confirmed", "subject": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Patient/d1", "display": "Eve Everywoman" }, "substance": { "reference": "urn:guid:4c2d16c0-b102-486c-aa7c-b266ce98709f", "display": "Doxycycline" }, "reaction": [ { "reference": "urn:guid:25be7cdf-7055-40fa-80ac-defd531180dd", "display": "Hives" } ] } }, { "title": "Adverse Reaction", "id": "urn:guid:25be7cdf-7055-40fa-80ac-defd531180dd", "updated": "2013-05-05T16:13:03Z", "author": [ { "name": "Dr Dave" } ], "content": { "resourceType": "AdverseReaction", "text": { "status": "generated", "div": "<div>\n <p>\n <b>Generated Narrative</b>\n </p>\n <p>\n <b>subject</b>: Eve Everywoman\n </p>\n <p>\n <b>didNotOccurFlag</b>: false\n </p>\n <h3>Symptoms</h3>\n <table class=\"grid\">\n <tr>\n <td>\n <b>Code</b>\n </td>\n <td>\n <b>Severity</b>\n </td>\n </tr>\n <tr>\n <td>\n <span title=\"Codes: {sys xxx}\">Hives</span>\n </td>\n <td> </td>\n </tr>\n </table>\n </div>" }, "subject": { "reference": "http://hl7connect.healthintersections.com.au/svc/fhir/Patient/d1", "display": "Eve Everywoman" }, "didNotOccurFlag": false, "symptom": [ { "code": { "coding": [ { "system": "sys", "code": "xxx", "display": "Hives" } ], "text": "Hives" } } ] } }, { "title": "Substance", "id": "urn:guid:4c2d16c0-b102-486c-aa7c-b266ce98709f", "updated": "2013-05-05T16:13:03Z", "author": [ { "name": "Dr Dave" } ], "content": { "resourceType": "Substance", "text": { "status": "generated", "div": "<div>Doxycycline</div>" }, "type": { "coding": [ { "system": "codesys", "code": "123445", "display": "Doxycycline" } ] } } } ] } © HL7.org 2011+. FHIR DSTU (v0.0.82.2943) generated on Tue, Sep 30, 2014 18:09+1000. Links: What's a DSTU? | Version History | | Propose a change var disqus_shortname = 'fhirdstu';(function() {var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); Please enable JavaScript to view the comments powered by Disqus. comments powered by Disqus var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-676355-1']); _gaq.push(['_setDomainName', '.hl7.org']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();