Stream: hapi
Topic: chained search on Bundle (FHIR Document)
Daniel Neumann (Feb 27 2020 at 14:52):
Hi,
we have some FHIR documents under the Bundle endpoint and I want to search for them by the subject stated in the Composition.
From my understanding GET http://hapi.fhir.org/baseR4/Bundle?type=document&composition.subject=Patient/d1 should return all Bundles with type document and the Patient/d1 stated as subject in the composition.
The HAPI server returns always just an empty bundle.
I have tried this with composition.patient as well. Same result.
The same request, I tried on the vonk test server, with the result that it returned all bundles regardless of the subject.
The bundle I used was the example document from the fhir specs, as well as several others.
On Observation the parameter chaining works fine (eg GET Observation?subject.family=SMITH). Is this not possible with References?
Or did I missunderstand something and such a request is not valid/impossible?
I would appreciate any support. Thanks for your time!
Regards,
Daniel
James Agnew (Mar 03 2020 at 21:05):
That search parameter unfortunately does not work in current HAPI... It's kind of a weird outlier in that it works differently from all other search parameters (it indexes a resource inside another resource and not a separate resource).
James Agnew (Mar 03 2020 at 21:05):
Really want to implement this, but it's a lot of work.
Last updated: Apr 12 2022 at 19:14 UTC