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 5.10.3

Example Index:

Example of alertXMLJSON

General 5.10.3.1

Example of alert

Example of alert (id = "example")

Raw XML

<Alert xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Large Dog warning</div>
  </text>
  <category>
    <coding>
      <system value="local"/>
      <code value="admin"/>
      <display value="Admin"/>
    </coding>
    <text value="admin"/>
    
  </category>
  <status value="active"/>
  <subject>
    <type value="Patient"/>
    <reference value="patient/@example"/>
    <display value="Peter Patient"/>
  </subject>
  
  <author>
    <type value="Practitioner"/>
    <reference value="practitioner/@example"/>
    <display value="Nancy Nurse"/>
  </author>
  
  <note value="patient has a big dog at his home. Always always wear a suit of armor or take other active
   counter-measures"/>
</Alert>

JSON Equivalent

Example of alert

{
  "Alert":{
    "text":{
      "status":{
        "value":"generated"
      },
      "div":"<div>Large Dog warning<\/div>"
    },
    "category":{
      "coding":[
        {
          "system":{
            "value":"local"
          },
          "code":{
            "value":"admin"
          },
          "display":{
            "value":"Admin"
          }
        }
      ],
      "text":{
        "value":"admin"
      }
    },
    "status":{
      "value":"active"
    },
    "subject":{
      "type":{
        "value":"Patient"
      },
      "reference":{
        "value":"patient/@example"
      },
      "display":{
        "value":"Peter Patient"
      }
    },
    "author":{
      "type":{
        "value":"Practitioner"
      },
      "reference":{
        "value":"practitioner/@example"
      },
      "display":{
        "value":"Nancy Nurse"
      }
    },
    "note":{
      "value":"patient has a big dog at his home. Always always wear a suit of armor or take other active counter-measures"
    }
  }
}