Paging
Search and query operations that return multiple FHIR resources provide pagination to ensure predictable response times and manageable payload sizes.
Results are returned wrapped in a FHIR Bundle with type: "searchset".
Default Page Sizes
Section titled “Default Page Sizes”- Default Page Size: 20 resources per page
- Maximum Page Size: Up to 100 resources per page (configured via the
_countsearch parameter)
Requesting Page Size
Section titled “Requesting Page Size”Use the _count query parameter to control the number of resources returned per
page:
GET /FHIR/R4/1/Patient/ern:emis:patient:uuid:1c0188f4-2787-f730-22ec-237d3ec27b48/Condition?_count=50If _count exceeds the maximum allowed limit, the server caps the response to
the maximum supported page size.
Navigation Links
Section titled “Navigation Links”Search bundles include navigation links within the Bundle.link array:
{ "resourceType": "Bundle", "type": "searchset", "total": 142, "link": [ { "relation": "self", "url": "https://api.stg.emis-x.uk/FHIR/R4/1/Patient/ern:emis:patient:uuid:1c0188f4-2787-f730-22ec-237d3ec27b48/Condition?_count=20&page=1" }, { "relation": "next", "url": "https://api.stg.emis-x.uk/FHIR/R4/1/Patient/ern:emis:patient:uuid:1c0188f4-2787-f730-22ec-237d3ec27b48/Condition?_count=20&page=2" }, { "relation": "first", "url": "https://api.stg.emis-x.uk/FHIR/R4/1/Patient/ern:emis:patient:uuid:1c0188f4-2787-f730-22ec-237d3ec27b48/Condition?_count=20&page=1" }, { "relation": "last", "url": "https://api.stg.emis-x.uk/FHIR/R4/1/Patient/ern:emis:patient:uuid:1c0188f4-2787-f730-22ec-237d3ec27b48/Condition?_count=20&page=8" } ], "entry": [ { "fullUrl": "urn:uuid:a2aa38e2-0738-4ba0-a8aa-f2faaf6ad0de", "resource": { "resourceType": "Condition", "id": "a2aa38e2-0738-4ba0-a8aa-f2faaf6ad0de" } } ]}Supported Link Relations
Section titled “Supported Link Relations”self: The canonical URL that generated the current page.next: The URL to fetch the subsequent page of results. Present whenever additional results remain.previous: The URL to fetch the preceding page of results.first: The URL for the first page in the result set.last: The URL for the final page in the result set.
Client Best Practice
Section titled “Client Best Practice”When iterating through paged results, always traverse the URL provided in
relation: "next" rather than constructing page offsets manually. The platform
may use opaque cursor tokens for performant cursor-based paging.