Create new study case or patient

Hi to everyone, a very quick question:

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!

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

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 :slight_smile:

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

See Script repository — 3D Slicer documentation