Export RTStruct referencing original volume

Hi Everyone,

I’m trying to use the DicomRtImportExportPlugin python module to export RTStructs associated with a CT volume (call it the original volume). When I use the exporter it creates a new CT volume (same pixel values but different SOPInstanceUIDs) and the RTStruct references the new volume. Is there any way to export a RTStruct that references the original volume? The rest of my colleagues are using the original image volumes so it would be nice to have the RTStructs reference those.

Happy to provide code snippets if/when it would be useful.

Thanks

Operating system: Windows
Slicer version: 4.10.2

This is a very fair request. Unfortunately right now we can only export with the duplicate CT, creating all new UIDs. Export is done by Plastimatch (here) and it was designed to export an all-new study.

We already have ha many discussions about exporting DICOM series to existing study, see for example here: https://issues.slicer.org/view.php?id=3937
So far, however, none of the developers have had enough time and push to make it happen. Contributions are very welcome.

As an alternative, you can manually change DICOM tags such as study ID and referenced CT instance UID. But I know that if you need to do it as part of a regular workflow it is not feasible.

If you are willing use plastimatch, you can do this:

plastimatch convert --input RTSTRUCT.dicom --referenced-ct dicom-ct-directory/ --output-dicom output/

2 Likes

Good to know! Is it also possible not to re-export the CT and reference the existing one to begin with?

1 Like