Stream: implementers
Topic: Apply Search Parameters to _include/_revinclude
Ross Kistinger (Sep 11 2017 at 17:51):
Can you apply search parameters to _include or _revinclude parts in a client query? For example, I want to search for Patients and include Conditions that have a code of 12345. I would expect the url to look like /Patient?_revinclude=Condition:patient.code=12345. Thanks!
Lloyd McKenzie (Sep 11 2017 at 18:10):
There's no ability to filter included resources. You can use _having to filter the primary resource based on characteristics of the related resources, but to filter releated resources you need to look at _filter or GraphQL
Lloyd McKenzie (Sep 11 2017 at 18:10):
(The latter is super new and not widely supported)
Lloyd McKenzie (Sep 11 2017 at 18:10):
The former is old and also not widely supported :(
Grahame Grieve (Sep 11 2017 at 19:24):
what is _having?
Chris Grenz (Sep 11 2017 at 19:25):
I think it's Canadian for _has
Grahame Grieve (Sep 11 2017 at 19:25):
oh that will be it. Lloyd's brain is fried from the unusually long Canadian summer
Lloyd McKenzie (Sep 11 2017 at 20:41):
:P
Last updated: Apr 12 2022 at 19:14 UTC