deid icon indicating copy to clipboard operation
deid copied to clipboard

Anonymize pixel data

Open RobinFrcd opened this issue 3 years ago • 2 comments

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

RobinFrcd avatar Sep 27 '22 10:09 RobinFrcd

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

RobinFrcd avatar Sep 27 '22 10:09 RobinFrcd

Sure! Here is the file to PR to: https://github.com/pydicom/deid/blob/master/deid/data/deid.dicom

vsoch avatar Sep 27 '22 13:09 vsoch