FHIR Chat · FHIR search queries · implementers

Stream: implementers

Topic: FHIR search queries


view this post on Zulip Timothy Akampa (Aug 30 2021 at 17:26):

Hi all,

I would like your opinion on making optimized search queries to a HAPI FHIR server.

I have a Group resource containing Patient resource references in the members attribute. Each Patient resource has a reference to the General Practitioner resource.
Group -> Patients -> Patitioner

Is it possible to return a Bundle resource containing Group, Patient, and Practioner resources?

view this post on Zulip Lloyd McKenzie (Aug 30 2021 at 17:54):

You should be able to use _include

view this post on Zulip Timothy Akampa (Aug 30 2021 at 18:05):

Lloyd McKenzie said:

You should be able to use _include

I was able to use _include to return Group and Patients, but not sure how to return Practitioners.
Here is my group query: /Group?_include=Group:member

view this post on Zulip Daniel Venton (Aug 30 2021 at 18:07):

I feel like that would work, if the practitioner resources are in the member list. Are they in the managingEntity list instead?

view this post on Zulip Timothy Akampa (Aug 30 2021 at 18:11):

Daniel Venton said:

I feel like that would work, if the practitioner resources are in the member list. Are they in the managingEntity list instead?

The practitioner is referenced in the Patient resource under generalPractitioner attribute

view this post on Zulip Timothy Akampa (Aug 30 2021 at 18:11):

Looks like this worked: Group?_include=Group:member&_include:recurse=Patient:general-practitioner

view this post on Zulip Timothy Akampa (Aug 30 2021 at 18:22):

Thanks y'all

view this post on Zulip Shayan Hobbi (Dec 18 2021 at 22:59):

We are trying to implement some CQL-like logic to find post-medication or post-immunization events like allergic reaction, but since CQL engines aren't quite yet available on vendors' FHIR endpoints, we are exploring FHIR search.

From what I can tell, basic medication+condition logic should be doable with 1 FHIR search in HAPI, with _revinclude.
Eg pseudo-logic for anaphylaxis

if patient has immunization.code in covid_vax_code_list
AND
condition.code in anaphylaxis_code_list within 48 hours
then retrieve resources of interest for patient with _revinclude

While the above seems feasible in HAPI, Cerner’s documentation does not list immunization.code or condition.code in their search parameters [https://fhir.cerner.com/millennium/r4/clinical/medications/immunization/#parameters, https://fhir.cerner.com/millennium/r4/clinical/summary/condition/#parameters].
Epic’s Condition search specs [https://fhir.epic.com/Specifications?api=952] don't seem to support it either, so I think native querying might be our only option for now…

@Hans Buitendijk any indication on whether searching by code will be supported in Cerner FHIR endpoints sometime?

@Jean Duteau @Lance FYI

view this post on Zulip Hans Buitendijk (Jan 20 2022 at 18:34):

@Andrew Fagan : Any thoughts?

view this post on Zulip Brittany Brown (Jan 20 2022 at 19:36):

@Shayan Hobbi
@Hans Buitendijk any indication on whether searching by code will be supported in Cerner FHIR endpoints sometime?

We had a similar question on our google group last summer: https://groups.google.com/g/cerner-fhir-developers/c/cYl-zTQhfTQ/m/gXIl1QnqAwAJ?utm_medium=email&utm_source=footer

If we get to this work in the future, we will notify the community through the following :
Developer Documentation  - http://fhir.cerner.com/millennium/overview/
Release Notes - https://wiki.cerner.com/display/OpenDevRN/Cerner+Ignite+APIs+for+Millennium#TBL1599767171231

Last updated: Apr 12 2022 at 19:14 UTC