Stream: implementers
Topic: Support composite search utilizing "OR" for multiple params
Mona O (Feb 13 2022 at 13:48):
I have a use case where the Consent resource is being utilized and there's a need to perform a single search where a patient is either the consentor (Consent.performer) OR the provision.actor. Is there a specific way "OR" searches on multiple parameters are handled in FHIR? The composite search via http://hl7.org/fhir/search.html#combining seems to only speaks to "OR" within the same parameter.
Looking at how others have implemented OR operation there doesn't seem to be a consistent way.
- IBM utilizes 'ormode' condition
- Spring utilizes "," for OR operator and ";" for AND operator
Is there a specific way FHIR would handle this type of scenario? Or do we need to have the consumer make 2 separate searches?
ex. /Consent?consentor=12345 OR actor=Patient/12345
Lloyd McKenzie (Feb 13 2022 at 15:50):
You can do it with the _filter parameter, but that's not widely supported.
Last updated: Apr 12 2022 at 19:14 UTC