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 . Page versions: R5 R4B R4 R3 R2

Resource Roadmap - Examples 5.9.3

Example Index:

Encounter exampleXMLJSON
Real-world encounter exampleXMLJSON
Real-world encounter exampleXMLJSON
Real-world encounter exampleXMLJSON
Real-world encounter exampleXMLJSON
Real-world encounter exampleXMLJSON
Real-world encounter exampleXMLJSON

example 5.9.3.1

Encounter example

Encounter example (id = "example")

Raw XML

<Encounter xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">Encounter with patient @example</div>
  </text> 
  <status value="current"/>
  <class value="inpatient"/>
  <subject>
    <type value="Patient"/>
    <reference value="patient/@example"/>
  </subject>
</Encounter>

JSON Equivalent

Encounter example

{
  "Encounter":{
    "text":{
      "status":{
        "value":"generated"
      },
      "div":"<div>Encounter with patient @example<\/div>"
    },
    "status":{
      "value":"current"
    },
    "class":{
      "value":"inpatient"
    },
    "subject":{
      "type":{
        "value":"Patient"
      },
      "reference":{
        "value":"patient/@example"
      }
    }
  }
}