DICOMDIR problem when uploading zipped study

hi, i got some problematic study file (a zip archive)
upload to Orthanc fails
Orthanc log shows error message:
E0813 09:57:58.307396 DicomMap.cpp:1010] Store has failed because all the required tags (PatientID, StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID) are missing (is it a DICOMDIR file?)

and as the log says, there is a DICOMDIR file in the zip archive. Now when i remove the DICOMDIR file from archive and re-create the zip without it, the upload will complete successfully and Orthanc will have all the necessary tags (PatientID, StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID) extracted from the instance files.

could you please recommend a good way of solving the invalid/incomplete DICOMDIR problem? maybe some logic customization is possible in Orthanc that will make it ignore these files?

thanks
RG

Hello,

Thanks for reporting this issue. It is now solved by the following changeset that will be part of forthcoming Orthanc 1.9.7:
https://hg.orthanc-server.com/orthanc/rev/71fbdee4b832

Regards,
Sébastien-

thanks for such a quick fix. will wait for next release.

Thanks for this fix. Already helped a lot.

Some systems export studies with a .zip file (or files) containing dicoms files inside a parent .zip…
Something like:

  • study.zip

  • Inside study.zip there is a series.zip

  • Inside series.zip there is a folder tree. In the end of it lies the DICOM files (I cant imagine why such a complicated export like this).

Anyway, In those cases there is an error when trying to upload this parent .zip to Orthanc in Orthanc Explorer…

Thanks for the great work.