So I think the thing is... that YOUR server has to understand .. whatever query-string parameter you use....(if you use hapi, it is _getpagesoffset and I think if you use Vonk it is _skip or something like that.
so _count is "standard"...but the paging "pageNumber" query string variable name is "your thing".
Below I'm gonna use "pagingainteasy" to emphasize that as long as YOUR server understands it, its ok. (which of course is a single word of Paging Aint Easy!) :)
So when you get a paged search result, you get these "relation" links.
So as long as you populate the url values (3 urls below with pagingainteasy values).....and YOUR server can handle it.......then you're ok.
And "Grahame Grieve" (aka "da man")....comment. I'll paste it here : "yes, left to the implementers. you have to step through the pages to get the link for the page –"
so in a nutshell, your return payload have to have url's populated for "self,next,previous"....but as long as YOUR server understands that URL and whatever querystring you happen to use...you are compliant.
Disclaimer: I learn something new about FHIR everyday. So I am mostly confident in what I am saying here.
{
"resourceType": "Bundle",
"id": "aaaaaaaa-82f4-4c7c-9008-9e48878c1e19",
"meta": {
"lastUpdated": "2000-12-25T08:18:31.299-04:00"
},
"type": "searchset",
"total": 1000,
"link": [
{
"relation": "self",
"url": "/myr4fhirserver/*/Patient/?_count=33&pagingainteasy=5"
},
{
"relation": "next",
"url": "/myr4fhirserver/*?_getpages=55988c6e-2d47-496a-bff7-e2209c012650&pagingainteasy=38&_count=33&_pretty=true&_bundletype=searchset"
},
{
"relation": "previous",
"url": "/myr4fhirserver/*?_getpages=55988c6e-2d47-496a-bff7-e2209c012650&pagingainteasy=0&_count=33&_pretty=true&_bundletype=searchset"
}
],
"entry": [
{
Philosophy. Because of the the way the urls are...
You might have have to use "_count" either (???)
Maybe
&pagingainteasy=0&countdracula=33
would still be ok, as long as YOUR server understands countdracula and pagingainteasy query string parameters.
SIDE NOTE:
One reason I got confused is because
For their example, they have "&page=3" (etc, etc) which makes it ~seem like there is a standard.