---
title: Restrict certain patients when booking online
slug: portal-sub/restrict-certain-patients-when-booking-online
docTags: 
createdAt: 2026-03-04T12:03:19.210Z
---

Ocean provides many options to set who can book into your providers' schedules.

**Restrict to patients who have a chart in your EMR**

You can restrict online booking to only patients who have a chart in your EMR.

1. Login to the [Ocean Portal.](https://ocean.cognisantmd.com/) Click the "**Menu**" button in the top left corner and select "**Online Booking**". Click the "**Settings**" button in the top right corner.
2. Click **Edit** next to the booking link you would like to edit.
3. Uncheck **Do you want to limit online booking to patients with a chart in your EMR?**. This will allow any patient to book an appointment online. Please note that you will need to create a new chart in your EMR for these brand new patients. Refer to: [Accepting brand new patients for online booking](docId:9-tI6Qh2OBUce1WiHRCi3).
   [![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/oBqdKUC0MDl7dhG7CqLsl_d1e6sp2ckdkbmqpbksl1tcs2s6zoimtg.png)](https://archbee-image-uploads-qa.s3.amazonaws.com/zICxj0dnLereb6UUrBA3-/bGDujbvseRiXAwrd91EbI_screen-shot-2020-05-11-at-121831-pm1.png)

**Restrict to patients who have a certain primary provider**

You can restrict a provider's schedule to accept only patients from a certain provider(s) at your clinic. This could mean a provider accepting their own patients, or a medical resident accepting another physician's patients.

**Note:** Please refer to [Your EMR and Ocean Online Booking: What you need to know](https://help.intrahealth.com/en/support/solutions/articles/6000263997) for details on which provider fields Ocean can evaluate to determine the patient's provider in your EMR.

1. Login to the [Ocean Portal.](https://ocean.cognisantmd.com/) Click the "**Menu**" button in the top left corner and select "**Online Booking**". Click the "**Settings**" button in the top right corner.
2. Click **Edit** next to the provider's schedule you would like to edit.
3. Below the 'Restrictions' heading, locate the 'Who is allowed to book into this schedule?' setting, and select **Patients with Selected Providers**. Use the blue 'Add Provider' button to locate the provider(s) whose patients you would like to allow to book into this schedule. Their name(s) will appear below the table under the "Selected Providers" heading.
4. For certain EMRs, you can specify the specific EMR field(s) which Ocean should evaluate to determine if the listed provider is a match. Specific information on the provider field mapping options for each EMR can be found within the [Set Up Provider Schedules](docId\:joH4yfX8si6fIr_Sp7Omu) article.

::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/EjgApMgFCRHSge0pul7B4_n4i-vhzfxuh7dqakrnzcsscyati8ozlqeq.png" size="100" isUploading="false" initialPath="assets/n4I-VhzfXuh7dQAKrnzCsSCyATi8ozLQEQ.png" githubPath="en/Plug-ins or Profile Integration/Ocean MD/Ocean Online Booking/assets/n4I-VhzfXuh7dQAKrnzCsSCyATi8ozLQEQ.png" position="flex-start" showCaption="false" indent="2"}

**Individual patient level restrictions**

| Term                               | Restriction                                                                                                                                                                                                                                                                                        |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "no ob" or "no online booking"     | This won't allow the patient to book online.                                                                                                                                                                                                                                                       |
| "ob#days", "ob q# days", "ob q# d" | Where "#" is a number. Will restrict the patient from booking online again until the "#" of days has passed. E.g. adding "ob7days" will ensure a patient waits 7 days to book another appointment online.                                                                                          |
| #+min                              | Where # is a number. Ensures appointments for this patient are always booked for "#" minutes, irrespective of the appointment duration set in the appointment type configuration page. E.g. "30+min" will ensure the patient is always booked for 30 minutes when they book an appointment online. |

- Patients who have been restricted from booking online using the above restrictions are presented with an error message indicating that their booking could not be processed.
- [::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/KUzDTsgVzmUAWrwqI1uGc_nm-fbxkuqql66xrhpdty6laocegtoovrkg.png" size="60" isUploading="false" initialPath="assets/nm-FBXKuQqL66xRhpDtY6LaOCEgtoovrkg.png" githubPath="en/Plug-ins or Profile Integration/Ocean MD/Ocean Online Booking/assets/nm-FBXKuQqL66xRhpDtY6LaOCEgtoovrkg.png" position="flex-start" showCaption="false"}](https://archbee-image-uploads-qa.s3.amazonaws.com/zICxj0dnLereb6UUrBA3-/J_XCV1bO-TO2z3tWRI4li_oab-blocked-message.png)

**Restricting patients based on their answer in the booking form**

You can customize your booking form to include questions prior to allowing patients to select their appointment type. You can apply validation to prevent a patient from booking online if they answer a certain way in your booking form.

[::Image[]{src="https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/hWsj6IrA-YDfqtW1F-cbn_f5yaydac8qkidkwnn21vn1gxdvdwcut8ig.png" size="84" isUploading="false" initialPath="assets/F5YayDAc8QKIdkWNn21Vn1GXdvdwCuT8ig.png" githubPath="en/Plug-ins or Profile Integration/Ocean MD/Ocean Online Booking/assets/F5YayDAc8QKIdkWNn21Vn1GXdvdwCuT8ig.png" position="flex-start" showCaption="false"}](https://archbee-image-uploads-qa.s3.amazonaws.com/zICxj0dnLereb6UUrBA3-/kBEtzmIcqcXnUtkaQEpaw_screen-shot-2020-06-04-at-91902-am.png)

Add a section prior to the appointment type selection and [configure sections to appear as separate pages](https://support.cognisantmd.com/hc/en-us/articles/206416948). Add a label item type with validation that will prevent the patient from being able to proceed. The "Validation Javascript Condition" must be the opposite of the "Show This Field If:" statement.

[![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/K-BDhitYYWI-zms5Vsdm2_jx9jxgietsyqpxx5xm4vrnhonzhkbld3kw.png)](https://archbee-image-uploads-qa.s3.amazonaws.com/zICxj0dnLereb6UUrBA3-/H6zp3Q60CY7FK0w2ErCvi_screen-shot-2020-06-04-at-92033-am.png)

[![](https://api.qa.archbee.co/api/optimize/zICxj0dnLereb6UUrBA3-/COf-xSgqFyQiHE-4Usq9C_hymtolj7xjvwnquslhau44bdlj3fbd-dpq.png)](https://archbee-image-uploads-qa.s3.amazonaws.com/zICxj0dnLereb6UUrBA3-/MGBoTn9hOnosWqkMh-WTW_screen-shot-2020-06-04-at-92042-am.png)
