# How to get dicom data for RTDose volume

**URL:** <https://discourse.slicer.org/t/how-to-get-dicom-data-for-rtdose-volume/9032>\
**Category:** Support\
**Tags:** dicom, rtdose\
**Created:** [November 5, 2019, 3:07pm UTC](https://discourse.slicer.org/t/how-to-get-dicom-data-for-rtdose-volume/9032 "2019-11-05T15:07:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominicrushforth](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dominicrushforth](https://discourse.slicer.org/u/dominicrushforth)\
**Post date:** [November 5, 2019, 3:07pm UTC](https://discourse.slicer.org/t/how-to-get-dicom-data-for-rtdose-volume/9032/1 "2019-11-05T15:07:25Z")

</div>

I have some code that saves images as RTDose files using the DicomRtImportExportPlugin.

When these files are reloaded I want to be able to read the dicom tags but the imported volume does not have the attribute DICOM.instanceUIDs, which I would normally use to get the dicom data using slicer.dicomDatabase.fileForInstance(instUids[0]).

The reloaded volume only has the attribute DicomRtImport.DoseVolume:1 and I have been unable to find a way to use this to help.

Is there any way to get dicom tag information for a file that has been saved and reopened in this way?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 5, 2019, 3:36pm UTC](https://discourse.slicer.org/t/how-to-get-dicom-data-for-rtdose-volume/9032/2 "2019-11-05T15:36:06Z")

</div>

You can get DICOM UIDs from the subject hierarchy as shown in this example: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How\_to\_access\_tag\_of\_an\_item\_in\_the\_Subject\_Hierachy\_tree.3F\_For\_example.2C\_get\_the\_content\_time\_tag\_of\_a\_structure\_set:](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How_to_access_tag_of_an_item_in_the_Subject_Hierachy_tree.3F_For_example.2C_get_the_content_time_tag_of_a_structure_set:)

---

<div class="post-metadata">

**Author:** ![dominicrushforth](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dominicrushforth](https://discourse.slicer.org/u/dominicrushforth)\
**Post date:** [November 18, 2019, 5:02pm UTC](https://discourse.slicer.org/t/how-to-get-dicom-data-for-rtdose-volume/9032/3 "2019-11-18T17:02:49Z")

</div>

Thanks, worked perfectly.
