Hi all,
I've seen this being discussed in the forum, but never anyone posting a clear answer. I'm working on a lua anonymization script as we're building a solution including orthanc which will forward studies from multiple hospitals to a single cloud backend orthanc. at each hospital, we'll have an orthanc server functioning as a DICOM proxy and anonymizer, whereafter it autoroutes to the central cloud backend.
I'd like to use the onStoredInstance function to achieve the fastest possible routing. However I need a method to keeping the Patient, Study and Series relationships intact and the default anonymization using a hashed timestamp for every PatientID which passes by the DICOM proxy, will not work. hence a couple of questions for the forum:
1. has anyone built an anonymization script which somehow maintains the patient, study and series relationship intact (several options have been discussed in other threads)? feel free to share your solutions if you have one.
2. when I ask my own anonymization script to simply keep PatientID intact, orthanc complains that I need to use the force option. could someone help me sort out the syntax for using the force option as what I've created seems to be invalid? (attached).
3. if I was to give up the idea of immediate autorouting and switch to onStablePatient, I assume that the patientID would remain constant within one lua script execution. would that be the case?
thank you for a great product and a fantastic forum,
Pär