One of the needs is that in parsing pixel data it is important to know whether or not the data is encapsulated. In dicomParser this is determined by whether the data has unknown length (length tag is 0xfffffff).
The tag length metadata is not reported in the dictionary output of dcmjs.data.DicomMessage.readFile(). To get around this, I would like to add a Meta key in addition to the Value key to the output.
This change wouldn't break the current API and it would provide length context or potentially other tag context while parsing.
Hello, I am interested in using dcmjs to parse data in cornerstoneWADOloader. I have an active branch where I am trying to reach parity with the current wadouri code using
dicomParser
: https://github.com/Ouwen/cornerstoneWADOImageLoader/tree/feat_added_dcmjsOne of the needs is that in parsing pixel data it is important to know whether or not the data is encapsulated. In
dicomParser
this is determined by whether the data has unknown length (length tag is0xfffffff
).The tag length metadata is not reported in the dictionary output of dcmjs.data.DicomMessage.readFile(). To get around this, I would like to add a
Meta
key in addition to theValue
key to the output.This change wouldn't break the current API and it would provide length context or potentially other tag context while parsing.
See #285 for the PR