_count & _page
Paging search results
Search results can contain many records, for more convenient work we can use pagination. Available parameters are: _count — total records on the page (default value — 100), page — specific page, output Bundle includes link section with first, self, next, previous, and last page constructed URLs.
1
GET /Patient?_count=10&_page=3
2
3
# 200
4
resourceType: Bundle
5
type: searchset
6
entry:
7
- resource:
8
...
9
total: 206
10
link:
11
- {relation: first, url: '/Patient?_count=10&_page=1'}
12
- {relation: self, url: '/Patient?_count=10&_page=3'}
13
- {relation: next, url: '/Patient?_count=10&_page=4'}
14
- {relation: previous, url: '/Patient?_count=10&_page=2'}
15
- {relation: last, url: '/Patient?_count=10&_page=21'}
Copied!
Last modified 7mo ago
Copy link