Does IRIS for Health support non standard FHIR Search parameters for pagination?
Hi,
Does IRIS have any support for paginating FHIR searches other than the standard next/prev links as defined in the FHIR spec? For instance, some servers support an _offset or _skip parameter to allow for jumping to specific pages in a result set.
Product version: IRIS 2025.2
Discussion (2)1
Comments
Short answer: no – the IRIS for Health FHIR server doesn’t expose an _offset / _skip (or similar) parameter for random-access paging. We do support
- Standard FHIR paging via
Bundle.link[next]/Bundle.link[prev] - Control over page size and max total results, but not “jump to page N”
If you need “jump to arbitrary position” or more sophisticated pagination in an app, your options are basically: - Stick with FHIR paging
- Use
_countto set a page size that’s convenient. - Follow
nextlinks and optionally prefetch ahead a page or two in your client so the UI feels snappy when users jump forward.
- Use
- Page over SQL instead of FHIR
- Load/search your data via Resource Repository / FHIR SQL Builder and then query it with SQL, where you do have
OFFSET/FETCHor equivalent. - Your UI can then use traditional page numbers while the FHIR server is just the ingestion layer.
- Load/search your data via Resource Repository / FHIR SQL Builder and then query it with SQL, where you do have
-
While testing with postman I just noticed a page attribute returned in the navigation links returned by the search.
"http://localhost:52773/fhir/r4/Organization?page=63&queryId=0af9b999-da…"
I think this actually does what I am looking for.
Thanks