Skip to content

Fix incorrect age adjustment values in Charlson documentation#41

Merged
vvcb merged 2 commits into
mainfrom
copilot/fix-age-adjusted-comorbidity-score
Apr 13, 2026
Merged

Fix incorrect age adjustment values in Charlson documentation#41
vvcb merged 2 commits into
mainfrom
copilot/fix-age-adjusted-comorbidity-score

Conversation

Copilot AI commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

The Age Adjustment section in docs/calculators/charlson.md was off by one — it listed +1 for ages 40–49, +2 for 50–59, etc., contradicting the original Charlson publication and the actual implementation.

The code ((age - 40) // 10 clamped to 0–4) and tests were already correct; only the docs were wrong.

Changes

  • docs/calculators/charlson.md: Corrected age score table to reflect actual behaviour:
Age range Was (wrong) Now (correct)
40–49 +1 +0
50–59 +2 +1
60–69 +3 +2
70–79 +4 (grouped with 80+) +3
80+ +4 (grouped with 70+) +4

Copilot AI linked an issue Apr 13, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix age adjustment in comorbidity score calculation Fix incorrect age adjustment values in Charlson documentation Apr 13, 2026
Copilot AI requested a review from vvcb April 13, 2026 20:05
Copilot finished work on behalf of vvcb April 13, 2026 20:05
@vvcb vvcb marked this pull request as ready for review April 13, 2026 20:08
@vvcb vvcb merged commit 7524d0e into main Apr 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Age_adjusted_comorbidity_score

2 participants