Agent skill

medical-entity-extractor

Extract medical entities (symptoms, medications, lab values, diagnoses) from patient messages.

Stars 2,009
Forks 275

Install this agent skill to your Project

npx add-skill https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/medical-entity-extractor

Metadata

Additional technical details for this skill

author
NAPSTER AI
openclaw
{
    "requires": {
        "bins": []
    }
}
maintainer
NAPSTER AI

SKILL.md

Medical Entity Extractor

Extract structured medical information from unstructured patient messages.

What This Skill Does

  1. Symptom Extraction: Identifies symptoms, severity, duration, and progression
  2. Medication Extraction: Finds medication names, dosages, frequencies, and side effects
  3. Lab Value Extraction: Parses lab results, vital signs, and measurements
  4. Diagnosis Extraction: Identifies mentioned diagnoses and conditions
  5. Temporal Extraction: Captures when symptoms started, how long they've lasted
  6. Action Items: Identifies requested actions (appointments, refills, questions)

Input Format

json
[
  {
    "id": "msg-123",
    "priority_score": 78,
    "priority_bucket": "P1",
    "subject": "Medication side effects",
    "from": "patient@example.com",
    "date": "2026-02-27T10:30:00Z",
    "body": "I've been feeling dizzy since starting the new blood pressure medication (Lisinopril 10mg) three days ago. My BP this morning was 145/92."
  }
]

Output Format

json
[
  {
    "id": "msg-123",
    "entities": {
      "symptoms": [
        {
          "name": "dizziness",
          "severity": "moderate",
          "duration": "3 days",
          "onset": "since starting new medication"
        }
      ],
      "medications": [
        {
          "name": "Lisinopril",
          "dosage": "10mg",
          "frequency": null,
          "context": "new medication"
        }
      ],
      "lab_values": [
        {
          "type": "blood_pressure",
          "value": "145/92",
          "unit": "mmHg",
          "timestamp": "this morning"
        }
      ],
      "diagnoses": [
        {
          "name": "hypertension",
          "context": "implied by blood pressure medication"
        }
      ],
      "action_items": [
        {
          "type": "medication_review",
          "reason": "possible side effect (dizziness)"
        }
      ]
    },
    "summary": "Patient reports dizziness after starting Lisinopril 10mg 3 days ago. BP elevated at 145/92. Possible medication side effect requiring review."
  }
]

Entity Types

Symptoms

  • Name, severity (mild/moderate/severe), duration, onset, progression (improving/stable/worsening)

Medications

  • Name, dosage, frequency, route, context (new/existing/stopped)

Lab Values

  • Type (BP, glucose, cholesterol, etc.), value, unit, timestamp, normal range

Diagnoses

  • Name, context (confirmed/suspected/ruled out)

Vital Signs

  • Temperature, heart rate, respiratory rate, oxygen saturation, blood pressure

Action Items

  • Type (appointment, refill, question, callback), urgency, reason

Medical Terminology Handling

The skill recognizes:

  • Common abbreviations (BP, HR, RR, O2 sat, etc.)
  • Brand and generic medication names
  • Lay terms for medical conditions ("sugar" → diabetes, "heart attack" → MI)
  • Temporal expressions ("since yesterday", "for the past week")

Integration

This skill can be invoked via the OpenClaw CLI:

bash
openclaw skill run medical-entity-extractor --input '[{"id":"msg-1","priority_score":78,...}]' --json

Or programmatically:

typescript
const result = await execFileAsync('openclaw', [
  'skill', 'run', 'medical-entity-extractor',
  '--input', JSON.stringify(scoredMessages),
  '--json'
]);

Recommended Model: Claude Sonnet 4.5 (openclaw models set anthropic/claude-sonnet-4-5)

Privacy & Security

  • All processing happens locally via OpenClaw
  • No data is sent to external services (except Claude API for LLM processing)
  • Extracted entities remain in your local environment

Expand your agent's capabilities with these related and highly-rated skills.

FreedomIntelligence/OpenClaw-Medical-Skills

vcf-annotator

Annotate VCF variants with VEP, ClinVar, gnomAD frequencies, and ancestry-aware context. Generates prioritised variant reports.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

chemist-analyst

Analyzes events through chemistry lens using molecular structure, reaction mechanisms, thermodynamics, kinetics, and analytical techniques (spectroscopy, chromatography, mass spectrometry). Provides insights on chemical processes, material properties, reaction pathways, synthesis, and analytical methods. Use when: Chemical reactions, material analysis, synthesis planning, process optimization, environmental chemistry. Evaluates: Molecular structure, reaction mechanisms, yield, selectivity, safety, environmental impact.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

bio-alignment-io

Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO. Supports Clustal, PHYLIP, Stockholm, FASTA, Nexus, and other alignment formats for phylogenetics and conservation analysis. Use when reading, writing, or converting alignment file formats.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

sleep-analyzer

分析睡眠数据、识别睡眠模式、评估睡眠质量,并提供个性化睡眠改善建议。支持与其他健康数据的关联分析。

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

metabolomics-workbench-database

Access NIH Metabolomics Workbench via REST API (4,200+ studies). Query metabolites, RefMet nomenclature, MS/NMR data, m/z searches, study metadata, for metabolomics and biomarker discovery.

2,009 275
Explore
FreedomIntelligence/OpenClaw-Medical-Skills

bio-hi-c-analysis-matrix-operations

Balance, normalize, and transform Hi-C contact matrices using cooler and cooltools. Apply iterative correction (ICE), compute expected values, and generate observed/expected matrices. Use when normalizing or transforming Hi-C matrices.

2,009 275
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results