Stream: implementers
Topic: Searching for reference:type where identifier is any
Erik Greif (Aug 06 2019 at 20:19):
Looking at the R4 search spec, there are several ways to look up references.
reference:Patient={id}
reference=Patient/{id}
reference={id}
What I'm missing is a way to look for references that match any Patient, Practitioner, or other resource type.
Example use case: I want to retrieve all Goal resources that are expressedBy (Indicates whose goal this is) a Practitioner or by a Patient, but I don't care which Practitioner nor Patient it is.
Something like: "expressed-by:Patient" or "expressed-by:Patient=*" are my first guesses. What are your thoughts on the subject?
Michele Mottini (Aug 06 2019 at 20:24):
It is not possible
Lloyd McKenzie (Aug 06 2019 at 20:25):
If we were going to support this, it would probably look like this: reference:type=Patient. You could submit a change request for us to consider adding this in R5
Erik Greif (Aug 06 2019 at 20:32):
Awesome, sounds good! I like the format you are proposing
Last updated: Apr 12 2022 at 19:14 UTC