phi-cleaner
phi-cleaner is an optional companion CLI for text de-identification.
Use it before sending potentially sensitive clinical text into downstream tooling.
Install
bash
brew tap drpedapati/tools brew install drpedapati/tools/phi-cleaner
Verify:
bash
phi-clean --version
Common commands
bash
# Clean direct text input phi-clean "Patient John Smith was seen on 03/15/2024." # Detect-only mode phi-clean --detect "Dr. Chen at Mayo Clinic" # File input/output phi-clean -f note.txt -o note.cleaned.txt # Show available models phi-clean --models
Workflow guidance
- •Run
phi-cleanbefore sharing clinical notes in chat workflows. - •Keep original and de-identified files separate.
- •Validate cleaned output for context loss before publication.
Caveat
This tool helps reduce accidental PHI leakage, but it is not a legal/compliance determination on its own.