Clinical nlp extractor

From swaruplab/operon · View interactive version

Clinical nlp extractor is an AI agent skill from the GitHub repository swaruplab/operon. Extracts medical entities (Diseases, Medications, Procedures) from unstructured clinical text using regex and simple rules (or LLM wrappers).

How to use this skill

Skill file

Clinical NLP Entity Extractor

The Clinical NLP Skill converts free-text clinical notes into structured data. It identifies key medical entities like problems/diagnoses, medications, and procedures.

When to Use This Skill

Core Capabilities

  1. NER (Named Entity Recognition): Extracts Problems, Drugs, Procedures.
  2. Negation Detection: (Basic) Checks if a finding is denied ("No fever").
  3. Structuring: Returns JSON format compatible with FHIR/USDL.

Workflow

  1. Input: A string of clinical text or a text file.
  2. Process: Tokenizes and matches against patterns/dictionaries.
  3. Output: JSON list of entities with spans and types.

Example Usage

User: "Extract entities from this note."

Agent Action:

python3 Skills/Clinical/Clinical_NLP/entity_extractor.py \
    --text "Patient has diabetes type 2. Prescribed Metformin 500mg. No chest pain." \
    --output entities.json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.