FHIR Chat · Extracting Condition resources referenced in EOB · implementers

Stream: implementers

Topic: Extracting Condition resources referenced in EOB


view this post on Zulip Tushar Nair (Nov 24 2020 at 18:29):

Hello,

I am trying to write a query to retrieve and resolve the Condition resource referenced in ExplanationOfBenefit.diagnosis.diagnosisReference>Condition. There is no search parameter for the 'diagnosisreference ' field in the resource. I am trying the revinclude option to fetch me the Condition resources referenced in ExplanationOfBenefit resource. The query is as follows:
pd-fhir-viewer:8080/hapi-fhir-jpaserver/fhir/Condition?_revinclude=ExplanationOfBenefit:Patient/PGXC12 When am executing this it returns all the condition resources in the server, rather than returning the specific Condition resource as referenced in the ExplanationOfBenefit resource. I am using the HAP FHIR and am going to post there as well but just wanted to check if the approach is right or if there is a better way of doing this. Thanks.

view this post on Zulip Yunwei Wang (Nov 24 2020 at 18:57):

Both _include and _revinclude are based on search parameters, rather than paths in the resource, since joins, such as chaining, are already done by search parameter.

So you cannot _revInclude EOB.diagnosis since there is no defined search parameter on it.

view this post on Zulip Lloyd McKenzie (Nov 25 2020 at 23:10):

More specifically, to do that, the server would have to define its own search parameter - though that's a completely legal thing to do.


Last updated: Apr 12 2022 at 19:14 UTC