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

Resource Roadmap - Examples 4.21.3

Example Index:

Example of devicelogXMLJSON

General 4.21.3.1

Example of devicelog

Example of devicelog (id = "example")

Raw XML

<DeviceLog xmlns="http://hl7.org/fhir">
<!--  
 This resource is derived from the same example used for DeviceObservation
 It comes from a relatively simple device as described in the basic Device Capabilities
   example

 This device has the id of the patient entered into its control panel, though it has no
   knowledge of the context of that value
  --> 
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>example</p>
    </div>
  </text>
  <contained>
    <Patient id="patient">
      <identifier>
        <key value="AB60001"/>
      </identifier>
    </Patient>
  </contained>
  <instant value="2013-04-08T06:58:43-10:00"/>
  <subject>
    <type value="Patient"/>
    <reference value="#patient"/>
  </subject>
  <item>
    <key value="M1"/>
    <value value="60"/>
  </item>
  <item>
    <key value="M2"/>
    <value value="0"/>
  </item>
  <item>
    <key value="M3"/>
    <value value="60"/>
  </item>
  <item>
    <key value="M4"/>
    <value value="120"/>
  </item>
  <item>
    <key value="M5"/>
    <value value="80"/>
  </item>
  <item>
    <key value="M6"/>
    <value value="60"/>
  </item>
  <item>
    <key value="M7"/>
    <value value="14"/>
  </item>
  <item>
    <key value="M8"/>
    <value value="25"/>
  </item>
  <item>
    <key value="M9"/>
    <value value="10"/>
  </item>
</DeviceLog>

JSON Equivalent

Example of devicelog

{
  "DeviceLog":{
    "text":{
      "status":{
        "value":"generated"
      },
      "div":"<div>\n      <p>example<\/p>\n    <\/div>"
    },
    "contained":[
      {
        "Patient":{
          "_id":"patient",
          "identifier":[
            {
              "key":{
                "value":"AB60001"
              }
            }
          ]
        }
      }
    ],
    "instant":{
      "value":"2013-04-08T06:58:43-10:00"
    },
    "subject":{
      "type":{
        "value":"Patient"
      },
      "reference":{
        "value":"#patient"
      }
    },
    "item":[
      {
        "key":{
          "value":"M1"
        },
        "value":{
          "value":"60"
        }
      },
      {
        "key":{
          "value":"M2"
        },
        "value":{
          "value":"0"
        }
      },
      {
        "key":{
          "value":"M3"
        },
        "value":{
          "value":"60"
        }
      },
      {
        "key":{
          "value":"M4"
        },
        "value":{
          "value":"120"
        }
      },
      {
        "key":{
          "value":"M5"
        },
        "value":{
          "value":"80"
        }
      },
      {
        "key":{
          "value":"M6"
        },
        "value":{
          "value":"60"
        }
      },
      {
        "key":{
          "value":"M7"
        },
        "value":{
          "value":"14"
        }
      },
      {
        "key":{
          "value":"M8"
        },
        "value":{
          "value":"25"
        }
      },
      {
        "key":{
          "value":"M9"
        },
        "value":{
          "value":"10"
        }
      }
    ]
  }
}