# Merging Patients in DICOM Database

**URL:** <https://discourse.slicer.org/t/merging-patients-in-dicom-database/46580>\
**Category:** Support\
**Created:** [March 26, 2026, 4:31pm UTC](https://discourse.slicer.org/t/merging-patients-in-dicom-database/46580 "2026-03-26T16:31:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lesh3203](https://avatars.discourse-cdn.com/v4/letter/l/b4bc9f/32.png) [@Lesh3203](https://discourse.slicer.org/u/Lesh3203)\
**Post date:** [March 26, 2026, 4:31pm UTC](https://discourse.slicer.org/t/merging-patients-in-dicom-database/46580/1 "2026-03-26T16:31:30Z")

</div>

Is there a way to merge patients in the DICOM Database? This patient had imaging done at different facilities, and therefore has different patient IDs. As it’s all the same patient, I would love to merge them into one patient in the list.

 ![Screenshot 2026-03-25 at 12.01.58 PM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/5/458ea695e637e74751615ec0e4dd3eae2a9cad01.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 26, 2026, 8:18pm UTC](https://discourse.slicer.org/t/merging-patients-in-dicom-database/46580/2 "2026-03-26T20:18:42Z")

</div>

It is generally not allowed to modify attributes of a stored DICOM object. If you need to modify patient name, ID, etc. then the clean way is to create new DICOM objects with the corrected data with new SOP instance UIDs. For audit trail, the modified object should have reference to the original.

The closest that you can relatively easily achieve in Slicer is to load in image and then export it to DICOM with the desired patient name, ID, and birth date (these are used to decide in Slicer’s DICOM browser if two patients are the same). However, non-essential metadata may be lost when you import and re-export, so if you want to preserve all data then you need to do these modifications using some DICOM anonymizer or processor tool, or you can ask an AI chatbot to generate Python script that implements this.
