Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HapiFhirDal search unable to paginate results #4551

Closed
Capt-Mac opened this issue Feb 14, 2023 · 0 comments · Fixed by #4552
Closed

HapiFhirDal search unable to paginate results #4551

Capt-Mac opened this issue Feb 14, 2023 · 0 comments · Fixed by #4552
Assignees

Comments

@Capt-Mac
Copy link
Collaborator

Capt-Mac commented Feb 14, 2023

Describe the bug
HapiFhirDal in Cr-common had a bug where pagination of searched resources resulted in null value if default queryCount was exceeded. Overriding from TypedBundleProvider.getallresources fixed the issue

To Reproduce
Steps to reproduce the behavior:

  1. Post measure resource bundle with over 50 Patient resources
  2. Execute get http://localhost:8000/Measure/ImmunizationStatus/$evaluate-measure?periodStart=2019-01-01&periodEnd=2019-12-31&reportType=population
  3. result of HapiFhirDal search will give null pointer error
  4. This was stack traced to this error `"resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "processing", "diagnostics": "HAPI-0389: Failed to call access method: ca.uhn.fhir.context.ConfigurationException: HAPI-0464: Attempt to request all resources from an asynchronous search result. The SearchParameterMap for this search probably should have been synchronous.", which happens when requesting getAllResources

Expected behavior
Expected behavior is a resulting MeasureReport resource

This is linked to two reported Smile-CDR bugs:
https://gitlab.com/simpatico.ai/cdr/-/issues/3466
https://gitlab.com/simpatico.ai/cdr/-/issues/4102

Environment (please complete the following information):

  • HAPI FHIR Version: 6.5.0-SNAPSHOT (latest)
@Capt-Mac Capt-Mac linked a pull request Feb 14, 2023 that will close this issue
@Capt-Mac Capt-Mac self-assigned this Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant