Release 5

This page is part of the FHIR Specification (v5.0.0: R5 - STU). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Example QuestionnaireResponse/gcs (XML)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Encounter, Patient, Practitioner, RelatedPerson

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

Jump past Narrative

Glasgow Coma Score example answers (id = "gcs")

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

<QuestionnaireResponse xmlns="http://hl7.org/fhir">
  <id value="gcs"/> 
  <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><table border="1" cellpadding="0" cellspacing="0" style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align:
       top;"><tr style="border: 2px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align:
         top"><th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"><a href="formats.html#table" title="The linkId for the item">LinkId</a> </th> <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"><a href="formats.html#table" title="Text for the item">Text</a> </th> <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"><a href="formats.html#table" title="Minimum and Maximum # of times the the itemcan appear in the instance">Definition</a> </th> <th class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"><a href="formats.html#table" title="The type of the item">Answer</a> <span style="float: right"><a href="formats.html#table" title="Legend for this format"><img alt="doco" src="help16.png" style="background-color: inherit"/> </a> </span> </th> </tr> <tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white"><td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)"><img alt="." class="hierarchy" src="tbl_spacer.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="icon_q_root.gif" style="background-color: white; background-color: inherit" title="QuestionnaireResponseRoot"/>  gcs</td> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px">QuestionnaireResponse</td> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> </tr> 
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7"><td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(tbl_bck10.png)"><img alt="." class="hierarchy" src="tbl_spacer.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="tbl_vjoin.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="icon-q-string.png" style="background-color: #F7F7F7; background-color: inherit" title="Item"/>  1.1</td> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px"><span> <span> <a href="https://loinc.org/LA6560-2">Logical Observation Identifiers, Names and Codes (LOINC)</a>  LA6560-2: Confused</span> </span> </td> </tr> 
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         white"><td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)"><img alt="." class="hierarchy" src="tbl_spacer.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="tbl_vjoin.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="icon-q-string.png" style="background-color: white; background-color: inherit" title="Item"/>  1.2</td> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: white; border: 1px #F0F0F0
           solid; padding:0px 4px 0px 4px"><span> <span> <a href="https://loinc.org/LA6566-9">Logical Observation Identifiers, Names and Codes (LOINC)</a>  LA6566-9: Localizing pain</span> </span> </td> </tr> 
<tr style="border: 1px #F0F0F0 solid; padding:0px; vertical-align: top; background-color:
         #F7F7F7"><td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image:
           url(tbl_bck00.png)"><img alt="." class="hierarchy" src="tbl_spacer.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="tbl_vjoin_end.png" style="background-color: inherit"/> <img alt="." class="hierarchy" src="icon-q-string.png" style="background-color: #F7F7F7; background-color: inherit" title="Item"/>  1.3</td> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px"/> <td class="hierarchy" style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 1px
           #F0F0F0 solid; padding:0px 4px 0px 4px"><span> <span> <a href="https://loinc.org/LA6556-0">Logical Observation Identifiers, Names and Codes (LOINC)</a>  LA6556-0: Eyes open spontaneously</span> </span> </td> </tr> 
<tr> <td class="hierarchy" colspan="4"><br/>  <a href="formats.html#table" title="Legend for this format"><img alt="doco" src="help16.png" style="background-color: inherit"/>  Documentation for this format</a> </td> </tr> </table> </div> </text> <questionnaire value="http://hl7.org/fhir/Questionnaire/gcs"/> 
  <status value="completed"/> 
  <subject> 
    <reference value="Patient/example"/> 
    <display value="Peter James Chalmers"/> 
  </subject> 
  <authored value="2014-12-11T04:44:16Z"/> 
  <source> 
    <reference value="Practitioner/f007"/> 
  </source> 
  <item> 
    <linkId value="1.1"/> 
    <answer> 
      <valueCoding> 
            <!--      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/itemWeight">
              <!--     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"/> 
      </valueCoding> 
    </answer> 
  </item> 
  <item> 
    <linkId value="1.2"/> 
    <answer> 
      <valueCoding> 
            <!--      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/itemWeight">
              <!--     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"/> 
      </valueCoding> 
    </answer> 
  </item> 
  <item> 
    <linkId value="1.3"/> 
    <answer> 
      <valueCoding> 
            <!--      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/itemWeight">
              <!--     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"/> 
      </valueCoding> 
    </answer> 
  </item> 
</QuestionnaireResponse> 

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.