Mahmud 2021 VOCAL-Penn 30-day postoperative mortality logistic for cirrhosis
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.
Asked 1.4x its listed price for its own exampleour last check, 2026-09-28
1 of 1checks answered this week
304 msmedian answer time
$0.005listed price per call
$0.007price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://api.magentlab.com/api/calc/vocal_penn
| Category | Everything else |
|---|---|
| Provider host | api.magentlab.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 0 from 0 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-09-28 | valid payment request | 402 | $0.007 | 304 ms |
Example input (from the provider)
{
"body": {
"items": [
{
"age": 60,
"albumin_g_dl": 3.5,
"albumin_g_l": 35,
"asa_class": 3,
"bilirubin_mg_dl": 1.2,
"bilirubin_umol_l": 20.52,
"emergency": false,
"fatty_liver_disease": false,
"obesity": false,
"platelets_10e9_l": 150,
"surgery_category": "abdominal_wall"
},
{
"age": 60,
"albumin_g_dl": 3.5,
"albumin_g_l": 35,
"asa_class": 3,
"bilirubin_mg_dl": 1.2,
"bilirubin_umol_l": 20.52,
"emergency": false,
"fatty_liver_disease": false,
"obesity": false,
"platelets_10e9_l": 150,
"surgery_category": "abdominal_wall"
}
]
},
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"properties": {
"age": {
"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.",
"type": "integer"
},
"albumin_g_dl": {
"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.",
"type": "number"
},
"albumin_g_l": {
"description": "Preoperative albumin in g/L (10-60). Converted as g/dL = g/L / 10.",
"type": "number"
},
"asa_class": {
"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.",
"enum": [
2,
3,
4
],
"type": "integer"
},
"bilirubin_mg_dl": {
"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.",
"type": "number"
},
"bilirubin_umol_l": {
"description": "Preoperative total bilirubin in \u00b5mol/L (2-684). Converted as mg/dL = \u00b5mol/L / 17.1.",
"type": "number"
},
"emergency": {
"description": "Caller-assigned emergency indication (true/false). magent does not classify urgency.",
"type": "boolean"
},
"fatty_liver_disease": {
"description": "Caller-assigned NAFLD as the etiology of cirrhosis (true/false). magent does not assign etiology.",
"type": "boolean"
},
"obesity": {
"description": "Caller-assigned BMI \u226530 kg/m\u00b2 (true/false). Protective in the 30-day model. magent does not compute BMI.",
"type": "boolean"
},
"platelets_10e9_l": {
"description": "Preoperative platelet count in 10^9/L (10-800), equal to 1,000/\u00b5L. Spline knots 75, 152, 271 (Supplemental Table 2). magent does not read the laboratory.",
"type": "number"
},
"surgery_category": {
"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.",
"enum": [
"abdominal_laparoscopic",
"abdominal",
"abdominal_wall",
"vascular",
"orthopedic",
"chest",
"cardiac"
],
"type": "string"
}
},
"required": [
"age",
"platelets_10e9_l",
"obesity",
"fatty_liver_disease",
"asa_class",
"emergency",
"surgery_category"
],
"type": "object"
},
"maxItems": 25,
"minItems": 1,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"headers": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"method": {
"const": "POST",
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}