Hi to everyone. Today I’m trying to change the SubjectHierarchy name using Python code. My goal is the next one:
Actual name: VAL22^Val22(AW388…
Real Name: VAL22
Thanks a lot!
Hi to everyone. Today I’m trying to change the SubjectHierarchy name using Python code. My goal is the next one:
Actual name: VAL22^Val22(AW388…
Real Name: VAL22
Thanks a lot!
I think you will find everything you need here
https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#manipulate-subject-hierarchy-item
Thanks for your help @cpinter. We are not very familiarized with this type of code. Could you explain a little bit more about what is dataNode?
A simple example of the implementation could help us more.
The first link I provided contains the actual implementation.
The documentation of Slicer is quite extensive, and you can learn about the basics very quickly. For example, you can find out what is a node here:
https://slicer.readthedocs.io/en/latest/user_guide/getting_started.html#glossary