Skip to main content

Module anonymize_tag_map

Module anonymize_tag_map 

Source
Expand description

Redact known PHI tag keys in a simple DICOM attribute map.

Operates on DicomTagMap only — not on raw file bytes. Safe for pre-export scrub of tags produced by parse_dicom_tags_basic().

Structs§

AnonymizeReport
Report of anonymization actions.

Constants§

PHI_TAG_KEYS
PHI / identity tags zeroed or replaced with a fixed placeholder.
REDACTED_PLACEHOLDER
Placeholder written over redacted string values.

Functions§

anonymize_tag_map
Zero/redact known PHI keys in map (in place).
is_phi_tag
True if key is in the PHI table.
scrub_patient_id
Scrub helper: return PatientID redacted if present (convenience for call sites).