You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pagination response structure is being modified for each different call in the backend. For instance, patientSearchResults is the key used by the frontend to access search results.
The searchTermToPage field is being sent from the backend to the frontend but is not utilized in the frontend logic.
The count field from the backend should indicate the size of the results array based on the query parameters, allowing for more efficient handling of pagination.
Serialization of query parameters in the URL should exclude parameters with undefined or null values. For instance, if nationalID and labNumber are undefined or null, they should not be included in the URL query params.
The default offset should be set to 0. When the user interacts with the frontend (e.g., clicks next button), the offset should be updated accordingly in the URL.
If query parameters are applied, they should be serialized in the URL. For instance:
Base URL: https://oe3.openelis-global.org/api/OpenELIS-Global/rest/patient-search-results
Without query params: ?limit=12&offset=0
After user interaction: ?limit=12&offset=12
With applied query params: ?limit=12&offset=12&lastName=vivek&firstName=rama
By implementing these changes, unnecessary buttons such as "load next bundle" and "load previous bundle" can be removed, resulting in a more streamlined UX.
The text was updated successfully, but these errors were encountered:
Currently, the pagination response format for the patientSearch endpoint in the backend is as follows:
expected Format :
Before :
pagination
response structure is being modified for each different call in the backend. For instance,patientSearchResults
is the key used by the frontend to access search results.searchTermToPage
field is being sent from the backend to the frontend but is not utilized in the frontend logic.After :
https://oe3.openelis-global.org/api/OpenELIS-Global/rest/patient-search-results
By implementing these changes, unnecessary buttons such as "load next bundle" and "load previous bundle" can be removed, resulting in a more streamlined UX.
The text was updated successfully, but these errors were encountered: