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:

Thanks, worked perfectly.