Child-Pugh Cirrhosis Severity Score Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).
Calculates the Child-Pugh (Child-Turcotte-Pugh) score and class (A/B/C) for cirrhosis severity from bilirubin, albumin, INR, encephalopathy grade, and ascites.
Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.
Returns a numeric Child-Pugh total score (5–15), Child-Pugh class (A, B, or C), individual sub-scores for each of the five parameters, and a citation to the published scoring criteria.
GEThttps://api.magentlab.com/api/calc/child_pugh?utm_source=zero.xyzUse this endpoint when you need a fast, deterministic, evidence-based Child-Pugh score computed from explicit lab values and clinician-assigned clinical parameters. Prefer this over manual calculation to avoid arithmetic errors, or when building clinical decision support tools, hepatology dashboards, or automated chart review pipelines. This is not a transplant listing protocol and requires that encephalopathy and ascites grades be assigned by the calling clinician.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"path": "/api/calc/child_pugh",
"count": 2,
"items": [
{
"inr": 1.2,
"score": 5,
"ascites": "none",
"formula": "child_pugh",
"citation": {
"id": "pugh-1973",
"doi": "10.1002/bjs.1800600817",
"title": "Transection of the oesophagus for bleeding oesophageal varices",
"source": "Br J Surg. 1973;60(8):646-649",
"authors": "Pugh RNH, Murray-Lyon IM, Dawson JL, Pietroni MC, Williams R"
},
"max_score": 15,
"components": [
{
"value": 1,
"factor": "bilirubin",
"points": 1,
"present": false
},
{
"value": 4,
"factor": "albumin",
"points": 1,
"present": false
},
{
"value": 1.2,
"factor": "inr",
"points": 1,
"present": false
},
{
"value": "none",
"factor": "encephalopathy",
"points": 1,
"present": false
},
{
"value": "none",
"factor": "ascites",
"points": 1,
"present": false
}
],
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"albumin_g_dl": 4,
"encephalopathy": "none",
"bilirubin_mg_dl": 1,
"child_pugh_class": "A",
"formula_expression": "Child-Pugh = bilirubin + albumin + INR + encephalopathy + ascites; each 1-3; class A 5-6, B 7-9, C 10-15; max 15"
},
{
"inr": 1.2,
"score": 5,
"ascites": "none",
"formula": "child_pugh",
"citation": {
"id": "pugh-1973",
"doi": "10.1002/bjs.1800600817",
"title": "Transection of the oesophagus for bleeding oesophageal varices",
"source": "Br J Surg. 1973;60(8):646-649",
"authors": "Pugh RNH, Murray-Lyon IM, Dawson JL, Pietroni MC, Williams R"
},
"max_score": 15,
"components": [
{
"value": 1,
"factor": "bilirubin",
"points": 1,
"present": false
},
{
"value": 4,
"factor": "albumin",
"points": 1,
"present": false
},
{
"value": 1.2,
"factor": "inr",
"points": 1,
"present": false
},
{
"value": "none",
"factor": "encephalopathy",
"points": 1,
"present": false
},
{
"value": "none",
"factor": "ascites",
"points": 1,
"present": false
}
],
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"albumin_g_dl": 4,
"encephalopathy": "none",
"bilirubin_mg_dl": 1,
"child_pugh_class": "A",
"formula_expression": "Child-Pugh = bilirubin + albumin + INR + encephalopathy + ascites; each 1-3; class A 5-6, B 7-9, C 10-15; max 15"
}
]
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"