Security
x-api-key and a-api-key
Comma separated search fields. See Sorting
Example:sort_by=["client_id","first_name","surname","file_created"]
Filter result by one or more fields.
See Query Filtering
Available filters:
| Value | Format |
|---|---|
| first_name | string |
| surname | string |
| file_created | timestamp |
| date_of_birth | date |
| preferred_name | string |
| string | |
| archived | timestamp |
| updated | timestamp |
| home_phone | string |
| work_phone | string |
| mobile | string |
| phone | string |
| status | integer= only.Active = 1, Inactive = 2, All = 3, Inactive (excl deceased) = 4, All (excl deceased) = 5, Deceased = 6 |
| email_marketing_type | integer= only.Soft Opt-In = 1, Opt-In = 2, Soft Opt-Out = 3, Opt-Out = 4 |
| sms_marketing_type | integer= only.Soft Opt-In = 1, Opt-In = 2, Soft Opt-Out = 3, Opt-Out = 4 |
| tag_any_ids | integer array Matches patients who have any of the supplied tag IDs. |
| tag_all_ids | integer array Matches patients who have all of the supplied tag IDs. |
| tag_exc_ids | integer array Excludes patients who have any of the supplied tag IDs. |
- Productionhttps://api.pracsuite.com/v1/patient
curl -i -X GET \
'https://api.pracsuite.com/v1/patient?page=1&page_size=50&sort_by=%5B%22field_name%22%2C%22field_name%22%5D&q%5B%5D=string' \
-H 'a-api-key: YOUR_API_KEY_HERE' \
-H 'x-api-key: YOUR_API_KEY_HERE'Response
{ "clients": [ { … } ], "total_entries": 0, "links": { "self": "https://api.pracsuite.com/v1/patient?page=2", "previous": "https://api.pracsuite.com/v1/patient?page=1", "next": "https://api.pracsuite.com/v1/patient?page=3" } }