Category: Domain-Specific
Skill Level: advanced
Stability: stable
Added: 2026-04
Description
Condenses clinical documentation (discharge summaries, progress notes, EHR entries) into structured SOAP-style or problem-oriented summaries. Preserves critical findings, vital signs, medication changes, and follow-up actions while discarding administrative boilerplate.
Example
import anthropic
client = anthropic.Anthropic()
def summarize_note(raw_note: str) -> dict:
resp = client.messages.create(
model="claude-opus-4-5",
max_tokens=512,
messages=[{"role": "user", "content": (
"Extract a structured clinical summary from this note as JSON with keys: "
"status, vital_signs, medications_changed, red_flags, follow_up.\n\n" + raw_note
)}]
)
import json
return json.loads(resp.content[0].text)
note = "Patient 72F, SOB improving, O2 sat 97% RA, started furosemide 40mg QD, \
follow-up chest X-ray in 48h, no fever."
print(summarize_note(note))
Failure Modes
- Critical-detail omission: compression discarding findings, medication changes, or follow-up actions that alter care; clinically significant items must be preserved or explicitly flagged, never silently dropped.
- Meaning-shift paraphrase: rewording that changes doses, units, or negation; re-verify every number and negation against the source note.
- Template distortion: forcing documentation that does not fit the SOAP or problem-oriented structure into wrong sections.
- Source conflation: merging multiple notes without preserving per-note dates and authors.
- Scope boundary: the output is a condensation for clinical workflows, not a diagnostic or treatment recommendation.
Evidence
The canonical skill file is the authoritative repository implementation. Repository schema, validation workflows, and the Agent Skills projection contract define structural conformance. Domain-specific factual claims must remain traceable to supplied or independently verified authoritative sources.
Related
- 16-domain-specific
- input-guardrails
- output-guardrails