# Edit a device

## Overview

[Video: Edit a device](https://www.youtube.com/watch?v=CXEA9XS33y4)

This flow describes how to change the details of a [device](https://docs.ohc.network/concepts/facility/device.md): its names, statuses, technical details and contact points.

## Pre-requisites

* The device is registered in the facility. See [Create a device](https://docs.ohc.network/flows/facility/device/create-device.md).
* You hold a role in a department of the device, so that you can open its page.
* The departments of a device are the Administration department of the facility, its managing department and that department's parents.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Manage Devices on Facility | Save the changes. You must hold it in a department of the device. By default, the Facility Admin, Staff and Pharmacist roles hold this permission. |

Note: Care shows **Edit** to every user who can open the device page. Only users with "Can Manage Devices on Facility" in a department of the device can save the changes.

## Steps

### 1. Open the device

1. In the facility sidebar, select **Settings**.
2. Under **Facility**, select **Devices**.
3. Select the card of the device. Care opens the device page.

![The device page of Patient Monitor PM-21, with its name, the user friendly name Ward Monitor 21 and the Active and Available badges outlined](/assets/images/edit-device-1-70563875322542ed765099301d855852.webp)

### 2. Select Edit

At the top of the device page, select **Edit**. Care opens the **Update Device** page.

Note: If Care cannot find the device, it shows **Device not found**. Select **Back** to go back.

![The device page of Patient Monitor PM-21 with the Edit button at the top right outlined](/assets/images/edit-device-2-ff7fe489af5d1f2b368c277e296de773.webp)

### 3. Change the details

Change the fields that you want to update. The form has the same fields and rules as in [Create a device](https://docs.ohc.network/flows/facility/device/create-device.md).

* **Registered Name** cannot be empty.
* **Manufacture Date** cannot be in the future.
* If both dates are set, **Expiration Date** must be after **Manufacture Date**.
* A contact value can appear only once, even with a different type.

To add a contact point, select **Add Contact Point**. To remove a contact point, select the delete icon in its row.

Note: The form does not change the location or the managing department of the device. Change them on the **Device Information** card of the device page.

Note: You cannot link the device to an encounter from this form. Use the **Devices** tab of the encounter.

Note: If the device has a type, you cannot change the type.

Note: You cannot clear **Manufacture Date** or **Expiration Date**. If you unset a date, the field shows **Pick a date**. But when you select **Save**, Care keeps the saved date and does not warn you.

Note: The date picker opens on the current month, not on the month of the saved date.

![The Update Device form, with the fields outlined: User Friendly Name changed to ICU Monitor 21 and Serial Number VS12-2024-0387 entered](/assets/images/edit-device-3-ef05106f2239eae8b01cc7e5406a393a.webp)

### 4. Save the changes

Select **Save**. Care shows **Device updated successfully** and returns to the previous page.

Note: **Save** is disabled until you change a field.

To leave without saving, select **Cancel**.

![The Update Device form with the Save button outlined](/assets/images/edit-device-4-f9e18962c0c390286c812e1d0b5ebaa4.webp)

![The device page after saving, with the message Device updated successfully, the new user friendly name ICU Monitor 21 outlined, and the serial number VS12-2024-0387 in Technical Details](/assets/images/edit-device-5-3029f3361c69bae6357d20739d0a70ad.webp)

## Expected Outcome

* Care saves the new details of the device. A date that you unset does not change.
* The location, the managing department and the encounter of the device do not change.

## Related

Concepts:

* [Device](https://docs.ohc.network/concepts/facility/device.md)

Flows:

* [View devices](https://docs.ohc.network/flows/facility/device/view-devices.md)
* [Create a device](https://docs.ohc.network/flows/facility/device/create-device.md)
* [Link a device to a location](https://docs.ohc.network/flows/facility/device/link-device-to-location.md)
* [Set a device's managing department](https://docs.ohc.network/flows/facility/device/set-device-managing-department.md)
* [Link a device to an encounter](https://docs.ohc.network/flows/facility/device/link-device-to-encounter.md)
