{"uid":"cap_0ZdrxcBldklsGVL2kQgGL","slug":"acef-ii-score-calculator-ranucci-2018-5f05d698","name":"ACEF II Score Calculator (Ranucci 2018)","description":"Ranucci 2018 ACEF II for cardiac surgery: ACEF II = age/EF + 2.0 if serum creatinine > 2.0 mg/dL + 3.0 if emergency surgery + 0.2 × (hematocrit points below 36%). Hematocrit ≥ 36% contributes 0. Returns the published score only (4 decimals). Not original ACEF 2009, not a predicted-mortality percent, and not an operative clearance.","url":"https://api.magentlab.com/api/calc/acef_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","ejection_fraction_percent","emergency_surgery","hematocrit_percent"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). magent clamp; Ranucci 2018 uses age in years."},"creatinine_mg_dl":{"type":"number","description":"Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Extra 2.0 only when strictly greater than 2.0 mg/dL (Ranucci 2018)."},"creatinine_umol_l":{"type":"number","description":"Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42."},"emergency_surgery":{"type":"boolean","description":"true if the operation is emergency cardiac surgery (Ranucci 2018 +3.0). true or false."},"hematocrit_percent":{"type":"number","description":"Preoperative hematocrit in percent (15-60). magent clamp. HCT ≥ 36 contributes 0; each percentage point below 36 adds 0.2."},"ejection_fraction_percent":{"type":"number","description":"Left-ventricular ejection fraction in percent (10-80). magent clamp. Denominator of age/EF."}}}},"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_nuFeNzCXPE87khOwedwqi","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 the Ranucci 2018 ACEF II cardiac surgery risk score from age, ejection fraction, creatinine, emergency status, and hematocrit.","exampleAgentPrompt":"Can you calculate the ACEF II cardiac surgery risk score for a 72-year-old patient with an ejection fraction of 45%, serum creatinine of 2.3 mg/dL, hematocrit of 32%, and this is an emergency operation?","exampleUseCases":[{"title":"Preoperative risk stratification for elective surgery","prompt":"I need the ACEF II score for a 65-year-old patient going in for elective cardiac surgery — their EF is 35%, creatinine is 1.4 mg/dL, and hematocrit is 38%. It's not an emergency."},{"title":"Emergency CABG risk assessment with renal impairment","prompt":"Calculate the Ranucci 2018 ACEF II score for a 78-year-old emergency CABG patient with an ejection fraction of 25%, creatinine of 2.8 mg/dL, and hematocrit of 28%."},{"title":"Anemia and low EF risk scoring","prompt":"What's the ACEF II score for a 60-year-old patient with EF of 40%, creatinine of 1.1 mg/dL, hematocrit of 30%, and this is elective surgery?"}],"resultDescription":"Returns a single ACEF II numeric score rounded to 4 decimal places, computed as: age/EF + 2.0 (if creatinine > 2.0 mg/dL) + 3.0 (if emergency surgery) + 0.2 × (hematocrit points below 36%, with ≥36% contributing 0). This is the published index value only — not a mortality percentage, not a clearance decision.","failureModes":["Missing required parameters (age, ejection_fraction_percent, emergency_surgery, hematocrit_percent) returns an error","Out-of-range values (e.g. age outside 18–120, EF outside 10–80, hematocrit outside 15–60) may be clamped or rejected","Providing both creatinine_mg_dl and creatinine_umol_l simultaneously returns an error","Invalid types (e.g. non-integer age) cause schema validation failure","Payment failure (insufficient USDC balance or x402 issue) blocks the request"],"whenToPreferThis":"Use this endpoint when you need the specific Ranucci 2018 ACEF II formulation for cardiac surgery risk scoring — not the original 2009 ACEF, not a predicted mortality percentage, and not a general operative clearance tool. Ideal for clinical decision-support agents building preoperative assessments that require a validated, published score with creatinine, hematocrit, and emergency-surgery adjustments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:59:46.236Z","isFirstParty":false}