computing-ecqms
하는 일
이 스킬은 전자 임상 품질 지표를 계산하는 작업을 돕습니다. 이 지표는 건강 데이터를 바탕으로 진료의 질을 평가합니다. 노트에서 가져온 사실로 구조화된 코드가 놓치는 진료를 포착합니다. 건강 지표를 다루는 품질 팀과 분석가를 위한 스킬입니다.
사용하는 경우
- ✓지표 계산에 필요한 근거 대부분이 임상 노트에 있을 때.
- ✓지표의 분자나 유효한 제외 대상이 자유 텍스트에만 있어 과소 집계될 때.
- ✓구조화된 코드로 잡히지 않는 문서 공백을 찾고 싶을 때.
스킬 링크
https://github.com/maziyarpanahi/openmed/blob/master/skills/computing-ecqms/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- Read the measure. Get the human-readable spec + CQL + value sets from ECQI / MADiE. Identify which populations depend on documentation that structured data misses.
- De-identify. Run
openmed.deidentifyon notes before any logging or storage; keep the measure keyed by internal patient ids. - Extract facts.
openmed.analyze_textfor the concepts the measure needs (status, intervention, reason-not-done). Useresolving-clinical-contextto drop negated/hypothetical/family-history mentions — a negated exclusion is not an exclusion. - 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.
- 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). - Compute with CQL. Feed the structured + note-derived QDM into a
certified CQL engine (e.g. the open-source
cqframeworkengine). OpenMed does not execute CQL. - 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_textentities +clinicaltemporality + the linking skills (to land facts in the measure's value sets) +deidentifyupstream. - 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-cdmrows 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.
댓글
- …
이 저장소의 다른 스킬
annotating-variants
5.8k에이전트가 유전 변이의 효과를 예측하고, HGVS 이름을 게놈 위치로 바꾸고, 무료 공개 주석 도구를 사용해 인구 빈도를 붙이도록 돕습니다.
ask-openmed
5.8k에이전트가 임상 텍스트 요청에 맞는 OpenMed 워크플로를 고르도록 돕되, 환자 데이터가 있을 수 있으면 먼저 개인 정보 확인을 거치게 합니다.
assembling-fhir-bundles
5.8k여러 FHIR 건강 기록을 EHR로 보낼 수 있도록 하나의 트랜잭션 Bundle로 묶고, 내부 참조를 올바르게 연결하도록 에이전트를 돕습니다.
auditing-deid-leakage
5.8k비식별화된 임상 텍스트에 남은 SSN, 카드 번호, 이메일, 날짜 같은 식별자를 검사하고, 남은 것이 있으면 공개를 막도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.