# \[DICOM Browser\] About StudyID Editing(Add&Rename StudyID)

**URL:** <https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874>\
**Category:** Support\
**Tags:** dicom, file-export\
**Created:** [October 23, 2019, 12:54pm UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874 "2019-10-23T12:54:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lausiv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lausiv/32/4984_2.png) [@lausiv](https://discourse.slicer.org/u/lausiv)\
**Post date:** [October 23, 2019, 12:54pm UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874/1 "2019-10-23T12:54:35Z")

</div>

Operating system: windows  
Slicer version: 4.10.2  
Expected behavior:  
Actual behavior:

HI 🙂

**I want to add below function in DICOM Browser, Add StudyID, Rename StudyID.**

Anybody can help me hint about coding the call sequences (or sample codes)?  
Thank you

 ![studyediting](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/0/200dae075635ffea72f8b148194b0ebf67ee3c2d.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:** [October 23, 2019, 1:15pm UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874/2 "2019-10-23T13:15:19Z")

</div>

You can create new/rename Patient/Study/Series in Data module in Subject hierarchy tab. When the study is completed you can export it to DICOM. If you enable import option then the exported study will be automatically imported into the DICOM database.

You can create new patient/study/series in the DICOM database by creating a DICOM dataset in memory or file and using it as input for ctkDICOMDatabase::insert().

DICOM standard does not allow you to modify any details of an instance after it is created, as the standard heavily relies on unique identifiers unambiguously identifying a complete data set. If you must modify data then you have to delete the original data set from the database and re-insert a new instance. If there is a chance that the original data set was exported from Slicer to external systems then you must generate a new UID (PACS behavior is undefined if it encounters modified data sets with the same UID).

---

<div class="post-metadata">

**Author:** ![lausiv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lausiv/32/4984_2.png) [@lausiv](https://discourse.slicer.org/u/lausiv)\
**Post date:** [October 24, 2019, 4:53am UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874/3 "2019-10-24T04:53:53Z")

</div>

Thank you, I think 3D slicer is very powerful tools for medical image processing and other…

I will Study detailed about DICOM Spec and Slicer functions as you described

🙂

2019년 10월 23일 (수) 오후 10:26, Andras Lasso via 3D Slicer Community [slicer@discoursemail.com](mailto:slicer@discoursemail.com)님이 작성:

---

<div class="post-metadata">

**Author:** ![lausiv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lausiv/32/4984_2.png) [@lausiv](https://discourse.slicer.org/u/lausiv)\
**Post date:** [October 24, 2019, 11:13am UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874/4 "2019-10-24T11:13:19Z")

</div>

but, below sceanario, it doesn’t work at Data Module

1. Add New Study

2. Import Existing DICOM to New Study(1)

2019년 10월 24일 (목) 오후 1:53, 박촬리 [lausiv@gmail.com](mailto:lausiv@gmail.com)님이 작성:

---

<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:** [October 24, 2019, 3:20pm UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874/5 "2019-10-24T15:20:35Z")

</div>

If the study instance UID of the study folder that you created does not match the study instance UID stored in the imported DICOM series, then a new study folder will be created for the imported DICOM series.

---

<div class="post-metadata">

**Author:** ![lausiv](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lausiv/32/4984_2.png) [@lausiv](https://discourse.slicer.org/u/lausiv)\
**Post date:** [October 27, 2019, 2:19pm UTC](https://discourse.slicer.org/t/dicom-browser-about-studyid-editing-add-rename-studyid/8874/6 "2019-10-27T14:19:17Z")

</div>

Thank you very much : )
