multi-model · Clinical DeID-BERT (108.51 MB q8 · MIT) → OpenMed DiseaseDetect 335M (336.51 MB q8 · apache-2.0)

2-Stage HIPAA PHI Redaction → Biomedical Disease Extraction (445.02 MB Total)

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.

1 · Workflow models (445.02 MB combined · WASM q8)

Stage 1 · Clinical DeID-BERT (i2b2 · 108.51 MB)

Reuses ../../deid-bert-i2b2/worker.js · 45 BILOU HIPAA PHI tags · MIT

Stage 2 · OpenMed DiseaseDetect 335M (336.51 MB)

Uses ../worker.js · 24-layer BERT-Large BC5CDR disease NER · apache-2.0

2 · Clinical note → Stage 1 PHI firewall → Stage 2 disease extraction

Prepare both workflow models above to run the 2-stage DeID → Disease NER pipeline.

Stage 1 PHI scrubbed–
Handoff check–
Stage 2 diseases–
Stage 1 / Stage 2 ms–
NaN count (S1 / S2)–

3 · Stage 1 PHI firewall & Stage 2 sanitized disease extraction

Stage 1 · Local PHI spans (never sent to Stage 2)

Run Stage 1 to inspect detected HIPAA PHI spans.

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 handoff
Show the code — verifying zero original PHI tokens remain in the sanitized Stage 2 input