# Create a response template

## Overview

[Video: Create a response template](https://www.youtube.com/watch?v=DXfLEa3IyEM)

This flow describes how to save the medications or the service requests of a questionnaire as a [questionnaire response template](https://docs.ohc.network/concepts/definitions/questionnaire-response-template.md). You can save all the items of a question at once, or add one item at a time.

## 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 added at least one medication or service request to that question.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create/Update Questionnaire Response Templates | Lets you save a new template and add an item to a template. You can hold it in any department of the facility. 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**, so that you can share the template. 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 checks no permission to show the list of templates.

## 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/create-response-template-1-a4ee86db60f8200bcea1e2d482c4a033.webp)

### 2. Save the current items

Select **Save Current**. The button shows the number of items in the question. It shows only when the question has at least one item.

The panel title changes to **Save as Template**. Under **Preview**, Care shows the items that it saves.

![Step 2, Save the current items: the screen at this step, with the control for the step outlined](/assets/images/create-response-template-2-2a1b300b72fa1da1467687b0484f30d5.webp)

### 3. Remove the items that you do not want

To leave an item out of the template, select the cross icon next to it. The other items stay in the template.

![Step 3, Remove the items that you do not want: the screen at this step, with the control for the step outlined](/assets/images/create-response-template-3-691bfb1c3c4dd3ee17dabcc245777520.webp)

### 4. Fill in the template details

| Components | What it captures |
| - | - |
| Template Name | A name that identifies the template. Required. If you leave it empty, Care shows **Name is required**. |
| Description (Optional) | A short description of what the template fills in. |
| Select Department | The departments to share the template with. Leave it empty to keep the template personal. |

![Step 4, Fill in the template details: the screen at this step, with the control for the step outlined](/assets/images/create-response-template-4-5296ff9634ac3f90fbcb5e58fc8a055c.webp)

### 5. Create the template

Select **Create Template**. Care shows **Template created successfully** and returns to the list of templates.

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

caution

If the questions of this questionnaire were changed after it was first saved, Care cannot create a new template for it. Adding the first questions to a new questionnaire counts as a change. Care shows **Failed to create template** and saves nothing. The same problem stops **Create New Template** in step 6.

![Step 5, Create the template: the screen at this step, with the control for the step outlined](/assets/images/create-response-template-5-2f12fe9477f95b3070f768678b91774b.webp)

### 6. Add one item to a template instead

To save one item only, open the actions menu of the medication or the service request in the question. Select **Add to template**.

To start a new template with the item, select **Create New Template**. Enter a **Template Name**. If you want to share the template, select departments in **Select Department**. Select **Create Template**.

To add the item to an existing template, look under **or add to existing template**. Enter a name in **Search templates** to find the template. Select the template. Care adds the item at once.

caution

When you add an item to an existing template, Care removes all department sharing from that template. Only you and the person who created the template can then see it. To share it again, edit the template and select the departments. See [Update or delete a response template](https://docs.ohc.network/flows/definitions/questionnaire-response-template/update-or-delete-response-template.md).

![Step 6, Add one item to a template instead (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/create-response-template-6-11872f801a75377af7fe7f776e8b17f5.webp)

![Step 6, Add one item to a template instead (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/create-response-template-7-138b763f66c630f9052fc79364a45e50.webp)

## Expected Outcome

* Care saves the template with the items that you kept.
* The template shows in the **Response Templates** panel of this questionnaire, in this facility, in questions of the same kind.
* If you selected departments, the members of those departments also see the template. The members of their sub-departments do not see it.
* If you selected no department, only you see the template.
* When you use **Add to template**, Care confirms that it added the item to the template, or that it created the template with the item.

## 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:

* [Apply a response template](https://docs.ohc.network/flows/definitions/questionnaire-response-template/apply-response-template.md)
* [Update or delete a response template](https://docs.ohc.network/flows/definitions/questionnaire-response-template/update-or-delete-response-template.md)
