{"uid":"cap_vekvVr5SQJHSoZVU0UpJu","slug":"seattle-heart-failure-model-shfm-survival-calculator-1f2506a2","name":"Seattle Heart Failure Model (SHFM) Survival Calculator","description":"Levy 2006 Seattle Heart Failure Model 1-, 2-, and 3-year survival from Table 2 multivariate HRs. Score = sum of ln(HR)*x; S(t)=exp(-0.0405*t)**exp(score). Age, sex, NYHA, EF, ischemic etiology, SBP, furosemide-eq diuretic, labs, and already-on ACEI, beta-blocker, ARB, K-sparing diuretic, statin, BiV, ICD, or BiV-ICD. Caller assigns class, etiology, and therapy. magent does not measure labs or blood pressure. Not a diagnosis, prescription, or device order.","url":"https://api.magentlab.com/api/calc/shfm","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["age","sex","nyha","ef_percent","ischemic","sbp_mm_hg","weight_kg","loop_diuretic_furosemide_eq_mg_day","allopurinol","sodium_meq_l","total_cholesterol_mg_dl","hemoglobin_g_dl","lymphocyte_percent","uric_acid_mg_dl","ace_inhibitor","beta_blocker","arb","k_sparing_diuretic","statin","biv_pacemaker","icd","biv_icd"],"properties":{"age":{"type":"integer","description":"Age in years (integer 14-100). Levy 2006 Table 2: per decade, multivariate HR 1.090. magent does not take a date of birth."},"arb":{"type":"boolean","description":"Patient already on an angiotensin-receptor blocker as assigned by the caller (true or false). Table 2 already-on HR 0.85. Not a prescription."},"icd":{"type":"boolean","description":"Patient already has an ICD (without biventricular pacing) as assigned by the caller (true or false). Table 2 already-on HR 0.73. Mutually exclusive with biv_pacemaker and biv_icd. Not a device order."},"sex":{"enum":["female","male"],"type":"string","description":"Sex used by the forced Table 2 male HR 1.089 (female or male). magent does not assign sex."},"nyha":{"enum":[1,2,3,4],"type":"integer","description":"NYHA class 1-4 as assigned by the caller (integer). Levy 2006 Table 2 multivariate HR 1.600 per class. magent does not examine the patient."},"statin":{"type":"boolean","description":"Patient already on a statin as assigned by the caller (true or false). Table 2 already-on / multivariate HR 0.63. Not a prescription."},"biv_icd":{"type":"boolean","description":"Patient already has a biventricular ICD as assigned by the caller (true or false). Table 2 already-on HR 0.79. Mutually exclusive with biv_pacemaker and icd. Not a device order."},"ischemic":{"type":"boolean","description":"Ischemic etiology as assigned by the caller (true or false). Table 2 multivariate HR 1.354. magent does not assign etiology."},"sbp_mm_hg":{"type":"number","description":"Systolic blood pressure in mm Hg (50-250). Table 2: per 10 mm Hg, HR 0.877, truncated at 160 (SBP 180 is scored as 160). magent does not measure blood pressure."},"weight_kg":{"type":"number","description":"Body weight in kg (20-250) used only to convert the furosemide-equivalent diuretic dose to mg/kg/day. magent does not weigh the patient."},"ef_percent":{"type":"number","description":"Left-ventricular ejection fraction in percent (1-80). Enters as 100/EF with Table 2 HR 1.030. magent does not interpret an echocardiogram."},"allopurinol":{"type":"boolean","description":"Current allopurinol as assigned by the caller (true or false). Table 2 multivariate HR 1.571. magent does not prescribe allopurinol."},"beta_blocker":{"type":"boolean","description":"Patient already on a beta-blocker as assigned by the caller (true or false). Table 2 already-on HR 0.66. Not a prescription."},"sodium_meq_l":{"type":"number","description":"Serum sodium in mEq/L (110-160). Table 2: if Na<138, (138-Na) with HR 1.050 per mEq; values ≥138 add 0. magent does not assay sodium."},"ace_inhibitor":{"type":"boolean","description":"Patient already on an ACE inhibitor as assigned by the caller (true or false). Table 2 already-on HR 0.77. Not a prescription."},"biv_pacemaker":{"type":"boolean","description":"Patient already has a biventricular pacemaker (without ICD) as assigned by the caller (true or false). Table 2 already-on HR 1.00. Mutually exclusive with icd and biv_icd. Not a device order."},"hemoglobin_g_dl":{"type":"number","description":"Hemoglobin in g/dL (4-22). Table 2: if Hb<16, (16-Hb) with HR 1.124 per g/dL; if Hb>16, (Hb-16) with HR 1.336 per g/dL. magent does not assay hemoglobin."},"uric_acid_mg_dl":{"type":"number","description":"Serum uric acid in mg/dL (0.5-25). Table 2: per mg/dL when >3.4, HR 1.064; values <3.4 are truncated to 3.4. magent does not assay uric acid."},"k_sparing_diuretic":{"type":"boolean","description":"Patient already on a potassium-sparing diuretic as assigned by the caller (true or false). Table 2 already-on HR 0.74. Not a prescription."},"lymphocyte_percent":{"type":"number","description":"Percent lymphocytes (0-100). Table 2: per 5% when <47%, HR 0.897; values >47% are truncated to 47. magent does not assay a CBC."},"total_cholesterol_mg_dl":{"type":"number","description":"Total cholesterol in mg/dL (50-800). Enters as 100/cholesterol with Table 2 HR 2.206. magent does not assay lipids."},"loop_diuretic_furosemide_eq_mg_day":{"type":"number","description":"Daily loop-diuretic dose as furosemide milligram equivalent (0-1000). Paper conversion: furosemide 80 = torsemide 40 = bumetanide 3. Divided by weight_kg; Table 2 HR 1.178 per mg/kg/day. magent does not prescribe a diuretic."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CNuW5guyt9y5mo8MWwqYo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes 1-, 2-, and 3-year survival probabilities for heart failure patients using the Levy 2006 Seattle Heart Failure Model Table 2 multivariate hazard ratios","exampleAgentPrompt":"Run the Seattle Heart Failure Model for a 68-year-old male with NYHA class 3 heart failure, ejection fraction 25%, ischemic etiology, SBP 110 mmHg, weight 85 kg, furosemide equivalent 80 mg/day, sodium 136 mEq/L, total cholesterol 180 mg/dL, hemoglobin 12.5 g/dL, lymphocytes 18%, uric acid 7.2 mg/dL, no allopurinol, on ACE inhibitor and beta-blocker, no ARB, no K-sparing diuretic, on a statin, no BiV pacemaker, no ICD, no BiV-ICD — and give me his 1-, 2-, and 3-year survival estimates.","exampleUseCases":[{"title":"HF clinic prognosis review","prompt":"For my 72-year-old female patient with non-ischemic heart failure, NYHA class 2, EF 35%, SBP 125 mmHg, weight 70 kg, on furosemide 40 mg/day, sodium 138, cholesterol 210, hemoglobin 13, lymphocytes 22%, uric acid 6.0, no allopurinol, on beta-blocker and ARB but no ACE inhibitor, no K-sparing diuretic, on a statin, with an ICD and no BiV pacing — what does the Seattle Heart Failure Model say her 1-, 2-, and 3-year survival chances are?"},{"title":"Advanced HF device therapy decision support","prompt":"I'm evaluating a 55-year-old male NYHA class 4, ischemic, EF 15%, SBP 95, weight 95 kg, furosemide equivalent 160 mg/day, sodium 132, cholesterol 155, hemoglobin 11, lymphocytes 12%, uric acid 9.1, on allopurinol, on ACE inhibitor and carvedilol, no ARB, on spironolactone, no statin, BiV-ICD already implanted — can you compute his SHFM predicted survival at 1, 2, and 3 years?"},{"title":"Comparing treatment scenarios pre/post medication change","prompt":"Before I add a statin, can you run the Seattle Heart Failure Model for my 63-year-old female patient: NYHA class 2, non-ischemic, EF 40%, SBP 130, weight 78 kg, furosemide 20 mg/day, sodium 140, cholesterol 230, hemoglobin 14, lymphocytes 25%, uric acid 5.5, no allopurinol, on ACE inhibitor, beta-blocker, no ARB, no K-sparing diuretic, no statin yet, no devices — so I can compare survival estimates with and without statin therapy?"}],"resultDescription":"Returns the SHFM composite score (sum of ln(HR)*x terms) and S(t)=exp(-0.0405*t)^exp(score) survival probabilities at 1, 2, and 3 years, derived from Levy 2006 Table 2 multivariate hazard ratios. The output reflects the patient's predicted probability of being alive at each time point given their clinical profile and current therapy.","failureModes":["Missing required query parameters returns a validation error","Age outside 14–100 range may be rejected or produce unreliable results","Mutually exclusive device flags (e.g., icd=true and biv_icd=true simultaneously) may cause model inconsistency","Invalid enum values for sex or nyha return a 400 error","Payment not provided or insufficient USDC results in 402 Payment Required","Lab values outside physiologically plausible ranges may produce extrapolated results without warning"],"whenToPreferThis":"Choose this endpoint when you need a validated, published heart failure prognostic model (Levy 2006 SHFM) that incorporates both clinical variables and medication/device therapies simultaneously. It is preferred over generic mortality calculators when the patient has heart failure and you need 1-, 2-, or 3-year survival estimates that account for NYHA class, EF, labs, and multi-drug therapy. Use it when the caller can supply all required clinical inputs including labs, medication status, and device history.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:44:27.049Z","isFirstParty":false}