# Book an appointment for a patient

## Overview

[Video: Book an appointment for a patient](https://www.youtube.com/watch?v=D28RQWy6j18)

This flow describes how to book an [appointment](https://docs.ohc.network/concepts/scheduling/booking.md) for a patient in a slot of a practitioner, a location or a healthcare service. You choose the resource, a date and a slot in the **Book Appointment** sheet, and Care opens the new appointment.

## Pre-requisites

* The [patient](https://docs.ohc.network/concepts/clinical/patient.md) is registered in Care.
* You are a member of the facility: you have a role in one of its organizations.
* The practitioner, location or healthcare service has a valid schedule template with a session on that day. See [Create a schedule template](https://docs.ohc.network/flows/scheduling/schedule/create-schedule-template.md).
* If you start from the patient page, you can open the patient's record.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can update bookings on Object | Lets you book the appointment. Hold it in any organization of the facility. By default, the Staff, Facility Admin, Doctor and Nurse roles hold it. |
| Can list bookings on Object | Lets you select a day after today in the calendar, unless your deployment turns off the day counts. Care also needs it to open the new appointment after you book. Hold it in the place listed below for the chosen resource. By default, the Staff, Facility Admin, Doctor, Nurse and Administrator roles hold it. |
| Can View Facility Organizations | Lets you switch the practitioner list to all departments. Without it, that list is empty. By default, the Facility Admin, Staff, Doctor, Administrator, Nurse and Volunteer roles hold it. |
| Can List Facility Locations | Lets you find a location. Care lists only the locations linked to an organization in which you hold it. By default, the Doctor, Facility Admin, Administrator, Nurse, Staff and Pharmacist roles hold it. |
| Can Read Healthcare Service | Lets you choose a healthcare service. Hold it in any organization of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |
| Can Read Tag Config | Lets you choose tags for the appointment. Hold it in any organization of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |

Care accepts Can list bookings on Object only in these places:

* For a practitioner: the facility's Administration organization, a department or team that the practitioner belongs to, or a parent of it.
* For a location: a department linked to the location or to its parent location, a parent of that department, or the facility's Administration organization.
* For a healthcare service with a managing organization: that organization or a parent of it. The Administration organization does not count.
* For a healthcare service without a managing organization: only the facility's Administration organization.

Which buttons you see does not decide whether Care accepts the booking. Care checks Can update bookings on Object when you confirm.

* On Patient Home, **Schedule Appointment** shows if you hold Can update bookings on Object in the facility. This means a department or team of the facility, or its Administration organization.
* On the patient page, **Schedule Appointment** depends on your roles on this patient. It shows only if these roles give you Can update bookings on Object.
* Your roles on a patient come from the organizations of the patient's active encounters and their locations. They also come from the patient's governance organizations and from a direct link to the patient.
* If you do not see **Schedule Appointment** on the patient page, open the sheet from Patient Home.

## Steps

### 1. Open the Book Appointment sheet

Open the sheet from one of these places:

* Patient Home: Search for the patient and open Patient Home. See [Search for a patient](https://docs.ohc.network/flows/clinical/patient/search-patient.md). Then select **Schedule Appointment**. You can also press S.
* Patient search results: Select **Schedule Appointment** for the patient. If the result is a partial match, Care first asks you to verify the patient's identity (**Verify Patient Identity**). Care then opens Patient Home with the sheet open.
* Patient page: Select **Schedule Appointment** in the header. The button shows only when you open the patient page inside a facility. See [View a patient's profile](https://docs.ohc.network/flows/clinical/patient/view-patient-profile.md).
* After registration: If your deployment is set up to do so, the sheet opens after you register a patient. See [Register a patient](https://docs.ohc.network/flows/clinical/patient/register-patient.md).

The search results show **Schedule Appointment** to every user. The sheet opens only if Patient Home shows **Schedule Appointment** to you.

![Patient search results for Maya Raman, with her row outlined and Schedule Appointment in the Actions column](/assets/images/book-appointment-1-d42d820951afc59b51c49740046772f4.webp)

![Patient Home for Maya Raman, with the Schedule Appointment quick action outlined](/assets/images/book-appointment-2-931b24881449e11001fc90a61ff7e92c.webp)

The **Book Appointment** sheet opens on its **Book Appointment** tab. The other tab, **Bookings**, lists the patient's appointments.

### 2. Choose the resource type

Under **Select resource type**, select **Practitioner**, **Location** or **Healthcare Service**.

![The Book Appointment sheet on its Book Appointment tab, with Practitioner selected under Select resource type](/assets/images/book-appointment-3-505378b87ca09dcbf8a991c018b914bd.webp)

Care remembers the type that you chose last in this browser. The first time, the type is **Practitioner**.

### 3. Choose the practitioner, location or healthcare service

| Resource type | How you choose it |
| - | - |
| **Practitioner** | Open **Select Practitioner**. The list shows the practitioners of your departments (**My Dept.**). Switch to **All Dept.** to see all departments. Select one practitioner. |
| **Location** | Search for the location in **Select Location**. Select the location. |
| **Healthcare Service** | Open **Select Healthcare Service**. The list shows only the healthcare services that are set up for scheduling. Select the service. |

![Dr. Meera Iyer chosen in the Practitioner field, with the November calendar and the slots of 28 November beside it](/assets/images/book-appointment-4-887e7b399138f8864a8216894b31cc4d.webp)

### 4. Add tags and a reason for the visit

Both fields are optional.

* To add tags, choose them under **Tag**.
* In **Reason for visit**, type the reason. The placeholder is "Type the reason for visit".

![Persistent cough for two weeks typed in the Reason for visit field, with the Tag field left empty](/assets/images/book-appointment-5-478294361c8a321a5472153dc1487555.webp)

Care saves the reason as the appointment's note.

### 5. Choose a date

Until you choose a resource, the calendar shows "Choose practitioner/location/healthcare service to see availability.".

Each day that has free places shows how many are left, for example "3 left".

![Saturday 28 November selected in the calendar, showing 5 left, with Monday 30 November showing 36 left](/assets/images/book-appointment-6-15e009f0b4aa40116487c62a4ce2ec98.webp)

You cannot select a day before today, a day that is fully booked, or a day without slots.

Note: If your deployment turns off the day counts, every day counts as open.

On a phone, select **Select date** to open a drawer. Then select **Select Slot**.

### 6. Choose a slot

The slot panel shows how many **Available Time Slots** the day has.

* If the day has slots from more than one schedule template, choose the schedule template first.
* The slots are grouped under their session name.
* Each slot shows its start time and the places left. A slot that is running now shows **Live**.
* Slots that have ended or that are full are hidden or disabled.
* Care selects the first available slot. Select a different slot if you need one.

![The 09:00 slot selected under Morning Consultation, with 2 left, among the 4 Available Time Slots](/assets/images/book-appointment-7-86c89f0fbc594486a3e02d087319596d.webp)

If the day has no slots, the panel shows "No slots available for this date".

### 7. Confirm the appointment

After you select a slot, the **Cancel** and **Confirm Appointment** buttons show.

Select **Confirm Appointment**.

![The Confirm Appointment button outlined next to Cancel at the bottom of the Book Appointment sheet](/assets/images/book-appointment-8-c35aec1f91866c0aba971848289eec6a.webp)

![Appointment Details with the banner Appointment created successfully, for Dr. Meera Iyer on 28th November in the 9:00 AM - 9:15 AM slot](/assets/images/book-appointment-9-5f4af7031ee106cf649af2d851e167a0.webp)

Care refuses the booking in these cases. It shows the reason in an error message.

| Case | Message |
| - | - |
| The slot has already ended. | "Slot is already past" |
| The slot is full. | "Slot is already full" |
| The patient already has an open appointment in this slot. | "Patient already has a booking for this slot" |
| The patient already has the maximum number of upcoming appointments, counted at all facilities. | "Patient already has maximum number of appointments (10)" |

The limit is 10 upcoming appointments, unless your deployment sets a different limit. Appointments that are Fulfilled, No-show, Entered in Error, Cancelled or Rescheduled do not count.

Your deployment can also set up actions that run when an appointment is booked. Care runs them as part of the booking. If one of them stops with an error, Care does not book the appointment.

## Expected Outcome

* Care shows the message "Appointment created successfully".
* Care opens **Appointment Details** for the new appointment. A banner shows "Appointment created successfully!" with the patient's name, the date and the slot times.
* The appointment has the status Booked and takes one place in the slot. **Booked by** shows your name.
* The tags that you chose are on the appointment.

## Related

Concepts:

* [Appointment Booking](https://docs.ohc.network/concepts/scheduling/booking.md)
* [Schedule & Availability](https://docs.ohc.network/concepts/scheduling/schedule.md)
* [Patient](https://docs.ohc.network/concepts/clinical/patient.md)

Flows:

* [Find and open appointments](https://docs.ohc.network/flows/scheduling/appointment/find-appointments.md)
* [Check in a patient for an appointment](https://docs.ohc.network/flows/scheduling/appointment/check-in-patient.md)
* [Start a consultation from an appointment](https://docs.ohc.network/flows/scheduling/appointment/start-consultation.md)
* [Reschedule an appointment](https://docs.ohc.network/flows/scheduling/appointment/reschedule-appointment.md)
* [Cancel an appointment](https://docs.ohc.network/flows/scheduling/appointment/cancel-appointment.md)
* [Add or change an appointment's tags](https://docs.ohc.network/flows/scheduling/appointment/manage-appointment-tags.md)
* [View a patient's appointments](https://docs.ohc.network/flows/clinical/patient/view-patient-appointments.md)
* [Search for a patient](https://docs.ohc.network/flows/clinical/patient/search-patient.md)
* [Register a patient](https://docs.ohc.network/flows/clinical/patient/register-patient.md)
* [Create a schedule template](https://docs.ohc.network/flows/scheduling/schedule/create-schedule-template.md)
