Raf Score Calculator logo

Raf Score Calculator

Organization
Open-Medica
raf-score-calculator

Risk Adjustment Factor (RAF) score calculator with Hierarchical Condition Category (HCC) capture from encounter documentation for Medicare Advantage.

Overview

PublisherOpen-Medica
Repositoryopen-medical-skills
Skill nameraf-score-calculator
Stars
32
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Open-Medica on GitHub. Read the source before you install it.

Installation

Install the Raf Score Calculator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Open-Medica/open-medical-skills/tree/main/skills/raf-score-calculator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Open-Medica/open-medical-skills.git /tmp/open-medical-skills
mkdir -p .claude/skills
cp -r /tmp/open-medical-skills/skills/raf-score-calculator .claude/skills/raf-score-calculator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Raf Score Calculator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Raf Score Calculator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Raf Score Calculator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

RAF Score & HCC Calculator

A Risk Adjustment Factor (RAF) score calculator with Hierarchical Condition Category (HCC) capture from encounter documentation, purpose-built for Medicare Advantage risk adjustment workflows. The skill analyzes clinical notes to identify HCC-eligible diagnoses, maps ICD-10 codes to HCC categories using the CMS-HCC risk adjustment model, and calculates expected RAF scores for individual patients and panel-level projections.

Quick Install

bash
npx skills add Open-Medica/open-medical-skills --skill raf-score-calculator

What It Does

  • HCC condition identification: Scans encounter documentation and problem lists to identify diagnoses that map to HCC categories, flagging conditions that are documented but not coded and conditions that are coded but lack supporting documentation
  • ICD-10 to HCC mapping: Applies the current CMS-HCC risk adjustment model (V28) to translate ICD-10-CM diagnosis codes into their corresponding HCC categories, including hierarchical exclusions where higher-severity HCCs supersede lower ones
  • RAF score calculation: Computes individual patient RAF scores incorporating demographic factors (age, sex, Medicaid dual eligibility, institutional status), new enrollee status, and the additive risk coefficients for each captured HCC
  • Recapture gap analysis: Compares current-year HCC capture against prior-year conditions to identify chronic conditions (diabetes with complications, CKD, heart failure, COPD) that require annual re-documentation and recoding to maintain accurate risk scores
  • Panel-level analytics: Aggregates RAF scores across a patient panel to project expected revenue, identify high-risk patients due for annual wellness visits, and quantify the financial impact of documentation improvement initiatives

Clinical Use Cases

  • Annual wellness visit preparation: Before a Medicare Advantage patient's annual visit, the skill reviews the prior year's HCC profile and generates a suspect list of conditions requiring re-assessment and re-documentation (e.g., "Diabetes with chronic kidney disease, Stage 3 — last documented 14 months ago; recapture recommended")
  • Post-encounter documentation review: After a complex visit, the skill identifies HCC-eligible conditions that were discussed and managed but not captured in the assessment/plan, such as major depression that was addressed through medication refill but not listed as an active diagnosis
  • Value-based care reporting: A medical group participating in MA risk-sharing arrangements uses the skill to project RAF-based revenue for their patient panel and identify which clinics or providers have the largest recapture gaps
  • Coding accuracy validation: Compliance teams verify that submitted HCC codes are fully supported by clinical documentation, reducing risk of CMS RADV audit findings and potential payment recovery

Safety & Evidence

  • Safety Classification: Safe — The skill performs documentation analysis and risk score calculations without modifying patient records, submitting claims, or altering diagnoses. All HCC identifications and RAF projections are advisory outputs for review by qualified coding and clinical staff.
  • Evidence Level: Moderate — RAF score calculations follow CMS-HCC risk adjustment model specifications (currently V28). ICD-10 to HCC mappings use the official CMS crosswalk files. However, documentation interpretation and condition identification involve clinical judgment that the skill supports but does not replace.

Example Usage

Individual patient RAF analysis:

Calculate RAF score for:
Patient: 72-year-old female, community-dwelling, non-dual eligible
Active diagnoses:
- Type 2 diabetes with diabetic chronic kidney disease, stage 3 (E11.22)
- Major depressive disorder, recurrent, moderate (F33.1)
- COPD with acute exacerbation (J44.1)
- Essential hypertension (I10)
- Hypothyroidism (E03.9)

RAF Score Calculation (CMS-HCC V28):

DiagnosisICD-10HCCCoefficient
Diabetes w/ CKD Stage 3E11.22HCC 18 (Diabetes w/ Chronic Complications)0.302
Major Depression, RecurrentF33.1HCC 155 (Major Depression)0.309
COPD w/ Acute ExacerbationJ44.1HCC 112 (COPD)0.335
HypertensionI10No HCC mapping0.000
HypothyroidismE03.9No HCC mapping0.000

Demographic baseline (F, 72, community): 0.476 Disease HCC total: 0.946 Disease interactions: +0.121 Total RAF Score: 1.543

Note: Hypertension and hypothyroidism do not map to HCC categories under V28 but should remain documented for clinical accuracy.

Technical Details

  • Category: Administrative
  • Author: OMS Contributors
  • License: MIT
  • Version: 1.0.0
  • Specialty: Health Information Management, Value-Based Care

References

  • CMS-HCC Risk Adjustment Model, Version 28 (V28). Centers for Medicare & Medicaid Services.
  • CMS ICD-10-CM to HCC Crosswalk (annual release)
  • Pope GC, et al. "Risk adjustment of Medicare capitation payments using the CMS-HCC model." Health Care Financ Rev. 2004;25(4):119-141.
  • CMS Risk Adjustment Data Validation (RADV) audit methodology
  • 42 CFR Part 422, Subpart G — Medicare Advantage risk adjustment regulations

This skill is part of Open Medical Skills, a curated marketplace of medical AI skills maintained by physicians for physicians and the healthcare industry.

Frequently asked questions

What does the Raf Score Calculator AI skill do?

Risk Adjustment Factor (RAF) score calculator with Hierarchical Condition Category (HCC) capture from encounter documentation for Medicare Advantage.

Why use Raf Score Calculator on TypingMind?

Because you install it once and use it with any model. Raf Score Calculator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Raf Score Calculator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Open-Medica/open-medical-skills/tree/main/skills/raf-score-calculator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Raf Score Calculator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Raf Score Calculator?

As many as you like. As long as a model supports skills, you can use Raf Score Calculator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Raf Score Calculator AI skill free?

Yes. It is published on GitHub by Open-Medica under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇