# Cancel a service request

## Overview

[Video: Cancel a service request](https://www.youtube.com/watch?v=JM9zkdsD26A)

This flow describes how to cancel a [service request](https://docs.ohc.network/concepts/clinical/service-request.md) with **Mark as entered in error** or **Mark as revoked**.

When you cancel a request, Care also sets every [charge item](https://docs.ohc.network/concepts/billing/charge-item.md) linked to it to Aborted. Care does not ask you to confirm, and you cannot undo the cancel.

## Pre-requisites

* The service request is not Completed, Revoked or Entered in Error.
* If a charge item of the request is on an [invoice](https://docs.ohc.network/concepts/billing/invoice.md), that invoice is in Draft.
* You have the permissions listed below.

The encounter of the request can be active or closed. Care does not check the status of the encounter when you cancel the request.

## Permissions

| Permission | Access |
| - | - |
| Can Write Service Request on Facility | Cancel the request with **Mark as entered in error** or **Mark as revoked**. You must hold it in the encounter's departments, or in a department of one of the request's locations. By default, the Facility Admin, Doctor and Nurse roles hold this permission. |
| Can Read Service Request | Open the service request page. You must hold it in the encounter's departments, or in a department of one of the request's locations. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold this permission. |
| Can Read Activity Definition | Load the activity definition of the request, which the page needs. Without it, the page shows only "Error loading service request or activity definition details." You must hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Volunteer roles hold this permission. |

The encounter's departments are the departments of the encounter, their parent departments, the facility's Administration department, and the departments of the patient's current location in the encounter.

The request's locations are the locations of its activity definition and of the activity definition's healthcare service.

A location's departments are the departments of the location, their parent departments, the departments of its parent location, and the facility's Administration department.

By default, the Administrator, Staff, Volunteer and Pharmacist roles cannot cancel a service request. A Pharmacist also cannot open the service request page, because the role does not hold "Can Read Activity Definition".

These are the default roles. Your installation can also have other roles with their own permissions.

To reach the page from an encounter or from a location, you also need the permissions in [View service requests](https://docs.ohc.network/flows/clinical/service-request/view-service-requests.md) or [Find service requests for a location](https://docs.ohc.network/flows/clinical/service-request/find-service-requests-for-a-location.md).

## Steps

### 1. Open the service request

Open the service request page in one of these ways:

* From the encounter: open the **Service Requests** tab, and select **See Details** on the request. See [View service requests](https://docs.ohc.network/flows/clinical/service-request/view-service-requests.md).
* From a location: open the **Service Requests** page of the location, and select **See Details** on the request. See [Find service requests for a location](https://docs.ohc.network/flows/clinical/service-request/find-service-requests-for-a-location.md).

The request shows on the **Service Requests** page of each of its locations.

Note: If the encounter is Completed, Cancelled, Discontinued or Entered in error, its **Service Requests** tab shows no **See Details**. Open the request from the **Service Requests** page of one of its locations. You can do this only if you hold "Can Read Service Request" in a department of that location.

![The See Details button outlined in the encounter\&#39;s list of service requests](/assets/images/cancel-a-service-request-1-adadd5f0e68d0f4f72b94f5ac90de74e.webp)

### 2. Open More Actions

Select the ⋮ button (**More Actions**).

Care shows **More Actions** unless the request is Completed or Revoked.

Note: Care also shows **More Actions** on a request that is Entered in Error. That request is already cancelled, so Care refuses both actions with "Service request is already in a cancelled state". The status stays Entered in Error.

![The More Actions button outlined at the top right of the service request page](/assets/images/cancel-a-service-request-2-e6d20c57383aa3520025d8944c264d72.webp)

### 3. Select how to cancel the request

Select one of the two actions.

| Action | Status of the request after the cancel |
| - | - |
| **Mark as entered in error** | Entered in Error |
| **Mark as revoked** | Revoked |

Care cancels the request at once. Care does not ask you to confirm.

Note: If a charge item is on an invoice that is not in Draft, Care does not cancel the request. Care says "Cannot cancel charge item in a non-draft invoice". The request and all its charge items stay as they were.

![Mark as revoked outlined in the More Actions menu, below Mark as entered in error](/assets/images/cancel-a-service-request-3-d530e97dc81181c920c3d78c4813860d.webp)

![The Revoked status badge outlined, and the message Service request cancelled](/assets/images/cancel-a-service-request-4-6a9246c23d5e4e117926304af9feb311.webp)

## Expected Outcome

* Care shows "Service request cancelled".
* The status of the request is Entered in Error or Revoked.
* Care sets every charge item of the request to Aborted. If a charge item was on a draft invoice, Care first removes it from that invoice.
* The charge items section of the open page shows the new status after you reload the page.
* The page no longer shows the **Complete Service Request** bar.
* If the request is Revoked, the page no longer shows **More Actions**.
* The page no longer allows changes to specimens, results or charge items.
* You cannot change the status of the request again. Care refuses to complete or cancel it.
* You can still add or remove tags on the request.
* On the **Service Requests** page of a location, the request no longer shows under Active.

## Related

Concepts:

* [Service Request](https://docs.ohc.network/concepts/clinical/service-request.md)
* [Charge Item](https://docs.ohc.network/concepts/billing/charge-item.md)
* [Invoice](https://docs.ohc.network/concepts/billing/invoice.md)

Flows:

* [View service requests](https://docs.ohc.network/flows/clinical/service-request/view-service-requests.md)
* [Find service requests for a location](https://docs.ohc.network/flows/clinical/service-request/find-service-requests-for-a-location.md)
* [Complete a service request](https://docs.ohc.network/flows/clinical/service-request/complete-a-service-request.md)
