{
  "x402Version": 2,
  "id": 39198,
  "slug": "39198",
  "resource": "https://api.magentlab.com/api/calc/framingham_chd",
  "description": "Wilson 1998 Framingham 10-year CHD from sex-specific total-cholesterol point sheets: age 30-74, TC, HDL, JNC-V blood pressure, diabetes, and smoking. Deterministic published arithmetic with citation. Not a statin order, not ATP-III 2001, not pooled-cohort ASCVD. magent does not measure lipids or BP.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "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": {
          "body": {
            "items": [
              {
                "age": 30,
                "dbp_mm_hg": 70,
                "diabetes": false,
                "hdl_mg_dl": 45,
                "sbp_mm_hg": 110,
                "sex": "male",
                "smoker": false,
                "total_cholesterol_mg_dl": 180
              },
              {
                "age": 30,
                "dbp_mm_hg": 70,
                "diabetes": false,
                "hdl_mg_dl": 45,
                "sbp_mm_hg": 110,
                "sex": "male",
                "smoker": false,
                "total_cholesterol_mg_dl": 180
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_band": "30-34",
                "age_years": 30,
                "blood_pressure_category": "optimal",
                "cholesterol_band": "160-199",
                "citation": {
                  "authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB",
                  "doi": "10.1161/01.CIR.97.18.1837",
                  "id": "wilson-1998",
                  "pmid": "9603539",
                  "source": "Circulation. 1998;97(18):1837-1847",
                  "title": "Prediction of coronary heart disease using risk factor categories"
                },
                "components": [
                  {
                    "band": "30-34",
                    "factor": "age",
                    "points": -1,
                    "present": true,
                    "value": 30
                  },
                  {
                    "band": "160-199",
                    "factor": "total_cholesterol",
                    "points": 0,
                    "present": true,
                    "value": 180
                  },
                  {
                    "band": "45-59",
                    "factor": "hdl",
                    "points": 0,
                    "present": true,
                    "value": 45
                  },
                  {
                    "factor": "blood_pressure",
                    "points": 0,
                    "present": true,
                    "value": "optimal"
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "smoker",
                    "points": 0,
                    "present": false
                  }
                ],
                "dbp_mm_hg": 70,
                "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.",
                "formula": "framingham_chd",
                "formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
                "hdl_band": "45-59",
                "hdl_mg_dl": 45,
                "max_score": 19,
                "sbp_mm_hg": 110,
                "score": -1,
                "sex": "male",
                "smoker": false,
                "ten_year_chd_risk_at_or_above": false,
                "ten_year_chd_risk_percent": 2,
                "total_cholesterol_mg_dl": 180
              },
              {
                "age_band": "30-34",
                "age_years": 30,
                "blood_pressure_category": "optimal",
                "cholesterol_band": "160-199",
                "citation": {
                  "authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB",
                  "doi": "10.1161/01.CIR.97.18.1837",
                  "id": "wilson-1998",
                  "pmid": "9603539",
                  "source": "Circulation. 1998;97(18):1837-1847",
                  "title": "Prediction of coronary heart disease using risk factor categories"
                },
                "components": [
                  {
                    "band": "30-34",
                    "factor": "age",
                    "points": -1,
                    "present": true,
                    "value": 30
                  },
                  {
                    "band": "160-199",
                    "factor": "total_cholesterol",
                    "points": 0,
                    "present": true,
                    "value": 180
                  },
                  {
                    "band": "45-59",
                    "factor": "hdl",
                    "points": 0,
                    "present": true,
                    "value": 45
                  },
                  {
                    "factor": "blood_pressure",
                    "points": 0,
                    "present": true,
                    "value": "optimal"
                  },
                  {
                    "factor": "diabetes",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "smoker",
                    "points": 0,
                    "present": false
                  }
                ],
                "dbp_mm_hg": 70,
                "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.",
                "formula": "framingham_chd",
                "formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
                "hdl_band": "45-59",
                "hdl_mg_dl": 45,
                "max_score": 19,
                "sbp_mm_hg": 110,
                "score": -1,
                "sex": "male",
                "smoker": false,
                "ten_year_chd_risk_at_or_above": false,
                "ten_year_chd_risk_percent": 2,
                "total_cholesterol_mg_dl": 180
              }
            ],
            "path": "/api/calc/framingham_chd"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years. Wilson 1998 derivation was ages 30-74; magent accepts that published range only. Sex-specific 5-year point bands from Figs 3-4.",
                          "type": "integer"
                        },
                        "dbp_mm_hg": {
                          "description": "Diastolic blood pressure in mm Hg (40-150, magent clamp). JNC-V: <80 optimal, 80-84 normal, 85-89 high-normal, 90-99 stage I, >=100 stage II-IV. magent does not measure blood pressure.",
                          "type": "number"
                        },
                        "diabetes": {
                          "description": "Diabetes as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in men and 4 points in women. magent does not assay glucose.",
                          "type": "boolean"
                        },
                        "hdl_mg_dl": {
                          "description": "HDL cholesterol in mg/dL (5-150, magent clamp). Wilson 1998 HDL bands: <35, 35-44, 45-49, 50-59, >=60. magent does not assay lipids.",
                          "type": "number"
                        },
                        "sbp_mm_hg": {
                          "description": "Systolic blood pressure in mm Hg (70-260, magent clamp). JNC-V categories with diastolic: when SBP and DBP stages differ, use the higher point value (Wilson 1998 Fig 3-4). magent does not measure blood pressure. Not ATP-III treated vs untreated SBP.",
                          "type": "number"
                        },
                        "sex": {
                          "description": "female or male. Wilson 1998 published separate point sheets. No race coefficient.",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        },
                        "smoker": {
                          "description": "Current cigarette smoking as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in both sexes. Former smoking is false. magent does not take a smoking history.",
                          "type": "boolean"
                        },
                        "total_cholesterol_mg_dl": {
                          "description": "Total cholesterol in mg/dL (50-500, magent clamp). Wilson 1998 TC bands: <160, 160-199, 200-239, 240-279, >=280. Not the LDL-C sheet. magent does not assay lipids.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "total_cholesterol_mg_dl",
                        "hdl_mg_dl",
                        "sbp_mm_hg",
                        "dbp_mm_hg",
                        "diabetes",
                        "smoker"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "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": [
    "framingham-chd",
    "chd-risk",
    "lipids",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T03:01:06.643Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T03:01:06.531Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 30,
                  "dbp_mm_hg": 70,
                  "diabetes": false,
                  "hdl_mg_dl": 45,
                  "sbp_mm_hg": 110,
                  "sex": "male",
                  "smoker": false,
                  "total_cholesterol_mg_dl": 180
                },
                {
                  "age": 30,
                  "dbp_mm_hg": 70,
                  "diabetes": false,
                  "hdl_mg_dl": 45,
                  "sbp_mm_hg": 110,
                  "sex": "male",
                  "smoker": false,
                  "total_cholesterol_mg_dl": 180
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_band": "30-34",
                  "age_years": 30,
                  "blood_pressure_category": "optimal",
                  "cholesterol_band": "160-199",
                  "citation": {
                    "authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB",
                    "doi": "10.1161/01.CIR.97.18.1837",
                    "id": "wilson-1998",
                    "pmid": "9603539",
                    "source": "Circulation. 1998;97(18):1837-1847",
                    "title": "Prediction of coronary heart disease using risk factor categories"
                  },
                  "components": [
                    {
                      "band": "30-34",
                      "factor": "age",
                      "points": -1,
                      "present": true,
                      "value": 30
                    },
                    {
                      "band": "160-199",
                      "factor": "total_cholesterol",
                      "points": 0,
                      "present": true,
                      "value": 180
                    },
                    {
                      "band": "45-59",
                      "factor": "hdl",
                      "points": 0,
                      "present": true,
                      "value": 45
                    },
                    {
                      "factor": "blood_pressure",
                      "points": 0,
                      "present": true,
                      "value": "optimal"
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "smoker",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "dbp_mm_hg": 70,
                  "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.",
                  "formula": "framingham_chd",
                  "formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
                  "hdl_band": "45-59",
                  "hdl_mg_dl": 45,
                  "max_score": 19,
                  "sbp_mm_hg": 110,
                  "score": -1,
                  "sex": "male",
                  "smoker": false,
                  "ten_year_chd_risk_at_or_above": false,
                  "ten_year_chd_risk_percent": 2,
                  "total_cholesterol_mg_dl": 180
                },
                {
                  "age_band": "30-34",
                  "age_years": 30,
                  "blood_pressure_category": "optimal",
                  "cholesterol_band": "160-199",
                  "citation": {
                    "authors": "Wilson PW, D'Agostino RB, Levy D, Belanger AM, Silbershatz H, Kannel WB",
                    "doi": "10.1161/01.CIR.97.18.1837",
                    "id": "wilson-1998",
                    "pmid": "9603539",
                    "source": "Circulation. 1998;97(18):1837-1847",
                    "title": "Prediction of coronary heart disease using risk factor categories"
                  },
                  "components": [
                    {
                      "band": "30-34",
                      "factor": "age",
                      "points": -1,
                      "present": true,
                      "value": 30
                    },
                    {
                      "band": "160-199",
                      "factor": "total_cholesterol",
                      "points": 0,
                      "present": true,
                      "value": 180
                    },
                    {
                      "band": "45-59",
                      "factor": "hdl",
                      "points": 0,
                      "present": true,
                      "value": 45
                    },
                    {
                      "factor": "blood_pressure",
                      "points": 0,
                      "present": true,
                      "value": "optimal"
                    },
                    {
                      "factor": "diabetes",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "smoker",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "dbp_mm_hg": 70,
                  "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.",
                  "formula": "framingham_chd",
                  "formula_expression": "Wilson 1998 TC point sheets (Figs 3-4): sex-specific age + total cholesterol + HDL + JNC-V BP (higher of SBP/DBP stage) + diabetes + smoker; men age 30-34 -1, 35-39 0, 40-44 1, 45-49 2, 50-54 3, 55-59 4, 60-64 5, 65-69 6, 70-74 7; men TC <160 -3, 160-199 0, 200-239 1, 240-279 2, >=280 3; men HDL <35 2, 35-44 1, 45-59 0, >=60 -2; men BP optimal/normal 0, high-normal 1, stage I 2, stage II-IV 3; men diabetes 2, smoker 2; women age 30-34 -9, 35-39 -4, 40-44 0, 45-49 3, 50-54 6, 55-59 7, 60-74 8; women TC <160 -2, 160-199 0, 200-239 1, 240-279 1, >=280 3; women HDL <35 5, 35-44 2, 45-49 1, 50-59 0, >=60 -3; women BP optimal -3, normal/high-normal 0, stage I 2, stage II-IV 3; women diabetes 4, smoker 2; 10-year CHD % from the published point-total lookup; age 30-74; no race; not ATP-III",
                  "hdl_band": "45-59",
                  "hdl_mg_dl": 45,
                  "max_score": 19,
                  "sbp_mm_hg": 110,
                  "score": -1,
                  "sex": "male",
                  "smoker": false,
                  "ten_year_chd_risk_at_or_above": false,
                  "ten_year_chd_risk_percent": 2,
                  "total_cholesterol_mg_dl": 180
                }
              ],
              "path": "/api/calc/framingham_chd"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years. Wilson 1998 derivation was ages 30-74; magent accepts that published range only. Sex-specific 5-year point bands from Figs 3-4.",
                            "type": "integer"
                          },
                          "dbp_mm_hg": {
                            "description": "Diastolic blood pressure in mm Hg (40-150, magent clamp). JNC-V: <80 optimal, 80-84 normal, 85-89 high-normal, 90-99 stage I, >=100 stage II-IV. magent does not measure blood pressure.",
                            "type": "number"
                          },
                          "diabetes": {
                            "description": "Diabetes as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in men and 4 points in women. magent does not assay glucose.",
                            "type": "boolean"
                          },
                          "hdl_mg_dl": {
                            "description": "HDL cholesterol in mg/dL (5-150, magent clamp). Wilson 1998 HDL bands: <35, 35-44, 45-49, 50-59, >=60. magent does not assay lipids.",
                            "type": "number"
                          },
                          "sbp_mm_hg": {
                            "description": "Systolic blood pressure in mm Hg (70-260, magent clamp). JNC-V categories with diastolic: when SBP and DBP stages differ, use the higher point value (Wilson 1998 Fig 3-4). magent does not measure blood pressure. Not ATP-III treated vs untreated SBP.",
                            "type": "number"
                          },
                          "sex": {
                            "description": "female or male. Wilson 1998 published separate point sheets. No race coefficient.",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          },
                          "smoker": {
                            "description": "Current cigarette smoking as assigned by the caller (Wilson 1998 dichotomous). true is 2 points in both sexes. Former smoking is false. magent does not take a smoking history.",
                            "type": "boolean"
                          },
                          "total_cholesterol_mg_dl": {
                            "description": "Total cholesterol in mg/dL (50-500, magent clamp). Wilson 1998 TC bands: <160, 160-199, 200-239, 240-279, >=280. Not the LDL-C sheet. magent does not assay lipids.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "total_cholesterol_mg_dl",
                          "hdl_mg_dl",
                          "sbp_mm_hg",
                          "dbp_mm_hg",
                          "diabetes",
                          "smoker"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "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"
  }
}