summarizing-clinical-notes
Ce qu’il fait
Cette compétence apprend à un agent à rédiger une synthèse des notes cliniques d'un patient. Chaque affirmation est liée à son texte source afin qu'un clinicien puisse la vérifier, et le résultat est un brouillon à relire.
Quand l’utiliser
- ✓Quand un clinicien a besoin d'un brouillon de résumé de sortie après un long séjour hospitalier.
- ✓Quand une équipe a besoin d'une note de transmission ou SBAR construite à partir des notes du dossier avec des sources vérifiables.
- ✓Quand un utilisateur a besoin d'une synthèse d'une ligne sur un patient pour la visite du matin.
Lien du skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/summarizing-clinical-notes/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu rédiger un résumé de sortie à partir de mes notes dépersonnalisées et indiquer de quelle ligne provient chaque fait ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent retire d'abord les données personnelles et repère les termes clés. Il rédige ensuite le résumé avec une référence de source à côté de chaque ligne, et les cliniciens relisent le brouillon avant utilisation.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Le résumé peut-il contenir des faits absents du dossier ?
La compétence cherche à l'éviter en ancrant chaque affirmation à un passage source.
S'agit-il d'un dispositif médical ?
Non. La compétence indique qu'elle n'est pas un dispositif médical et qu'elle produit des brouillons à relire par un clinicien.
Faut-il dépersonnaliser les notes au préalable ?
Oui. La compétence indique de lancer la dépersonnalisation avant toute autre étape.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 5.8k
- Position au classement
- #14737
- Licence
- Apache-2.0
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
annotating-variants
5.8kAide votre agent à prédire l'effet d'une variante génétique, à convertir les noms HGVS en positions génomiques et à associer les fréquences de population, à l'aide d'annotateurs publics gratuits.
ask-openmed
5.8kAide votre agent à choisir le bon flux de travail OpenMed pour une demande de texte clinique, en commençant par une vérification de confidentialité chaque fois que des données de patient peuvent être présentes.
assembling-fhir-bundles
5.8kRegroupe plusieurs dossiers de santé FHIR dans un Bundle de transaction unique, prêt à être envoyé à un DPI, avec les références internes correctement liées.
auditing-deid-leakage
5.8kAnalyse les textes cliniques dépersonnalisés à la recherche d'identifiants restants, comme les numéros de sécurité sociale, de carte, les courriels et les dates, et bloque la diffusion si certains subsistent.
Skills similaires
obsidian-vault-maintainer
394kAide votre agent à entretenir un coffre de mémoire compatible Obsidian, avec des liens wiki fonctionnels, des propriétés cohérentes et des sections générées sûres.
wiki-maintainer
394kAide votre agent à entretenir un wiki de mémoire OpenClaw avec des pages reproductibles, des blocs gérés sûrs et des contrôles des contradictions ou lacunes.
obsidian
394kPermet à votre agent de lire, rechercher, créer et modifier des notes, tâches, liens et propriétés Obsidian grâce à la ligne de commande officielle d'Obsidian.