{"uid":"cap_BynkOI2auVFrKMBuXtNTL","slug":"thakar-2005-acute-renal-failure-risk-score-post-cardiac-surgery-a52e076b","name":"Thakar 2005 Acute Renal Failure Risk Score (Post-Cardiac Surgery)","description":"Thakar 2005 clinical score for acute renal failure requiring dialysis after open-heart surgery. Points from sex, CHF, LVEF <35%, preoperative IABP, COPD, insulin-requiring diabetes, previous cardiac surgery, emergency surgery, procedure type (CABG / valve / CABG+valve / other), and preoperative creatinine (<1.2 / 1.2 to <2.1 / >=2.1 mg/dL). Returns integer score (max 17) and category 0–2 / 3–5 / 6–8 / 9–13. Not a dialysis order; not AKIN or RIFLE staging.","url":"https://api.magentlab.com/api/calc/thakar","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":["sex","surgery_type","congestive_heart_failure","lvef_lt_35","preoperative_iabp","copd","insulin_diabetes","previous_cardiac_surgery","emergency_surgery"],"properties":{"sex":{"enum":["female","male"],"type":"string","description":"female or male (Thakar 2005). Female scores 1. Male scores 0. Assigned by the caller."},"copd":{"type":"boolean","description":"COPD requiring medical therapy as assigned by the caller (Thakar 2005). true scores 1. true or false."},"lvef_lt_35":{"type":"boolean","description":"Left-ventricular ejection fraction <35% as assigned by the caller (Thakar 2005). true scores 1. Flag only; do not send an LVEF number. magent does not measure ejection fraction."},"surgery_type":{"enum":["cabg","valve","cabg_valve","other"],"type":"string","description":"cabg (CABG only, reference, 0), valve (valve only, +1), cabg_valve (CABG + valve, +2), or other (other cardiac surgeries such as ventricular aneurysm repair or pericardiectomy, +2). Thakar 2005. Assigned by the caller."},"creatinine_mg_dl":{"type":"number","description":"Preoperative serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Thakar 2005 scoring table: <1.2 scores 0; 1.2 to <2.1 scores 2; >=2.1 scores 5. 2.0 mg/dL scores 2. magent does not assay creatinine."},"insulin_diabetes":{"type":"boolean","description":"Insulin-requiring diabetes as assigned by the caller (Thakar 2005). true scores 1. true or false."},"creatinine_umol_l":{"type":"number","description":"Preoperative serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42."},"emergency_surgery":{"type":"boolean","description":"Emergency surgery as assigned by the caller (Thakar 2005). true scores 2. true or false."},"preoperative_iabp":{"type":"boolean","description":"Preoperative intra-aortic balloon pump as assigned by the caller (Thakar 2005). true scores 2. true or false."},"congestive_heart_failure":{"type":"boolean","description":"Congestive heart failure as assigned by the caller (Thakar 2005). true scores 1. true or false. magent does not examine the patient."},"previous_cardiac_surgery":{"type":"boolean","description":"Previous cardiac surgery as assigned by the caller (Thakar 2005). true scores 1. true or false."}}}},"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_LV5E90LKh8daQy_iuNvay","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":"Calculates the Thakar 2005 clinical score predicting risk of acute renal failure requiring dialysis after open-heart surgery, returning an integer score (0–17) and a risk category.","exampleAgentPrompt":"Calculate the Thakar 2005 renal failure dialysis risk score for a female patient undergoing combined CABG and valve surgery — she has congestive heart failure, LVEF under 35%, COPD, is insulin-dependent diabetic, had previous cardiac surgery, and her preoperative creatinine is 1.8 mg/dL; it's not an emergency.","exampleUseCases":[{"title":"Preoperative renal risk stratification for CABG","prompt":"Run the Thakar 2005 score for a male patient going for elective CABG — he has congestive heart failure, no LVEF issue, no IABP, has COPD, uses insulin for diabetes, no prior cardiac surgery, and his creatinine is 1.0 mg/dL."},{"title":"Emergency valve surgery dialysis risk assessment","prompt":"What's the Thakar dialysis risk score for a female patient being taken urgently for valve surgery? She has no CHF, LVEF is fine, no IABP, no COPD, no diabetes, no prior cardiac surgery, and creatinine is 2.3 mg/dL."},{"title":"High-risk combined procedure risk scoring","prompt":"Score a male patient with CHF, LVEF under 35%, preoperative IABP support, no COPD, insulin-dependent diabetes, previous cardiac surgery, and creatinine of 1.6 mg/dL who needs elective CABG plus valve surgery using the Thakar 2005 model."}],"resultDescription":"Returns an integer Thakar score (0–17) summed from the weighted clinical factors, plus a risk category bracket (0–2, 3–5, 6–8, or 9–13) indicating the patient's likelihood of requiring dialysis for acute renal failure after open-heart surgery.","failureModes":["Missing required query parameters (sex, surgery_type, boolean flags) returns a validation error","Providing both creatinine_mg_dl and creatinine_umol_l simultaneously may cause a conflict or rejection","Creatinine value outside expected range (mg/dL 0.1–20 or µmol/L 9–1768) may return an error","Invalid enum values for sex or surgery_type return a schema validation error","Payment not included or invalid x402 payment header causes a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need to apply the specific Thakar 2005 clinical prediction rule for post-cardiac-surgery acute renal failure requiring dialysis. Prefer it over generic kidney function tools when the clinical context is open-heart surgery (CABG, valve, or combined procedures) and the goal is preoperative risk stratification using the validated Thakar scoring system. Do not use for AKIN or RIFLE AKI staging, for non-cardiac surgery, or for post-operative monitoring — this is a preoperative point-in-time risk calculator only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:48:37.604Z","isFirstParty":false}