2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). 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

5.15.6 Resource Group - Examples

Example Index:

General Group ExampleXMLJSON

5.15.6.1 General

XML

General Group Example (id = "101")

Raw XML

<Group xmlns="http://hl7.org/fhir">
  <id value="101"/>
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <type value="animal"/>
  <actual value="true"/>
  <code>
    <text value="Horse"/>
  </code>
  <name value="John's herd"/>
  <quantity value="25"/>
  <characteristic>
    <code>
      <text value="gender"/>
    </code>
    <valueCodeableConcept>
      <text value="mixed"/>
    </valueCodeableConcept>
    <exclude value="false"/>
  </characteristic>
  <characteristic>
    <code>
      <text value="owner"/>
    </code>
    <valueCodeableConcept>
      <text value="John Smith"/>
    </valueCodeableConcept>
    <exclude value="false"/>
  </characteristic>
</Group>

JSON

General Group Example

Raw JSON (Canonical)

{
  "resourceType": "Group",
  "id": "101",
  "text": {
    "status": "additional",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "type": "animal",
  "actual": true,
  "code": {
    "text": "Horse"
  },
  "name": "John's herd",
  "quantity": 25,
  "characteristic": [
    {
      "code": {
        "text": "gender"
      },
      "valueCodeableConcept": {
        "text": "mixed"
      },
      "exclude": false
    },
    {
      "code": {
        "text": "owner"
      },
      "valueCodeableConcept": {
        "text": "John Smith"
      },
      "exclude": false
    }
  ]
}

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.