Skip to main content

anonymize_file

Function anonymize_file 

Source
pub fn anonymize_file(src: &Path, dst: &Path) -> Result<()>
Expand description

PS3.15 Basic Application Confidentiality โ€” minimal subset. Strips patient identifiers; keeps imaging tags.

The output is a new file at dst; the source is never modified. This is not a certified DICOM De-Identification implementation โ€” only the most common direct identifiers (PatientName, PatientID, BirthDate, Sex, AccessionNumber, ReferringPhysicianName, OperatorsName, InstitutionName/Address, StationName, PatientAge/Address/Phone) are removed or blanked. Use a dedicated anonymisation pipeline for research/publication work.

ยงErrors

File-open, file-write, or DICOM-encoding failures.