# Inventory Item

## Definition

An **[inventory item](https://build.fhir.org/inventoryitem.html)** in Care is the stock of one product at one location. A product is one batch of a catalog entry, so each batch has its own inventory item at each location that holds it.

Care calculates the stock for you. You cannot create, edit, or delete an inventory item, and no screen lets you adjust the stock by hand. Care creates the inventory item, with a stock of zero, the first time someone adds a delivery item of that product for the location.

Care does not adjust the stock one change at a time. Each time a delivered item or a dispense of the product changes, Care counts the stock again from the start.

## Key Attributes

| Components | What it captures |
| - | - |
| Product | The batch of a catalog entry that the stock is for. |
| Location | The location that holds the stock. |
| Net Content | The quantity in stock now, in the base unit of the product. |
| Status | The status of the inventory item. |

### How Care counts the stock

Each time Care counts the stock of a product at a location, it does this:

* It adds the quantity of each delivered item that was received as **Completed** at this location. This covers purchase deliveries, internal deliveries, and medication returns.
* It subtracts the quantity of each item of an internal delivery that takes from this stock, while the item is **In Progress** or **Completed**.
* It subtracts the quantity of each dispense from this stock that is not cancelled.

### When the stock changes

| What happens | Effect on the stock |
| - | - |
| You receive an item of a purchase delivery as **Completed** with **Receive & Update Stock**. | The stock of the receiving location goes up by the quantity of the item. |
| An item of a purchase delivery is **In Progress**, **Abandoned**, or **Entered in Error**. | No change. |
| You receive an item as **Damaged**. | The item counts the same as a **Normal** item. |
| You add an item to an internal delivery. | The stock of the sending location goes down at once. The item is **In Progress**, and the stock of the receiving location does not change yet. |
| The receiving location receives an item of an internal delivery as **Completed**. | The stock of the receiving location goes up. The stock of the sending location stays lower. |
| An item of an internal delivery is marked **Abandoned** or **Entered in Error** while it is **In Progress**. | The quantity goes back to the stock of the sending location. The receiving location does not change. |
| A whole purchase delivery or internal delivery is marked **Abandoned** or **Entered in Error**. | Care takes back the stock changes of all its items, received items included. If the receiving location no longer holds the received quantity, Care refuses the change and nothing changes. |
| You complete a delivery. | No change. Care added the stock when each item was received. |
| You approve or complete a purchase order or a stock request. | No change. Orders do not change stock. |
| A medicine is dispensed from this stock. | The stock goes down. |
| A dispense from this stock is cancelled. | The quantity comes back. |
| A medication return is received as **Completed** at the location. | The stock goes up, the same as for a purchase delivery. |

Care checks the stock before stock leaves a location. Care refuses an internal delivery item or a dispense that is larger than the stock. Items that are **In Progress** already count, so the same stock cannot be sent twice.

A received item cannot change its status again. To take received stock of a purchase delivery back out, mark the whole purchase delivery **Abandoned** or **Entered in Error**.

The delivery page lets you abandon a whole internal delivery only while it is Draft, before any of its items can be received. So the received stock of an internal delivery cannot be taken back on screen.

The Medication Return page describes how a return reaches the stock.

### The Inventory page

To see the stock of a location, select **Inventory** > **Items** in the location sidebar. The page is titled **Inventory**.

You can also select **View Inventory** on the location card of a healthcare service of type Store, or use **Quick links** on the overview page of the location.

If the inventory usage of the location is **None**, the location sidebar does not show **Inventory**, and the page shows **Inventory and pharmacy aren't available here**.

The list shows these columns.

| Column | What it shows |
| - | - |
| Product | The name of the catalog entry. It links to the product page in the facility settings. |
| Net Content | The stock, with the base unit of the product. The number turns yellow below 10. |
| Status | The status of the inventory item. |
| Expiration Date | The expiration date of the product. It has an **Expired** or **Expiring Soon** badge when that applies. |
| Batch | The lot number of the product, or a dash when there is none. |
| Base Price | The base price in the charge item definition of the product. |

A batch is **Expired** when it expires before the end of the current month. **Expiring Soon** shows only when your deployment sets a number of months for it.

To find stock, use **Search Product Knowledge** to show one catalog entry. Use **Filters** to filter by **Status** or **Expiration Date**. Use **Sort By** to sort by net content or by expiry.

Care shows 14 inventory items on each page. If nothing matches, Care shows **No inventory items found**.

The page has no control that changes stock.

### Status

Care gives every inventory item the status **Active** when it creates it. Nothing in Care changes the status later, and no screen lets you change it.

| Status | Description |
| - | - |
| Active | Care sets this status when it creates the inventory item. Every inventory item has it. |
| Inactive | The **Status** filter of the Inventory page offers this status, but Care never sets it. |
| Entered in Error | The **Status** filter of the Inventory page offers this status, but Care never sets it. |

## Permissions

| Permission | Access |
| - | - |
| Can Read Inventory Item | Lets you see the stock of a location. You must hold this permission in one of the departments of the location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |
| Can List Facility Locations | Lets you open the location. You must hold this permission in one of the departments of the location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, and Pharmacist roles hold this permission. |
| Can Read Product Knowledge | Lets you use **Search Product Knowledge** to show the stock of one catalog entry. You can hold this permission in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |

The [departments](https://docs.ohc.network/concepts/access-governance/facility-organization.md) of a location are the departments linked to it or to a location that contains it, the departments above them, and Administration.

Care counts only the roles that you hold in the departments of the facility.

Note: By default, the Volunteer role holds Can Read Inventory Item but not Can List Facility Locations. With only the Volunteer role, you cannot open the location to see its stock.

No permission lets you change the stock directly. The stock changes through deliveries, dispenses, and medication returns, which have their own permissions.

## Related

* Flow: [View stock levels](https://docs.ohc.network/flows/supply/inventory-item/view-stock-levels.md)
* Flow: [Receive and complete a purchase delivery](https://docs.ohc.network/flows/supply/purchase-delivery/receive-purchase-delivery.md)
* Flow: [Send, receive and complete an internal delivery](https://docs.ohc.network/flows/supply/supply-delivery/receive-supply-delivery.md)
* Concept: [Supply Chain](https://docs.ohc.network/concepts/supply/supply-chain.md)
* Concept: [Product](https://docs.ohc.network/concepts/supply/product.md)
* Concept: [Purchase Delivery](https://docs.ohc.network/concepts/supply/purchase-delivery.md)
* Concept: [Internal Delivery](https://docs.ohc.network/concepts/supply/supply-delivery.md)
* Concept: [Medication Dispense](https://docs.ohc.network/concepts/medications/medication-dispense.md)
* Concept: [Locations](https://docs.ohc.network/concepts/facility/location.md)
* Reference: [Inventory Item](https://docs.ohc.network/references/supply/inventory-item.md)
