FHIR Chat · Search by List · implementers

Stream: implementers

Topic: Search by List


view this post on Zulip Cindy Jiang (Oct 28 2019 at 14:21):

Hi, we have a use case to "return all DiagnosticReport where DiagnosticReport.subject in myPatientList". We were thinking of using https://fhirbase/DiagnosticReport?_list=myPatientlist, but through testing against a few FHIR test servers, it appears that the _list parameter has to be the list of the same resource that is being searched, which would be DiagnosticReport in our case. Is this understanding correct? If so in order to support our use case, do we have to create a custom operation? Is there any other options?

view this post on Zulip Michele Mottini (Oct 28 2019 at 15:50):

Yes, your understanding is correct. See https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Search.20modifier.20for.20references.3A.20member-of-group.3F for discussions of alternatives

view this post on Zulip natus (Oct 30 2019 at 17:56):

@Cindy Jiang

indeed, I suspect such method does things well:

DiagnosticReport?subject:Group/myPatientGroup

Or who knows:

DiagnosticReport?subject:List/myPatientList

also @Michele Mottini thought ?

view this post on Zulip Cindy Jiang (Nov 21 2019 at 14:07):

@Michele Mottini & @natus thank you both! We did some testing but neither chained parameters or reverse chaining worked. I posted additional question on https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Search.20modifier.20for.20references.3A.20member-of-group.3F

view this post on Zulip Josh Mandel (Nov 26 2019 at 13:16):

(To follow up: we woud up defining :in as a modifier for R5, which willallow for queries like DiagnosticReport?subject:in=Group/myPatientGroup.

view this post on Zulip Josh Mandel (Nov 26 2019 at 13:18):

J#22690


Last updated: Apr 12 2022 at 19:14 UTC