{
  "x402Version": 2,
  "id": 39501,
  "slug": "39501",
  "resource": "https://api.magentlab.com/api/calc/prevent",
  "description": "Khan 2024 AHA PREVENT base 10-year total CVD percent (ASCVD plus heart failure) for age 30-79 from sex, lipids, treated systolic BP, diabetes, smoking, eGFR, BMI, antihypertensive, and statin. Sex-specific, race-free Table S12 coefficients. Not 30-year, not ASCVD-only, not HF-only, not 2013 PCE, not SCORE2, not a diagnosis or statin order. magent does not assay lipids.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    },
    {
      "scheme": "batch-settlement",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "method": "GET",
          "queryParams": {
            "age": 50,
            "antihypertensive": true,
            "bmi_kg_m2": 35,
            "diabetes": false,
            "egfr_ml_min_1_73m2": 90,
            "hdl_mg_dl": 55,
            "sbp_mm_hg": 160,
            "sex": "female",
            "smoker": false,
            "statin": false,
            "total_cholesterol_mg_dl": 240
          },
          "type": "http"
        },
        "output": {
          "example": {
            "age": 50,
            "antihypertensive": true,
            "bmi_kg_m2": 35,
            "citation": {
              "authors": "Khan SS, Matsushita K, Sang Y, Ballew SH, Grams ME, Surapaneni A, et al.; Chronic Kidney Disease Prognosis Consortium and the AHA Cardiovascular-Kidney-Metabolic Science Advisory Group",
              "doi": "10.1161/CIRCULATIONAHA.123.067626",
              "id": "khan-2024-prevent",
              "pmid": "37947085",
              "source": "Circulation. 2024;149(6):430-449",
              "title": "Development and Validation of the American Heart Association’s PREVENT Equations"
            },
            "diabetes": 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,
            "formula": "prevent",
            "formula_expression": "10-year total CVD % = 100*exp(lp)/(1+exp(lp)); Khan 2024 Supplement Table S12 base 10-year total CVD (ASCVD+HF) only; sex-specific race-free; age 30-79; cage=(age-55)/10; mg/dL*0.02586 to mmol/L; cnhdl=(TC-HDL)*0.02586-3.5; chdl=(HDL*0.02586-1.3)/0.3; sbp_lt110=(min(SBP,110)-110)/20; sbp_ge110=(max(SBP,110)-130)/20; egfr_lt60=(min(eGFR,60)-60)/-15; egfr_ge60=(max(eGFR,60)-90)/-15; BMI spline printed at 30 with S12 total-CVD betas 0; women lp=-3.307728+0.7939329*cage+0.0305239*cnhdl-0.1606857*chdl-0.2394003*sbp_lt110+0.3600781*sbp_ge110+0.8667604*dm+0.5360739*smoke+0.6045917*egfr_lt60+0.0433769*egfr_ge60+0.3151672*antihtn-0.1477655*statin-0.0663612*sbp_ge110*antihtn+0.1197879*cnhdl*statin-0.0819715*cage*cnhdl+0.0306769*cage*chdl-0.0946348*cage*sbp_ge110-0.27057*cage*dm-0.078715*cage*smoke-0.1637806*cage*egfr_lt60; men lp=-3.031168+0.7688528*cage+0.0736174*cnhdl-0.0954431*chdl-0.4347345*sbp_lt110+0.3362658*sbp_ge110+0.7692857*dm+0.4386871*smoke+0.5378979*egfr_lt60+0.0164827*egfr_ge60+0.288879*antihtn-0.1337349*statin-0.0475924*sbp_ge110*antihtn+0.150273*cnhdl*statin-0.0517874*cage*cnhdl+0.0191169*cage*chdl-0.1049477*cage*sbp_ge110-0.2251948*cage*dm-0.0895067*cage*smoke-0.1543702*cage*egfr_lt60; not 30-year; not ASCVD-only; not HF-only; not HbA1c/UACR/SDI add-ons; not 2013 PCE; not SCORE2",
            "hdl_mg_dl": 55,
            "linear_predictor": -2.8579,
            "sbp_mm_hg": 160,
            "sex": "female",
            "smoker": false,
            "statin": false,
            "ten_year_cvd_percent": 5.4,
            "total_cholesterol_mg_dl": 240
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "age": {
                    "description": "Age in years (integer 30-79). Khan 2024 PREVENT base 10-year total CVD is for ages 30-79. Not 30-year PREVENT (that horizon is not returned).",
                    "type": "integer"
                  },
                  "antihypertensive": {
                    "description": "Current antihypertensive treatment as assigned by the caller (true or false). Adds the Table S12 antihypertensive term and the treated SBP interaction.",
                    "type": "boolean"
                  },
                  "bmi_kg_m2": {
                    "description": "Body-mass index in kg/m2 (10-80). Required Khan 2024 predictor. Table S12 base 10-year total-CVD BMI coefficients are 0 (BMI enters the HF-only equations, which this tool does not return).",
                    "type": "number"
                  },
                  "diabetes": {
                    "description": "Diabetes as assigned by the caller (true or false). Adds the Table S12 diabetes term and the age × diabetes interaction. Not the optional HbA1c add-on equation.",
                    "type": "boolean"
                  },
                  "egfr_ml_min_1_73m2": {
                    "description": "Caller-assigned eGFR in mL/min/1.73m2 (5-200). Piecewise around 60. magent does not compute MDRD or CKD-EPI.",
                    "type": "number"
                  },
                  "hdl_mg_dl": {
                    "description": "HDL cholesterol in mg/dL (5-150). Converted as mg/dL*0.02586 to mmol/L. Enters as (HDL-1.3)/0.3. magent does not assay lipids.",
                    "type": "number"
                  },
                  "sbp_mm_hg": {
                    "description": "Systolic blood pressure in mm Hg (50-250). Piecewise around 110 mm Hg, with a treated-SBP interaction when antihypertensive is true. magent does not measure blood pressure.",
                    "type": "number"
                  },
                  "sex": {
                    "description": "Sex used by the sex-specific Table S12 base 10-year total-CVD coefficients (female or male). Not race. PREVENT is race-free.",
                    "enum": [
                      "female",
                      "male"
                    ],
                    "type": "string"
                  },
                  "smoker": {
                    "description": "Current cigarette smoking as assigned by the caller (true or false). magent does not take a smoking history.",
                    "type": "boolean"
                  },
                  "statin": {
                    "description": "Current statin use as assigned by the caller (true or false). Adds the Table S12 statin term and the statin × non-HDL interaction.",
                    "type": "boolean"
                  },
                  "total_cholesterol_mg_dl": {
                    "description": "Total cholesterol in mg/dL (50-800). Converted as mg/dL*0.02586 to mmol/L. Enters as non-HDL (TC-HDL) centered at 3.5 mmol/L. magent does not assay lipids.",
                    "type": "number"
                  }
                },
                "required": [
                  "age",
                  "sex",
                  "total_cholesterol_mg_dl",
                  "hdl_mg_dl",
                  "sbp_mm_hg",
                  "antihypertensive",
                  "statin",
                  "diabetes",
                  "smoker",
                  "egfr_ml_min_1_73m2",
                  "bmi_kg_m2"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "prevent",
    "cvd-risk",
    "lipids",
    "aha-2024",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T12:40:32.788Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T12:40:32.668Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "method": "GET",
            "queryParams": {
              "age": 50,
              "antihypertensive": true,
              "bmi_kg_m2": 35,
              "diabetes": false,
              "egfr_ml_min_1_73m2": 90,
              "hdl_mg_dl": 55,
              "sbp_mm_hg": 160,
              "sex": "female",
              "smoker": false,
              "statin": false,
              "total_cholesterol_mg_dl": 240
            },
            "type": "http"
          },
          "output": {
            "example": {
              "age": 50,
              "antihypertensive": true,
              "bmi_kg_m2": 35,
              "citation": {
                "authors": "Khan SS, Matsushita K, Sang Y, Ballew SH, Grams ME, Surapaneni A, et al.; Chronic Kidney Disease Prognosis Consortium and the AHA Cardiovascular-Kidney-Metabolic Science Advisory Group",
                "doi": "10.1161/CIRCULATIONAHA.123.067626",
                "id": "khan-2024-prevent",
                "pmid": "37947085",
                "source": "Circulation. 2024;149(6):430-449",
                "title": "Development and Validation of the American Heart Association’s PREVENT Equations"
              },
              "diabetes": 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,
              "formula": "prevent",
              "formula_expression": "10-year total CVD % = 100*exp(lp)/(1+exp(lp)); Khan 2024 Supplement Table S12 base 10-year total CVD (ASCVD+HF) only; sex-specific race-free; age 30-79; cage=(age-55)/10; mg/dL*0.02586 to mmol/L; cnhdl=(TC-HDL)*0.02586-3.5; chdl=(HDL*0.02586-1.3)/0.3; sbp_lt110=(min(SBP,110)-110)/20; sbp_ge110=(max(SBP,110)-130)/20; egfr_lt60=(min(eGFR,60)-60)/-15; egfr_ge60=(max(eGFR,60)-90)/-15; BMI spline printed at 30 with S12 total-CVD betas 0; women lp=-3.307728+0.7939329*cage+0.0305239*cnhdl-0.1606857*chdl-0.2394003*sbp_lt110+0.3600781*sbp_ge110+0.8667604*dm+0.5360739*smoke+0.6045917*egfr_lt60+0.0433769*egfr_ge60+0.3151672*antihtn-0.1477655*statin-0.0663612*sbp_ge110*antihtn+0.1197879*cnhdl*statin-0.0819715*cage*cnhdl+0.0306769*cage*chdl-0.0946348*cage*sbp_ge110-0.27057*cage*dm-0.078715*cage*smoke-0.1637806*cage*egfr_lt60; men lp=-3.031168+0.7688528*cage+0.0736174*cnhdl-0.0954431*chdl-0.4347345*sbp_lt110+0.3362658*sbp_ge110+0.7692857*dm+0.4386871*smoke+0.5378979*egfr_lt60+0.0164827*egfr_ge60+0.288879*antihtn-0.1337349*statin-0.0475924*sbp_ge110*antihtn+0.150273*cnhdl*statin-0.0517874*cage*cnhdl+0.0191169*cage*chdl-0.1049477*cage*sbp_ge110-0.2251948*cage*dm-0.0895067*cage*smoke-0.1543702*cage*egfr_lt60; not 30-year; not ASCVD-only; not HF-only; not HbA1c/UACR/SDI add-ons; not 2013 PCE; not SCORE2",
              "hdl_mg_dl": 55,
              "linear_predictor": -2.8579,
              "sbp_mm_hg": 160,
              "sex": "female",
              "smoker": false,
              "statin": false,
              "ten_year_cvd_percent": 5.4,
              "total_cholesterol_mg_dl": 240
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "age": {
                      "description": "Age in years (integer 30-79). Khan 2024 PREVENT base 10-year total CVD is for ages 30-79. Not 30-year PREVENT (that horizon is not returned).",
                      "type": "integer"
                    },
                    "antihypertensive": {
                      "description": "Current antihypertensive treatment as assigned by the caller (true or false). Adds the Table S12 antihypertensive term and the treated SBP interaction.",
                      "type": "boolean"
                    },
                    "bmi_kg_m2": {
                      "description": "Body-mass index in kg/m2 (10-80). Required Khan 2024 predictor. Table S12 base 10-year total-CVD BMI coefficients are 0 (BMI enters the HF-only equations, which this tool does not return).",
                      "type": "number"
                    },
                    "diabetes": {
                      "description": "Diabetes as assigned by the caller (true or false). Adds the Table S12 diabetes term and the age × diabetes interaction. Not the optional HbA1c add-on equation.",
                      "type": "boolean"
                    },
                    "egfr_ml_min_1_73m2": {
                      "description": "Caller-assigned eGFR in mL/min/1.73m2 (5-200). Piecewise around 60. magent does not compute MDRD or CKD-EPI.",
                      "type": "number"
                    },
                    "hdl_mg_dl": {
                      "description": "HDL cholesterol in mg/dL (5-150). Converted as mg/dL*0.02586 to mmol/L. Enters as (HDL-1.3)/0.3. magent does not assay lipids.",
                      "type": "number"
                    },
                    "sbp_mm_hg": {
                      "description": "Systolic blood pressure in mm Hg (50-250). Piecewise around 110 mm Hg, with a treated-SBP interaction when antihypertensive is true. magent does not measure blood pressure.",
                      "type": "number"
                    },
                    "sex": {
                      "description": "Sex used by the sex-specific Table S12 base 10-year total-CVD coefficients (female or male). Not race. PREVENT is race-free.",
                      "enum": [
                        "female",
                        "male"
                      ],
                      "type": "string"
                    },
                    "smoker": {
                      "description": "Current cigarette smoking as assigned by the caller (true or false). magent does not take a smoking history.",
                      "type": "boolean"
                    },
                    "statin": {
                      "description": "Current statin use as assigned by the caller (true or false). Adds the Table S12 statin term and the statin × non-HDL interaction.",
                      "type": "boolean"
                    },
                    "total_cholesterol_mg_dl": {
                      "description": "Total cholesterol in mg/dL (50-800). Converted as mg/dL*0.02586 to mmol/L. Enters as non-HDL (TC-HDL) centered at 3.5 mmol/L. magent does not assay lipids.",
                      "type": "number"
                    }
                  },
                  "required": [
                    "age",
                    "sex",
                    "total_cholesterol_mg_dl",
                    "hdl_mg_dl",
                    "sbp_mm_hg",
                    "antihypertensive",
                    "statin",
                    "diabetes",
                    "smoker",
                    "egfr_ml_min_1_73m2",
                    "bmi_kg_m2"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}