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§
- Anonymize
Report - 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
keyis in the PHI table. - scrub_
patient_ id - Scrub helper: return PatientID redacted if present (convenience for call sites).