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.8.3

Example Index:

General Group ExampleXMLJSON

General 5.8.3.1

General Group Example

General Group Example (id = "101")

Raw XML

<Group xmlns="http://hl7.org/fhir">
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>Herd of 25 horses</p>
      <p>Gender: mixed</p>
      <p>Owner: John Smith</p>
    </div>
  </text>
  <type value="animal"/>
  <actual value="true"/>
  <code>
    <text value="Horse"/>
  </code>
  <name value="John's herd"/>
  <quantity value="25"/>
  <characteristic>
    <type>
      <text value="gender"/>
    </type>
    <valueString value="mixed"/>
    <exclude value="false"/>
  </characteristic>
  <characteristic>
    <type>
      <text value="owner"/>
    </type>
    <valueString value="John Smith"/>
    <exclude value="false"/>
  </characteristic>
</Group>

JSON Equivalent

General Group Example

{
  "Group":{
    "text":{
      "status":{
        "value":"additional"
      },
      "div":"<div>\n      <p>Herd of 25 horses<\/p>\n      <p>Gender: mixed<\/p>\n      <p>Owner: John Smith<\/p>\n    <\/div>"
    },
    "type":{
      "value":"animal"
    },
    "actual":{
      "value":true
    },
    "code":{
      "text":{
        "value":"Horse"
      }
    },
    "name":{
      "value":"John's herd"
    },
    "quantity":{
      "value":25
    },
    "characteristic":[
      {
        "type":{
          "text":{
            "value":"gender"
          }
        },
        "valueString":{
          "value":"mixed"
        },
        "exclude":{
          "value":false
        }
      },
      {
        "type":{
          "text":{
            "value":"owner"
          }
        },
        "valueString":{
          "value":"John Smith"
        },
        "exclude":{
          "value":false
        }
      }
    ]
  }
}