Unable to find all referenced series in DICOM Browser

Hi,

I am working on improving the loading of DICOM Structured Reports into Slicer using the QuantitativeReporting plugin. Some SRs could have multiple series that are referenced. However, when I choose to load the SR in the DICOM Browser, as an example, only 2 out of the 3 valid series are actually listed to be selected in the pop-up window. Additionally, sometimes they are listed as a scalar volume or as an image sequence. The series that are displayed in this pop-up window, and if they are a scalar volume or image sequence, change every time I open Slicer.

I know that these series could be a scalar volume or an image sequence, especially if they’re old, from this post.

Additionally, from my understanding, as seen in the DICOMBrowser loadCheckedLoadables function, I need to have a list of loadable.referencedInstanceUIDs. In my changes to QuantitativeReporting, I have also confirmed that the loadable.referencedInstanceUIDs contains all of the referenced SOPInstanceUIDs from the valid referenced series.

Therefore, I think that in an ideal case, the pop-up window should have the 3 series listed as scalar volumes, and then additionally listed as image sequences, for a total of 6 check boxes.

Am I missing something when creating the loadable.referencedInstanceUIDs list?

Thank you!

Deepa

Deepa, it might be helpful if you provided a script and instructions to reproduce the problem.

Absolutely. To reproduce, please:

  1. Clone the master branch from this fork: GitHub - deepakri201/QuantitativeReporting: Segmentation-based measurements with DICOM import and export of the results.
  2. Add this github repo to the additional modules paths.
  3. Import DICOM files from here into the DICOM database. This contains the SR, and 3 referenced series.
  4. Select the Structured Report, and click Examine, and then click Load. The popup box with only some of the referenced series should appear.