본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트5.8k · #14685

computing-ecqms

하는 일

이 스킬은 전자 임상 품질 지표를 계산하는 작업을 돕습니다. 이 지표는 건강 데이터를 바탕으로 진료의 질을 평가합니다. 노트에서 가져온 사실로 구조화된 코드가 놓치는 진료를 포착합니다. 건강 지표를 다루는 품질 팀과 분석가를 위한 스킬입니다.

사용하는 경우

  • ✓지표 계산에 필요한 근거 대부분이 임상 노트에 있을 때.
  • ✓지표의 분자나 유효한 제외 대상이 자유 텍스트에만 있어 과소 집계될 때.
  • ✓구조화된 코드로 잡히지 않는 문서 공백을 찾고 싶을 때.

스킬 링크

https://github.com/maziyarpanahi/openmed/blob/master/skills/computing-ecqms/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/maziyarpanahi/openmed/blob/master/skills/computing-ecqms/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“우리 당뇨 품질 지표가 상담을 받은 환자를 과소 집계하고 있습니다. 상담 내용은 노트에만 있습니다. 이를 포착하도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 비식별화된 노트에서 관련 사실을 추출하고, 이를 지표의 분자와 제외 논리에 대응시킨 다음, 인증된 지표 엔진에 전달합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Computing eCQMs

Electronic Clinical Quality Measures (eCQMs) are computed over structured data using CQL (Clinical Quality Language) logic against the QDM (Quality Data Model). Much of what a measure needs — a counseling note, a reason a service wasn't done, a symptom — lives only in free text. This skill uses OpenMed to lift those facts out of notes (on-device) and feed them into measure computation so numerators and valid exclusions aren't undercounted.

When to use this skill

When structured codes under-capture a measure population and the evidence is in notes: documented exclusions ("patient declined screening"), numerator-relevant findings, or symptoms gating a measure. Use it alongside a certified measure engine — OpenMed supplements capture; it does not compute or certify the measure.

eCQM anatomy (what you're populating)

Population Meaning Where OpenMed helps
IPP (Initial Population) everyone the measure could apply to usually structured (encounters, age)
Denominator IPP meeting base criteria mostly structured
Denominator Exclusion / Exception valid reasons to remove from denom notes: "declined", "medical reason", "not indicated"
Numerator met the quality action notes: counseling delivered, advice given, status documented

Quick start

import openmed

note = (
    "Tobacco use screened today; patient is a current every-day smoker. "
    "Cessation counseling provided and cessation medication offered."
)

result = openmed.analyze_text(note, output_format="dict")
# entities -> {text, label, confidence, start, end}

# Lift two measure-relevant facts (illustrative, for a tobacco-screening eCQM):
facts = {
    "tobacco_status_documented": any(e["label"] in {"smoking_status", "tobacco_use"}
                                     for e in result["entities"]),
    "cessation_intervention_documented": "counseling" in note.lower(),
}
# These become QDM data elements your CQL references (see workflow).

Pick the model whose labels match the measure concept (choosing-openmed-models) and code spans to value-set vocabularies via the linking skills before they enter QDM.

Workflow

  1. Read the measure. Get the human-readable spec + CQL + value sets from ECQI / MADiE. Identify which populations depend on documentation that structured data misses.
  2. De-identify. Run openmed.deidentify on notes before any logging or storage; keep the measure keyed by internal patient ids.
  3. Extract facts. openmed.analyze_text for the concepts the measure needs (status, intervention, reason-not-done). Use resolving-clinical-context to drop negated/hypothetical/family-history mentions — a negated exclusion is not an exclusion.
  4. Code to value sets. Map entities to the codes the measure's value sets expect (SNOMED/LOINC/RxNorm via the linking skills). QDM data elements are defined by code membership, not raw strings.
  5. Materialize QDM data elements. Turn coded, dated facts into QDM elements (e.g. Assessment, Performed, Intervention, Performed, Diagnosis) with the right author/relevant dates (building-patient-timelines).
  6. Compute with CQL. Feed the structured + note-derived QDM into a certified CQL engine (e.g. the open-source cqframework engine). OpenMed does not execute CQL.
  7. Reconcile & audit. Track which population members were added by note-derived facts and at what confidence, so QA can review.

Hand-off to / from OpenMed

  • From OpenMed: analyze_text entities + clinical temporality + the linking skills (to land facts in the measure's value sets) + deidentify upstream.
  • To measure tooling: materialized QDM data elements feed a CQL engine and MADiE test decks. Note-derived QDM can also originate from etl-to-omop-cdm rows if you compute measures on an OMOP store instead.

Edge cases & gotchas

  • OpenMed supplements, it does not certify. Measure scoring must run in a validated CQL engine. Treat note-derived facts as additional evidence subject to review, not as authoritative measure results.
  • Negation flips meaning. "Screening declined" is an exclusion; "screening not declined" / "no contraindication" is the opposite. Always run the temporality/negation pass before counting.
  • Dates drive measurement periods. A fact only counts if its relevant date falls in the measurement period
자주 묻는 질문

지표를 인증하나요?

아니요. 데이터 포착을 보완하며, 인증된 지표 엔진과 함께 작동합니다.

지표를 직접 계산하나요?

아니요. 지표 계산은 CQL 논리를 사용하는 지표 엔진이 수행합니다.

어떤 데이터를 사용하나요?

구조화된 건강 데이터와 노트의 사실을 사용하며, 노트 처리는 기기에서 이루어집니다.

상세 정보

작성자의 원본 설명

Compute electronic clinical quality measures (eCQMs) over structured data using CQL/QDM logic, lifting note-derived numerator and exclusion facts from OpenMed to improve measure capture. Use when the user wants to compute an eCQM, evaluate a CMS/ECQI quality measure, improve numerator capture from clinical notes, build CQL/QDM measure logic, or close documentation gaps that structured codes miss. Covers eCQM structure (IPP/denominator/numerator/exclusions), CQL v1.5 and QDM v5.6, MADiE authoring, and mapping OpenMed entities to QDM data elements. Consumes OpenMed analyze_text facts (coded via

repo: maziyarpanahi/openmed

인기도

GitHub 스타
5.8k
순위
#14685
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬