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.13.6 Resource Location - Examples

Example Index:

Wing within a hospitalXMLJSON
Operation room within hospitalXMLJSON

5.13.6.1 Wing

XML

Wing within a hospital (id = "1")

Raw XML

<Location xmlns="http://hl7.org/fhir">
  <id value="1"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier>
    <value value="B1-S.F2"/>
  </identifier>
  <name value="South Wing, second floor"/>
  <description value="Second floor of the Old South Wing, formerly in use by Psychiatry"/>
  <telecom>
    <system value="phone"/>
    <value value="2328"/>
    <use value="work"/>
  </telecom>
  <telecom>
    <system value="fax"/>
    <value value="2329"/>
    <use value="work"/>
  </telecom>
  <telecom>
    <system value="email"/>
    <value value="second wing admissions"/>
  </telecom>
  <telecom>
    <system value="url"/>
    <value value="http://sampleorg.com/southwing"/>
    <use value="work"/>
  </telecom>
  <address>
    <use value="work"/>
    <line value="Galapagosweg 91, Building A"/>
    <city value="Den Burg"/>
    <postalCode value="9105 PZ"/>
    <country value="NLD"/>
  </address>
  <physicalType>
    <coding>
      <system value="http://hl7.org/fhir/location-physical-type"/>
      <code value="wi"/>
      <display value="Wing"/>
    </coding>
  </physicalType>
  <position>
    <longitude value="4.844614000123024"/>
    <latitude value="52.37799399970903"/>
    <altitude value="0"/>
  </position>
  <managingOrganization>
    <reference value="Organization/f001"/>
  </managingOrganization>
  <status value="active"/>
</Location>

JSON

Wing within a hospital

Raw JSON (Canonical)

{
  "resourceType": "Location",
  "id": "1",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": [
    {
      "value": "B1-S.F2"
    }
  ],
  "name": "South Wing, second floor",
  "description": "Second floor of the Old South Wing, formerly in use by Psychiatry",
  "telecom": [
    {
      "system": "phone",
      "value": "2328",
      "use": "work"
    },
    {
      "system": "fax",
      "value": "2329",
      "use": "work"
    },
    {
      "system": "email",
      "value": "second wing admissions"
    },
    {
      "system": "url",
      "value": "http://sampleorg.com/southwing",
      "use": "work"
    }
  ],
  "address": {
    "use": "work",
    "line": [
      "Galapagosweg 91, Building A"
    ],
    "city": "Den Burg",
    "postalCode": "9105 PZ",
    "country": "NLD"
  },
  "physicalType": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/location-physical-type",
        "code": "wi",
        "display": "Wing"
      }
    ]
  },
  "position": {
    "longitude": 4.844614000123024,
    "latitude": 52.37799399970903,
    "altitude": 0
  },
  "managingOrganization": {
    "reference": "Organization/f001"
  },
  "status": "active"
}

5.13.6.2 Room

XML

Operation room within hospital (id = "2")

Raw XML

<Location xmlns="http://hl7.org/fhir">
  <id value="2"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier>
    <value value="B1-S.F2.1.00"/>
  </identifier>
  <name value="South Wing Neuro OR 1"/>
  <description value="Old South Wing, Neuro Radiology Operation Room 1 on second floor"/>
  <type>
    <coding>
      <system value="http://hl7.org/fhir/v3/RoleCode"/>
      <code value="RNEU"/>
      <display value="Neuroradiology unit"/>
    </coding>
  </type>
  <telecom>
    <system value="phone"/>
    <value value="2329"/>
  </telecom>
  <physicalType>
    <coding>
      <system value="http://hl7.org/fhir/location-physical-type"/>
      <code value="ro"/>
      <display value="Room"/>
    </coding>
  </physicalType>
  <managingOrganization>
    <reference value="Organization/f001"/>
  </managingOrganization>
  <status value="suspended"/>
  <partOf>
    <reference value="Location/1"/>
  </partOf>
</Location>

JSON

Operation room within hospital

Raw JSON (Canonical)

{
  "resourceType": "Location",
  "id": "2",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": [
    {
      "value": "B1-S.F2.1.00"
    }
  ],
  "name": "South Wing Neuro OR 1",
  "description": "Old South Wing, Neuro Radiology Operation Room 1 on second floor",
  "type": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/v3/RoleCode",
        "code": "RNEU",
        "display": "Neuroradiology unit"
      }
    ]
  },
  "telecom": [
    {
      "system": "phone",
      "value": "2329"
    }
  ],
  "physicalType": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/location-physical-type",
        "code": "ro",
        "display": "Room"
      }
    ]
  },
  "managingOrganization": {
    "reference": "Organization/f001"
  },
  "status": "suspended",
  "partOf": {
    "reference": "Location/1"
  }
}

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.