SlicerRt / SlicerRT

Open-source toolkit for radiation therapy research, an extension of 3D Slicer. Features include DICOM-RT import/export, dose volume histogram, dose accumulation, external beam planning (TPS), structure comparison and morphology, isodose line/surface generation, etc.
https://slicerrt.org
124 stars 60 forks source link

Set required DICOM reference between dose and CT #233

Closed cpinter closed 9 months ago

cpinter commented 10 months ago

See https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285

MichaelColonel commented 10 months ago

I want to fix that issue by adding ReferencedInstanceUID from CT volume node, with corresponding UID, within qSlicerSubjectHierarchyRtDoseVolumePlugin.

For example both CT and a newly created dose volume are children of some Study Item, and the dose volume doesn't know anything about CT, Study or RTPLAN (no attributes). What is the best way to get a Subject Hierarchy Item of the CT volume node, only by checking modality attribute of the CT volume node item?

cpinter commented 10 months ago

Thanks @MichaelColonel !

What is the best way to get a Subject Hierarchy Item of the CT volume node, only by checking modality attribute of the CT volume node item?

If you have access to the CT volume node then getting the SH item is as simple as shNode.GetItemByDataNode(ctVolumeNode) unless I misunderstand the question.