> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bilby.health/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge duplicate patients

> Merge two records for the same person, and undo a merge.

When the same person has two records, merge them. Everything on the duplicate moves to the record you keep. Only admins can merge.

1. Open the record you want to keep.
2. Select **More patient actions**, then **Merge a duplicate**.
3. Choose the other record.
4. Check which record survives and which details to keep. Read any warning: a different IHI usually means two different people.
5. Select **Merge records**.

The duplicate becomes inactive and drops out of search. Old links to it open the surviving record.

## Undo a merge

Nothing is deleted when you merge, so a merge can be undone. Open the record that was kept, select **More patient actions**, then **Undo merge**. Anything added since the merge stays on the surviving record.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.