Never pass raw patient identifiers into downstream disease indexers. Chain two isolated Web Workers on-device:
Stage 1 (reusing ../../deid-bert-i2b2/worker.js) detects and redacts HIPAA PHI
(names, MRNs, dates, phones, hospitals); Stage 2 (../worker.js) extracts
DISEASE spans exclusively from the sanitized note.
Synthetic Data & Clinical Safety Notice: All built-in notes are 100% synthetic
(zero real patient records). Automated de-identification and NER are assistive research tools and require human
review before HIPAA Safe Harbor release or clinical use.
Stage 2 · Diseases extracted from sanitized payload
Run Stage 2 to extract disease entities from the de-identified note.
How it works
Show the code — deterministic [CATEGORY_N] PHI redaction before Stage 2 handoffShow the code — verifying zero original PHI tokens remain in the sanitized Stage 2 input