johnperry / CTP

Clinical Trial Processor
http://mircwiki.rsna.org/index.php?title=CTP_Articles
65 stars 55 forks source link

DICOM Anonymizer: Preserve private element VRs when modified #2

Closed jstorrs closed 1 year ago

jstorrs commented 10 years ago

When using the CTP DICOM Anonymizer, the VR of unmodified input private elements is preserved in the output DICOM, but the VR of modified private elements is always modified to UN in the output. This patch is intended to preserve the input VR of private elements that are rewritten by the DICOM Anonymizer.

jstorrs commented 10 years ago

I wasn't sure whether the original logic to set private tags to UN/LO in DICOMAnonymizerContext.java:setXX() should be added to DICOMAnonymizer.java:getVR() ?