FHIR Chat · Querying only on devices, referenced by an Observation · implementers

Stream: implementers

Topic: Querying only on devices, referenced by an Observation


view this post on Zulip Dimitar (Oct 17 2017 at 21:55):

Hello, how would I go about querying on the DeviceMetric resources of a patient, which are referenced by an Observation and also are recursively including their DeviceMetric:source and subsequently the Observation itself. In other words, how can I find only those observations, which are referencing devices, that took the measurements and have them included in my search result. Thank you!

view this post on Zulip Dimitar (Oct 17 2017 at 22:31):

Could the search parameter _has maybe be used, to determine whether the Observation has references to a device and filter out only that result, which does?

view this post on Zulip Dimitar (Oct 18 2017 at 08:34):

Fixed it: DeviceMetric?source.patient=PatientId&_include:recurse=DeviceMetric:source&_revinclude=Observation:device , that did the trick


Last updated: Apr 12 2022 at 19:14 UTC