# Update or delete a response template

## Overview

[Video: Update or delete a response template](https://www.youtube.com/watch?v=eDKOsm7ydE0)

This flow describes how to change or delete a [questionnaire response template](https://docs.ohc.network/concepts/definitions/questionnaire-response-template.md). Anyone who can see a template and holds the permission below can change or delete it, not only the person who created it.

## Pre-requisites

* You fill in a questionnaire for a patient's encounter in the facility.

* The questionnaire has a Medication Request question or a Service Request question.

* You can see the template. This is true in these cases:

  <!-- -->

  * You created the template.
  * The template is shared with a department in which you hold a role.
  * You were the last person to add an item to the template.

* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create/Update Questionnaire Response Templates | Lets you save changes to a template or delete it. You can hold it in any department of the template's facility. You do not need to be the person who created the template. By default, the Doctor, Nurse, Staff, Pharmacist, Administrator, Facility Admin and Volunteer roles hold this permission. |
| Can View Facility Organizations | Lets you see the departments of the facility in **Select Department** on the **Edit Template** form. You can hold it in any department of the facility. If you hold it only outside the facility's root organization (**Administration**), the list leaves out the root organization. By default, the Doctor, Nurse, Staff, Administrator, Facility Admin and Volunteer roles hold this permission. |

Care shows the edit icon and the delete icon on every template in the list. If you do not hold Can Create/Update Questionnaire Response Templates, Care refuses the change.

## Steps

### 1. Open the template panel

In the Medication Request question or the Service Request question, select **Templates**. Care opens the **Response Templates** panel.

![Step 1, Open the template panel: the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-1-7f03e53913261dafed29a68aee8e2119.webp)

### 2. Find the template

Enter a name in **Search templates**. Find the template that you want to change.

![Step 2, Find the template: the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-2-bc7dec71f82f8a24e12a2a6f6308569b.webp)

### 3. Open the template for editing

Select the edit icon on the template. Care opens the **Edit Template** form.

![Step 3, Open the template for editing: the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-3-582128cf30c4333905cd4b836312a927.webp)

### 4. Change the template

| Components | What it captures |
| - | - |
| Medications to include | The medications in the template. To remove one, select the cross icon next to it. |
| Activity definitions to include | The service requests in the template. To remove one, select the cross icon next to it. |
| Template Name | The name that identifies the template. Required. |
| Description (Optional) | A short description of what the template fills in. |
| Select Department | The departments that the template is shared with. Leave it empty to keep the template personal. |

The form cannot add items. To add an item, use **Add to template** on a medication or a service request in the question. That action removes the department sharing of the template. See [Create a response template](https://docs.ohc.network/flows/definitions/questionnaire-response-template/create-response-template.md).

![Step 4, Change the template: the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-4-c69b324fd55026cbcdfd934535f352c2.webp)

### 5. Save the changes

Select **Save Changes**. Care shows **Template updated successfully** and returns to the list.

To go back without saving, select **Cancel**.

![Step 5, Save the changes: the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-5-1005b505f462e39587c5e90aa3312895.webp)

### 6. Delete the template

To delete a template, select the delete icon on the template in the list. Care opens the **Delete Template** dialog.

Select **Delete** to confirm. Care shows **Template deleted successfully**.

Note: The dialog warns that you cannot undo this action. A template has no status, so you cannot retire it instead.

![Step 6, Delete the template (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-6-f8f5b3ca942877f6577430ef8e862181.webp)

![Step 6, Delete the template (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/update-or-delete-response-template-7-d1497a3977ef3d2c842e6f5cfa73f21a.webp)

## Expected Outcome

* Care saves your changes to the template.
* If you removed a department, its members no longer see the template through that department.
* When you delete the template, it no longer shows in the panel for you or for anyone else.

## Related

Concepts:

* [Questionnaire Response Template](https://docs.ohc.network/concepts/definitions/questionnaire-response-template.md)
* [Questionnaire](https://docs.ohc.network/concepts/definitions/questionnaire.md)

Flows:

* [Create a response template](https://docs.ohc.network/flows/definitions/questionnaire-response-template/create-response-template.md)
* [Apply a response template](https://docs.ohc.network/flows/definitions/questionnaire-response-template/apply-response-template.md)
