PyCVDRisk

Cardiovascular risk scores from across the world, implemented in Python with scientific accuracy

Fast, vectorised implementations of 49 published risk scores from the Americas, Europe, the Middle East and the Asia-Pacific region, each reproduced from its original publication and compared with every reference available.

Read the paper
PyCVDRisk logo

49

published risk scores

92

models within them

23

scores verified against the developers' software, or an independent package and the developers' material, in whole

129

comparisons with references (72 executable, 57 fixed)

How each score is verified

A risk score is only as trustworthy as its transcription. Every score passes the first two stages, and the third wherever an independent implementation exists. Each ships a verification report that records what was compared and what was found.

  1. Stage 1

    Transcribed from the source

    Every coefficient, baseline survival and point table is taken from the original publication or its supplement, and the code cites the table or line it came from.

  2. Stage 2

    Checked against the paper

    Each implementation reproduces the worked examples, printed tables and risk charts its paper provides. Errors found in the publications are documented in the verification report rather than silently corrected.

  3. Stage 3

    Verified independently

    Where an independent implementation exists (the authors' own code or spreadsheet, official charts, or an established R package), outputs are compared directly, across thousands of simulated patients wherever the reference can be run.

On each score below, Reference-verified means the developers' own code or calculator agrees for the whole score, or an independent package and the developers' charts, tables or rules both agree; Paper-checked means the score rests on the developers' published material alone, or on a reference that covers part of it.

The risk scores

49 scores, grouped by clinical setting. Each page gives the source publication, the verification evidence and a runnable example.

Primary prevention

SCORE2 risk regions (ESC Figure 5) on a satellite map: green low, yellow moderate, orange high, red very high
EuropeReference-verified

SCORE2

2021 BC

10-year fatal and non-fatal CVD, ages 40-69, four ESC risk regions

Older couple walking
EuropeReference-verified

SCORE2-OP

2021 BC

10-year fatal and non-fatal CVD, ages 70-89, adjusted for competing risk

Asia from orbit (NASA)
Asia-PacificReference-verified

SCORE2 Asia-Pacific

2024 BC

10-year fatal and non-fatal CVD, ages 40-69, four Asia-Pacific risk regions

The 11 countries of the 12 SCORE cohorts (Conroy 2003) on a satellite map
EuropePaper-checked

SCORE

2003 C

10-year fatal CVD, total-cholesterol model, high- and low-risk regions

The Blue Marble, Apollo 17
Global, 182 countriesReference-verified

Globorisk

2015-2017 A

10-year CVD risk recalibrated to each country and calendar year

The WHO flag
Global, 21 regions / 190 countriesPaper-checked

WHO 2019

2019 BC

10-year fatal and non-fatal CVD, laboratory and non-laboratory versions

The flag of the United States
United StatesReference-verified

PREVENT

2024 ABC

10- and 30-year total CVD, ASCVD, heart failure, CHD and stroke; base, UACR, HbA1c, SDI and full models

Three generations of a family
United StatesReference-verified

Pooled Cohort Equations

2013 BC

10-year hard ASCVD, ages 40-79, white and African American

Framingham town-line sign (illustration)
Framingham, MassachusettsReference-verified

Framingham

2008 ABC

10-year general CVD, laboratory and BMI versions

A blood sample, as drawn for hsCRP
United States (Boston)Paper-checked

Reynolds

2007-2008 AC

10-year CVD risk with hsCRP and parental history

The flag of the United Kingdom
United KingdomReference-verified

QRISK3

2017 AB

10-year CVD risk with ethnicity, deprivation and clinical conditions

NHS sign, Lewisham Hospital, London
United KingdomReference-verified

QRISK2

2014 AB

10-year CVD risk with ethnicity, deprivation and clinical conditions

The flag of Finland
FinlandReference-verified

FINRISKI 2.0

2020 AC

10-year CHD, stroke and combined risk, ages 30-74

Burj Al Arab, Dubai
United Arab EmiratesPaper-checked

ADRS

2024 C

10-year ASCVD, hard CAD and stroke, ages 18+

Brandenburg Gate, Berlin
GermanyPaper-checked

PROCAM

2007 C

10-year major coronary event category (men and women 20-75) and ischaemic stroke/TIA risk (35-65)

The flag of Spain
SpainPaper-checked

REGICOR

2003 C

10-year coronary events, ages 35-74

The flag of New Zealand, Auckland Airport
New ZealandPaper-checked

PREDICT

2018-2022 AC

5-year CVD (primary prevention, BMI, policy, type 2 diabetes), major bleeding, after CVD and after ACS

Hourglasses
EuropePaper-checked

LIFE-CVD2

2024 C

Lifetime risk to 80, CVD-free life expectancy and treatment benefit

NHS sign, Lewisham Hospital, London
ScotlandReference-verified

ASSIGN

2007-2025 AC

10-year CVD risk with social deprivation (SIMD) and family history, ages 30-74

The Blue Marble, Apollo 17
ItalyReference-verified

CUORE

2007 AC

10-year first major CVD event, ages 35-69

Asia from orbit (NASA)
ChinaPaper-checked

China-PAR

2016 AC

10-year first ASCVD event (MI, CHD death, stroke) with waist, region and urbanisation

National Cerebral and Cardiovascular Center, Suita, Osaka (home of the Suita Study)
JapanPaper-checked

Suita

2014 BC

10-year CHD points with CKD, total- or LDL-cholesterol sheet

Expo '70 Commemorative Park, Suita, Osaka
JapanPaper-checked

Suita CVD

2020 BC

10-year stroke or CHD points, with and without ECG

Mount Tomidake, Hisayama, Fukuoka
JapanPaper-checked

Hisayama

2022 ABC

10-year first ASCVD event (CHD or atherothrombotic infarction), ages 40-84; equation and point score

Mount Fuji at sunset
JapanPaper-checked

EPOCH-JAPAN

2021 BC

10-year death from CHD, stroke or CVD, ages 40-79

The flag of Japan
JapanPaper-checked

JALS

2019 BC

5- and 10-year stroke, AMI, stroke + AMI and CVD death, with and without AF; points (risk via jals_risk)

The WHO flag
Global, 14 WHO subregionsReference-verified

WHO/ISH

2007 BC

10-year fatal and non-fatal CVD risk band, with and without cholesterol

Coronary calcium on a cardiac CT scan (Agatston score), cropped
United States (multi-ethnic)Paper-checked

MESA CHD

2015 C

10-year coronary heart disease, ages 45-85, four ethnic groups, optional CAC score

The flag of the United States
United StatesReference-verified

Revised PCE

2018 AC

10-year ASCVD in black and white adults, ages 40-79, re-estimated in six cohorts

South America from orbit (NASA Blue Marble)
Latin America and the Caribbean, 31 countriesReference-verified

Globorisk-LAC

2022 AC

10-year fatal and non-fatal CVD, ages 40-74, laboratory and office versions

Flag of the People's Republic of China
ChinaPaper-checked

China ASCVD flowchart

2023 C

ASCVD risk level (low to ultra-high) from the guideline flowchart, with lifetime-risk step

Flag of Singapore
SingaporePaper-checked

SG-FRS-2023

2023 C

10-year CHD in Chinese, Malay and Indian adults, ages 20-79; equation and point score

Diabetes, kidney disease, established CVD and atrial fibrillation

Acute chest pain and coronary syndromes

Quick start

pip install cvd-risk

from cvd_risk import score2

score2(age=[50, 62], sex=["male", "female"], smoker=[1, 0], sbp=[140, 130],
       total_chol=[5.5, 6.1], hdl_chol=[1.3, 1.6], diabetes=0, region="low")
# array([0.0591, 0.0379])   10-year risk as a fraction

All scores share one API: the same argument names and units (cholesterol in mmol/L, blood pressure in mmHg), any argument may be an array, risks are returned as fractions in [0, 1], and invalid inputs return NaN rather than being silently clamped.