batch-processing-clinical-text

Process clinical notes for entity recognition, PII extraction, or de-identification with streaming output.

5.0k|615|Updated Oct 4, 2025
One-click install
npx skills add https://github.com/maziyarpanahi/openmed --skill batch-processing-clinical-text
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: batch-processing-clinical-text
Source: https://github.com/maziyarpanahi/openmed/tree/main/skills/batch-processing-clinical-text
Command: npx skills add https://github.com/maziyarpanahi/openmed --skill batch-processing-clinical-text

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates large-scale processing of clinical notes without holding the entire corpus in memory or sending sensitive data off-device, while preserving progress through failures and restarts.

Core Features & Use Cases

  • Batch Clinical NLP: Run named entity recognition, PII extraction, or de-identification across folders, datasets, and large note collections.
  • Resumable Processing: Use sharding, append-only JSONL checkpoints, stable document IDs, and per-item error isolation to safely resume interrupted jobs.
  • Streaming and Privacy Safety: Process results incrementally with constant memory and PHI-safe progress callbacks that expose only counts and timing.
  • Use Case: De-identify thousands of clinical notes, write one result per line to a checkpointed JSONL file, and retry failed documents without reprocessing completed items.

Quick Start

Use the batch-processing clinical text skill to de-identify the clinical notes in my dataset with resumable JSONL output and PHI-safe progress logging.

Frequently Asked Questions about batch-processing-clinical-text

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process large clinical text datasets without running out of memory?

You can process large clinical text datasets with constant memory by using streaming and incremental processing operations. This approach processes results without loading the full corpus into memory, enabling safe handling of thousands of documents.

How do I resume clinical NLP batch processing after a system failure?

You can resume clinical NLP batch processing after a failure by using append-only JSONL checkpoints, stable document IDs, and per-item error isolation. This allows you to retry failed documents without reprocessing completed items.

Can I de-identify clinical notes on-device without exposing PHI in logs?

Yes, you can de-identify clinical notes on-device without exposing PHI by using PHI-safe progress callbacks. These callbacks only expose counts and timing information, ensuring sensitive data remains protected during processing.

What is the best way to extract named entities from thousands of clinical notes?

The best way to extract named entities from thousands of clinical notes is using a batch processing workflow with streaming output and checkpointing. This isolates per-item failures and writes one result per line to a checkpointed JSONL file.

Does batch processing clinical text support sharded corpora and folders?

Yes, batch processing clinical text supports applying workflows to folders, datasets, and sharded corpora. It uses document chunking and stable identifiers to handle varying document structures within these storage formats.