# Create new study case or patient

**URL:** <https://discourse.slicer.org/t/create-new-study-case-or-patient/39922>\
**Category:** Development\
**Created:** [October 29, 2024, 2:57pm UTC](https://discourse.slicer.org/t/create-new-study-case-or-patient/39922 "2024-10-29T14:57:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SANTIAGO\_PENDON\_MING](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/santiago_pendon_ming/32/66060_2.png) [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Post date:** [October 29, 2024, 2:57pm UTC](https://discourse.slicer.org/t/create-new-study-case-or-patient/39922/1 "2024-10-29T14:57:37Z")

</div>

Hi to everyone, a very quick question:

 ![Captura de pantalla 2024-10-29 155540](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/6/e6efae29274a2dfeca9d3f777088f328c2e514ff.png)

Does anyone how to put the name (for example P40\_val) to the patient symbol using python? It also works to me change the notebook icon name using python.

Thanks!

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 29, 2024, 3:32pm UTC](https://discourse.slicer.org/t/create-new-study-case-or-patient/39922/2 "2024-10-29T15:32:17Z")

</div>

These icons are specified in this plugin. I don’t think you can easily customize that without creating a new plugin

> <https://github.com/Slicer/Slicer/blob/main/Modules/Scripted/DICOMLib/SubjectHierarchyPlugins/qSlicerSubjectHierarchyDICOMPlugin.cxx#L87-L88>

---

<div class="post-metadata">

**Author:** ![SANTIAGO\_PENDON\_MING](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/santiago_pendon_ming/32/66060_2.png) [@SANTIAGO\_PENDON\_MING](https://discourse.slicer.org/u/SANTIAGO_PENDON_MING)\
**Post date:** [October 30, 2024, 7:44am UTC](https://discourse.slicer.org/t/create-new-study-case-or-patient/39922/3 "2024-10-30T07:44:22Z")

</div>

I think I did not explain me well. I don’t want to modify the icons. I want to change the ‘‘node’’ (in fact I think this is not a usual node) name that we see in the previous picture.

For example:

· P40\_val → P123\_new

· No study description (20240828) → First Study (30/10/2024)

The function I trying to find is the node.SetName(‘NewName’) that usual nodes have.

Thanks for the answer 🙂

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 30, 2024, 9:41am UTC](https://discourse.slicer.org/t/create-new-study-case-or-patient/39922/4 "2024-10-30T09:41:37Z")

</div>

Subject hierarchy items are not nodes, they are managed differently.

See [Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#subject-hierarchy)
