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
Example Index:
Lab data | XML | JSON |
Query for glucose information | XML | JSON |
Lab data
Lab data (id = "lab")
<DeviceObservation xmlns="http://hl7.org/fhir"> <!-- The device observation examples are based on the example from http://ihe.net/Technical_Framework/upl oad/IHE_PCD_TF_Vol2.pdf: MSH|^~\&amp;|HL7^080019FFFF4F6AC0^EUI-64|MMS|||20081211144500||ORU^R01^ORU_R01|12d15a9:11df9e613 47:7fee:30456965|P|2.6|20081211144500||NE|AL||8859/1|||IHE PCD ORU-R01 2006^HL7^Universal ID^HL7 PID|||AB60001^^^A^PI||BROOKS^ALBERT^^^^^L PV1||E|3 WEST ICU^3001^1 OBR|1|080019FFFF4F6AFE20081211144657^AwareGateway^080019FFFF4F6AC0^EUI-64|080019FFFF4F6AC02008121114 4657^AwareGateway^080019FFFF4F6AC0^EUI-64|126.169.95.2^2000^MDC|||20081211144500 OBX|1|NM|147842^MDC_ECG_HEART_RATE^MDC|1.6.1.1|60|/min^/min^UCUM|||||R||||||||| OBX|2|NM|148065^MDC_ECG_V_P_C_CNT^MDC|1.6.1.2|0|/min^/min^UCUM|||||R||||||||| OBX|3|NM|150035^MDC_PRESS_BLD_ART_MEAN^MDC|1.3.1.1|92|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| OBX|4|NM|150033^MDC_PRESS_BLD_ART_SYS^MDC|1.3.1.2|120|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| OBX|5|NM|150034^MDC_PRESS_BLD_ART_DIA^MDC|1.3.1.3|80|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| OBX|6|NM|149522^MDC_BLD_PULS_RATE_INV^MDC|1.2.1.1|60|/min^/min^UCUM|||||R||||||||| OBX|7|NM|150047^MDC_PRESS_BLD_ART_PULM_MEAN^MDC|1.4.2.1|14|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| OBX|8|NM|150045^MDC_PRESS_BLD_ART_PULM_SYS^MDC|1.4.2.2|25|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| OBX|9|NM|150046^MDC_PRESS_BLD_ART_PULM_DIA^MDC|1.4.2.3|10|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <!-- For the purposes of this example - principally to have a single file that includes the important parts - the observations are contained within the Device Observation report. In production usage, putting the granular observations inside the device observation resource means that the individual observations don't have an identity. Systems that wish to extract and use these granular observations have to re-identify them. The Condition for these systems is that this must be done consistently, else there'll be cloned observations, and the users will get confused by spurious copies of the data. Systems that need to re-identify the granular observations could do so using the Observation.identity element - *if* it's populated completely and correctly. But must easier to properly identify the observations first rather than making them contained ones (even though this is easier for the sender) --> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">[Put rendering here]</div> </text> <contained> <!-- OBX|1|NM|147842^MDC_ECG_HEART_RATE^MDC|1.6.1.1|60|/min^/min^UCUM|||||R||||||||| --> <Observation id="o1"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="147842"/> <display value="MDC_ECG_HEART_RATE"/> </coding> </name> <valueQuantity> <value value="60"/> <units value="/min"/> <system value="http://unitsofmeasure.org"/> <code value="/min"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|2|NM|148065^MDC_ECG_V_P_C_CNT^MDC|1.6.1.2|0|/min^/min^UCUM|||||R||||||||| --> <Observation id="o2"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="148065"/> <display value="MDC_ECG_V_P_C_CNT"/> </coding> </name> <valueQuantity> <value value="0"/> <units value="/min"/> <system value="http://unitsofmeasure.org"/> <code value="/min"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|3|NM|150035^MDC_PRESS_BLD_ART_MEAN^MDC|1.3.1.1|92|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <Observation id="o3"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="147842"/> <display value="MDC_ECG_HEART_RATE"/> </coding> </name> <valueQuantity> <value value="60"/> <units value="/min"/> <system value="http://unitsofmeasure.org"/> <code value="/min"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|4|NM|150033^MDC_PRESS_BLD_ART_SYS^MDC|1.3.1.2|120|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <Observation id="o4"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="150033"/> <display value="MDC_PRESS_BLD_ART_SYS"/> </coding> </name> <valueQuantity> <value value="120"/> <units value="mmHg"/> <system value="http://unitsofmeasure.org"/> <code value="mm[Hg]"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|5|NM|150034^MDC_PRESS_BLD_ART_DIA^MDC|1.3.1.3|80|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <Observation id="o5"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="150034"/> <display value="MDC_PRESS_BLD_ART_DIA"/> </coding> </name> <valueQuantity> <value value="80"/> <units value="mmHg"/> <system value="http://unitsofmeasure.org"/> <code value="mm[Hg]"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|6|NM|149522^MDC_BLD_PULS_RATE_INV^MDC|1.2.1.1|60|/min^/min^UCUM|||||R||||||||| --> <Observation id="o6"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="149522"/> <display value="MDC_BLD_PULS_RATE_INV"/> </coding> </name> <valueQuantity> <value value="60"/> <units value="/min"/> <system value="http://unitsofmeasure.org"/> <code value="/min"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|7|NM|150047^MDC_PRESS_BLD_ART_PULM_MEAN^MDC|1.4.2.1|14|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <Observation id="o7"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="150047"/> <display value="MDC_PRESS_BLD_ART_PULM_MEAN"/> </coding> </name> <valueQuantity> <value value="14"/> <units value="mmHg"/> <system value="http://unitsofmeasure.org"/> <code value="mm[Hg]"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|8|NM|150045^MDC_PRESS_BLD_ART_PULM_SYS^MDC|1.4.2.2|25|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <Observation id="o8"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="150045"/> <display value="MDC_PRESS_BLD_ART_PULM_SYS"/> </coding> </name> <valueQuantity> <value value="25"/> <units value="mmHg"/> <system value="http://unitsofmeasure.org"/> <code value="mm[Hg]"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <contained> <!-- OBX|9|NM|150046^MDC_PRESS_BLD_ART_PULM_DIA^MDC|1.4.2.3|10|mm[Hg]^mm[Hg]^UCUM|||||R||||||||| --> <Observation id="o9"> <name> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="150046"/> <display value="MDC_PRESS_BLD_ART_PULM_DIA"/> </coding> </name> <valueQuantity> <value value="10"/> <units value="mmHg"/> <system value="http://unitsofmeasure.org"/> <code value="mm[Hg]"/> </valueQuantity> <status value="interim"/> <reliability value="ok"/> </Observation> </contained> <!-- OBR|1|080019FFFF4F6AFE20081211144657^AwareGateway^080019FFFF4F6AC0^EUI-64|080019FFFF4F6AC020081211 144657^AwareGateway^080019FFFF4F6AC0^EUI-64|126.169.95.2^2000^MDC|||20081211144500 --> <code> <coding> <system value="urn:std:iso:11073:10101"/> <!-- mdc --> <code value="126.169.95.2"/> <display value="2000"/> <!-- weird, but that's what the IHE message has --> </coding> </code> <identifier> <!-- this is probably the right way to interpret OBR-2? --> <system value="http://acme.org/examples/AwareGateway/080019FFFF4F6AC0"/> <key value="080019FFFF4F6AFE20081211144657"/> </identifier> <issued value="2008-12-11T14:45:00"/> <subject> <type value="Patient"/> <reference value="patient/@ihe-pcd"/> </subject> <device> <type value="Device"/> <reference value="device/@ihe-pcd"/> </device> <measurement> <type value="Observation"/> <reference value="#o1"/> </measurement> <measurement> <type value="Observation"/> <reference value="#o2"/> </measurement> <measurement> <type value="Observation"/> <reference value="#o3"/> </measurement> <measurement> <type value="Observation"/> <reference value="#o4"/> </measurement> <measurement> <type value="Observation"/> <reference value="#o5"/> </measurement> <measurement> <type value="Observation"/> <reference value="#o6"/> </measurement> <measurement> <type value="Observation"/> <reference value="#o7"/> </measurement> </DeviceObservation>
JSON Equivalent
Lab data
{ "DeviceObservation":{ "text":{ "status":{ "value":"generated" }, "div":"<div>[Put rendering here]<\/div>" }, "contained":[ { "Observation":{ "_id":"o1", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"147842" }, "display":{ "value":"MDC_ECG_HEART_RATE" } } ] }, "valueQuantity":{ "value":{ "value":"60" }, "units":{ "value":"/min" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"/min" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o2", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"148065" }, "display":{ "value":"MDC_ECG_V_P_C_CNT" } } ] }, "valueQuantity":{ "value":{ "value":"0" }, "units":{ "value":"/min" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"/min" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o3", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"147842" }, "display":{ "value":"MDC_ECG_HEART_RATE" } } ] }, "valueQuantity":{ "value":{ "value":"60" }, "units":{ "value":"/min" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"/min" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o4", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"150033" }, "display":{ "value":"MDC_PRESS_BLD_ART_SYS" } } ] }, "valueQuantity":{ "value":{ "value":"120" }, "units":{ "value":"mmHg" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"mm[Hg]" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o5", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"150034" }, "display":{ "value":"MDC_PRESS_BLD_ART_DIA" } } ] }, "valueQuantity":{ "value":{ "value":"80" }, "units":{ "value":"mmHg" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"mm[Hg]" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o6", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"149522" }, "display":{ "value":"MDC_BLD_PULS_RATE_INV" } } ] }, "valueQuantity":{ "value":{ "value":"60" }, "units":{ "value":"/min" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"/min" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o7", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"150047" }, "display":{ "value":"MDC_PRESS_BLD_ART_PULM_MEAN" } } ] }, "valueQuantity":{ "value":{ "value":"14" }, "units":{ "value":"mmHg" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"mm[Hg]" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o8", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"150045" }, "display":{ "value":"MDC_PRESS_BLD_ART_PULM_SYS" } } ] }, "valueQuantity":{ "value":{ "value":"25" }, "units":{ "value":"mmHg" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"mm[Hg]" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } }, { "Observation":{ "_id":"o9", "name":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"150046" }, "display":{ "value":"MDC_PRESS_BLD_ART_PULM_DIA" } } ] }, "valueQuantity":{ "value":{ "value":"10" }, "units":{ "value":"mmHg" }, "system":{ "value":"http://unitsofmeasure.org" }, "code":{ "value":"mm[Hg]" } }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" } } } ], "code":{ "coding":[ { "system":{ "value":"urn:std:iso:11073:10101" }, "code":{ "value":"126.169.95.2" }, "display":{ "value":"2000" } } ] }, "identifier":[ { "system":{ "value":"http://acme.org/examples/AwareGateway/080019FFFF4F6AC0" }, "key":{ "value":"080019FFFF4F6AFE20081211144657" } } ], "issued":{ "value":"2008-12-11T14:45:00+11:00" }, "subject":{ "type":{ "value":"Patient" }, "reference":{ "value":"patient/@ihe-pcd" } }, "device":{ "type":{ "value":"Device" }, "reference":{ "value":"device/@ihe-pcd" } }, "measurement":[ { "type":{ "value":"Observation" }, "reference":{ "value":"#o1" } }, { "type":{ "value":"Observation" }, "reference":{ "value":"#o2" } }, { "type":{ "value":"Observation" }, "reference":{ "value":"#o3" } }, { "type":{ "value":"Observation" }, "reference":{ "value":"#o4" } }, { "type":{ "value":"Observation" }, "reference":{ "value":"#o5" } }, { "type":{ "value":"Observation" }, "reference":{ "value":"#o6" } }, { "type":{ "value":"Observation" }, "reference":{ "value":"#o7" } } ] } }
Query for glucose information
Query for glucose information (id = "example")
<feed xmlns="http://www.w3.org/2005/Atom"> <title>Glucose Query Result</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 first result --> <entry> <title>Glucose Result</title> <id>urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc58</id> <updated>2013-05-28T22:12:21Z</updated> <content type="text/xml"> <DeviceObservation xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">Glucose 5.5 mmol/l</div> </text> <contained> <Observation id="o1"> <name> <coding> <system value="http://snomed.info/sct"/> <!-- snomed --> <code value="308113006"/> <display value="Self Monitoring Blood glucose"/> </coding> </name> <status value="interim"/> <reliability value="ok"/> <component> <name> <coding> <system value="http://snomed.info/sct"/> <!-- snomed --> <code value="308113006"/> <display value="Self Monitoring Blood glucose"/> </coding> </name> <valueQuantity> <value value="5.5"/> <units value="mmol/L"/> </valueQuantity> </component> </Observation> </contained> <code> <coding> <system value="or"/> <code value="glu"/> </coding> </code> <issued value="2008-12-11T14:45:00"/> <subject> <type value="Patient"/> <reference value="patient/@ihe-pcd"/> </subject> <device> <type value="Device"/> <reference value="device/@ihe-pcd"/> </device> <measurement> <type value="Observation"/> <reference value="#o1"/> </measurement> </DeviceObservation> </content> </entry> <!-- The second result --> <entry> <title>Glucose Result</title> <id>urn:guid:f539c23c-23a6-4fdc-b73f-898fbccce074</id> <updated>2013-05-28T22:12:21Z</updated> <content type="text/xml"> <DeviceObservation xmlns="http://hl7.org/fhir"> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">Glucose 5.6 mmol/l</div> </text> <contained> <Observation id="o2"> <name> <coding> <system value="http://snomed.info/sct"/> <!-- snomed --> <code value="308113006"/> <display value="Self Monitoring Blood glucose"/> </coding> </name> <status value="interim"/> <reliability value="ok"/> <component> <name> <coding> <system value="http://snomed.info/sct"/> <!-- snomed --> <code value="308113006"/> <display value="Self Monitoring Blood glucose"/> </coding> </name> <valueQuantity> <value value="5.6"/> <units value="mmol/L"/> </valueQuantity> </component> </Observation> </contained> <code> <coding> <system value="or"/> <code value="glu"/> </coding> </code> <issued value="2008-12-11T15:45:00"/> <subject> <type value="Patient"/> <reference value="patient/@ihe-pcd"/> </subject> <device> <type value="Device"/> <reference value="device/@ihe-pcd"/> </device> <measurement> <type value="Observation"/> <reference value="#o2"/> </measurement> </DeviceObservation> </content> </entry> </feed>
JSON Equivalent
Query for glucose information
{ "feed":{ "title":"Glucose Query Result", "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":"Glucose Result", "id":"urn:guid:180f219f-97a8-486d-99d9-ed631fe4fc58", "updated":"2013-05-28T22:12:21Z", "content":{ "DeviceObservation":{ "text":{ "status":{ "value":"generated" }, "div":"<div>Glucose 5.5 mmol/l<\/div>" }, "contained":[ { "Observation":{ "_id":"o1", "name":{ "coding":[ { "system":{ "value":"http://snomed.info/sct" }, "code":{ "value":"308113006" }, "display":{ "value":"Self Monitoring Blood glucose" } } ] }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" }, "component":[ { "name":{ "coding":[ { "system":{ "value":"http://snomed.info/sct" }, "code":{ "value":"308113006" }, "display":{ "value":"Self Monitoring Blood glucose" } } ] }, "valueQuantity":{ "value":{ "value":"5.5" }, "units":{ "value":"mmol/L" } } } ] } } ], "code":{ "coding":[ { "system":{ "value":"or" }, "code":{ "value":"glu" } } ] }, "issued":{ "value":"2008-12-11T14:45:00+11:00" }, "subject":{ "type":{ "value":"Patient" }, "reference":{ "value":"patient/@ihe-pcd" } }, "device":{ "type":{ "value":"Device" }, "reference":{ "value":"device/@ihe-pcd" } }, "measurement":[ { "type":{ "value":"Observation" }, "reference":{ "value":"#o1" } } ] } } }, { "title":"Glucose Result", "id":"urn:guid:f539c23c-23a6-4fdc-b73f-898fbccce074", "updated":"2013-05-28T22:12:21Z", "content":{ "DeviceObservation":{ "text":{ "status":{ "value":"generated" }, "div":"<div>Glucose 5.6 mmol/l<\/div>" }, "contained":[ { "Observation":{ "_id":"o2", "name":{ "coding":[ { "system":{ "value":"http://snomed.info/sct" }, "code":{ "value":"308113006" }, "display":{ "value":"Self Monitoring Blood glucose" } } ] }, "status":{ "value":"interim" }, "reliability":{ "value":"ok" }, "component":[ { "name":{ "coding":[ { "system":{ "value":"http://snomed.info/sct" }, "code":{ "value":"308113006" }, "display":{ "value":"Self Monitoring Blood glucose" } } ] }, "valueQuantity":{ "value":{ "value":"5.6" }, "units":{ "value":"mmol/L" } } } ] } } ], "code":{ "coding":[ { "system":{ "value":"or" }, "code":{ "value":"glu" } } ] }, "issued":{ "value":"2008-12-11T15:45:00+11:00" }, "subject":{ "type":{ "value":"Patient" }, "reference":{ "value":"patient/@ihe-pcd" } }, "device":{ "type":{ "value":"Device" }, "reference":{ "value":"device/@ihe-pcd" } }, "measurement":[ { "type":{ "value":"Observation" }, "reference":{ "value":"#o2" } } ] } } } ] } }