FHIR Chat · address longitude/latitude/altitude · implementers

Stream: implementers

Topic: address longitude/latitude/altitude


view this post on Zulip natus (Sep 16 2018 at 09:48):

hi
I need to provide the city long/lat/alt where the patient is living. There is also the same information at country/city and address level. Is there any possibility to make the country, address, city Address's elements be location or something more structured thant a string ? Thanks

view this post on Zulip natus (Sep 16 2018 at 09:52):

From Extension documentation:

Elements that are data types, or that are inside data types SHALL NOT have modifier extensions, and extensions SHALL NOT have modifier extensions internally.

Then right now the only workaround I have is to add the coordinate information within the string such:

Paris [1,20,80]

view this post on Zulip Brian Postlethwaite (Sep 16 2018 at 12:21):

There is an extension you can use on the patient address for this
http://hl7.org/fhir/extension-geolocation.html

view this post on Zulip natus (Sep 16 2018 at 20:24):

thanks for the pointer. Would that be a correct implementation of the extension ?

{
"resourceType": "Patient",
"address": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/geolocation#latitude",
"valueDecimal": 1.1
},
{
"url": "http://hl7.org/fhir/StructureDefinition/geolocation#longitude",
"valueDecimal": 1.1
}
],
"city": "Paris"
}
]
}

view this post on Zulip natus (Sep 16 2018 at 20:59):

I guess this is better: (from the documentatioin https://www.hl7.org/fhir/extensibility.html#extension
and HAPI FHIR implementation (tested) http://hapifhir.io/doc_extensions.html

"address": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/geolocation",
"extension": [
{
"url": "latitude",
"valueDecimal": 1.1
},
{
"url": "longitude",
"valueDecimal": 1.1
}
]
}
],
"city": "Paris"
}

view this post on Zulip Lloyd McKenzie (Sep 16 2018 at 21:52):

The second one looks right

view this post on Zulip natus (Sep 16 2018 at 21:53):

thanks Lloyd. BTW I have been able to implement the second with hapi fhir.


Last updated: Apr 12 2022 at 19:14 UTC