2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). 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

4.21.8 Resource Observation - Examples

Example Index:

Simple Weight ExampleXMLJSON
Blood Pressure MeasurementXMLJSON
Real-world patient - glucoseXMLJSON
Real-world patient -base excessXMLJSON
Real-world patient - CO2XMLJSON
Real-world patient - erythrocyteXMLJSON
Real-world patient - hemoglobinXMLJSON
Real-world patient - bmiXMLJSON
Real-world patient - temperatureXMLJSON
Real-world patient - CO2XMLJSON
Real-world patient - creatinineXMLJSON
Real-world patient - estimated gfrXMLJSON
Real-world patient - staphylococcusXMLJSON
Oxygen Saturation Example (DeviceMetricObservation profile)XMLJSON
USLab Quantitative Observation Profile Canonical Example: Capillary Blood LeadXMLJSON
USLab Coded Observation Profile Canonical Example: N gonorrhoeae PCRXMLJSON
USLab Other (string) Observation Profile Canonical Example: S.aureusXMLJSON
USLab Ratio Observation Profile Canonical Example: Dengue TiterXMLJSON
USLab Quantitative Observation Profile Canonical Example: Blood LeadXMLJSON
Clinical assessment tool example - Glasgow ScoreXMLJSON

4.21.8.1 Example

XML

Simple Weight Example (id = "example")

Raw XML

<Observation xmlns="http://hl7.org/fhir">
  <id value="example"/>

  <!--  
    Observations are often coded in multiple code systems.
      - Loinc provides a very specific code (though not usefully more specific in this
   particular case)
      - snomed provides a clinically relevant code that is usually less granular than
   LOINC
      - the source system provides it's own code, which may be less or more granular than
   LOINC
    -->
  <code>
    <!--   LOINC - always recommended to have a LOINC code   -->
    <coding>
      <system value="http://loinc.org"/>
      <code value="3141-9"/>
      <display value="Weight Measured"/>
    </coding>
    <!--   SNOMED CT Codes - becoming more common   -->
    <coding>
      <system value="http://snomed.info/sct"/>
      <code value="27113001"/>
      <display value="Body weight"/>
    </coding>
    <!--   Also, a local code specific to the source system   -->
    <coding>
      <system value="http://acme.org/devices/clinical-codes"/>
      <code value="body-weight"/>
      <display value="Body Weight"/>
    </coding>
  </code>

  <!--   In FHIR, units may be represented twice. Once in the
    agreed human representation, and once in a coded form.
    Both is best, since it's not always possible to infer
    one from the other in code.

    When a computable unit is provided, UCUM (http://unitsofmeasure.org)
    is always preferred, but it doesn't provide notional units (such as
    &quot;tablet&quot;), etc. For these, something else is required (e.g. Snomed-CT)
     -->
  <valueQuantity>
    <value value="185"/>
    <units value="lbs"/>
    <system value="http://unitsofmeasure.org"/>
    <code value="[lb_av]"/>
  </valueQuantity>
  <!--   the mandatory quality flags:   -->
  <status value="final"/>
  <reliability value="ok"/>
  <subject>
      <reference value="Patient/example"/>
  </subject>

</Observation>

JSON

Simple Weight Example

Raw JSON (Canonical)

{
  "resourceType": "Observation",
  "id": "example",
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "3141-9",
        "display": "Weight Measured"
      },
      {
        "system": "http://snomed.info/sct",
        "code": "27113001",
        "display": "Body weight"
      },
      {
        "system": "http://acme.org/devices/clinical-codes",
        "code": "body-weight",
        "display": "Body Weight"
      }
    ]
  },
  "valueQuantity": {
    "value": 185,
    "units": "lbs",
    "system": "http://unitsofmeasure.org",
    "code": "[lb_av]"
  },
  "status": "final",
  "reliability": "ok",
  "subject": {
    "reference": "Patient/example"
  }
}

4.21.8.2 Oxygen Saturation

XML

Oxygen Saturation Example (DeviceMetricObservation profile) (id = "satO2")

Raw XML

<Observation xmlns="http://hl7.org/fhir">
  <id value="satO2"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text><!--   
  &lt;extension url=&quot;http://hl7.org/fhir/ExtensionDefinition/relatedDeviceMetric&quot;&gt;
    &lt;valueReference&gt;
    &lt;reference value=&quot;DeviceMetric/example&quot;/&gt;
  &lt;/valueReference&gt;
  &lt;/extension&gt;
     -->
  <code>
    <coding>
      <system value="https://rtmms.nist.gov"/><!--      mdc      -->
      <code value="150456"/>
      <display value="MDC_PULS_OXIM_SAT_O2"/>
    </coding>
  </code>
  <valueQuantity>
    <value value="95"/>
    <units value="percent"/>
    <system value="https://rtmms.nist.gov"/>
    <code value="262688"/>
  </valueQuantity>
  <interpretation>
    <coding>
      <system value="http://hl7.org/fhir/v2/0078"/>
      <code value="N"/>
      <display value="normal"/>
    </coding>
  </interpretation>
  <appliesDateTime value="2014-12-05T09:30:10+01:00"/>
  <status value="final"/>
  <reliability value="ok"/>
  <identifier>
    <system value="http://goodcare.org/observation/id"/>
    <value value="o1223435-10"/>
  </identifier>
  <subject>
    <reference value="Patient/example"/>
  </subject>
  <device><!--   reference value=&quot;Device/ihe-pcd&quot;/   -->
    <reference value="DeviceMetric/example"/>
  </device>
  <referenceRange>
    <low>
      <value value="90"/>
      <units value="percent"/>
      <system value="https://rtmms.nist.gov"/>
      <code value="262688"/>
    </low>
    <high>
      <value value="99"/>
      <units value="percent"/>
      <system value="https://rtmms.nist.gov"/>
      <code value="262688"/>
    </high>
  </referenceRange>
</Observation>

JSON

Oxygen Saturation Example (DeviceMetricObservation profile)

Raw JSON (Canonical)

{
  "resourceType": "Observation",
  "id": "satO2",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "code": {
    "coding": [
      {
        "system": "https://rtmms.nist.gov",
        "code": "150456",
        "display": "MDC_PULS_OXIM_SAT_O2"
      }
    ]
  },
  "valueQuantity": {
    "value": 95,
    "units": "percent",
    "system": "https://rtmms.nist.gov",
    "code": "262688"
  },
  "interpretation": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/v2/0078",
        "code": "N",
        "display": "normal"
      }
    ]
  },
  "appliesDateTime": "2014-12-05T09:30:10+01:00",
  "status": "final",
  "reliability": "ok",
  "identifier": {
    "system": "http://goodcare.org/observation/id",
    "value": "o1223435-10"
  },
  "subject": {
    "reference": "Patient/example"
  },
  "device": {
    "reference": "DeviceMetric/example"
  },
  "referenceRange": [
    {
      "low": {
        "value": 90,
        "units": "percent",
        "system": "https://rtmms.nist.gov",
        "code": "262688"
      },
      "high": {
        "value": 99,
        "units": "percent",
        "system": "https://rtmms.nist.gov",
        "code": "262688"
      }
    }
  ]
}

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.