# Understanding Audit Logs

### What this is

Audit logs show a history of actions taken in the system, including who made the change and when it happened.

***

### When to use this

Use audit logs when you need to:

* Review what happened during a visit
* Investigate a mistake
* Confirm changes were made correctly
* Support compliance review

***

### Why this matters

Audit logs provide a clear record of:

* User activity
* Changes to visits
* Inventory updates

They help ensure accuracy and accountability.

***

### What audit logs show

Each log entry includes:

* **Action** (what was done)
* **User** (who did it)
* **Time** (when it happened)

***

### Common actions you may see

* Visit created
* Visit updated
* Compound or lot changed
* Quantity updated
* Visit archived
* Inventory outcome selected

***

### How to read audit logs

1. Open the **Audit Logs** section
2. Locate the relevant patient or visit
3. Read entries in order (top to bottom or newest to oldest)
4. Look for:
   * What changed
   * Who made the change
   * When it happened

***

### Example

You may see a sequence like:

* Visit created
* Lot selected
* Quantity entered
* Visit archived as Waste

This shows the full history of that visit.

***

### When to check audit logs

Check audit logs when:

* Inventory does not match
* A mistake needs to be reviewed
* You want to confirm what happened during a visit

***

### Common mistakes

#### Not checking audit logs first

Always review logs before assuming there is a system issue

#### Misreading the order of events

Make sure you are reading entries in the correct order

#### Ignoring small changes

Even small updates can affect inventory and records

***

### Important

Audit logs cannot be changed.

They are a permanent record of:

* What happened
* Who did it
* When it occurred

***

### If something looks wrong

1. Review the full sequence of actions
2. Identify where the issue occurred
3. Correct the original record if possible
4. Contact a manager or admin if needed
