{"slug":"api-magentlab-com-api-calc-pcp-hf-6e3869","title":"Khan 2019 PCP-HF 10-year incident heart-failure percent for age 30-79 from sex, ","host":"api.magentlab.com","method":"POST","resource":"https://api.magentlab.com/api/calc/pcp_hf","category":"other","description":"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 ","price_listed":0.005,"price_asked":0.007,"state":"overcharges","state_label":"Asked 1.4x its listed price for its own example","checks_7d":1,"answered_7d":1,"latency_ms_median":302,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"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"},"output_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 (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 × 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)×ln(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) × 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"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.007,"price_match":false,"latency_ms":302,"error":null}],"description_full":"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.","last_updated":"2026-09-28T13:44:31.283Z","schemes":["exact"]}