Stream: australia
Topic: Searching address parts
John Carter (Apr 14 2021 at 00:34):
In the Provider Directory HealthcareService profile (http://build.fhir.org/ig/hl7au/au-fhir-pd/StructureDefinition-au-pd-healthcareservice.html), there's a requirement to search by address parts like postcode, suburb. This is accomplished by chained search on the associated Location resource. It's possible for a Location to have both a postal address and a physical address, and for these to be different. In such a case, what is the "FHIR-expected" behaviour for a search such as
GET [base]/HealthcareService?location.address-city=[suburb]
when there are two different cities? Do I return all resources where either the postal city OR the physical city matches the criteria and let the user sort it out? That feels reasonable (but not perfect) in the case of a text match, but more problematic in the case of a distance match, e.g.,
GET [base]/HealthcareService?location.near=[latitude]:[longitude]&location.near-distance=[prefix][value]|[units-system]|[units]
since the postal address could be far away and you wouldn't want to send anybody there (except the postal worker).
Thanks for your thoughts.
Brian Postlethwaite (Apr 14 2021 at 00:45):
that search parameter is explicitly tied to the location.address, this is a single cardinality field, and does not have other address types in there.
John Carter (Apr 15 2021 at 21:20):
Thanks @Brian Postlethwaite I see that I was wrong on the cardinality, so that helps me understand. WRT address type, the AU PD Location profile still allows me to specify whether the address is Physical, Postal, or Both. Is there an expectation in here that it's always the Physical address?
Lloyd McKenzie (Apr 15 2021 at 22:09):
Right. You can't send mail to a floor or a building - you send it to a person or an organization who happens to be located at that location.
John Carter (Apr 15 2021 at 23:17):
Thanks @Lloyd McKenzie . The profile still allows the address type to be Postal, Physical, or Both. Sounds like we could tighten that up to exclude the Postal type.
Last updated: Apr 12 2022 at 19:14 UTC