I made a WIP DICOM anonymization tool in Python for my ML workflow. Unlike other anonymization modules, Phantom is whitelist-based, so anything not specified in the configuration file gets automatically purged from the metadata.
Phantom also partially supports getting rid of burned annotations in dynamic imaging modalities such as echocardiograms by masking any static pixels.
Looking forward to your feedback and tips!