summarizing-clinical-notes
यह क्या करती है
यह स्किल एजेंट को सिखाती है कि मरीज़ के क्लिनिकल नोट्स का सारांश कैसे लिखें। हर कथन उसके स्रोत टेक्स्ट से जुड़ा होता है, ताकि क्लिनिशियन उसकी जाँच कर सके, और नतीजा समीक्षा के लिए ड्राफ़्ट होता है।
कब इस्तेमाल करें
- ✓जब क्लिनिशियन को लंबे अस्पताल प्रवास के बाद डिस्चार्ज सारांश का ड्राफ़्ट चाहिए।
- ✓जब टीम को चार्ट नोट्स से जाँचे जा सकने वाले स्रोतों के साथ हैंडऑफ़ या SBAR नोट बनाना हो।
- ✓जब उपयोगकर्ता को सुबह की राउंड के लिए मरीज़ का एक-पंक्ति सारांश चाहिए।
Skill का लिंक
https://github.com/maziyarpanahi/openmed/blob/master/skills/summarizing-clinical-notes/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे डी-आइडेंटिफ़ाई किए गए नोट्स से डिस्चार्ज सारांश का ड्राफ़्ट बना सकते हैं, और दिखा सकते हैं कि हर तथ्य किस पंक्ति से आया है?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले व्यक्तिगत विवरण हटाता है और मुख्य शब्द खोजता है। फिर वह सारांश लिखता है, जिसमें हर पंक्ति के साथ स्रोत संदर्भ होता है, और उपयोग से पहले क्लिनिशियन ड्राफ़्ट की समीक्षा करते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Summarizing Clinical Notes with Span Citations
A clinical summary is only useful if it is faithful: every statement must trace back to something the chart actually says. The failure mode for note summarization is the confident hallucination — an invented dose, a fabricated allergy, a discharge diagnosis that was never made. This skill produces summaries where each line cites the source span that supports it, so a clinician can verify in one glance and catch any fabrication.
Not a medical device. OpenMed and this skill assist documentation; they do not diagnose, triage, or make autonomous clinical decisions. Every summary is a draft for clinician review and editing. Surface that disclaimer in any UI that renders these summaries.
When to use
- Drafting a discharge summary, transfer note, or SBAR/handoff from a long encounter.
- Building a problem-oriented view (problem list with supporting evidence).
- Generating a "one-liner" (the single-sentence patient summary) for rounds.
- Chart abstraction where reviewers need quick, verifiable evidence pointers.
Quick start
De-identify before anything else, extract entities to anchor against, then compose the summary with citations:
import openmed
note = """\
HPI: 68M with HTN, T2DM presents with 3 days of productive cough and fever to
38.9C. CXR shows RLL infiltrate. Started on ceftriaxone and azithromycin.
Hospital course: improved on IV antibiotics, transitioned to PO. Discharged on
amoxicillin-clavulanate. Follow up with PCP in 1 week.
"""
# 1) ALWAYS de-identify before summarizing or sending text anywhere.
deid = openmed.deidentify(note, method="replace", policy="hipaa_safe_harbor")
# 2) Extract entities; their offsets become your citation anchors.
ner = openmed.analyze_text(deid.text, output_format="dict")
spans = {
(e["start"], e["end"]): e["text"]
for e in ner["entities"]
}
# 3) Compose the summary. Every bullet references a (start, end) span so a
# reviewer can click back to the exact evidence.
def cite(start, end):
return f"[{start}:{end}] {deid.text[start:end]!r}"
# Example problem-oriented line, grounded in detected spans:
# "Community-acquired pneumonia (RLL infiltrate) — treated with ceftriaxone +
# azithromycin." with cite(...) anchors for each entity.
analyze_text returns entities as
{"text", "label", "confidence", "start", "end", "metadata"}; the
start/end offsets index the de-identified text, giving you exact,
verifiable citation anchors.
Workflow
- De-identify with
openmed.deidentify. Summaries are often shared or logged; PHI must be gone before this stage. Keep the mapping (keep_mapping=True) only if a downstream clinician must re-identify in a controlled context — never persist the mapping with the summary. - Extract grounding spans with
openmed.analyze_text(problems, meds, labs, procedures). These define the allowed evidence set: a summary claim that cannot point at a span is unsupported. - Resolve context with
openmed.clinical(negation, temporality, subject) so "no chest pain" and "father had MI" are not summarized as active patient problems. Seeresolving-clinical-context. - Compose by view:
- One-liner: age/sex + key chronic problems + reason for encounter.
- Hospital course: ordered problems → intervention → response, each line citing the spans it summarizes.
- Problem-oriented: group entities into problems; attach supporting med/lab/procedure spans under each.
- Enforce citation coverage. Reject or flag any output sentence with zero span citations. This is the anti-hallucination gate — keep it strict.
- Mark it a draft. Render the medical-device disclaimer and require human sign-off before the summary enters the record.
Hand-off to / from OpenMed
- From OpenMed: consumes
openmed.deidentify(...)output (de-identified text + entity spans) andopenmed.analyze_text(...)(PredictionResultdict). Entitystart/endoffsets are the citation anchors. - To OpenMed: the summary text itself can be re-run through
openmed.analyze_textfor a coded problem list, or throughopenmed.evalleakage gates to confirm no PHI leaked into the generated summary. - Citation rendering:
analyze_text(..., output_format="html")produces a span-highlighted view of the source — handy for a click-to-evidence UI.
Edge cases & gotchas
- **Hallucination is th
अक्सर पूछे जाने वाले सवाल
क्या सारांश में ऐसे तथ्य हो सकते हैं जो चार्ट में नहीं हैं?
स्किल हर दावे को किसी स्रोत स्पैन से बाँधकर इसे रोकने की कोशिश करती है।
क्या यह एक मेडिकल डिवाइस है?
नहीं। स्किल कहती है कि यह मेडिकल डिवाइस नहीं है, और यह क्लिनिशियन की समीक्षा के लिए ड्राफ़्ट बनाती है।
क्या मुझे पहले नोट्स डी-आइडेंटिफ़ाई करने चाहिए?
हाँ। स्किल कहती है कि कुछ भी करने से पहले डी-आइडेंटिफ़िकेशन चलाएँ।
जानकारी
लेखक का मूल विवरण
Produces structured, citation-anchored summaries of clinical notes — one-liner, hospital course, and problem-oriented views — where every claim cites a source span so nothing is hallucinated. Use after de-identifying notes when the user wants a discharge summary draft, handoff/SBAR, problem list, or chart-abstraction summary. De-identify FIRST with openmed.deidentify, then anchor summary claims to entity spans from openmed.analyze_text. Trigger keywords: summarize note, discharge summary, hospital course, problem-oriented, one-liner, SOAP, SBAR, handoff, chart abstraction.
repo: maziyarpanahi/openmed
लोकप्रियता
- GitHub स्टार
- 5.8k
- रैंकिंग में स्थान
- #14737
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
annotating-variants
5.8kआपके एजेंट को मुफ़्त सार्वजनिक एनोटेटर से जेनेटिक वेरिएंट का असर बताने, HGVS नामों को जीनोम पोज़िशन में बदलने और जनसंख्या आवृत्ति जोड़ने में मदद करती है।
ask-openmed
5.8kआपके एजेंट को क्लिनिकल टेक्स्ट अनुरोध के लिए सही OpenMed वर्कफ़्लो चुनने में मदद करती है, जहाँ मरीज़ का डेटा हो सकता है वहाँ पहले गोपनीयता जाँच से शुरू करके।
assembling-fhir-bundles
5.8kकई FHIR स्वास्थ्य रिकॉर्ड को एक ट्रांज़ैक्शन Bundle में पैक करती है, जो EHR को भेजने के लिए तैयार हो और आंतरिक संदर्भ सही जुड़े हों।
auditing-deid-leakage
5.8kडी-आइडेंटिफ़ाइड क्लिनिकल टेक्स्ट में बचे पहचानकर्ता जैसे SSN, कार्ड नंबर, ईमेल और तारीखें खोजती है, और कुछ बचा हो तो रिलीज़ रोक देती है।
मिलती-जुलती skills
obsidian-vault-maintainer
394kयह आपके एजेंट को Obsidian के अनुकूल मेमोरी vault व्यवस्थित रखने देती है, जिसमें काम करने वाले wiki लिंक, एक जैसी properties और सुरक्षित जेनरेटेड सेक्शन हों।
wiki-maintainer
394kयह आपके एजेंट को OpenClaw मेमोरी wiki दोहराए जा सकने वाले पेजों, सुरक्षित मैनेज्ड ब्लॉक्स और विरोधाभास या कमियों की जांच के साथ संभालने देती है।
obsidian
394kयह आपके एजेंट को आधिकारिक Obsidian कमांड-लाइन से Obsidian नोट्स, टास्क, लिंक और properties पढ़ने, खोजने, बनाने और बदलने देती है।