Hello,
I am running Hapi 6.10.0 in a docker with the hapi starter project (FHIR R4).
I currently face the issue that for some queries, the "next" link is missing even though more results would be present. Reproducing this on the official test system (
http://hapi.fhir.org/baseR4) was not possible, mainly because the exact same query runs into a timeout.
This query returns me the desired 5 results including all "included" resources, but without a "next" link:
DiagnosticReport?_sort=date,_lastUpdated&status=registered,partial,preliminary,final,amended,corrected,appended,unknown&result:Observation.category=laboratory&result:Observation.status=corrected,final,amended&_include=DiagnosticReport:result&_include=DiagnosticReport:performer&_count=5
If I remove now the "_sort=date,_lastUpdated", then I also get 5 results including all "included" resources, but a next link is present:
DiagnosticReport?status=registered,partial,preliminary,final,amended,corrected,appended,unknown&result:Observation.category=laboratory&result:Observation.status=corrected,final,amended&_include=DiagnosticReport:result&_include=DiagnosticReport:performer&_count=5
I can tweak the query now and request 6 resources instead, then I run into the same problem again that the "next" link is missing. If the issue appears at a specific counter, all higher numbers also lead to that problem.
Tweaking the query further, without touching the _include parameters, always eventually ends up at a _counter number that runs into this problem again.
Furthermore this is a consistent behavior and 100% reproducible on my system - unfortunately I am not allowed to share the exact resources.
The only way to really get rid of the problem seems to be to remove the _include parameters from the query, then the "next" link seems to be returned correctly as far as I can tell.
Is this problem already known? Has anybody an idea what could cause that issue?
Any input would be highly appreciated :)
Thanks and kind regards,
Johanna