# FHIR module to support paging

**URL:** <https://talk.openmrs.org/t/fhir-module-to-support-paging/25347>\
**Category:** FHIR\
**Tags:** development, module, developers-forum\
**Created:** [November 4, 2019, 7:31am UTC](https://talk.openmrs.org/t/fhir-module-to-support-paging/25347 "2019-11-04T07:31:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![corneliouzbett](https://talk.openmrs.org/user_avatar/talk.openmrs.org/corneliouzbett/32/15464_2.png) [@corneliouzbett](https://talk.openmrs.org/u/corneliouzbett)\
**Post date:** [November 4, 2019, 7:31am UTC](https://talk.openmrs.org/t/fhir-module-to-support-paging/25347/1 "2019-11-04T07:31:10Z")

</div>

Currently, the FHIR module doesn’t support paging.

FHIR RESTful servers may optionally support paging responses, meaning that if a search returns 500 resources, the server can return a bundle containing only the first 20 and a link which will return the next 20, etc.

By default, FHIR RESTful servers will not page, but will rather return all resources immediately in a single bundle. There are two ways to support paging: [Paging providers](https://hapifhir.io/doc_rest_server.html#_toc_paging_providers) and [Bundle providers](https://hapifhir.io/doc_rest_server.html#_toc_bundle_providers).

From documentation [Paging Responses](https://hapifhir.io/doc_rest_server.html#_toc_paging_responses), it seems to be straight forward 🙂. I am creating this topic to discuss the best way of implementing paging support in FHIR module.

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [November 11, 2019, 6:59pm UTC](https://talk.openmrs.org/t/fhir-module-to-support-paging/25347/2 "2019-11-11T18:59:16Z")

</div>

Did you get a chance to explore how we do this in the rest webservices module? [https://wiki.openmrs.org/display/docs/REST+Web+Services+API+For+Clients#RESTWebServicesAPIForClients-Limitingthenumberofresultsandpaging](https://wiki.openmrs.org/display/docs/REST+Web+Services+API+For+Clients#RESTWebServicesAPIForClients-Limitingthenumberofresultsandpaging)
