QIDO includefield with sequences

I’m trying to do a QIDO using the DICOMweb plugin. The repository tracker indicates that QIDO does not support

  • sequence query
  • includefield=all
    so instead I am trying to return the entire sequence in the response and then do the filtering of the sequence myself but that doesn’t appear to be working.

If I do includefield with a non-sequence tag, the value is returned no problem but not with a sequence tag. Specifically, I want to return the ThreatSequence.

Is sequence returning also currently not supported?

Thanks.

Hi,

Could you provide us with a minimal working example for us to test/analyze ?

Best regards,

Alain

Hey Alain,

Here’s a test example using the demo data. I can use curl to get the QIDO-RS Instance Returned Attributes

curl “https://orthanc.uclouvain.be/demo/dicom-web/instances?00080018=1.3.12.2.1107.5.99.1.24063.4.0.447989428888616

When I modify the command to

curl “https://orthanc.uclouvain.be/demo/dicom-web/instances?00080018=1.3.12.2.1107.5.99.1.24063.4.0.447989428888616&includefield=00081110

I expect to receive (0008,1110) or the ReferencedStudySequence in the result, but it is not there.

Hi @orthancuser1234

Thanks for the sample.
I have fixed it in the DicomWEB plugin → that will be available in the next release that should be available in the next days.

Best regards,

Alain.

Hey Alain,

Thanks for the help and quick fix! Look forward to the new release.

Hey @alainmazy

I see the new DICOMweb plugin has been published (1.17). I fetched it and it is returning most sequences now. However I am still having issues trying to retrieve a specific sequence. I wasn’t sure if I should create a new topic or not.

When trying to includefield for the ThreatSequence (4010,1011), I get the following error

HTTP-1 OrthancException.cpp:61] Bad file format: While creating a DICOM instance, tag (4010,1004) has out-of-range value: “30\20\10”

(4010,1004) is a tag within the sequence (4010,1011), so the entire sequence still fails to be retrieved.
The file loads fine in Orthanc Explorer.

Thank you for your help.

Hi @orthancuser1234

This is now fixed in this Orthanc commit (not the DICOMWeb plugin)

As a reminder: here is the command to trigger the issue:

curl -H "Accept: application/json" http://localhost:8043/dicom-web/studies/3514362423.48393.20309.144196.219156018096226062/series/0505413713.04815.16453.147140.089119194093148248/instances?includefield=40101011

and here is the new output:

...
  "40101001" : {
      "Value" : [
         {
            "40101004" : {
               "Value" : [ 30, 20, 10 ],
               "vr" : "FL"
            },
            "40101005" : {
               "Value" : [ 30, 40, 50 ],
               "vr" : "FL"
            }
         }
      ],
      "vr" : "SQ"
           },

Hey @alainmazy

Awesome, thank you so much!