ToolAssay

Khan 2019 PCP-HF 10-year incident heart-failure percent for age 30-79 from sex,

Khan 2019 PCP-HF 10-year incident heart-failure percent for age 30-79 from sex, caller-assigned white or black cohort, treated or untreated systolic BP and fasting glucose, total and HDL cholesterol, BMI, smoking, and QRS duration. Table 2 coefficients. Caller assigns cohort; magent does not assign race. Not PREVENT 2024, not 2013 PCE, not a diagnosis or treatment order. magent does not assay lipids, measure blood pressure, or interpret an ECG.

Asked 1.4x its listed price for its own exampleour last check, 2026-09-28
1 of 1checks answered this week
302 msmedian answer time
$0.005listed price per call
$0.007price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://api.magentlab.com/api/calc/pcp_hf

CategoryEverything else
Provider hostapi.magentlab.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days0 from 0 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-28 valid payment request 402$0.007 302 ms

Example input (from the provider)

{
  "body": {
    "items": [
      {
        "age": 50,
        "antihypertensive": false,
        "bmi_kg_m2": 22,
        "cohort": "white",
        "diabetes_medication": false,
        "glucose_mg_dl": 90,
        "hdl_mg_dl": 55,
        "qrs_ms": 90,
        "sbp_mm_hg": 120,
        "sex": "female",
        "smoker": false,
        "total_cholesterol_mg_dl": 180
      },
      {
        "age": 50,
        "antihypertensive": false,
        "bmi_kg_m2": 22,
        "cohort": "white",
        "diabetes_medication": false,
        "glucose_mg_dl": 90,
        "hdl_mg_dl": 55,
        "qrs_ms": 90,
        "sbp_mm_hg": 120,
        "sex": "female",
        "smoker": false,
        "total_cholesterol_mg_dl": 180
      }
    ]
  },
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$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 (integer 30-79). Khan 2019 Table 2 10-year incident HF is for ages 30-79. magent does not take a date of birth.",
                    "type": "integer"
                  },
                  "antihypertensive": {
                    "description": "Current antihypertensive treatment as assigned by the caller (true or false). true uses the Table 2 treated-SBP coefficient (and age \u00d7 treated SBP when that cell is not N/A). false uses untreated SBP. Not both.",
                    "type": "boolean"
                  },
                  "bmi_kg_m2": {
                    "description": "Body-mass index in kg/m2 (10-80). Enters as ln(BMI) and ln(age)\u00d7ln(BMI) when that Table 2 cell is not N/A. magent does not measure height or weight.",
                    "type": "number"
                  },
                  "cohort": {
                    "description": "Caller-assigned cohort as used in Khan 2019 Table 2: white or black (paper terms). Not param race. magent does not assign race or ethnicity. Other strings are rejected.",
                    "enum": [
                      "white",
                      "black"
                    ],
                    "type": "string"
                  },
                  "diabetes_medication": {
                    "description": "Current diabetes medication as assigned by the caller (true or false). true uses the Table 2 treated-glucose coefficient. false uses untreated glucose. Not both.",
                    "type": "boolean"
                  },
                  "glucose_mg_dl": {
                    "description": "Fasting glucose in mg/dL (40-600). Enters as ln(glucose) with the treated or untreated Table 2 coefficient according to diabetes_medication. magent does not assay glucose.",
                    "type": "number"
                  },
                  "hdl_mg_dl": {
                    "description": "HDL cholesterol in mg/dL (5-150). Enters as ln(HDL-C) when that Table 2 cell is not N/A. magent does not assay lipids.",
                    "type": "number"
                  },
                  "qrs_ms": {
                    "description": "QRS duration in ms (40-300). Enters as ln(QRS). magent does not interpret an ECG.",
                    "type": "number"
                  },
                  "sbp_mm_hg": {
                    "description": "Systolic blood pressure in mm Hg (50-250). Enters as ln(SBP) with the treated or untreated Table 2 coefficient according to antihypertensive. magent does not measure blood pressure.",
                    "type": "number"
                  },
                  "sex": {
                    "description": "Sex used by the sex-specific Table 2 coefficients (female or male). Not cohort.",
                    "enum": [
                      "female",
                      "male"
                    ],
                    "type": "string"
                  },
                  "smoker": {
                    "description": "Current cigarette smoking as assigned by the caller (true or false). Adds the Table 2 smoker term and ln(age) \u00d7 smoker when that cell is not N/A. magent does not take a smoking history.",
                    "type": "boolean"
                  },
                  "total_cholesterol_mg_dl": {
                    "description": "Total cholesterol in mg/dL (50-800). Enters as ln(total cholesterol) when that Table 2 cell is not N/A. magent does not assay lipids.",
                    "type": "number"
                  }
                },
                "required": [
                  "age",
                  "sex",
                  "cohort",
                  "sbp_mm_hg",
                  "antihypertensive",
                  "glucose_mg_dl",
                  "diabetes_medication",
                  "bmi_kg_m2",
                  "total_cholesterol_mg_dl",
                  "hdl_mg_dl",
                  "smoker",
                  "qrs_ms"
                ],
                "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"
}

This page as JSON