Batch Processing Clinical Text

Run large-scale batch NER, PII extraction, or de-identification over many clinical notes on-device with OpenMed, with sharding, checkpointing, resumability, and append-only JSONL output. Use when the user needs to process a corpus or folder of notes, de-identify a dataset, run NER over thousands of documents, build a resumable batch pipeline, or stream results to JSONL without holding everything in memory. Covers process_batch / BatchProcessor / BatchItem / BatchResult, the operation= selector (analyze_text | extract_pii | deidentify), iter_process streaming, the PHI-safe on_progress callback, chunking long documents, and no-PHI logging. Produces a resumable batch runner over an OpenMed model.

maziyarpanahi da2706a 8.6 KB Updated

File contents

maziyarpanahi/openmed/tree/main/skills/batch-processing-clinical-text commit da2706abc4

Frequently asked questions

npx skillmds@latest add maziyarpanahi/batch-processing-clinical-text