FHIR Chat · Some _include queries cannot pull insurance:coverage · hapi

Stream: hapi

Topic: Some _include queries cannot pull insurance:coverage


view this post on Zulip Robert Scalfani (Jan 20 2022 at 15:44):

Hi all,
In some cases, _include queries are not pulling the insurance:Coverage from a resource. It works for an instance of DeviceRequest, but not for ServiceRequest or MedicationRequest. We've been running this on a local HAPI server on version 5.4.0.

This example query features a DeviceRequest that tries to get the insurance coverage, and is successful.
http://localhost:8080/test-ehr/r4/DeviceRequest?_include=DeviceRequest:insurance:Coverage

This example features a ServiceRequest that tries to get the insurance coverage, but is unsuccessful.
http://localhost:8080/test-ehr/r4/ServiceRequest?_id=servreq-g0180-1&_include=ServiceRequest:insurance:Coverage
It successfully pulls other _includes like Patient/Practitioner/etc and the resource in the insurance field is of type Coverage.

The fhir resources for both are in the same structure with similar fields. Any idea why this might be working in some cases but not others?

I also tried the same query to http://hapi.fhir.org/baseR4:
http://hapi.fhir.org/baseR4/DeviceRequest?_id=93947&_include=DeviceRequest:patient&_include=DeviceRequest:insurance:Coverage
But didn't get back either the Coverage, Patient, or any other _includes even though they're in that 93947 resource.

Thank you!

view this post on Zulip Daniel Venton (Jan 20 2022 at 15:52):

I looked at http://hl7.org/fhir/R4/servicerequest.html and :insurance isn't a known search parameter, so I would say that it's not a known include value either.

view this post on Zulip Robert Scalfani (Jan 20 2022 at 16:01):

Gotcha, thank you!


Last updated: Apr 12 2022 at 19:14 UTC