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 - XML Representation

Raw xml | Download



<Bundle xmlns="http://hl7.org/fhir">
  <id value="LocationUpdateExample-MessageBundle1"/>
  <meta>
    <profile
             value="http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageBundle"/>
  </meta>
  <type value="message"/>
  <timestamp value="2023-03-24T10:24:13.1882432-05:00"/>
  <entry>
    <fullUrl
             value="http://example.org/fhir/LocationUpdateExample-MessageHeader"/>
    <resource>
      <MessageHeader>
        <id value="LocationUpdateExample-MessageHeader"/>
        <meta>
          <profile
                   value="http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageHeader"/>
        </meta>
        <text>
          <status value="generated"/>
          <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>
        </text>
        <eventCoding>
          <system
                  value="http://hl7.org/fhir/uv/rtls/CodeSystem/rtlsMessageEvents"/>
          <code value="location-update"/>
        </eventCoding>
        <source>
          <endpointUrl value="http://example.org/FHIR/R5/RTLS-Client"/>
        </source>
        <focus>
          <reference
                     value="http://example.org/fhir/LocationUpdateExample-MessageBundle2"/>
        </focus>
      </MessageHeader>
    </resource>
  </entry>
  <entry>
    <fullUrl
             value="http://example.org/fhir/LocationUpdateExample-MessageBundle2"/>
    <resource>
      <Bundle>
        <id value="LocationUpdateExample-MessageBundle2"/>
        <type value="subscription-notification"/>
        <timestamp value="2023-03-24T10:24:13.1882432-05:00"/>
        <entry>
          <fullUrl
                   value="http://example.org/fhir/LocationUpdateExample-SubscriptionStatus"/>
          <resource>
            <SubscriptionStatus>
              <id value="LocationUpdateExample-SubscriptionStatus"/>
              <meta>
                <profile
                         value="http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionStatus"/>
              </meta>
              <status value="active"/>
              <type value="event-notification"/>
              <eventsSinceSubscriptionStart value="2"/>
              <notificationEvent>
                <eventNumber value="1"/>
                <timestamp value="2023-03-24T10:24:13.1882432-05:00"/>
                <focus>
                  <reference
                             value="http://example.org/fhir/LocationUpdateExample-Device"/>
                </focus>
              </notificationEvent>
              <subscription>
                <reference
                           value="https://example.org/fhir/rtlsSubscriptionExample"/>
              </subscription>
              <topic
                     value="https://example.org/fhir/rtlsSubscriptionTopicExample"/>
            </SubscriptionStatus>
          </resource>
        </entry>
        <entry>
          <fullUrl
                   value="http://example.org/fhir/LocationUpdateExample-Device"/>
          <resource>
            <Device>
              <id value="LocationUpdateExample-Device"/>
              <identifier>
                <system value="http://rtls.org/trackingtags/id"/>
                <value value="12345678"/>
              </identifier>
              <status value="active"/>
              <location>
                <reference value="http://example.org/FHIR/R5/Location"/>
              </location>
            </Device>
          </resource>
        </entry>
        <entry>
          <fullUrl value="http://example.org/FHIR/R5/Location"/>
          <resource>
            <Location>
              <id value="LocationUpdateExample-Location"/>
              <identifier>
                <system value="http://example.org/HospitalLocations/id"/>
                <value value="EMC-317"/>
              </identifier>
              <name value="Example Medical Center - Room 317"/>
            </Location>
          </resource>
        </entry>
      </Bundle>
    </resource>
  </entry>
</Bundle>