I'm trying to perform some client side anonymization with DICOM parser but require user input for a field like PatientName for anonymization. I understand this can be problematic in the case that the provided values exceed the previous length of the field. How should i handle this scenario? The anonymization example says it would require "resizing the Uint8Array and updating the length". How should I be doing this?
--
You received this message because you are subscribed to the Google Groups "cornerstone platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cornerstone-plat...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cornerstone-platform/85c49d56-53c8-48f7-9756-5d2077fb2714n%40googlegroups.com.
var element = dataSet.elements[tag];
var deIdentifiedValue = "SomeTextHere";
for(var i=0; i < element.length; i++) {
var char = (deIdentifiedValue.length > i) ? deIdentifiedValue.charCodeAt(i) : '0';
dataSet.byteArray[element.dataOffset + i] = char;
}
Todd Jensen, PhD
Jensen Informatics LLC