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.
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() ?
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.