Some Data Elements with VR AT have a Value Multiplicity of 1-n, meaning they can have more than one value stored inside. However, the code and the comment on the function hint at an undefined return if the value length is strictly different then 4 bytes long.
examples of attribute of VR AT with a VM of 1-n :
(0028,0009) Frame Increment Pointer
(0028,000A) Frame Dimension Pointer
possible solutions :
change the signature of the function to accept an index parameter like the other parse function of this module and return the first value by default to keep retro compatibility
change the behavior of the function to return an array of values corresponding to all the attribute tags liste in the element (breaking changes)
Some Data Elements with VR AT have a Value Multiplicity of 1-n, meaning they can have more than one value stored inside. However, the code and the comment on the function hint at an undefined return if the value length is strictly different then 4 bytes long.
code in question : https://github.com/cornerstonejs/dicomParser/blob/b7755a8d81221f777a1b71926b6ab8ed7dcc0976/src/dataSet.js#L275
examples of attribute of VR AT with a VM of 1-n : (0028,0009) Frame Increment Pointer (0028,000A) Frame Dimension Pointer
possible solutions :