FHIR Chat · Querying all resources that reference a specific resource · analytics on FHIR

Stream: analytics on FHIR

Topic: Querying all resources that reference a specific resource


view this post on Zulip Abby George (Feb 24 2020 at 19:12):

For example, if I have a Patient with an ID = 1234, is there an easy way to query using the search API and get all resources that reference Patient 1234? In the docs I see that the resource type has to be specified (ie. /Observation?subject.id=1234), but I was wondering if there was a way to easily do this without knowing the resource type that references Patient 1234. Thanks!

view this post on Zulip Nagesh (Mar 04 2020 at 17:03):

Patient/1234/$everything

view this post on Zulip Paul Church (Mar 12 2020 at 00:37):

It occurred to me that this question ties into the same query that came up in a separate discussion of referential integrity - there was the idea of making an extended operation Resource/$referred-to that would return all the incoming references to a resource, in a searchset, with pagination. This doesn't exist today but it sounded like a good idea.


Last updated: Apr 12 2022 at 19:14 UTC