Cardiovascular risk stratification for hypertension, implementing the Korean Society of Hypertension (KSH) 2026 guideline — Table 10 (risk factors), Table 11 (risk strata) and Table 13 (blood pressure targets), Recommendations 8–13.
대한고혈압학회 2026 진료지침 기반 심뇌혈관 위험도 분류 계산기.
Live: https://tipcode-cpu.github.io/htn-risk/
Available in Korean and English — switch with the 한국어 / EN buttons at the top right. The choice is stored on the device.
Enter sex, age and blood pressure; everything else is optional. Any laboratory value you enter is computed and folded into the risk factor count automatically:
| Input | Computed | Applied as |
|---|---|---|
| Height, weight | BMI | Obesity risk factor at BMI ≥25 |
| TC, HDL-C, TG | LDL-C (Sampson/NIH; Martin-Hopkins shown for comparison) | Dyslipidaemia risk factor |
| HbA1c | Diabetes / prediabetes | 2 or 1 risk factors |
| Serum creatinine | eGFR (CKD-EPI 2021, race-free) | Clinical CKD at eGFR <60 |
| Urine albumin, creatinine | UACR | Microalbuminuria → organ damage; >300 → clinical CKD |
Output is the risk group, the applicable blood pressure target, when to start drug therapy, and the Table 11 matrix with the patient's cell highlighted.
- Implements the Korean guideline. Obesity (BMI ≥25) and abdominal obesity (waist ≥90 cm men, ≥85 cm women) use Asia-Pacific criteria and differ from ESC and AHA definitions. Read the risk strata with that in mind.
- Laboratory values are entered in conventional units (mg/dL). SI units are not currently supported.
- Borderline cells in Table 11 (printed as "or") are resolved to a single risk group using the guideline text; the table still shows the original range.
- Clinical decision support only. The treating clinician makes the final call.
| File | Guideline | Live |
|---|---|---|
index.html |
KSH 2026 — hypertension CV risk | /htn-risk/ |
ckd-risk-calculator.html |
KSH 2026 + KDIGO 2024 CKD / 2021 BP | /ckd-risk-calculator.html |
lipid-risk-calculator.html |
KSoLA 2026 — dyslipidaemia, LDL target, drug choice | /lipid-risk-calculator.html |
cardio-risk-calculator.html |
KSH 2026 + KSoLA 2026 combined | /cardio-risk-calculator.html |
ckd-risk-calculator.html keeps this hypertension calculator intact and adds a KDIGO layer on top:
KDIGO staging with the GFR/albuminuria heat map, blood pressure targets from KSH, KDIGO and ESC shown
side by side rather than merged, antihypertensive suitability by class on a four-level scale, SGLT2
inhibitors and finerenone in a separate layer (they are not antihypertensives), the kidney failure risk
equation restricted to G3–G5, and a safety checklist.
It is built by anchored substitution from index.html — see build/ckd/build_ckd.py and
HANDOFF-ckd-risk.md. Drug thresholds follow US FDA labelling and were not checked against Korean
MFDS labelling; the KFRE coefficients came from a secondary source and should be cross-checked against
kidneyfailurerisk.com before clinical use. Both limitations are stated in the tool itself.
Single self-contained HTML file — no build, no server, no dependencies.
Open index.html, or install it from the live URL as a PWA
(Share → Add to Home Screen on iOS; ⋮ → Install on Android Chrome).
It works offline once loaded. No data leaves the device.
Open index.html#test and check the console to run the built-in self-check.
All user-facing strings live in the I18N object at the top of the script, with
ko and en side by side. The calculation logic is language-independent — when
the guideline changes, update the numbers in the logic and both language entries.