-
Notifications
You must be signed in to change notification settings - Fork 4
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
Pagination for List Entries #29
Comments
lincmba
added a commit
that referenced
this issue
Jan 31, 2024
4 tasks
lincmba
added a commit
that referenced
this issue
Feb 1, 2024
lincmba
added a commit
that referenced
this issue
Feb 1, 2024
lincmba
added a commit
that referenced
this issue
Feb 1, 2024
We have to different handler methods for this functionality:
The current implementation works for the first one. We need the second one to have the same implementation. |
lincmba
added a commit
that referenced
this issue
Feb 2, 2024
lincmba
added a commit
that referenced
this issue
Feb 7, 2024
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
succeeds #27
Problem:
When the FHIR gateway is used to fetch data from a FHIR server using the List endpoint with a specific ID (
[GET] /List?_id=<some-id>
), it currently fetches a bundle containing entry URLs. For certain resources, like Locations, with a large number of entries, the gateway faces timeout errors due to the volume of data.Temporary Fix:
The temporary fix for the SID project was to increase the HTTP client timeout .
Proposed Solution:
Implement pagination consistent with the current FHIR responses. Introduce two parameters,
_page
(default set to 1) and_count
(default set to 20), passed to the URL. These parameters will help limit the number of items fetched from the FHIR server.Workflow:
[GET] /List?_id=<some-id>&_count=<page-size>&_sort=<some-sort>&<others>
.[GET] /List?_id=<some-id>&_page<page-number>&_count=<page-size>
.start = (_page - 1) * _count
,end = start + _count
.Acceptance Criteria:
The text was updated successfully, but these errors were encountered: