FHIR Chat · hapi only returns max 800 resources on search · hapi

Stream: hapi

Topic: hapi only returns max 800 resources on search


view this post on Zulip Patrick Werner (Apr 07 2022 at 07:51):

I'm facing an issue with hapi 5.7.0 on the amount of returned Patient resources (max 800).
This server was initially setup without lucene indexing, then Lucene was enabled and $reindex triggert.

For the search Patient?gender=female now only returns 800 results in Bundle.total (correct would be ~6000'), if i traverse through the search pagination i get back all Patients, also male and unknown.

The only way hapi 5.7.0 returns correct search results is with a _count > number of patients returned by the search. I also observed pagination issues with SMILE, so i assume smth. in the pagination code causes this problem.

view this post on Zulip Patrick Werner (Apr 11 2022 at 08:49):

Update:
Digged deeper into the Problem: for Patient?gender=femalethis hapi 5.7.1 instance returns all Patients instead of only female ones. If i search with _total=accurate i always get max 800 as the total.
Will try to recreate the issue on a test environment.

view this post on Zulip Patrick Werner (Apr 11 2022 at 17:34):

I started a fresh instance of the jpastarter 5.7.1, POSTed 2000 patients with 1000 patients male, 1000 female.
http://localhost:8081/fhir/Patient?gender=male&_total=accurate still returns only 800, i think there is a bug in 5.7.x hapi (jpastarter)?

view this post on Zulip Patrick Werner (Apr 11 2022 at 17:38):

using postgres (with hibernate.dialect: ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect setting), with a lucene index.

view this post on Zulip Patrick Werner (Apr 12 2022 at 07:05):

Update:
I don't get this issue on a vanilla jpa-starter outside docker. Will investigate..


Last updated: Apr 12 2022 at 19:14 UTC