comparison Resources/Samples/Python/AnonymizeAllPatients.py @ 353:61e4c62b8c35

samples of anonymization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Jan 2013 16:58:07 +0100
parents cc9eddbf07d3
children 44382c8bcd15
comparison
equal deleted inserted replaced
352:cc9eddbf07d3 353:61e4c62b8c35
20 infos = RestToolbox.DoGet('%s/patients/%s' % (URL, patient)) 20 infos = RestToolbox.DoGet('%s/patients/%s' % (URL, patient))
21 name = infos['MainDicomTags']['PatientName'].lower() 21 name = infos['MainDicomTags']['PatientName'].lower()
22 if not name.startswith('anonymized'): 22 if not name.startswith('anonymized'):
23 23
24 # Trigger the anonymization 24 # Trigger the anonymization
25 RestToolbox.DoPost('%s/patients/%s/anonymize' % (URL, patient)) 25 RestToolbox.DoPost('%s/patients/%s/anonymize' % (URL, patient),
26 { 'Keep' : [ 'SeriesDescription',
27 'StudyDescription' ] })