OHIF / Viewers

OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
https://docs.ohif.org/
MIT License
3.02k stars 3.19k forks source link

Invalid tag in sequence : Unable to parse MR Dicom file in dcmjs. Cornerstone(dicomParser) able to parse and works fine #3571

Open subhasishdash opened 12 months ago

subhasishdash commented 12 months ago

Describe the Bug

Hi OHIF team, I am using OHIF viewer and it uses dcmjs to parse DICOM files. The attached MR study fails to parse with dcmjs, but it works fine with cornerstone parser Cornerstone file loader

907375E7.zip

Please let me know how can I fix this.

I tried the following:

I also saw this fix for dcmtk, not sure if it's related.

Steps to Reproduce

  1. Download and unzip the attached study
  2. Load viewer.ohif.org/local and load the downloaded image
  3. Check browser console for the error : Invalid tag in sequence

The current behavior

Error in browser console : Invalid tag in sequence

The expected behavior

There shouldn't be any error and image should render properly.

Also if possible, please allow to choose between dcmjs or DicomParser in the default.js config.

Please note that currently it works fine with https://github.com/cornerstonejs/dicomParser and am not able to configure it as OHIF uses dcmjs

OS

Windows 10

Node version

v16.18.0

Browser

Chrome 115.0.5790.110 (Official Build) (64-bit)

sedghi commented 9 months ago

The file loads fine in cs3d demo https://www.cornerstonejs.org/live-examples/local.html

CleanShot 2023-10-03 at 10 41 57

So I"m wondering why not OHIF, we will investigate, thanks for the report

pieper commented 9 months ago

If you can replicate this with a simple example script then please submit an issue and ideally a fix to dcmjs directly.