nextPage using fhir-client.js

171 views
Skip to first unread message

Zayne Asrar

unread,
Aug 16, 2018, 1:28:54 PM8/16/18
to SMART on FHIR
Hi,

I am using fhir-client.js version v0.1.12. I have been able to initialize and do an initial search using smart.patient.api.search, with _count in search parameters. Response from the server does include self, first, last and next urls. When I try to use smart.api.nextPage to navigate to the next page nothing happens. 

Upon trouble shooting further I could get until $$BundleLinkUrl in the library is called and the correct url for the next page is picked. However a GET request for this is not submitted.

Can someone please tell me what am I missing?


Clark Chien

unread,
Oct 24, 2018, 6:14:41 AM10/24/18
to SMART on FHIR
I get the same problem.

Zayne Asrar於 2018年8月17日星期五 UTC+8上午1時28分54秒寫道:

Nikolai Schwertner

unread,
Nov 1, 2018, 3:17:10 PM11/1/18
to smart-...@googlegroups.com
smart.patient.api is an instance of FHIR.js (see https://github.com/smart-on-fhir/client-js/blob/master/lib/jqFhir.js#L1184 for an example of how pagination would work with that library)

You should call nextPage on the same client that you used for the search (i.e. smart.patient.api.nextPage)
--
You received this message because you are subscribed to the Google Groups "SMART on FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smart-on-fhi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages