Real Time Location Services Implementation Guide
1.0.0-ballot - CI Build International flag

Real Time Location Services Implementation Guide, published by HL7 International - Patient Administration Work Group. This is not an authorized publication; it is the continuous build for version 1.0.0-ballot). This version is based on the current content of https://github.com/HL7/rtls-ig/ and changes regularly. See the Directory of published versions

: Location Update Event example - JSON Representation

Raw json | Download


{
  "resourceType" : "Bundle",
  "id" : "LocationUpdateExample-MessageBundle1",
  "meta" : {
    "profile" : [
      "http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageBundle"
    ]
  },
  "type" : "message",
  "timestamp" : "2023-03-24T10:24:13.1882432-05:00",
  "entry" : [
    {
      "fullUrl" : "http://example.org/fhir/LocationUpdateExample-MessageHeader",
      "resource" : {
        "resourceType" : "MessageHeader",
        "id" : "LocationUpdateExample-MessageHeader",
        "meta" : {
          "profile" : [
            "http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageHeader"
          ]
        },
        "text" : {
          "status" : "generated",
          "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: MessageHeader</b><a name=\"LocationUpdateExample-MessageHeader\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource MessageHeader &quot;LocationUpdateExample-MessageHeader&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-rtlsMessageHeader.html\">RTLS Message Header Resource Profile</a></p></div><p><b>event</b>: Location Update (Details: http://hl7.org/fhir/uv/rtls/CodeSystem/rtlsMessageEvents code location-update = 'Location Update', stated as 'null')</p><h3>Sources</h3><table class=\"grid\"><tr><td>-</td><td><b>Endpoint[x]</b></td></tr><tr><td>*</td><td><a href=\"http://example.org/FHIR/R5/RTLS-Client\">http://example.org/FHIR/R5/RTLS-Client</a></td></tr></table><p><b>focus</b>: <a href=\"#Bundle_LocationUpdateExample-MessageBundle2\">See above (http://example.org/fhir/LocationUpdateExample-MessageBundle2)</a></p></div>"
        },
        "eventCoding" : {
          "system" : "http://hl7.org/fhir/uv/rtls/CodeSystem/rtlsMessageEvents",
          "code" : "location-update"
        },
        "source" : {
          "endpointUrl" : "http://example.org/FHIR/R5/RTLS-Client"
        },
        "focus" : [
          {
            "reference" : "http://example.org/fhir/LocationUpdateExample-MessageBundle2"
          }
        ]
      }
    },
    {
      "fullUrl" : "http://example.org/fhir/LocationUpdateExample-MessageBundle2",
      "resource" : {
        "resourceType" : "Bundle",
        "id" : "LocationUpdateExample-MessageBundle2",
        "type" : "subscription-notification",
        "timestamp" : "2023-03-24T10:24:13.1882432-05:00",
        "entry" : [
          {
            "fullUrl" : "http://example.org/fhir/LocationUpdateExample-SubscriptionStatus",
            "resource" : {
              "resourceType" : "SubscriptionStatus",
              "id" : "LocationUpdateExample-SubscriptionStatus",
              "meta" : {
                "profile" : [
                  "http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionStatus"
                ]
              },
              "status" : "active",
              "type" : "event-notification",
              "eventsSinceSubscriptionStart" : "2",
              "notificationEvent" : [
                {
                  "eventNumber" : "1",
                  "timestamp" : "2023-03-24T10:24:13.1882432-05:00",
                  "focus" : {
                    "reference" : "http://example.org/fhir/LocationUpdateExample-Device"
                  }
                }
              ],
              "subscription" : {
                "reference" : "https://example.org/fhir/rtlsSubscriptionExample"
              },
              "topic" : "https://example.org/fhir/rtlsSubscriptionTopicExample"
            }
          },
          {
            "fullUrl" : "http://example.org/fhir/LocationUpdateExample-Device",
            "resource" : {
              "resourceType" : "Device",
              "id" : "LocationUpdateExample-Device",
              "identifier" : [
                {
                  "system" : "http://rtls.org/trackingtags/id",
                  "value" : "12345678"
                }
              ],
              "status" : "active",
              "location" : {
                "reference" : "http://example.org/FHIR/R5/Location"
              }
            }
          },
          {
            "fullUrl" : "http://example.org/FHIR/R5/Location",
            "resource" : {
              "resourceType" : "Location",
              "id" : "LocationUpdateExample-Location",
              "identifier" : [
                {
                  "system" : "http://example.org/HospitalLocations/id",
                  "value" : "EMC-317"
                }
              ],
              "name" : "Example Medical Center - Room 317"
            }
          }
        ]
      }
    }
  ]
}