Getlabs Appointment Group API
An appointment group books multiple patients into a single timeslot at the same address, so they can all be serviced during one visit (for example, family members at the same home). Each patient still gets their own appointment with their own communications, and the group can be booked, rebooked, and cancelled as a single unit. **Booking a group** 1. Retrieve the patient IDs from the [Patient](#tag/Patient) endpoint. 2. Retrieve a booking key from the [Availability](#tag/Availability) endpoint. The time and location of every appointment in the group comes from this key. 3. (optional) Upload any lab order files, then include their file IDs and any external IDs or products in the corresponding appointment. 4. Create the group with `POST /v2/appointment-group`. **Adding patients to an existing visit** No booking key is needed; the new appointments always use the existing visit's time and address. To change those, rebook the group. - To group patients with an existing appointment, use `POST /v2/appointment-group` with `appointmentId` instead of `key`. - To add patients to an existing group, use `PATCH /v2/appointment-group/{id}`. **Group behavior** - **Rebooking** the group is all-or-nothing: the group is only rebooked if every appointment in it is rebookable. - **Cancelling** the group cancels every appointment in it. - **Size**: a group can have at most 5 active appointments, including when adding patients to an existing visit. Cancelled appointments don't count. **Individual appointments in a group** Each appointment in a group can also be managed on its own through the [Appointment](#tag/Appointment) endpoints: - **Rebooking** a single appointment removes it from the group, and its price returns to your contracted rate. - **Cancelling** a single appointment leaves the rest of the group booked.