{"uid":"cap_PcVDAntWTaDFYolrFXsX5","slug":"vocal-penn-30-day-postoperative-mortality-calculator-for-cirrhosis-8c555d11","name":"VOCAL-Penn 30-Day Postoperative Mortality Calculator for Cirrhosis","description":"Mahmud 2021 VOCAL-Penn 30-day postoperative mortality logistic for cirrhosis. log_odds = -5.472096 + 1.061725*ASA + 0.927904*emergency + surgery dummies (laparoscopic abdominal reference) + Stata 3-knot RCS albumin (2.7, 3.7, 4.4) and platelets (75, 152, 271) + 0.1448936*bilirubin - 0.7541669*obesity + 0.8268748*NAFLD. Percent to 1 decimal. Not a surgical order. magent does not assign ASA or read labs.","url":"https://api.magentlab.com/api/calc/vocal_penn","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","platelets_10e9_l","obesity","fatty_liver_disease","asa_class","emergency","surgery_category"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). The Mahmud 2021 Supplement Appendix 30-day linear predictor does not retain age (age is in the 90- and 180-day models). Required because the published tool asks for it."},"obesity":{"type":"boolean","description":"Caller-assigned BMI ≥30 kg/m² (true/false). Protective in the 30-day model. magent does not compute BMI."},"asa_class":{"enum":[2,3,4],"type":"integer","description":"Caller-assigned ASA physical status 2, 3, or 4 (ordinal in the Appendix). The derivation cohort had no ASA 1 and excluded ASA 5. magent does not assign ASA class."},"emergency":{"type":"boolean","description":"Caller-assigned emergency indication (true/false). magent does not classify urgency."},"albumin_g_l":{"type":"number","description":"Preoperative albumin in g/L (10-60). Converted as g/dL = g/L / 10."},"albumin_g_dl":{"type":"number","description":"Preoperative albumin in g/dL (1.0-6.0). Provide this or albumin_g_l. Restricted cubic spline knots 2.7, 3.7, 4.4 (Supplemental Table 2). magent does not read the laboratory."},"bilirubin_mg_dl":{"type":"number","description":"Preoperative total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. Linear in the 30-day Appendix model. magent does not read the laboratory."},"bilirubin_umol_l":{"type":"number","description":"Preoperative total bilirubin in µmol/L (2-684). Converted as mg/dL = µmol/L / 17.1."},"platelets_10e9_l":{"type":"number","description":"Preoperative platelet count in 10^9/L (10-800), equal to 1,000/µL. Spline knots 75, 152, 271 (Supplemental Table 2). magent does not read the laboratory."},"surgery_category":{"enum":["abdominal_laparoscopic","abdominal","abdominal_wall","vascular","orthopedic","chest","cardiac"],"type":"string","description":"Mahmud 2021 Appendix surgery dummy as assigned by the caller. abdominal_laparoscopic is the reference (0). abdominal is open abdominal. chest and cardiac share the printed chest/cardiac coefficient. magent does not classify a CPT code."},"fatty_liver_disease":{"type":"boolean","description":"Caller-assigned NAFLD as the etiology of cirrhosis (true/false). magent does not assign etiology."}}}},"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_99eo5rYrX8f6w5CYfIIsM","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 30-day postoperative mortality probability for cirrhotic patients using the Mahmud 2021 VOCAL-Penn logistic regression model with restricted cubic splines for albumin and platelets.","exampleAgentPrompt":"My patient is a 58-year-old with cirrhosis scheduled for elective laparoscopic cholecystectomy — ASA class 3, not obese, no NAFLD. Preoperative labs: albumin 3.2 g/dL, platelets 95 ×10⁹/L, bilirubin 1.8 mg/dL. Can you calculate the VOCAL-Penn 30-day postoperative mortality risk?","exampleUseCases":[{"title":"Pre-op risk counseling for cirrhotic patient","prompt":"I have a 62-year-old cirrhotic patient with ASA class 4 needing emergency open abdominal surgery. Labs: albumin 2.4 g/dL, platelets 68 ×10⁹/L, bilirubin 3.5 mg/dL. He has NAFLD and BMI over 30. What's his VOCAL-Penn 30-day postoperative mortality probability?"},{"title":"Elective cholecystectomy risk stratification","prompt":"Can you run the Mahmud 2021 VOCAL-Penn score for a 49-year-old cirrhotic woman with ASA class 2, elective laparoscopic cholecystectomy, albumin 3.9 g/dL, platelets 150 ×10⁹/L, bilirubin 0.9 mg/dL, non-obese, no fatty liver disease?"},{"title":"Comparing surgical urgency impact on mortality","prompt":"I want to compare the 30-day mortality risk for a cirrhotic ASA 3 patient undergoing open colectomy — first as an elective case, then as an emergency. Albumin 3.1 g/dL, platelets 110 ×10⁹/L, bilirubin 2.2 mg/dL, age 55, not obese, no NAFLD. Can you run both scenarios?"}],"resultDescription":"Returns a numeric 30-day postoperative mortality probability expressed as a percentage to one decimal place, derived from the Mahmud 2021 VOCAL-Penn logistic model intercept and coefficients including ASA class, emergency status, surgery type dummies, restricted cubic spline terms for albumin and platelets, linear bilirubin, obesity, and NAFLD.","failureModes":["Missing required fields (age, platelets, obesity, fatty_liver_disease, asa_class, emergency, surgery_category) return validation error","ASA class outside 2-4 (e.g. 1 or 5) rejected as out of range","Albumin or bilirubin not provided in any accepted unit returns error","Platelet count or albumin value outside physiologic range returns error","Neither albumin_g_dl nor albumin_g_l provided causes missing parameter error","Neither bilirubin_mg_dl nor bilirubin_umol_l provided causes missing parameter error"],"whenToPreferThis":"Choose this endpoint when you need the Mahmud 2021 VOCAL-Penn logistic regression specifically — the validated model for 30-day postoperative mortality in cirrhotic patients incorporating restricted cubic splines for albumin and platelets. Prefer it over generic MELD-based or Child-Pugh tools when the clinical question is 30-day surgical mortality rather than liver disease severity, and when the user has pre-assigned ASA class and laboratory values ready.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:32.038Z","isFirstParty":false}