Skip to content

Instantly share code, notes, and snippets.

@Virnkord
Last active September 11, 2019 16:04
Show Gist options
  • Save Virnkord/b947554544b964c619b8465ee1344d15 to your computer and use it in GitHub Desktop.
Save Virnkord/b947554544b964c619b8465ee1344d15 to your computer and use it in GitHub Desktop.
# https://docs.aidbox.app/basic-concepts/search-1/_count-and-_page
- id: get-one-patient-from-second-response-page
GET: /Patient?_count=1&_page=2
match:
status: 200
body:
entry:
- resource:
id: pt-2
resourceType: Patient
name: [given: [Anna]]
birthDate: '1994-08-07'
address: [{city: Kolpino}]
text:
status: additional
div: Unknown
# https://docs.aidbox.app/basic-concepts/search-1/_sort
- id: get-patient's-ids-sorted-in-reverse-order
GET: /Patient?_sort=-id&_elements=id
match:
status: 200
body:
entry:
- resource:
id: pt-3
resourceType: Patient
- resource:
id: pt-2
resourceType: Patient
- resource:
id: pt-1
resourceType: Patient
# https://docs.aidbox.app/basic-concepts/search-1/_total-or-_countmethod
- id: get-patients-list-without-running-count-query
GET: /Patient?_total=none&_count=1&_elements=id,name.given
match:
status: 200
body:
entry:
- resource:
id: pt-1
resourceType: Patient
name: [{given: [Vlad]}]
@Virnkord
Copy link
Author

Virnkord commented Sep 11, 2019

Item _list is in progress now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment