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

4.6.5 Resource Goal - Examples

Example Index:

General Person ExampleXMLJSON

4.6.5.1 Weight Loss

XML

General Person Example (id = "example")

Raw XML

<Goal xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <extension url="http://hl7.org/fhir/ExtensionDefinition/goal-common-target">
    <extension url="measure">
      <valueCodeableConcept>
        <coding>
          <system value="http://loinc.org"/>
          <code value="3141-9"/>
          <display value="Weight Measured"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="detail">
      <valueRange>
        <low>
          <value value="160"/>
          <units value="lbs"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="[lb_av]"/>
        </low>
        <high>
          <value value="180"/>
          <units value="lbs"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="[lb_av]"/>
        </high>
      </valueRange>
    </extension>
  </extension>
  <patient>
    <reference value="Patient/example"/>
    <display value="Peter James Chalmers"/>
  </patient>
  <description value="Target weight is 160 to 180 lbs."/>
  <status value="in-progress"/>
  <concern>
    <reference value="Condition/12345"/>
    <display value="obesity"/>
  </concern>
</Goal>

JSON

General Person Example

Raw JSON (Canonical)

{
  "resourceType": "Goal",
  "id": "example",
  "text": {
    "status": "additional",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "extension": [
    {
      "extension": [
        {
          "url": "measure",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://loinc.org",
                "code": "3141-9",
                "display": "Weight Measured"
              }
            ]
          }
        },
        {
          "url": "detail",
          "valueRange": {
            "low": {
              "value": 160,
              "units": "lbs",
              "system": "http://unitsofmeasure.org",
              "code": "[lb_av]"
            },
            "high": {
              "value": 180,
              "units": "lbs",
              "system": "http://unitsofmeasure.org",
              "code": "[lb_av]"
            }
          }
        }
      ],
      "url": "http://hl7.org/fhir/ExtensionDefinition/goal-common-target"
    }
  ],
  "patient": {
    "reference": "Patient/example",
    "display": "Peter James Chalmers"
  },
  "description": "Target weight is 160 to 180 lbs.",
  "status": "in-progress",
  "concern": [
    {
      "reference": "Condition/12345",
      "display": "obesity"
    }
  ]
}

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.