Pagination of Patient search results

202 views
Skip to first unread message

DJ

unread,
Aug 19, 2020, 10:50:37 PM8/19/20
to Cerner FHIR Developers
Hi,

https://www.hl7.org/fhir/r4/http.html#paging 

I am trying to setup a simple patient search UI with paging. What is the suggested approach to fetch the records from server? 

client.request("Patient?name=pete&_count=10",{ pageLimit: 1 }) - This gives me first page with 10 records in it. How do I request server for the next 10 records?

Benjamin Eichhorn (Cerner)

unread,
Aug 20, 2020, 9:20:38 AM8/20/20
to Cerner FHIR Developers
Hi,

Unfortunately we do not own the fhir_client.js library (if that is what you are using) and we won't be able to provide assistance on how to use that library. However, from a general perspective, when performing a search we will return the "link" field of the Bundle resource and you will potentially receive a "self" link, which is a link to the current page, a "next" link if there are subsequent pages, and a previous link if you have continued onto the further pages besides the first. 

Here is an example:

  "link": [
    {
      "relation": "self",
      "url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/CarePlan?patient=1316020&category=assess-plan"
    },
    {
      "relation": "next",
      "url": "https://fhir-open.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d/CarePlan?patient=1316020&category=assess-plan&-pageContext=eNqdU21r2zAQ_isrGfvkiJNfE0Mhjq0OQ2cbWwnbvhgjq5nAloLslHX0x09OM9Y2dKwBgXS6e-7R6e5hqkeMa8k16od7hlgnpGBNx--5HFHTN7-URPtmJ-QORUeraHY8VnLkP8fZ6or9E98qduinA9Ni5Fo0qOSjFsa5fiBTRMXH-OS6Ws0OWoZPycJetCHXPdpzPSgZtlO-HRJ7ZE4nPsnHEDvYBxsMFi8DmAM2iwKEx4UA4Ltx2SZiDv7cDih4oeOGLkYL_-jCcE7LlOZIq47vtboTHX-TnF7fWmlyjU0Keeg6s62jKo3riNIyXW8oqcwVubkhMU23pE4iSszFXdMN_II9ansxDELJD5ka-bz48TAIJho5cXwp6Lf6Nq3oy2qYak3f3ny_cfPQgU-z1Tsx9vL9GMe7AONegMEX1ONN_2u6lGd1UebbNCHl6299YYz6MLXEzH9CqphkSZp9_n8xnFR1LoXcTHszmhZ_fJLaecQkvr_8GflK63hTVvn0XHthgweB5S0wmIm3sLN0F7br2EYGYMGzUSpKsk3zTXWOxYHrO663tLDrBb6zBGz_AZv6HmeP8BuKWGNn&-pageDirection=NEXT"
    }
  ]

Thanks,
Ben (Cerner)

DJ

unread,
Aug 20, 2020, 12:54:22 PM8/20/20
to Cerner FHIR Developers
That helped.
Thanks !!!

Lisa de Souza

unread,
Jun 9, 2021, 12:03:25 PM6/9/21
to Cerner FHIR Developers
Was looking for this same information myself. Would help if it was somehow included in the documentation listed on the Cerner resource page. 

Fenil Desani (Cerner)

unread,
Jun 9, 2021, 12:45:37 PM6/9/21
to Cerner FHIR Developers
Details about Pagination can be found at: http://fhir.cerner.com/millennium/faq/common-issues/#implement-paging
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages