View patients
This endpoint returns a list of patients for the specified location, narrowed down by the optional filters configured.
Query parameters
Used to scope the request to the specified institution
Used to scope the request to the specified location
Optional comma-separated string of fields to sort on. Include a leading dash for descending order.
Available fields:
- id
- -id
- updated_at
- -updated_at
Filter by patient name
Filter by patient email
Filter by patient phone number
Filter by patient date of birth. Must be a parseable date string, recommended format is YYYY-MM-DD
Filter by inactive status. When true, returns only inactive patients. When false, returns only active patients. When not specified, does not filter
Filter by the unique patient id from the EHR
Only return patients updated at or after the specified date/time. Must be a parseable Date, recommended formats are YYYY-MM-DD or YYYY-MM-DDThh:mm:ss+0000
Filter patients by new_patient status. When true, returns only new patients with an upcoming appointment. When false, returns only non-new patients. When not specified, returns both regular patients and new patients with upcoming appointments. Patients with the attribute new_patient=true are patients that do not fully exist in the EHR so cannot be used to book appointments. When the patient record is officially created (and read by us) in the EHR, record associations will be created and any new_patient records are deleted.
Specify if you want to filter non_patients. In case of true: return only non_patients. In case of false: Result does not include non_patients. In case of null: do not set filter/return any
Specify if you want to filter to patients that can have forms inserted into their patient file. In case of true: Return only patients that can have forms inserted into their patient file. In case of false or nil: do not filter
Only returns patients belonging to the specified location, rather than searching across the EHR system
First item of the current page. Starts empty
Last item of the current page. Starts empty
Number of results to return per page. Maximum allowed amount is 1000.
Headers
The NexHealth API version
Response
Successful
Example response
{
"description": "Description",
"error": [
"Error message"
],
"data": [
{
"id": 415,
"email": "Amy.Ramos@nexhealth.com",
"first_name": "John",
"middle_name": "Anthony",
"last_name": "Smith",
"name": "John Smith",
"created_at": "2020-06-05T20:16:57.007Z",
"updated_at": "2020-06-05T20:16:57.007Z",
"institution_id": 105,
"foreign_id": "100437",
"foreign_id_type": "--DataSource-",
"bio": {
"city": "New York",
"state": "NY",
"gender": "Female",
"zip_code": "20814",
"new_patient": false,
"non_patient": true,
"phone_number": "5163042196",
"date_of_birth": "1964-05-03",
"address_line_1": "",
"address_line_2": "",
"street_address": "",
"cell_phone_number": "",
"home_phone_number": "",
"work_phone_number": ""
},
"last_sync_time": "2024-04-12T10:30:00Z",
"guarantor_id": 472,
"billing_type": "Standard Billing - finance charges",
"chart_id": "017407",
"preferred_language": "es",
"provider_id": 23,
"hipaa": {
"authorization": true,
"authorization_date": "2023-03-22",
"privacy": true,
"privacy_date": "2023-03-22",
"consent": true,
"consent_date": "2023-03-22"
}
}
],
"page_info": {
"has_previous_page": false,
"has_next_page": false,
"start_cursor": "AAAAA",
"end_cursor": "BBBBBB"
}
}