# Create a schedule template

## Overview

[Video: Create a schedule template](https://www.youtube.com/watch?v=jzqZ8L-oZKM)

This flow describes how to create a [schedule template](https://docs.ohc.network/concepts/scheduling/schedule.md) for a practitioner, a location or a healthcare service. Care makes bookable slots from the sessions of the template, on its weekdays and within its valid period.

## Pre-requisites

* You are a member of the facility.
* If you create the template for a practitioner, the practitioner is a member of the facility.
* You have the permissions listed below, in the place that the list below the table gives for the resource.

## Permissions

| Permission | Access |
| - | - |
| Can Create on Schedule | Lets you save the template. Hold it in the place listed below for the resource. By default, the Facility Admin, Doctor, Nurse and Staff roles hold it. |
| Can list schedule on Object | Lets you open the schedule page and see its templates. Hold it in the place listed below for the resource. For a practitioner, the **Availability** tab shows only if you hold it in a department or team of the facility, or in its Administration organization. By default, the Facility Admin, Administrator, Doctor, Nurse and Staff roles hold it. |
| Can Read Healthcare Service | Only for a location or a healthcare service. Lets you open **Services** and the healthcare service. Hold it in any organization of the facility. By default, the Facility Admin, Administrator, Doctor, Nurse, Staff, Volunteer and Pharmacist roles hold it. |
| Can View Facility Organizations | Optional. Lets you choose from all departments of the facility in **Encounter defaults**. Without it, you can choose only the departments that you belong to. By default, the Facility Admin, Administrator, Doctor, Nurse, Staff and Volunteer roles hold it. |

Care accepts Can Create on Schedule and Can list schedule 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.

Only roles that you hold in the facility's organizations count. A role in a governance organization above the facility does not count.

Care shows **Create Template** if you hold Can Create on Schedule anywhere in the facility. This includes any department or team of the facility, and its Administration organization. When you save, Care accepts the permission only in the place for the resource.

## Steps

### 1. Open the schedule

Practitioners, locations and healthcare services use the same schedule page. Open it in one of these ways:

* For a practitioner, select **Users** in the facility sidebar. Find the practitioner and select **See Details**. Then select the **Availability** tab.
* For your own schedule, open the account menu and select **Profile**. Then select the **Availability** tab.
* For a location, select **Services** in the facility sidebar. Select a healthcare service. On a location card, select **View appointments**. This link shows for services that are not a store, a pharmacy or a lab. In the location sidebar, under **Scheduling**, select **Schedule**.
* For a healthcare service, select **Services** in the facility sidebar. Select the service. In the service sidebar, under **Scheduling**, select **Schedule**.

![Dr. Meera Iyer\&#39;s user details page with the Availability tab outlined, showing the Schedule and Exceptions tabs, Create Template and the November 2026 calendar](/assets/images/create-schedule-template-1-544ba670bb2ea6078740190b71417035.webp)

The schedule page opens on the **Schedule** tab. It also has an **Exceptions** tab and a calendar of the month.

Care can show "You do not have permission to update schedule", and the page does not finish loading. Then you do not hold Can list schedule on Object in the place for this resource. Ask your administrator for it.

### 2. Start the template

Select **Create Template**. The **Create Schedule Template** sheet opens.

![The Create Schedule Template sheet with its heading outlined and the Template Name, Valid Period and Weekly Schedule fields still empty](/assets/images/create-schedule-template-2-57c8c775898ae334f00e5cd9fce2e542.webp)

### 3. Name the template

Enter the **Template Name**, for example "Regular OP Day". The name is required.

![The Template Name field outlined in the Create Schedule Template sheet, filled in with Evening OP](/assets/images/create-schedule-template-3-f880bbe67c27f32e2663c666f8055c1d.webp)

### 4. Set the valid period

1. Select the **Valid Period** field. It shows "Select date range" while it is empty.
2. Choose the **Start date** and the **End date**. Care blocks the days before today.
3. Select **Apply**.

![The Valid Period date picker outlined, with Start date 28/11/2026 and End date 27/01/2027 chosen, above the Apply button](/assets/images/create-schedule-template-4-0b8ede9247296f2399e7649ca505284a.webp)

Both dates are required. The start date can be today.

If the start date is before today, Care shows "Schedule cannot be created for the past".

If the end date is before the start date, Care shows "To date must be equal to or after from date".

### 5. Select the weekdays

Under **Weekly Schedule**, select the weekdays on which the template applies.

![The weekday buttons under Weekly Schedule outlined, with Mon, Tue, Wed, Thu and Fri selected and Sat and Sun clear](/assets/images/create-schedule-template-5-3532dfdfc8e8060823df5eb1ed823ce8.webp)

Select at least one weekday. If you select none, Care shows "Select at least one weekday".

The weekdays apply to every session in the template.

### 6. Set the visibility

To let patients book the slots of this template themselves, select **Make the template public**. The box is clear by default.

![The Make the template public option outlined in the sheet, with its box clear](/assets/images/create-schedule-template-6-1311e0baf06ef6d553d2f9ec80b10808.webp)

Staff see the slots of public and private templates.

### 7. Set the encounter defaults

This step is optional. **Encounter defaults** are "Applied when an encounter is created from an appointment on this schedule." All of them start empty.

![The Encounter defaults section outlined, with the empty Select Department, Select Member and Select Role fields below it](/assets/images/create-schedule-template-7-3e32424a04cc17e3cf8040260226fbc4.webp)

| Components | What it captures |
| - | - |
| Departments (**Select Department**) | The departments that Care preselects for those encounters. Optional. |
| **Care Team** | The members that Care adds to the care team of those encounters. Choose a member in **Select Member** and a role in **Select Role**. Then select **Add**. |
| **Type of Encounter** | The type that Care preselects for those encounters. It starts as **Not Specified**. Your deployment sets which types you can choose. |

**Add** is active only after you choose a member and a role. If you add the same member twice, Care shows "Member already added".

Care uses these defaults when staff start a consultation from an appointment on this template that has no encounter yet. See [Start a consultation from an appointment](https://docs.ohc.network/flows/scheduling/appointment/start-consultation.md).

### 8. Fill in the session

The template starts with one session. Fill in these fields:

| Components | What it captures |
| - | - |
| **Session Title** | A name for the session, for example "IP Rounds". Required. |
| **Start Time** | The time that the session starts. It must be before the end time. |
| **End Time** | The time that the session ends. |
| **Slot duration (mins.)** | The length of one slot, in minutes. Required, at least 1. |
| **Patients per Slot** | The number of patients that can book one slot. Required, at least 1. |
| **Remarks** | A note about the session. Optional. |

If the start time is not before the end time, Care shows "Start time must be before end time".

When the times, the slot duration and the patients per slot are filled in, a note appears. It shows the number of slots and about how many minutes each patient gets.

![The session form outlined, filled in as Evening Consultation from 04:00 PM to 07:00 PM with 15-minute slots and 2 patients per slot, above the note on 12 slots](/assets/images/create-schedule-template-8-23e557c89db69f9933cf1b97827a3d5c.webp)

Care refuses to save the template unless every session meets these rules:

* The slot duration is a whole number of minutes.
* The session length is a whole multiple of the slot duration. For example, a 60-minute session can have 10-minute slots but not 25-minute slots.
* The session has no more slots than your deployment allows. The limit is 30 slots unless your deployment changes it.

### 9. Let Care calculate the slot duration

Do this step only if you want Care to calculate the slot duration.

1. Turn on **Auto-fill slot duration**.
2. Enter the **Number of slots:** for the session. It is required and must be at least 1.

Care divides the session length by the number of slots and fills in **Slot duration (mins.)**. You cannot change the slot duration while auto-fill is on.

Choose a number of slots that divides the session length evenly. For example, a 60-minute session gets 10-minute slots with 6 slots. With 7 slots it gets 8.57-minute slots, and Care refuses to save the template.

### 10. Add more sessions

Do this step only if the template needs more than one session.

1. Select **Add another session**.
2. Fill in the new session as in step 8.

To take a session out of the form, select **Remove** on that session. The template needs at least one session. Otherwise Care shows "Add at least one session".

The sessions of one template must not overlap. Sessions that touch also overlap, for example a session that ends at 12:00 and a session that starts at 12:00.

Care does not compare these sessions with the sessions of the resource's other templates.

### 11. Save the template

Select **Save**. The button shows **Saving...** while Care saves the template.

![The message Schedule template created successfully, with the new Evening OP template card outlined above Morning OP on the Schedule tab](/assets/images/create-schedule-template-9-61759dd38db6c53dff6f9daf2c620e28.webp)

To clear the form instead, select **Cancel**.

## Expected Outcome

* Care shows "Schedule template created successfully" and closes the sheet.
* The template shows on the **Schedule** tab in each month that its valid period overlaps.
* On the calendar, the template shows as a coloured dot on the days of its sessions. A day shows at most five dots.
* Staff can book appointments in the slots of the template, on its weekdays, within its valid period and outside any exception.
* If the template is public, patients can also book its slots themselves.

## Related

Concepts:

* [Schedule & Availability](https://docs.ohc.network/concepts/scheduling/schedule.md)
* [Appointment Booking](https://docs.ohc.network/concepts/scheduling/booking.md)
* [Healthcare Service](https://docs.ohc.network/concepts/facility/healthcare-service.md)
* [Locations](https://docs.ohc.network/concepts/facility/location.md)
* [Department](https://docs.ohc.network/concepts/facility/department.md)

Flows:

* [View a schedule](https://docs.ohc.network/flows/scheduling/schedule/view-schedule-templates.md)
* [Edit a schedule template](https://docs.ohc.network/flows/scheduling/schedule/edit-schedule-template.md)
* [Add or remove a session in a schedule template](https://docs.ohc.network/flows/scheduling/schedule/add-or-remove-schedule-session.md)
* [Set the charges for a schedule](https://docs.ohc.network/flows/scheduling/schedule/set-schedule-charges.md)
* [Delete a schedule template](https://docs.ohc.network/flows/scheduling/schedule/delete-schedule-template.md)
* [Add a schedule exception](https://docs.ohc.network/flows/scheduling/exception/create-schedule-exception.md)
* [Book an appointment for a patient](https://docs.ohc.network/flows/scheduling/appointment/book-appointment.md)
* [Start a consultation from an appointment](https://docs.ohc.network/flows/scheduling/appointment/start-consultation.md)
