deid
deid copied to clipboard
Anonymize pixel data
Hello, I'd like to anonymize pixel data in my dicom file.
If I understood well, this snippet should be enough, right ? Taken from the examples
from deid.dicom import DicomCleaner
client = DicomCleaner()
summary = client.detect(PATH)
client.clean()
The thing is, summary is empty: {'flagged': False, 'results': []} so nothing is happening.
What am I missing here ? Thanks
Alright, It's because the model name I have is not handled in the default deid. Is it possible to add it ?
LABEL Samsung # (AMBR)
contains Manufacturer Samsung
+ contains Modality US
+ contains ManufacturerModelName HERA W9
+ equals Rows 872
Thanks
Sure! Here is the file to PR to: https://github.com/pydicom/deid/blob/master/deid/data/deid.dicom