Stream: implementers
Topic: AND logic in chaining
Alexander L (Sep 23 2020 at 15:07):
Hello,
I'd like to clarify if there is a way to do logical AND on the same chaining parameter, since documentation is a bit vague about it: http://hl7.org/fhir/search.html#chaining
First, there is an example Patient?general-practitioner.name=Joe&general-practitioner.address-state=MN
, where these conditions are evaluated as OR.
But also there is a reference to Composite search parameters for the cases "where the joins must be evaluated in groups".
Does it mean that such a request on the same parameter should be evaluated as AND? Patient?general-practitioner.address:contains=Hartford&general-practitioner.address=06001
P.S
I can see that public hapi-fhir server evaluates such query as AND - http://hapi.fhir.org/baseR4/PractitionerRole?practitioner.name=DR&practitioner.name=RANDOM123456
Just wanted to be 100% sure it is correct behavior.
René Spronk (Sep 24 2020 at 06:58):
Composite search parameters are documented here: http://build.fhir.org/search.html#composite - but none of those has been predefined for things like names and/or addresses.
Last updated: Apr 12 2022 at 19:14 UTC