Hello,
I'm in the process of writing a script to sort & rename lots of dicom files based on information in the dicom header. Ideally I wanted to include the series description (dicom field "0008,103e") as part of the output directory name (with spaces replaced with underscores, using sed). However, dicom_hinfo only returns the first word of the series description. I could use dcmdump from DCMTK, but dicom_hinfo is a lot faster. I could use dicom_hdr & grep, but I'm not sure how I'd grep for multiple elements (instance number, series description, etc.) without reading in the header multiple times. I need to read through tens of thousands of dicom files, so speed is an issue.
Is there a way for dicom_hinfo to output the entire field for series description, rather than just the first word?
Thanks,
Rasmus