Stream: implementers
Topic: Searching using contained resource properties
Brendan Keeler (Mar 29 2022 at 20:45):
If I want to search for resources using properties of a contained resource, is that supported?
GET {{fhir_url}}/MedicationDispense?medication:code=http://www.nlm.nih.gov/research/umls/rxnorm|643177
would that properly pull MedicationDispenses if the contained Medication has that RxNorm code?
Paul Church (Mar 29 2022 at 20:49):
I recall some discussion in https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Server.20supporting.20_contained.20searches
David Pyke (Mar 29 2022 at 20:53):
So, from reading that, it seems that you'd be hit or miss on support searching using chained search depending on the implementation (note, that thread is 2 years old so capabilities may have changed)
Gino Canessa (Mar 29 2022 at 20:54):
In theory, search on contained resources is supported via the standard chaining mechanisms and the _contained
and _containedType
parameters.
In practice, your mileage may vary =).
Last updated: Apr 12 2022 at 19:14 UTC