Release 5 Draft Ballot

This page is part of the FHIR Specification (v4.6.0: R5 Draft Ballot). 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

Observation-example-glasgow.xml

Orders and Observations Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

Raw XML (canonical form + also see XML Format Specification)

Jump past Narrative

Clinical assessment tool example - GCS with individual score as components (id = "glasgow")

<?xml version="1.0" encoding="UTF-8"?>

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

  <!--     the mandatory quality flags:     -->
  <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative</b> </p> <p/>  <p> <b> code</b> : <span> Glasgow Coma Scale , (GCS)</span> </p> <p> <b> subject</b> : <a> Peter James Chalmers. Generated Summary: Medical record number: 12345 (USUAL); active;
           Peter James Chalmers (OFFICIAL), Jim , Peter James Windsor (MAIDEN); , Phone: (03) 5555
           6473, Phone: (03) 3410 5613, Phone: (03) 5555 8834; gender: male; birthDate: 1974-12-25;
           </a> </p> <p> <b> effective</b> : 11 Dec. 2014, 3:44:16 pm</p> <p> <b> value</b> : 13 {score}</p> <blockquote> <p> <b> referenceRange</b> </p> <p> <b> high</b> : 8 {score}</p> <p> <b> type</b> : <span> Severe TBI</span> </p> </blockquote> <blockquote> <p> <b> referenceRange</b> </p> <p> <b> low</b> : 9 {score}</p> <p> <b> high</b> : 12 {score}</p> <p> <b> type</b> : <span> Moderate TBI</span> </p> </blockquote> <blockquote> <p> <b> referenceRange</b> </p> <p> <b> low</b> : 13 {score}</p> <p> <b> type</b> : <span> Mild TBI</span> </p> </blockquote> <blockquote> <p> <b> component</b> </p> <p> <b> code</b> : <span> GCS Motor</span> </p> <p> <b> value</b> : <span> 5 (Localizes painful stimuli)</span> </p> </blockquote> <blockquote> <p> <b> component</b> </p> <p> <b> code</b> : <span> GSC Verbal</span> </p> <p> <b> value</b> : <span> 4 (Confused, disoriented)</span> </p> </blockquote> <blockquote> <p> <b> component</b> </p> <p> <b> code</b> : <span> Eyes</span> </p> <p> <b> value</b> : <span> 4 (Opens eyes spontaneously)</span> </p> </blockquote> </div> </text> <status value="final"/> 
  <!--    
    Observations are often coded in multiple code systems.
      - LOINC
    - or SNOMED
      -and/or the source system may provides its own "local" code, which may be less or
   more granular than LOINC.
  In this example there is only LOINC
      -->
  <code> 
    <!--     LOINC - always recommended to have a LOINC code     -->
    <coding> 
      <system value="http://loinc.org"/> 
      <code value="9269-2"/> 
      <display value="Glasgow coma score total"/> 
    </coding> 
    <text value="Glasgow Coma Scale , (GCS)"/> 
  </code> 
  <subject> 
    <reference value="Patient/example"/> 
    <display value="Peter James Chalmers"/> 
  </subject> 
  <effectiveDateTime value="2014-12-11T04:44:16Z"/> 
  <!--     In FHIR, units may be represented twice. Once in the
    agreed human representation, and once in a coded form.
    In this example the UCUM unit is provided but no human representation since this is
   often not displayed
       -->
  <valueQuantity> 
    <value value="13"/> 
    <system value="http://unitsofmeasure.org"/> 
    <code value="{score}"/> 
  </valueQuantity> 
  <referenceRange> 
    <high> 
      <value value="8"/> 
      <system value="http://unitsofmeasure.org"/> 
      <code value="{score}"/> 
    </high> 
    <!--     meaning as text     -->
    <type> 
      <text value="Severe TBI"/> 
    </type> 
  </referenceRange> 
  <referenceRange> 
    <low> 
      <value value="9"/> 
      <system value="http://unitsofmeasure.org"/> 
      <code value="{score}"/> 
    </low> 
    <high> 
      <value value="12"/> 
      <system value="http://unitsofmeasure.org"/> 
      <code value="{score}"/> 
    </high> 
    <!--     meaning as text     -->
    <type> 
      <text value="Moderate TBI"/> 
    </type> 
  </referenceRange> 
  <referenceRange> 
    <low> 
      <value value="13"/> 
      <system value="http://unitsofmeasure.org"/> 
      <code value="{score}"/> 
    </low> 
    <!--     meaning as text     -->
    <type> 
      <text value="Mild TBI"/> 
    </type> 
  </referenceRange> 

  <!--    Using components since these measurements are typically reported and interpreted together
      -->
    <!--    GCS motor Component    -->
  <component> 
    <code> 
      <coding> 
        <system value="http://loinc.org"/> 
        <code value="9268-4"/> 
        <display value="Glasgow coma score motor"/> 
      </coding> 
      <text value="GCS Motor"/> 
    </code> 
    <valueCodeableConcept> 
      <coding> 
        <system value="http://acme.ec/codes"/> 
        <code value="5"/> 
        <display value="Localizes painful stimuli"/> 
      </coding> 
      <coding> 
        <!--      This example has the extension which maps a numeric score to the code this may already
         be known and unecessary in the Observation resource     -->
        <extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
          <!--     from Element: extension     -->
          <valueDecimal value="5"/> 
          <!--     0..1 Value of extension     -->
        </extension> 
        <system value="http://loinc.org"/> 
        <code value="LA6566-9"/> 
        <display value="Localizing pain"/> 
      </coding> 
      <text value="5 (Localizes painful stimuli)"/> 
    </valueCodeableConcept> 
  </component> 
    <!--    GCS verbal Component    -->
  <component> 
    <code> 
      <coding> 
        <system value="http://loinc.org"/> 
        <code value="9270-0"/> 
        <display value="Glasgow coma score verbal"/> 
      </coding> 
      <text value="GSC Verbal"/> 
    </code> 
    <valueCodeableConcept> 
      <coding> 
        <system value="http://acme.ec/codes"/> 
        <code value="4"/> 
        <display value="Confused, disoriented"/> 
      </coding> 
      <coding> 
        <!--      This example has the extension which maps a numeric score to the code this may already
         be known and unecessary in the Observation resource     -->
        <extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
          <!--     from Element: extension     -->
          <valueDecimal value="4"/> 
          <!--     0..1 Value of extension     -->
        </extension> 
        <system value="http://loinc.org"/> 
        <!--    technicallly the code is '5' and the LA is the identifier to do hav e both  would require
         an extention    -->
        <code value="LA6560-2"/> 
        <display value="Confused"/> 
      </coding> 
      <text value="4 (Confused, disoriented)"/> 
    </valueCodeableConcept> 
  </component> 
  <!--    GCS eyes Component    -->
  <component> 
    <code> 
      <coding> 
        <system value="http://loinc.org"/> 
        <code value="9267-6"/> 
        <display value="Glasgow coma score eye opening"/> 
      </coding> 
      <text value="Eyes"/> 
    </code> 
    <valueCodeableConcept> 
      <coding> 
        <system value="http://acme.ec/codes"/> 
        <code value="4"/> 
        <display value="Opens eyes spontaneously"/> 
      </coding> 
      <coding> 
        <!--      This example has the extension which maps a numeric score to the code this may already
         be known and unecessary in the Observation resource     -->
        <extension url="http://hl7.org/fhir/StructureDefinition/ordinalValue">
          <!--     from Element: extension     -->
          <valueDecimal value="4"/> 
          <!--     0..1 Value of extension     -->
        </extension> 
        <system value="http://loinc.org"/> 
        <!--    technicallly the code is '4' and the LA is the identifier to do hav e both  would require
         an extention    -->
        <code value="LA6556-0"/> 
        <display value="Eyes open spontaneously"/> 
      </coding> 
      <text value="4 (Opens eyes spontaneously)"/> 
    </valueCodeableConcept> 
  </component> 
</Observation> 

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.