This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

6.3.8 Resource Other - Examples

Example Index:

How 'other' can be used for future resources - in this case referralXMLJSON
How 'Other' can be used for essoteric resources - in this case, a UML class modelXMLJSON
A resource that uses all narrative features for testing rendering applicationsXMLJSON

6.3.8.1 Referral

XML

How 'other' can be used for future resources - in this case referral (id = "referral")

Raw XML

<Other xmlns="http://hl7.org/fhir">
  <extension url="http://example.org/do-not-use/fhir-extensions/referral#requestingPractitioner">
    <valueResource>
      <reference value="Practitioner/f201"/>
      <display value="Dokter Bronsig"/>
    </valueResource>
  </extension>
  <extension url="http://example.org/do-not-use/fhir-extensions/referral#notes">
    <valueString value="The patient had fever peaks over the last couple of days. He is worried about these peaks."/>
  </extension>
  <extension url="http://example.org/do-not-use/fhir-extensions/referral#fulfillingEncounter">
    <valueResource>
      <reference value="Encounter/f201"/>
    </valueResource>
  </extension>
  <modifierExtension url="http://example.org/do-not-use/fhir-extensions/referral#referredForService">
    <valueCodeableConcept>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="11429006"/>
        <display value="Consultation"/>
      </coding>
    </valueCodeableConcept>
  </modifierExtension>
  <modifierExtension url="http://example.org/do-not-use/fhir-extensions/referral#targetDate">
    <valuePeriod>
      <start value="2013-04-01"/>
      <end value="2013-04-15"/>
    </valuePeriod>
  </modifierExtension>
  <modifierExtension url="http://example.org/do-not-use/fhir-extensions/referral#status">
    <valueCode value="complete"/>
  </modifierExtension>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p><b>Patient:</b>Roel</p>
      <p><b>Requestor:</b>Dokter Bronsig</p>
      <p><b>Type:</b>Consultation</p>
      <p><b>Target Date:</b>April 1 - April 31</p>
      <p>COMPLETED</p>
      <b>The patient had fever peaks over the last couple of days. He is worried about these peaks.</b>
    </div>
  </text>
  <code>
    <coding>
      <system value="http://hl7.org/fhir/other-resource-type"/>
      <code value="REFERRAL"/>
    </coding>
  </code>
  <subject>
    <reference value="Patient/f201"/>
    <display value="Roel"/>
  </subject>
</Other>

JSON

How 'other' can be used for future resources - in this case referral

{
  "resourceType": "Other",
  "extension": [
    {
      "url": "http://example.org/do-not-use/fhir-extensions/referral#requestingPractitioner",
      "valueResource": {
        "reference": "Practitioner/f201",
        "display": "Dokter Bronsig"
      }
    },
    {
      "url": "http://example.org/do-not-use/fhir-extensions/referral#notes",
      "valueString": "The patient had fever peaks over the last couple of days. He is worried about these peaks."
    },
    {
      "url": "http://example.org/do-not-use/fhir-extensions/referral#fulfillingEncounter",
      "valueResource": {
        "reference": "Encounter/f201"
      }
    }
  ],
  "modifierExtension": [
    {
      "url": "http://example.org/do-not-use/fhir-extensions/referral#referredForService",
      "valueCodeableConcept": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "11429006",
            "display": "Consultation"
          }
        ]
      }
    },
    {
      "url": "http://example.org/do-not-use/fhir-extensions/referral#targetDate",
      "valuePeriod": {
        "start": "2013-04-01",
        "end": "2013-04-15"
      }
    },
    {
      "url": "http://example.org/do-not-use/fhir-extensions/referral#status",
      "valueCode": "complete"
    }
  ],
  "text": {
    "status": "generated",
    "div": "<div>\n      <p><b>Patient:</b>Roel</p>\n      <p><b>Requestor:</b>Dokter Bronsig</p>\n      <p><b>Type:</b>Consultation</p>\n      <p><b>Target Date:</b>April 1 - April 31</p>\n      <p>COMPLETED</p>\n      <b>The patient had fever peaks over the last couple of days. He is worried about these peaks.</b>\n    </div>"
  },
  "code": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/other-resource-type",
        "code": "REFERRAL"
      }
    ]
  },
  "subject": {
    "reference": "Patient/f201",
    "display": "Roel"
  }
}

6.3.8.2 ClassModel

XML

How 'Other' can be used for essoteric resources - in this case, a UML class model (id = "classModel")

Raw XML

<Other xmlns="http://hl7.org/fhir">
  <extension url="http://example.org/do-not-use/fhir-extensions/UML#class">
    <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.name">
      <valueString value="Class1"/>
    </extension>
    <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute">
      <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute.name">
        <valueString value="attribute1"/>
      </extension>
      <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute.minOccurs">
        <valueInteger value="1"/>
      </extension>
      <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute.maxOccurs">
        <valueCode value="*"/>
      </extension>
    </extension>
    <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute">
      <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute.name">
        <valueString value="attribute2"/>
      </extension>
      <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute.minOccurs">
        <valueInteger value="0"/>
      </extension>
      <extension url="http://example.org/do-not-use/fhir-extensions/UML#class.attribute.maxOccurs">
        <valueInteger value="1"/>
      </extension>
    </extension>
  </extension>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p><b>Class1</b></p>
      <ul>
        <li>Attribute1: 1..*</li>
        <li>Attribute2: 0..1</li>
      </ul>
    </div>
  </text>
  <code>
    <coding>
      <system value="http://example.org/do-not-use/fhir-codes#resourceTypes"/>
      <code value="UMLCLASSMODEL"/>
    </coding>
  </code>
</Other>

JSON

How 'Other' can be used for essoteric resources - in this case, a UML class model

{
  "resourceType": "Other",
  "extension": [
    {
      "extension": [
        {
          "url": "http://example.org/do-not-use/fhir-extensions/UML#class.name",
          "valueString": "Class1"
        },
        {
          "extension": [
            {
              "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute.name",
              "valueString": "attribute1"
            },
            {
              "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute.minOccurs",
              "valueInteger": 1
            },
            {
              "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute.maxOccurs",
              "valueCode": "*"
            }
          ],
          "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute"
        },
        {
          "extension": [
            {
              "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute.name",
              "valueString": "attribute2"
            },
            {
              "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute.minOccurs",
              "valueInteger": 0
            },
            {
              "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute.maxOccurs",
              "valueInteger": 1
            }
          ],
          "url": "http://example.org/do-not-use/fhir-extensions/UML#class.attribute"
        }
      ],
      "url": "http://example.org/do-not-use/fhir-extensions/UML#class"
    }
  ],
  "text": {
    "status": "generated",
    "div": "<div>\n      <p><b>Class1</b></p>\n      <ul>\n        <li>Attribute1: 1..*</li>\n        <li>Attribute2: 0..1</li>\n      </ul>\n    </div>"
  },
  "code": {
    "coding": [
      {
        "system": "http://example.org/do-not-use/fhir-codes#resourceTypes",
        "code": "UMLCLASSMODEL"
      }
    ]
  }
}

comments powered by Disqus