dicomParser icon indicating copy to clipboard operation
dicomParser copied to clipboard

dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file.

Open robinjac opened this issue 8 years ago • 4 comments

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?

robinjac avatar Feb 16 '18 17:02 robinjac

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.

chafey avatar Feb 16 '18 19:02 chafey

@robinjac Did you ever figure out what was causing this error?

toymachiner62 avatar Jul 26 '18 21:07 toymachiner62

the key is how to solve it?

mxj009 avatar Oct 18 '19 03:10 mxj009

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

malaterre avatar Oct 18 '19 07:10 malaterre