reconciling-problem-lists
Qué hace
Esta skill enseña a un agente a convertir muchas menciones de la misma enfermedad en una nota en una única entrada de la lista de problemas. Quita las condiciones que el paciente no tiene y etiqueta el resto según su estado.
Cuándo usarla
- ✓Cuando un usuario quiere una lista de problemas limpia a partir de una nota clínica larga con nombres de diagnóstico repetidos.
- ✓Cuando un usuario necesita saber qué condiciones están activas, resueltas o solo en los antecedentes.
- ✓Cuando un usuario está creando una lista de condiciones FHIR y necesita una entrada por condición.
Link de la skill
https://github.com/maziyarpanahi/openmed/blob/master/skills/reconciling-problem-lists/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes hacer una lista de problemas limpia a partir de la nota de mi consulta, marcando qué condiciones siguen activas?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente agrupa los nombres que significan lo mismo y descarta las menciones negadas o solo hipotéticas. Luego asigna a cada condición un estado, usando el contexto encontrado en pasos anteriores.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Reconciling problem lists
A single note mentions the same condition many ways — "DM2," "type 2 diabetes," "diabetes mellitus" — across PMH, HPI, and A&P, some negated, some historical. A usable problem list collapses those mentions into one concept per problem, drops what the patient does not have, and assigns a clinical status (active / resolved / historical). This skill turns OpenMed's per-mention entity stream plus ConText axes into that reconciled, de-duplicated list, shaped for USCDI "Problem" exchange.
When to use
- After
extracting-clinical-entitiesandresolving-clinical-context, when the user wants a clean problem list, condition reconciliation, or dedup of repeated diagnosis mentions. - You need active-vs-resolved-vs-historical status per problem, not just raw mentions.
- You are assembling a FHIR Condition list or a USCDI Problem element and need one entry per concept.
Quick start
import openmed
from openmed.clinical import resolve_span_context, NEGATED, HISTORICAL, HYPOTHETICAL
note = ("PMH: type 2 diabetes, prior MI 2019 (resolved). "
"A&P: poorly controlled DM2; denies chest pain.")
ents = openmed.analyze_text(note, model_name="disease_detection_superclinical",
output_format="dict")
def normalize(surface: str) -> str:
# Cheap synonym folding; replace with SNOMED grounding (out-of-process).
s = surface.lower().strip()
return {"dm2": "type 2 diabetes", "diabetes mellitus": "type 2 diabetes"}.get(s, s)
problems = {} # concept -> reconciled record
for e in ents:
surface = e["word"]
ctx = resolve_span_context(surface, note)
if ctx.negation == NEGATED:
continue # patient does NOT have it -> exclude
concept = normalize(surface)
status = ("resolved" if ctx.temporality == HISTORICAL else
"active")
if ctx.temporality == HYPOTHETICAL:
continue # not asserted as present
rec = problems.setdefault(concept, {"concept": concept, "status": status,
"mentions": 0})
rec["mentions"] += 1
# Active anywhere wins over a historical mention of the same concept.
if status == "active":
rec["status"] = "active"
problem_list = list(problems.values())
# -> [{"concept": "type 2 diabetes", "status": "active", "mentions": 2}, ...]
# "chest pain" excluded (negated); "MI" -> historical/resolved.
Workflow
- Collect Disease/Condition entities from
analyze_textacross the whole note (or per section if you ransegmenting-clinical-sections). - Attach clinical context per mention with
resolve_span_context(or the axes fromresolving-clinical-context): negation, temporality, uncertainty. - Exclude what isn't a problem. Drop
NEGATEDmentions (patient denies / no evidence of) andHYPOTHETICALmentions (conditional, not asserted). These must never land on the active list. - Cluster synonymous mentions into one concept. Fold surface variants (abbreviations, word order, lexical synonyms) to a single canonical key. Cheap normalization gets you started; SNOMED CT concept grounding is the robust path — run it out-of-process with the user's own license and key on the concept code, not the surface string.
- Assign status by aggregating context. A concept that is
RECENT/active anywhere (typically A&P) is active; one seen only asHISTORICAL("history of," "resolved," PMH-only) is resolved/historical. Active wins over historical when the same concept appears both ways. - Emit the reconciled list — one record per concept with status, mention count, and provenance offsets — shaped for USCDI Problem / FHIR Condition.
Hand-off to / from OpenMed
- From
extracting-clinical-entities: consumesanalyze_textDisease entities. Run on a sectioned note (segmenting-clinical-sections) for best active-vs-historical signal. - From
resolving-clinical-context: this skill depends on the negation / temporality / uncertainty axes — reconciliation without them would put "denies chest pain" on the active list. - OpenMed calls:
from openmed import analyze_textandfrom openmed.clinical import resolve_span_context, NEGATED, HISTORICAL, HYPOTHETICAL. - To FHIR / USCDI: each reconciled problem becomes a Condition with
clinicalStatusactive/resolved (from tempor
Preguntas frecuentes
¿Qué cuenta como la misma condición?
La skill agrupa sinónimos como DM2 y diabetes tipo 2 en una sola entrada.
¿Descarta las condiciones que el paciente niega?
Sí. Las menciones negadas se quitan de la lista de activas.
¿Necesita otro paso antes?
Sí. La skill se ejecuta después de la extracción de entidades y la resolución del contexto.
Detalles
Descripción original del autor
Deduplicate and reconcile OpenMed-extracted conditions into one clean active problem list with clinical status (active / resolved / historical). Use after NER and context resolution when the user wants a problem list, condition reconciliation, dedup of synonymous diagnosis mentions, or active-vs-resolved status from a note. Covers clustering synonymous mentions into one concept, excluding negated mentions, applying clinical context (historical / hypothetical / recent) to set status, and emitting a USCDI-Problem-shaped list. SNOMED CT concept grounding is user-supplied and out-of-process. Hand-
repo: maziyarpanahi/openmed
Popularidad
- Estrellas en GitHub
- 5,8 mil
- Posición en el ranking
- #14723
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
annotating-variants
5,8 milAyuda a tu agente a predecir qué hace una variante genética, convertir nombres HGVS en posiciones del genoma y añadir frecuencias poblacionales, usando anotadores públicos gratuitos.
ask-openmed
5,8 milAyuda a tu agente a elegir el flujo de trabajo de OpenMed adecuado para una petición de texto clínico, empezando siempre por una comprobación de privacidad si puede haber datos de pacientes.
assembling-fhir-bundles
5,8 milEmpaqueta varios registros de salud FHIR en un único Bundle de transacción listo para enviar a un EHR, con las referencias internas enlazadas correctamente.
auditing-deid-leakage
5,8 milBusca en texto clínico desidentificado restos de identificadores, como números de la seguridad social, de tarjeta, correos y fechas, y bloquea la publicación si queda alguno.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.