# Dicom RT dose export error: patient UID

**URL:** <https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285>\
**Category:** Support\
**Tags:** dicom, slicerrt\
**Created:** [August 22, 2023, 2:24pm UTC](https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285 "2023-08-22T14:24:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jborsavage](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jborsavage](https://discourse.slicer.org/u/jborsavage)\
**Post date:** [August 22, 2023, 2:24pm UTC](https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285/1 "2023-08-22T14:24:58Z")

</div>

3D Slicer community,

I am trying to convert 3ddose files generated in EGSnrc’s dosxyz to dicom RT dose volumes for analysis in Eclipse. However, I am unable to import the dcm files due to errors regarding the plan UID.

My workflow is as follows:

1. import Eclipse plan (image series, structures, etc.)
2. import 3ddose file
3. drag and drop 3ddose file under study generated in step 1
4. convert 3ddose to RT dose volume
5. export to dicom

I’m not editing any dicom tags in the process and I’m not sure if this is something I could fix by editing the metadata of the exported RT dose. Any ideas/suggestions are much appreciated, thanks!!

---

<div class="post-metadata">

**Author:** ![jborsavage](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jborsavage](https://discourse.slicer.org/u/jborsavage)\
**Post date:** [August 22, 2023, 4:26pm UTC](https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285/2 "2023-08-22T16:26:01Z")

</div>

Maybe this post was preemptive, but I figured I’d follow up in case it’s helpful for anyone else who encounters this issue. The RT dose dcm file exported from 3D slicer was missing the ReferencedSOPInstanceUID tag from the dicom header. I edited this tag in Matlab to match the ReferencedSOPInstanceUID in the header of the dose dcm file generated in Eclipse, then wrote the edited header info and image data to a new file. With this edit, Eclipse was able connect the 3D slicer converted dose file to a pre-existing plan and successfully import the file.

---

<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:** [August 28, 2023, 9:38am UTC](https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285/3 "2023-08-28T09:38:41Z")

</div>

Since this seems to be a shortcoming on the SlicerRT DICOM-RT export side, I added a ticket:

> <https://github.com/SlicerRt/SlicerRT/issues/233>
>
> See https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285

Thanks @jborsavage for the report and the description of the solution.

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [September 17, 2023, 2:37pm UTC](https://discourse.slicer.org/t/dicom-rt-dose-export-error-patient-uid/31285/4 "2023-09-17T14:37:58Z")

</div>

What exactly Referenced Sequence did you use?

The [standard](https://dicom.nema.org/medical/Dicom/2023c/output/chtml/part03/sect_C.8.8.3.html) allows several options: Referenced RT Plan Sequence (mandatory if you have RtPlan with ControlPointSequence) with tag (300c,0002), Referenced Image Sequence with tag (300c,0002).

I suppose that you just have generated reference to CT data series?
