dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file.
Problem is that I know this is a vaild dicom file since it can be parsed online using the data dump. I'm using the script directly and not by npm. I suspect there might be a bug there because if I use npm and bundle the final project with browserify it works too.
A side not, parcel does not seem to work with this library either. And why all the extra dependencies in the npm download?
You are incorrect - the only media storage defined by DICOM Is in Part 10 and it requires the DICM prefix. If you can point to a part of the DICOM standard that says otherwise, please do so.
dicomParser has no other runtime dependencies, although it does depend on other NPM packages to build.
@robinjac Did you ever figure out what was causing this error?
the key is how to solve it?
Just for reference, depending on your pipeline, you may want to graft a new step if you are planning onto supporting those pseudo DICOM files. To make them P10 compatible, either:
$ file 1.2.840.114257.1.2022008.95722.1.1.1
1.2.840.114257.1.2022008.95722.1.1.1: data
$ gdcmconv -C 1.2.840.114257.1.2022008.95722.1.1.1 p10.dcm
$ file p10.dcm
p10.dcm: DICOM medical imaging data
or
$ dcmconv 1.2.840.114257.1.2022008.95722.1.1.1 p10.dcm
$ file p10.dcm
p10.dcm: DICOM medical imaging data
ref:
- https://github.com/cornerstonejs/dicomParser/issues/112#issuecomment-444000568