Hello There, I am willing to know about the patient search screen, do we have server side pagination in patient search screen. because I saw limit parameter in /patient(search patient) api to search a patient. Thanks
The Rest module does some king of pagination on most Resource search basically using the startIndex
and limit
params .
On doing serch for many resources , the limit
and startIndex params are a must
The Limit is used to limit the number of results returned on a single page and the startIndex to move to the next page
Read more here ,see Sapmle Rest Calls
You mean we need to take care about limit and start index at client side. Is patient search will support this approach because what I see in rest docs is OpenMRS Docs.
So I think it support pagination.
yes , some thing like curl -i
'https://localhost:8443/openmrs/ws/rest/v1/concept?limit=2&startIndex=2'
Clients may request more or fewer results with the limit parameter. For example:
curl -u admin:test -i
'http://localhost:8080/openmrs/ws/rest/v1/concept?limit=2'
The above will return only 2 concepts. To retrieve the next page of two concepts, use the startIndex tag. For example:
curl -i
'https://localhost:8443/openmrs/ws/rest/v1/concept?limit=2&startIndex=2'
As a system administrator you can configure both the default limit (applied whenever the client does not specify a limit) and the absolute limit (which the client is not allowed to exceed), from the “Settings” page of the ws module.