How to get dicom data for RTDose volume

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?

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:

Thanks, worked perfectly.