This page is part of the FHIR Specification (v0.06: DSTU 1 Ballot 2). 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 List - Examples 3.7.6

General 3.7.6.1

General List Example

General List Example (id = "example")

<List xmlns="http://hl7.org/fhir">
  <!--   This list doesn't have a code. In actual fact, 
    it's a problem list produced at the end of a visit 
    to a regular primary care provider. But the only way
    to know this is to hunt down the place it is used 
    and find out   -->
  <source>
    <type>Person</type>
    <id>grahame</id>
  </source>
  <date>2012-11-25T22:17:00+11:00</date>
  <entry>
    <status>deleted</status>
    <item>
      <type>Problem</type>
      <id>example</id>
    </item>
  </entry>
  <entry>
    <status>added</status>
    <item>
      <type>Problem</type>
      <id>example2</id>
    </item>
  </entry>
  
  <text>
    <status>generated</status>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <table>
        <thead>
          <tr>
            <th>Problem</th>
            <th>Severity</th>
            <th>Date</th>
            <th>Location</th>
            <th>Status</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Burnt Ear</td>
            <td>Severe</td>
            <td>24-May 2012</td>
            <td>Left Ear</td>
            <td>deleted</td>
          </tr>
          <tr>
            <td>Asthma</td>
            <td>Mild</td>
            <td>21-Nov 2012</td>
            <td>--</td>
            <td>added</td>
          </tr>
        </tbody>
      </table>
    </div>
  </text>
</List>

JSON Equivalent

General List Example

{"List": {
  "text": {
    "status": "generated",
    "div": "<div>\n      <table>\n        <thead>\n          <tr>\n            <th>Problem<\/th>\n            <th>Severity<\/th>\n            <th>Date<\/th>\n            <th>Location<\/th>\n            <th>Status<\/th>\n          <\/tr>\n        <\/thead>\n        <tbody>\n          <tr>\n            <td>Burnt Ear<\/td>\n            <td>Severe<\/td>\n            <td>24-May 2012<\/td>\n            <td>Left Ear<\/td>\n            <td>deleted<\/td>\n          <\/tr>\n          <tr>\n            <td>Asthma<\/td>\n            <td>Mild<\/td>\n            <td>21-Nov 2012<\/td>\n            <td>--<\/td>\n            <td>added<\/td>\n          <\/tr>\n        <\/tbody>\n      <\/table>\n    <\/div>"
  },
  "source": {
    "id": {"value": "grahame"},
    "type": {"value": "Person"}
  },
  "entry": [
    {
      "status": "deleted",
      "item": {
        "id": {"value": "example"},
        "type": {"value": "Problem"}
      }
    },
    {
      "status": "added",
      "item": {
        "id": {"value": "example2"},
        "type": {"value": "Problem"}
      }
    }
  ],
  "date": {"value": "2012-11-25T22:17:00+11:00"}
}}

Empty List 3.7.6.2

Empty List Example

Empty List Example (id = "example-empty")

<List xmlns="http://hl7.org/fhir">
  <code>
    <coding>
      <system>http://snomed.info</system>
      <code>182836005</code>
      <display>Review of medication</display>
    </coding>
    <text>Medication Review</text>
  </code>
  <source>
    <type>Person</type>
    <id>grahame</id>
  </source>
  <date>2012-11-26T07:30:23+11:00</date>

  <emptyReason>
    <coding>
      <system>http://hl7.org/fhir/special-values</system>
      <code>nil known</code>
      <display>The are no known applicable values in this context</display>
    </coding>
    <text>The patient is not on any medications</text>
  </emptyReason>
  <text>
    <status>generated</status>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>The patient is not on any medications</p>
    </div>
  </text>
</List>

JSON Equivalent

Empty List Example

{"List": {
  "text": {
    "status": "generated",
    "div": "<div>\n      <p>The patient is not on any medications<\/p>\n    <\/div>"
  },
  "source": {
    "id": {"value": "grahame"},
    "type": {"value": "Person"}
  },
  "emptyReason": {
    "text": {"value": "The patient is not on any medications"},
    "coding": [{
      "system": {"value": "http://hl7.org/fhir/special-values"},
      "display": {"value": "The are no known applicable values in this context"},
      "code": {"value": "nil known"}
    }]
  },
  "code": {
    "text": {"value": "Medication Review"},
    "coding": [{
      "system": {"value": "http://snomed.info"},
      "display": {"value": "Review of medication"},
      "code": {"value": "182836005"}
    }]
  },
  "date": {"value": "2012-11-26T07:30:23+11:00"}
}}

This is an old version of FHIR retained for archive purposes. Do not use for anything else
Implementers are welcome to experiment with the content defined here, but should note that the contents are subject to change without prior notice.
© HL7.org 2011 - 2012. FHIR v0.06 generated on Tue, Dec 4, 2012 00:03+1100. License