Appointments

Create appointment

POST
/appointments

This endpoint books an appointment for the given patient with the given provider at the specified location. When is_guardian is true, the booking is made by a guardian and a patient object with the dependent's details must be provided.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain*string

Used to scope the request to the specified institution

location_id*integer

Used to scope the request to the specified location

Formatint32
notify_patient?boolean

Send NexHealth appointment created notifications to patient

Defaultfalse

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Request Body

application/json

Create appointment

appointments_per_timeslot?integer

Number of appointments (default:1, max:5) that can be booked in a single slot. Only supported for athenahealth, eClinicalWorks, ModMed and NextGen.

Formatint32
Range1 <= value <= 5
Default1
appt*

Appointment detail object

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/appointments?subdomain=string&location_id=0" \  -H "Nex-Api-Version: v3.0.0" \  -H "Content-Type: application/json" \  -d '{    "appt": {      "patient_id": 2897,      "provider_id": 104,      "start_time": "2024-04-15T15:00:00Z"    }  }'
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": {    "appt": {      "id": 1822,      "patient_id": 2897,      "provider_id": 104,      "provider_name": "Dr. John Smith",      "start_time": "2020-06-05T20:16:57.007Z",      "confirmed": true,      "patient_missed": false,      "created_at": "2020-06-05T20:16:57.007Z",      "updated_at": "2020-06-05T20:16:57.007Z",      "note": "Patient has been having a cough for 3 days",      "end_time": "2020-06-05T20:16:57.007Z",      "unavailable": false,      "cancelled": false,      "timezone": "America/New_York",      "institution_id": 1,      "appointment_type_id": 27,      "checkin_at": "2020-06-05T20:16:57.007Z",      "location_id": 1,      "foreign_id": "94",      "foreign_id_type": "msg-dentrix-DataSource-100",      "misc": {        "is_booked_on_nexhealth": true      },      "last_sync_time": "2020-06-05T20:16:57.007Z",      "patient_confirmed": false,      "created_by_user_id": 197,      "is_guardian": false,      "patient_confirmed_at": "2020-06-05T20:16:57.007Z",      "cancelled_at": "2020-06-05T20:16:57.007Z",      "is_new_clients_patient": false,      "confirmed_at": "2020-06-05T20:16:57.007Z",      "sooner_if_possible": false,      "operatory_id": 181,      "checked_out": false,      "checked_out_at": "2020-06-05T20:16:57.007Z",      "referrer": "http://mypractice.com/book",      "is_past_patient": true,      "timezone_offset": "-4:00"    },    "stripe_client_secret": "string"  },  "count": 2}