coding-hcc-risk-adjustment
하는 일
이 스킬은 임상 노트에 있는 만성 질환을 CMS-HCC 위험 보정 범주에 대응시키고 위험 점수를 추정합니다. 코더와 임상의를 위한 의사 결정 지원이며, 각 결과는 사람이 검토해야 합니다.
사용하는 경우
- ✓노트에는 있지만 코딩된 문제 목록에는 없는 위험 보정 대상 진단을 찾고 싶을 때.
- ✓ICD-10-CM 코드를 CMS-HCC V28 범주에 대응시켜야 할 때.
- ✓진단이 충분한 문서 근거가 있는지 확인하고 싶을 때.
스킬 링크
https://github.com/maziyarpanahi/openmed/blob/master/skills/coding-hcc-risk-adjustment/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 방문 노트에서 위험 보정에 해당할 수 있지만 코딩된 문제 목록에 빠져 있는 만성 질환을 찾아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 질환을 추출하고, 공개 CMS-HCC 범주에 대응시키고, 계층 규칙을 적용한 뒤, 각 후보를 이를 뒷받침하거나 뒷받침하지 못하는 문서와 함께 나열합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Mapping conditions to CMS-HCC V28 and estimating RAF
Surface and risk-adjust the chronic conditions OpenMed extracts by mapping them to CMS-HCC categories (the V28 model, phasing in for payment years 2024–2026) and estimating a RAF (Risk Adjustment Factor) score. CMS pays Medicare Advantage plans based on RAF, so accurate, documented capture of chronic disease matters — and much of that signal lives in the narrative note, exactly what OpenMed reads.
This is decision support for coders/clinicians, not autonomous coding. The output is "candidate HCCs + estimated RAF + the documentation that supports (or fails to support) each one," for human validation.
CMS-HCC crosswalks (ICD-10-CM → HCC) and the category coefficients are public — CMS publishes them annually. Nothing restricted is bundled.
When to use
- You want to find risk-adjustable diagnoses mentioned in a note that may not be on the coded problem list ("suspect HCCs" / recapture).
- You need to map ICD-10-CM codes to V28 HCCs and apply the hierarchy.
- You want an estimated RAF for a patient or panel for review.
- You need to check whether a diagnosis has MEAT support (Monitored, Evaluated, Assessed, Treated) in the documentation.
Pairs with coding-icd10 (you need ICD-10-CM codes first) and may consume
mapping-to-snomed output upstream.
Quick start (public CMS crosswalk + coefficients)
CMS publishes the V28 ICD-10-CM→HCC mapping and the model coefficients. Load them locally (public files) and apply the model:
import csv
# 1) ICD-10-CM -> HCC (V28) crosswalk from the CMS Risk Adjustment files.
icd_to_hcc = {} # "E1122" -> "HCC38" (Diabetes w/ complication)
with open("cms_hcc_v28_icd_map.csv") as fh:
for row in csv.DictReader(fh):
icd_to_hcc[row["icd10cm"].replace(".", "")] = row["hcc_v28"]
# 2) HCC -> RAF coefficient for the relevant model segment (e.g. CNA community).
hcc_weight = {} # "HCC38" -> 0.166 (illustrative)
with open("cms_hcc_v28_coefficients.csv") as fh:
for row in csv.DictReader(fh):
hcc_weight[row["hcc"]] = float(row["coefficient"])
# 3) Apply the HCC hierarchy: a more severe HCC in a family suppresses milder
# ones (e.g. acute MI suppresses angina). Load the hierarchy from CMS.
hierarchy = { # parent HCC -> HCCs it zeroes out
# "HCC37": {"HCC38"}, # illustrative; use the official V28 hierarchy file
}
def apply_hierarchy(hccs: set[str]) -> set[str]:
kept = set(hccs)
for parent in hccs:
kept -= hierarchy.get(parent, set())
return kept
def estimate_raf(icd_codes: list[str], demo_factor: float = 0.0) -> dict:
hccs = {icd_to_hcc[c] for c in icd_codes if c in icd_to_hcc}
hccs = apply_hierarchy(hccs)
disease_raf = sum(hcc_weight.get(h, 0.0) for h in hccs)
return {"hccs": sorted(hccs),
"disease_raf": round(disease_raf, 3),
"estimated_raf": round(disease_raf + demo_factor, 3)}
The demo_factor (age/sex, dual/disability, institutional status) comes from the
CMS demographic tables — add it for a full RAF; omit for the disease component.
Workflow
- Extract condition spans with OpenMed (Disease/Pathology/Oncology models).
- Code each to ICD-10-CM (see
coding-icd10) — HCCs key off ICD-10-CM. - Map ICD-10-CM → V28 HCC via the CMS crosswalk.
- Apply the hierarchy so only the most severe HCC in each family counts.
- Sum coefficients for the correct model segment + add the demographic factor to estimate RAF.
- Attach MEAT evidence: for each candidate HCC, cite the note text that Monitors/Evaluates/Assesses/Treats the condition. No MEAT → flag as "unsupported / needs clinician confirmation," not a captured HCC.
- Emit candidate HCCs + estimated RAF + supporting offsets for human review.
Hand-off from OpenMed
openmed.analyze_text(..., output_format="dict") returns entities, each a dict
with text, label, confidence, start, end. Use the offsets to pull MEAT
evidence sentences:
import openmed
note = ("Problem list: type 2 diabetes with diabetic nephropathy; COPD. "
"Plan: continue metformin, ordered HbA1c, refer nephrology.")
result = openmed.analyze_text(
note,
model_name="disease_detection_superclinical", # Disease category
output_format="dict",
)
DX_LABELS = {"DISEASE", "CONDITION", "PATHOLOGY"}
suspects = []
for ent in re
자주 묻는 질문
청구 코드를 자동으로 붙이나요?
아니요. 의사 결정을 돕는 도구이며, 사람이 각 후보 코드를 검증합니다.
제한된 데이터를 쓰나요?
아니요. 공개 CMS 대응표와 계수를 사용합니다.
문서 근거를 확인하나요?
네. 진단에 모니터링, 평가, 사정, 치료 문서가 있는지 확인할 수 있습니다.
상세 정보
작성자의 원본 설명
Maps chronic conditions extracted by OpenMed to CMS-HCC V28 risk-adjustment categories and estimates a RAF (Risk Adjustment Factor) score as decision support. Use when the user wants to surface risk-adjustable diagnoses from notes, map ICD-10-CM codes to HCC categories, estimate or reconcile a patient/panel RAF, find suspected-but-undocumented HCCs, or check MEAT documentation support. Trigger keywords: HCC, CMS-HCC, V28, RAF score, risk adjustment, Medicare Advantage, hierarchical condition category, MEAT, recapture, suspect HCC, RADV. Pairs after OpenMed NER + ICD-10 coding: consume Disease/
repo: maziyarpanahi/openmed
인기도
- GitHub 스타
- 5.8k
- 순위
- #14683
- 라이선스
- 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을 출력하도록 돕습니다.