Medical Entity Extractor
Extract structured medical information from unstructured patient messages.
What This Skill Does
- Symptom Extraction: Identifies symptoms, severity, duration, and progression
- Medication Extraction: Finds medication names, dosages, frequencies, and side effects
- Lab Value Extraction: Parses lab results, vital signs, and measurements
- Diagnosis Extraction: Identifies mentioned diagnoses and conditions
- Temporal Extraction: Captures when symptoms started, how long they've lasted
- Action Items: Identifies requested actions (appointments, refills, questions)
Input Format
[
{
"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
[
{
"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:
openclaw skill run medical-entity-extractor --input '[{"id":"msg-1","priority_score":78,...}]' --json
Or programmatically:
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
1---
2name: medical-entity-extractor
3description: Extract medical entities (symptoms, medications, lab values, diagnoses) from patient messages.
4license: MIT
5metadata:
6 source: https://skillmd.com/skills/modbender/medical-entity-extractor
7 author: "NAPSTER AI"
8 maintainer: "NAPSTER AI"
9 openclaw:
10 requires:
11 bins: []
12---
13
14# Medical Entity Extractor
15
16Extract structured medical information from unstructured patient messages.
17
18## What This Skill Does
19
201. **Symptom Extraction**: Identifies symptoms, severity, duration, and progression
212. **Medication Extraction**: Finds medication names, dosages, frequencies, and side effects
223. **Lab Value Extraction**: Parses lab results, vital signs, and measurements
234. **Diagnosis Extraction**: Identifies mentioned diagnoses and conditions
245. **Temporal Extraction**: Captures when symptoms started, how long they've lasted
256. **Action Items**: Identifies requested actions (appointments, refills, questions)
26
27## Input Format
28
29```json
30[
31 {
32 "id": "msg-123",
33 "priority_score": 78,
34 "priority_bucket": "P1",
35 "subject": "Medication side effects",
36 "from": "patient@example.com",
37 "date": "2026-02-27T10:30:00Z",
38 "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."
39 }
40]
41```
42
43## Output Format
44
45```json
46[
47 {
48 "id": "msg-123",
49 "entities": {
50 "symptoms": [
51 {
52 "name": "dizziness",
53 "severity": "moderate",
54 "duration": "3 days",
55 "onset": "since starting new medication"
56 }
57 ],
58 "medications": [
59 {
60 "name": "Lisinopril",
61 "dosage": "10mg",
62 "frequency": null,
63 "context": "new medication"
64 }
65 ],
66 "lab_values": [
67 {
68 "type": "blood_pressure",
69 "value": "145/92",
70 "unit": "mmHg",
71 "timestamp": "this morning"
72 }
73 ],
74 "diagnoses": [
75 {
76 "name": "hypertension",
77 "context": "implied by blood pressure medication"
78 }
79 ],
80 "action_items": [
81 {
82 "type": "medication_review",
83 "reason": "possible side effect (dizziness)"
84 }
85 ]
86 },
87 "summary": "Patient reports dizziness after starting Lisinopril 10mg 3 days ago. BP elevated at 145/92. Possible medication side effect requiring review."
88 }
89]
90```
91
92## Entity Types
93
94### Symptoms
95- Name, severity (mild/moderate/severe), duration, onset, progression (improving/stable/worsening)
96
97### Medications
98- Name, dosage, frequency, route, context (new/existing/stopped)
99
100### Lab Values
101- Type (BP, glucose, cholesterol, etc.), value, unit, timestamp, normal range
102
103### Diagnoses
104- Name, context (confirmed/suspected/ruled out)
105
106### Vital Signs
107- Temperature, heart rate, respiratory rate, oxygen saturation, blood pressure
108
109### Action Items
110- Type (appointment, refill, question, callback), urgency, reason
111
112## Medical Terminology Handling
113
114The skill recognizes:
115- Common abbreviations (BP, HR, RR, O2 sat, etc.)
116- Brand and generic medication names
117- Lay terms for medical conditions ("sugar" → diabetes, "heart attack" → MI)
118- Temporal expressions ("since yesterday", "for the past week")
119
120## Integration
121
122This skill can be invoked via the OpenClaw CLI:
123
124```bash
125openclaw skill run medical-entity-extractor --input '[{"id":"msg-1","priority_score":78,...}]' --json
126```
127
128Or programmatically:
129
130```typescript
131const result = await execFileAsync('openclaw', [
132 'skill', 'run', 'medical-entity-extractor',
133 '--input', JSON.stringify(scoredMessages),
134 '--json'
135]);
136```
137
138**Recommended Model**: Claude Sonnet 4.5 (`openclaw models set anthropic/claude-sonnet-4-5`)
139
140## Privacy & Security
141
142- All processing happens locally via OpenClaw
143- No data is sent to external services (except Claude API for LLM processing)
144- Extracted entities remain in your local environment
145