rordenlab / dcm2niix

dcm2nii DICOM to NIfTI converter: compiled versions available from NITRC
https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage
Other
894 stars 228 forks source link

dcm2niix output JSON format issue #472

Closed rvangala936 closed 3 years ago

rvangala936 commented 3 years ago

Hi, dcm2niix generates a Json file that has data format issues. Please find below DICOM tag causes the issues along with a generated JSON file output.

Can you please look into this issue?

Ex: If the DICOM has a Tag like shown below(note the Value has data on separate lines):

================================================================ Tag=(0008, 0081), Desc=InstitutionAddress, VR=ST, Value=200 Rochester/ MN US

Then dcm2niix generates the JSON as follows but it is NOT a valid JSON:

================================================================ { "Manufacturer": "ABC", "ManufacturersModelName": "ModelName", "InstitutionName": "TEST", "InstitutionAddress": "200 Rochester_ MN US", "DeviceSerialNumber": "00000", "SoftwareVersions": "CT_2011A", "BodyPartExamined": "ABDOMEN", "ProtocolName": "IRB_09_000702_LD_ENTEROG", "ImageType": ["ORIGINAL", "PRIMARY", "AXIAL", "CT", "SOM5", "SPI"], "AcquisitionTime": "07:43:11.010000", "XRayExposure": 68, "PhaseEncodingLines": 512, "ConversionSoftware": "dcm2niix", "ConversionSoftwareVersion": "v1.0.20170624 (OpenJPEG build) GCC4.8.4" }

neurolabusc commented 3 years ago

You are using a release that is more than 3 years old. Does the current stable version resolve your issue?

rvangala936 commented 3 years ago

Latest version worked. Thank you very much for quick and prompt response.

Best Regards Ravindar Vangala