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

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "LocationUpdateExample-MessageBundle1"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageBundle"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageBundle>     ] )
  ] ; # 
  fhir:type [ fhir:v "message"] ; # 
  fhir:timestamp [ fhir:v "2023-03-24T10:24:13.1882432-05:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "http://example.org/fhir/LocationUpdateExample-MessageHeader"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/fhir/LocationUpdateExample-MessageHeader> )
  ] [
fhir:fullUrl [ fhir:v "http://example.org/fhir/LocationUpdateExample-MessageBundle2"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/fhir/LocationUpdateExample-MessageBundle2> )
  ] ) . # 

<http://example.org/fhir/LocationUpdateExample-MessageHeader> a fhir:MessageHeader ;
  fhir:id [ fhir:v "LocationUpdateExample-MessageHeader"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageHeader"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsMessageHeader>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir: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>"
  ] ; # 
  fhir:event [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org/fhir/uv/rtls/CodeSystem/rtlsMessageEvents"^^xsd:anyURI ] ;
fhir:code [ fhir:v "location-update" ]
  ] ; # 
  fhir:source [
fhir:endpoint [ fhir:v "http://example.org/FHIR/R5/RTLS-Client"^^xsd:anyURI ]
  ] ; # 
  fhir:focus ( [
fhir:link <http://example.org/fhir/LocationUpdateExample-MessageBundle2> ;
fhir:reference [ fhir:v "http://example.org/fhir/LocationUpdateExample-MessageBundle2" ]
  ] ) . # 

<http://example.org/fhir/LocationUpdateExample-MessageBundle2> a fhir:Bundle ;
  fhir:id [ fhir:v "LocationUpdateExample-MessageBundle2"] ; # 
  fhir:type [ fhir:v "subscription-notification"] ; # 
  fhir:timestamp [ fhir:v "2023-03-24T10:24:13.1882432-05:00"^^xsd:dateTime] ; # 
  fhir:entry ( [
fhir:fullUrl [ fhir:v "http://example.org/fhir/LocationUpdateExample-SubscriptionStatus"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/fhir/LocationUpdateExample-SubscriptionStatus> )
  ] [
fhir:fullUrl [ fhir:v "http://example.org/fhir/LocationUpdateExample-Device"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/fhir/LocationUpdateExample-Device> )
  ] [
fhir:fullUrl [ fhir:v "http://example.org/FHIR/R5/Location"^^xsd:anyURI ] ;
    ( fhir:resource <http://example.org/FHIR/R5/Location> )
  ] ) . # 

<http://example.org/fhir/LocationUpdateExample-SubscriptionStatus> a fhir:SubscriptionStatus ;
  fhir:id [ fhir:v "LocationUpdateExample-SubscriptionStatus"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionStatus"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionStatus>     ] )
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:type [ fhir:v "event-notification"] ; # 
  fhir:eventsSinceSubscriptionStart [ fhir:v "2"^^xsd:long] ; # 
  fhir:notificationEvent ( [
fhir:eventNumber [ fhir:v "1"^^xsd:long ] ;
fhir:timestamp [ fhir:v "2023-03-24T10:24:13.1882432-05:00"^^xsd:dateTime ] ;
fhir:focus [
fhir:link <http://example.org/fhir/LocationUpdateExample-Device> ;
fhir:reference [ fhir:v "http://example.org/fhir/LocationUpdateExample-Device" ]     ]
  ] ) ; # 
  fhir:subscription [
fhir:link <https://example.org/fhir/rtlsSubscriptionExample> ;
fhir:reference [ fhir:v "https://example.org/fhir/rtlsSubscriptionExample" ]
  ] ; # 
  fhir:topic [
fhir:v "https://example.org/fhir/rtlsSubscriptionTopicExample"^^xsd:anyURI ;
fhir:link <https://example.org/fhir/rtlsSubscriptionTopicExample>
  ] . # 

<http://example.org/fhir/LocationUpdateExample-Device> a fhir:Device ;
  fhir:id [ fhir:v "LocationUpdateExample-Device"] ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "http://rtls.org/trackingtags/id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "12345678" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:location [
fhir:link <http://example.org/FHIR/R5/Location> ;
fhir:reference [ fhir:v "http://example.org/FHIR/R5/Location" ]
  ] . # 

<http://example.org/FHIR/R5/Location> a fhir:Location ;
  fhir:id [ fhir:v "LocationUpdateExample-Location"] ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "http://example.org/HospitalLocations/id"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EMC-317" ]
  ] ) ; # 
  fhir:name [ fhir:v "Example Medical Center - Room 317"] . #