cornerstonejs / dicomParser

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

Missing vr's #247

Closed LeoReubelt closed 1 year ago

LeoReubelt commented 1 year ago

IM-0056-0001.dcm.zip

I've attached a sample file. When I parse it, most elements don't have vr's. for example... x00080005: {tag: 'x00080005', length: 10, dataOffset: 354} When I view it in Osirix, the tags are there. Can someone tell me what is causing this.

yagni commented 1 year ago

This is an implicit VR DICOM file, meaning the VRs aren't included in the file. You'll need a separate data dictionary to get those VRs. You can use the vrCallback option to provide a function that returns the VR given a tag and dicomParser will use that to populate the VRs for you. See an example of using vrCallback here and sample dictionary here.

LeoReubelt commented 1 year ago

Thanks @yagni