comorbidity-score

Compute CCI and Elixhauser scores from ICD-9/10 hospital admission data.

40|17|Updated Oct 27, 2025
One-click install
npx skills add https://github.com/hannesill/m4 --skill comorbidity-score
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comorbidity-score
Source: https://github.com/hannesill/m4/tree/main/src/m4/skills/clinical/comorbidity-score
Command: npx skills add https://github.com/hannesill/m4 --skill comorbidity-score

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Calculates Charlson Comorbidity Index (CCI) and Elixhauser Comorbidity Index for hospital admissions to enable risk adjustment, cohort characterization, and mortality analyses.

Core Features & Use Cases

  • Computes CCI and Elixhauser scores using Quan 2005 ICD-9/ICD-10 mappings.
  • Outputs include charlson_comorbidity_index, age_score, and binary flags for 17 conditions, plus 31 Elixhauser flags with van Walraven weighting.
  • Use cases include risk adjustment in outcome studies, mortality risk prediction, and cross-dataset comorbidity profiling.

Quick Start

Compute Charlson and Elixhauser scores for admissions in your dataset using Quan 2005 ICD mappings.

Frequently Asked Questions about comorbidity-score

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate Charlson Comorbidity Index and Elixhauser scores for hospital admissions?

Calculate Charlson Comorbidity Index and Elixhauser scores by applying Quan 2005 ICD-9-CM and ICD-10-CM mappings to hospital admission data. Outputs include total CCI, age components, and 31 Elixhauser flags with van Walraven weights for risk adjustment.

What is the difference between CCI and Elixhauser comorbidity indices for mortality prediction?

CCI and Elixhauser comorbidity indices differ in scope: CCI produces a weighted total score with 17 condition flags and an age component, while Elixhauser generates 31 binary condition flags with van Walraven weights for broader cohort characterization.

How do I map ICD-9 to ICD-10 codes for comorbidity risk adjustment?

Map ICD-9 to ICD-10 codes for comorbidity risk adjustment using Quan 2005 mapping rules. This skill applies ICD-9-CM and ICD-10-CM mappings across datasets and time windows to compute CCI and Elixhauser scores consistently.

Can I use Elixhauser and Charlson scores across different datasets and time windows?

Yes, apply Elixhauser and Charlson scores across different datasets and time windows. The skill computes both indices using ICD-9-CM and ICD-10-CM codes, supporting cross-dataset comorbidity profiling and longitudinal risk adjustment.

What outputs do I get when computing Elixhauser comorbidity scores?

Outputs from computing Elixhauser comorbidity scores include 31 binary condition flags with van Walraven weights, while CCI outputs include the total Charlson score, age score, and 17 condition flags for mortality prediction and cohort characterization.

Does this comorbidity scoring tool support both ICD-9-CM and ICD-10-CM code inputs?

Yes, this comorbidity scoring tool supports both ICD-9-CM and ICD-10-CM code inputs. It applies Quan 2005 mappings to calculate Charlson and Elixhauser scores, enabling risk adjustment across datasets that use different ICD coding standards.