cornerstonejs / dicomParser

JavaScript parser for DICOM Part 10 data
MIT License
712 stars 228 forks source link

For Sequences with Sequence Items of Undefined Length, the Sequence Item Delimiter tag is read as an element #244

Open rennerg opened 1 year ago

rennerg commented 1 year ago

When reading files with sequences using Undefined Length, which contain items also using Undefined Length, the Sequence Item Delimiter (FFFE,E00D) is being parsed as an element.

image

The standard provides an example of a similar scenario:

image In my case, all my items are of undefined length.

I'm using v1.8.20.

Gaelik-git commented 1 year ago

Duplicate of my ticket https://github.com/cornerstonejs/dicomParser/issues/143 ?

yagni commented 1 year ago

@Gaelik-git In a way, yes, but I'd like to keep it since it deals with the item delimiter, not the sequence delimiter. This is going to be a tricky one because the standard considers the sequence delimitation item as part of the sequence element's value, but does not consider the item delimitation as part of the item's value. This is shown in the image above.

@rennerg Any thoughts or preferences on what you'd like to see here?