68trust / 100
Calc Vacs Cci
by magent in Productivity & SaaS
x402 APIPassing, checked 51 min ago
McGinnis 2024 VACS-CCI Table 2 Model 7 linear predictor from sex, age, hemoglobin, FIB-4, eGFR, albumin, WBC, BMI, hepatitis C, and caller-assigned Charlson groupings. CCI group is those weights (0/1/2/3+) times age band. The 0-100 score needs unpublished development min/max Xbeta; magent does not invent it. Paper prints score 30 to 1/3/8/18% and 45 to 6/14/35/61% at 1/2/5/10 years. Not a diagnosis or individual prognosis. magent does not code the chart.
POST https://api.magentlab.com/api/calc/vacs_cci
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 173 ms typical, 343 ms slowest 5%
- Last check
- 51 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/vacs_cci" \
-H "content-type: application/json" \
-d '{"items":[{"age":55,"albumin_g_dl":4,"any_malignancy":false,"bmi_kg_m2":25,"cerebrovascular_disease":false,"chronic_pulmonary_disease":false,"congestive_heart_failure":false,"dementia":false,"diabetes_with_complications":false,"diabetes_without_complications":false,"egfr_ml_min_1_73m2":90,"fib4":1,"hemiplegia_or_paraplegia":false,"hemoglobin_g_dl":14,"hepatitis_c":false,"kidney_mild_to_moderate":false,"kidney_severe":false,"liver_mild":false,"liver_moderate_to_severe":false,"metastatic_solid_tumor":false,"myocardial_infarction":false,"peptic_ulcer_disease":false,"peripheral_vascular_disease":false,"rheumatic_disease":false,"sex":"male","wbc_10e9_l":4},{"age":55,"albumin_g_dl":4,"any_malignancy":false,"bmi_kg_m2":25,"cerebrovascular_disease":false,"chronic_pulmonary_disease":false,"congestive_heart_failure":false,"dementia":false,"diabetes_with_complications":false,"diabetes_without_complications":false,"egfr_ml_min_1_73m2":90,"fib4":1,"hemiplegia_or_paraplegia":false,"hemoglobin_g_dl":14,"hepatitis_c":false,"kidney_mild_to_moderate":false,"kidney_severe":false,"liver_mild":false,"liver_moderate_to_severe":false,"metastatic_solid_tumor":false,"myocardial_infarction":false,"peptic_ulcer_disease":false,"peripheral_vascular_disease":false,"rheumatic_disease":false,"sex":"male","wbc_10e9_l":4}]}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fvacs_cci
const res = await pay("https://api.magentlab.com/api/calc/vacs_cci", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"age":55,"albumin_g_dl":4,"any_malignancy":false,"bmi_kg_m2":25,"cerebrovascular_disease":false,"chronic_pulmonary_disease":false,"congestive_heart_failure":false,"dementia":false,"diabetes_with_complications":false,"diabetes_without_complications":false,"egfr_ml_min_1_73m2":90,"fib4":1,"hemiplegia_or_paraplegia":false,"hemoglobin_g_dl":14,"hepatitis_c":false,"kidney_mild_to_moderate":false,"kidney_severe":false,"liver_mild":false,"liver_moderate_to_severe":false,"metastatic_solid_tumor":false,"myocardial_infarction":false,"peptic_ulcer_disease":false,"peripheral_vascular_disease":false,"rheumatic_disease":false,"sex":"male","wbc_10e9_l":4},{"age":55,"albumin_g_dl":4,"any_malignancy":false,"bmi_kg_m2":25,"cerebrovascular_disease":false,"chronic_pulmonary_disease":false,"congestive_heart_failure":false,"dementia":false,"diabetes_with_complications":false,"diabetes_without_complications":false,"egfr_ml_min_1_73m2":90,"fib4":1,"hemiplegia_or_paraplegia":false,"hemoglobin_g_dl":14,"hepatitis_c":false,"kidney_mild_to_moderate":false,"kidney_severe":false,"liver_mild":false,"liver_moderate_to_severe":false,"metastatic_solid_tumor":false,"myocardial_infarction":false,"peptic_ulcer_disease":false,"peripheral_vascular_disease":false,"rheumatic_disease":false,"sex":"male","wbc_10e9_l":4}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"age": 55,
"albumin_g_dl": 4,
"any_malignancy": false,
"bmi_kg_m2": 25,
"cerebrovascular_disease": false,
"chronic_pulmonary_disease": false,
"congestive_heart_failure": false,
"dementia": false,
"diabetes_with_complications": false,
"diabetes_without_complications": false,
"egfr_ml_min_1_73m2": 90,
"fib4": 1,
"hemiplegia_or_paraplegia": false,
"hemoglobin_g_dl": 14,
"hepatitis_c": false,
"kidney_mild_to_moderate": false,
"kidney_severe": false,
"liver_mild": false,
"liver_moderate_to_severe": false,
"metastatic_solid_tumor": false,
"myocardial_infarction": false,
"peptic_ulcer_disease": false,
"peripheral_vascular_disease": false,
"rheumatic_disease": false,
"sex": "male",
"wbc_10e9_l": 4
},
{
"age": 55,
"albumin_g_dl": 4,
"any_malignancy": false,
"bmi_kg_m2": 25,
"cerebrovascular_disease": false,
"chronic_pulmonary_disease": false,
"congestive_heart_failure": false,
"dementia": false,
"diabetes_with_complications": false,
"diabetes_without_complications": false,
"egfr_ml_min_1_73m2": 90,
"fib4": 1,
"hemiplegia_or_paraplegia": false,
"hemoglobin_g_dl": 14,
"hepatitis_c": false,
"kidney_mild_to_moderate": false,
"kidney_severe": false,
"liver_mild": false,
"liver_moderate_to_severe": false,
"metastatic_solid_tumor": false,
"myocardial_infarction": false,
"peptic_ulcer_disease": false,
"peripheral_vascular_disease": false,
"rheumatic_disease": false,
"sex": "male",
"wbc_10e9_l": 4
}
]
}Example output
{
"count": 2,
"items": [
{
"age": 55,
"age_band": "50_64",
"albumin_g_dl": 4,
"any_malignancy": false,
"bmi_kg_m2": 25,
"cci_group": "0",
"cci_score": 0,
"cerebrovascular_disease": false,
"chronic_pulmonary_disease": false,
"citation": {
"authors": "McGinnis KA, Justice AC, Marconi VC, et al.",
"doi": "10.3389/fmed.2023.1342466",
"id": "mcginnis-2024-vacs-cci",
"pmid": "38356736",
"source": "Front Med (Lausanne). 2024;10:1342466",
"title": "Combining Charlson comorbidity and VACS indices improves prognostic accuracy for all-cause mortality for patients with and without HIV in the Veterans Health Administration"
},
"congestive_heart_failure": false,
"dementia": false,
"diabetes_with_complications": false,
"diabetes_without_complications": false,
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"egfr_ml_min_1_73m2": 90,
"fib4": 1,
"formula": "vacs_cci",
"formula_expression": "lp = sex_female -0.513 + age_poly(X=age-50, 0.278/0.006/-0.001) + hb_poly(X=hemoglobin-14, -0.115/0.024/0.004) + fib4_poly(X, 0.205/-0.006) + egfr_poly(X=egfr-90, 0.071/0.036/0.002) + alb_poly(X=albumin-4, -0.405/0.326/0.156) + wbc_poly(X=WBC-4, -0.011/0.053/-0.008/0.000) + bmi_poly(X=BMI-25, -0.061/0.005/0.000) + hepatitis_c 0.273 + Table 2 Charlson condition coefficients + CCI-group x age-band interaction (CCI 0/1/2/3+ by <50, 50-64, 65-79, 80+; CCI 1 x 50-64 is reference 0); cci_group from caller-assigned condition weights (MI 1, CHF 1, PVD 1, CVD 1, dementia 1, pulmonary 1, rheumatic 1, PUD 1, DM without 1, DM with 2, hemiplegia 2, kidney mild-to-moderate 2, kidney severe 2, any malignancy 2, metastatic 6, liver mild 1, liver moderate-to-severe 3); McGinnis 2024 Table 2 Model 7; 1st/99th percentile winsorizing not published; 0-100 score uses unpublished development min/max Xbeta so magent does not scale; paper prints 0-100 score 30 → 1-year 1%, 2-year 3%, 5-year 8%, 10-year 18% and score 45 → 6%, 14%, 35%, 61%; no published S0; 2025 corrigendum PMID 39845833 does not change Table 2 coefficients; caller-assigned comorbidities, FIB-4, and eGFR",
"hemiplegia_or_paraplegia": false,
"hemoglobin_g_dl": 14,
"hepatitis_c": false,
"kidney_mild_to_moderate": false,
"kidney_severe": false,
"linear_predictor": 1.228,
"liver_mild": false,
"liver_moderate_to_severe": false,
"metastatic_solid_tumor": false,
"myocardial_infarction": false,
"peptic_ulcer_disease": false,
"peripheral_vascular_disease": false,
"rheumatic_disease": false,
"sex": "male",
"wbc_10e9_l": 4
},
{
"age": 55,
"age_band": "50_64",
"albumin_g_dl": 4,
"any_malignancy": false,
Security scan
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 51 min ago | Passed | 402 | 1.9 s | $0.007 |
| 10 h ago | Passed | 402 | 343 ms | $0.007 |
| 13 h ago | Passed | 402 | 261 ms | $0.007 |
| 17 h ago | Passed | 402 | 160 ms | $0.007 |
| 21 h ago | Passed | 402 | 173 ms | $0.007 |
| 24 h ago | Passed | 402 | 148 ms | $0.007 |
| 28 h ago | Passed | 402 | 166 ms | $0.007 |
| 31 h ago | Passed | 402 | 151 ms | $0.007 |
| 37 h ago | Passed | 402 | 173 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |