{"uid":"cap_Nh7CjDsJVIAwXEpLOs2rR","slug":"magent-euroscore-ii-calculator-53bd72cd","name":"magent EuroSCORE II Calculator","description":"Nashef 2012 EuroSCORE II Table 6 logistic in-hospital mortality after adult cardiac surgery. Age Xi is 1 if age <= 60, else age - 59. Renal function is a caller-assigned creatinine-clearance band or dialysis; magent does not run Cockcroft-Gault. Returns logit and estimated_probability_percent from the unrounded logit. Not additive EuroSCORE I, not a medical device, and Nashef 2012 publishes no low/intermediate/high percent cuts.","url":"https://api.magentlab.com/api/calc/euroscore_ii","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","renal","nyha","lv_function","urgency","weight_of_procedure","pulmonary_hypertension","extracardiac_arteriopathy","poor_mobility","previous_cardiac_surgery","chronic_lung_disease","active_endocarditis","critical_preoperative_state","insulin_dependent_diabetes","ccs_class_4","recent_mi","thoracic_aorta"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Nashef 2012 Table 6: Xi = 1 if age <= 60; Xi = age - 59 if older (age 61 → 2). Coefficient 0.0285181 on the encoded step, not on raw years."},"sex":{"enum":["male","female"],"type":"string","description":"Sex as assigned by the caller. male is the reference (0). female adds 0.2196434 (Nashef 2012 Table 6)."},"nyha":{"type":"integer","description":"NYHA class 1-4 as assigned by the caller (Nashef 2012 Table 6). class 1 is the reference (0); class 2 +0.1070545; class 3 +0.2958358; class 4 +0.5597929."},"renal":{"enum":["cc_gt_85","cc_51_85","cc_le_50","dialysis"],"type":"string","description":"Nashef 2012 renal-function band as assigned by the caller: cc_gt_85 (reference, 0), cc_51_85 (+0.303553), cc_le_50 (+0.8592256), or dialysis (+0.6421508). magent does not run Cockcroft-Gault and does not parse a creatinine number."},"urgency":{"enum":["elective","urgent","emergency","salvage"],"type":"string","description":"Nashef 2012 urgency as assigned by the caller: elective (reference, 0), urgent (+0.3174673), emergency (+0.7039121), or salvage (+1.362947)."},"recent_mi":{"type":"boolean","description":"true if myocardial infarction within 90 days before operation (Nashef 2012 Table 6 +0.1528943). true or false."},"ccs_class_4":{"type":"boolean","description":"true if CCS class 4 angina (Nashef 2012 Table 6 CCS4 +0.2226147). true or false."},"lv_function":{"enum":["good","moderate","poor","very_poor"],"type":"string","description":"Left-ventricular function band as assigned by the caller: good (LVEF 51% or more, reference 0), moderate (31-50%, +0.3150652), poor (21-30%, +0.8084096), or very_poor (20% or less, +0.9346919). magent does not parse an ejection-fraction number."},"poor_mobility":{"type":"boolean","description":"true if severe impairment of mobility secondary to musculoskeletal or neurological dysfunction (Nashef 2012 Table 6 N/M mob +0.2407181). true or false."},"thoracic_aorta":{"type":"boolean","description":"true if surgery on the thoracic aorta (Nashef 2012 Table 6 +0.6527205). true or false."},"active_endocarditis":{"type":"boolean","description":"true if still on antibiotic treatment for endocarditis at the time of surgery (Nashef 2012 Table 6 AE +0.6194522). true or false."},"weight_of_procedure":{"enum":["isolated_cabg","single_non_cabg","two","three_plus"],"type":"string","description":"Nashef 2012 weight of the intervention as assigned by the caller: isolated_cabg (reference, 0), single_non_cabg (+0.0062118), two (+0.5521478), or three_plus (+0.9724533). magent does not classify an operative note."},"chronic_lung_disease":{"type":"boolean","description":"true if chronic pulmonary dysfunction is present (Nashef 2012 Table 6 CPD +0.1886564). true or false."},"pulmonary_hypertension":{"enum":["none","moderate","severe"],"type":"string","description":"Nashef 2012 Table 6 PA systolic-pressure band as assigned by the caller: none (reference, 0), moderate (31-55 mmHg, +0.1788899), or severe (>=55 mmHg, +0.3491475). magent does not parse a PA pressure number."},"previous_cardiac_surgery":{"type":"boolean","description":"true if one or more previous major cardiac operations involving opening the pericardium (Nashef 2012 Table 6 redo +1.118599). true or false."},"extracardiac_arteriopathy":{"type":"boolean","description":"true if extracardiac arteriopathy is present (Nashef 2012 Table 6 ECA +0.5360268). true or false."},"insulin_dependent_diabetes":{"type":"boolean","description":"true if insulin-dependent diabetes mellitus (Nashef 2012 Table 6 IDDM +0.3542749). true or false."},"critical_preoperative_state":{"type":"boolean","description":"true if a Nashef 2012 critical preoperative state is present (Table 6 +1.086517). true or false. magent does not assign this from a chart."}}}},"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_lLx8Ikr_oGufEuUj86W4d","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 Nashef 2012 EuroSCORE II logistic in-hospital mortality probability for adult cardiac surgery patients","exampleAgentPrompt":"Calculate the EuroSCORE II in-hospital mortality probability for a 72-year-old female patient with NYHA class 3 heart failure, creatinine clearance between 51 and 85, elective isolated CABG, moderate LV function, no active endocarditis, no dialysis, no recent MI, no critical preoperative state, no extracardiac arteriopathy, no poor mobility, no previous cardiac surgery, no chronic lung disease, no insulin-dependent diabetes, no CCS class 4 angina, no thoracic aorta involvement, and no pulmonary hypertension.","exampleUseCases":[{"title":"Preoperative risk counseling for elective valve surgery","prompt":"I need the EuroSCORE II mortality estimate for a 65-year-old male patient, NYHA class 2, creatinine clearance above 85, undergoing elective two-procedure cardiac surgery, good LV function, no dialysis, no recent MI, no endocarditis, no critical preop state, no extracardiac arteriopathy, no mobility issues, no prior cardiac surgery, no chronic lung disease, no diabetes, no CCS class 4, no pulmonary hypertension, no thoracic aorta — give me the logit and probability."},{"title":"Emergency cardiac surgery triage decision","prompt":"Quick EuroSCORE II for an emergency case: 78-year-old female, NYHA class 4, on dialysis, emergency urgency, three or more procedures needed, severely impaired LV function, critical preoperative state, active endocarditis, recent MI within 90 days, pulmonary hypertension — all other flags are false. What's the predicted in-hospital mortality?"},{"title":"Automated audit of cardiac surgery risk registry","prompt":"For our registry audit, run EuroSCORE II on a 55-year-old male, NYHA class 1, creatinine clearance above 85, urgent single-procedure surgery, good LV function, no endocarditis, no dialysis, no recent MI, no critical state, extracardiac arteriopathy present, no poor mobility, previous cardiac surgery, chronic lung disease, no diabetes, CCS class 4 angina, no pulmonary hypertension, no thoracic aorta. Return the logit and the estimated probability."}],"resultDescription":"Returns a JSON object containing the raw logit (sum of Nashef 2012 Table 6 coefficients plus intercept) and the estimated_probability_percent derived from the unrounded logit via the logistic function, representing predicted in-hospital mortality after adult cardiac surgery.","failureModes":["Missing required query parameters return a 400 or validation error","Out-of-range age values (below 18 or above 120) may produce an error or unexpected encoding","Invalid enum values for sex, renal, urgency, nyha, or weight_of_procedure return a validation error","Network or payment failure (x402 protocol) prevents computation","Caller-assigned creatinine band mismatch: magent does not run Cockcroft-Gault so incorrect band assignment leads to silently wrong probability"],"whenToPreferThis":"Use this endpoint when you need a fast, server-side computation of the Nashef 2012 logistic EuroSCORE II — specifically the logit and probability — without implementing the coefficient table yourself. Prefer it over manual calculation to avoid arithmetic errors. Note it is not the additive EuroSCORE I, does not classify into low/intermediate/high tiers, and does not derive creatinine clearance from serum creatinine (the caller must pre-assign the renal band).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:55:56.876Z","isFirstParty":false}