# VOCAL-Penn 30-Day Postoperative Mortality Calculator for Cirrhosis

> VOCAL-Penn 30-Day Postoperative Mortality Calculator for Cirrhosis is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/vocal_penn
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vocal-penn-30-day-postoperative-mortality-calculator-for-cirrhosis-8c555d11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PcVDAntWTaDFYolrFXsX5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability vocal-penn-30-day-postoperative-mortality-calculator-for-cirrhosis-8c555d11
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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_1
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vocal-penn-30-day-postoperative-mortality-calculator-for-cirrhosis-8c555d11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
