Stream: committers
Topic: Composite Search
Brian Postlethwaite (Mar 04 2018 at 10:14):
Trying to apply the location near search parameter and discover there is nothing like it already to copy the approach with
https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=14216&start=0
I though it was going to be the composite, but its not based on 2 parameters, so definition doesn't work like that.
The existing query looks like the below, which can't be used with chaining :(
GET [base]/Location?near=-83.694810:42.256500&near-distance=11.20||km...
could this be represented as a composite like this:
GET [base]/Location?near=-83.694810:42.256500$11.20||km
Grahame Grieve (Mar 04 2018 at 16:37):
it should be just like any other composite search parameter, no?
Brian Postlethwaite (Mar 04 2018 at 20:53):
Others are on 2 values in the resource, this is on 1 in resource lat/long, and 2 relative distance between points, more like a comparison operator
Brian Postlethwaite (Mar 04 2018 at 20:53):
(it will need to be manually coded anyway)
Grahame Grieve (Mar 04 2018 at 23:46):
well, you have to create a single search parameter for that, so you compose it
Last updated: Apr 12 2022 at 19:14 UTC