{"uid":"cap_NHQsLbmCKpvD6T51eiy-Y","slug":"child-pugh-cirrhosis-severity-score-calculator-7b8c34a9","name":"Child-Pugh Cirrhosis Severity Score Calculator","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/calc/child_pugh?utm_source=zero.xyz","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":["inr","encephalopathy","ascites"],"properties":{"inr":{"type":"number","description":"INR (0.8-10). Contemporary substitute for Pugh PT-prolongation seconds. <1.70 scores 1; 1.70-2.30 scores 2; >2.30 scores 3."},"ascites":{"enum":["none","slight","moderate"],"type":"string","description":"Caller-assigned ascites. none scores 1; slight scores 2; moderate scores 3. magent does not examine the patient."},"albumin_g_l":{"type":"number","description":"Albumin in g/L. Converted as g/dL = g/L / 10."},"albumin_g_dl":{"type":"number","description":"Albumin in g/dL (1-6). Provide this or albumin_g_l. >3.5 scores 1; 2.8-3.5 scores 2; <2.8 scores 3."},"encephalopathy":{"enum":["none","grade_1_2","grade_3_4"],"type":"string","description":"Caller-assigned encephalopathy grade. none scores 1; grade_1_2 scores 2; grade_3_4 scores 3. magent does not examine the patient."},"bilirubin_mg_dl":{"type":"number","description":"Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. <2.0 scores 1; 2.0-3.0 scores 2; >3.0 scores 3."},"bilirubin_umol_l":{"type":"number","description":"Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.1."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"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"}]}},"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_MYHwWlaUiUEtzs6tBAv3W","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":"Calculates the Child-Pugh (Child-Turcotte-Pugh) score and class (A/B/C) for cirrhosis severity from bilirubin, albumin, INR, encephalopathy grade, and ascites.","exampleAgentPrompt":"Calculate the Child-Pugh score for a cirrhosis patient with a bilirubin of 2.5 mg/dL, albumin of 3.0 g/dL, INR of 1.9, grade 1-2 encephalopathy, and slight ascites.","exampleUseCases":[{"title":"Pre-procedure liver risk stratification","prompt":"My patient with cirrhosis needs a cholecystectomy — can you calculate their Child-Pugh score? Bilirubin is 1.8 mg/dL, albumin 3.6 g/dL, INR 1.4, no encephalopathy, and no ascites."},{"title":"Hepatology chart review automation","prompt":"For my hepatology dashboard, calculate the Child-Pugh class for a patient whose labs show bilirubin 3.5 mg/dL, albumin 2.6 g/dL, INR 2.5, grade 3-4 encephalopathy, and moderate ascites."},{"title":"Unit conversion and scoring from SI labs","prompt":"I have a cirrhosis patient with bilirubin 51 µmol/L, albumin 28 g/L, INR 1.8, no encephalopathy, and slight ascites — what's their Child-Pugh score and class?"}],"resultDescription":"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.","failureModes":["Missing required parameters (INR, encephalopathy, or ascites) returns a 400 error","Bilirubin or albumin values outside valid physiological ranges may return an error or unexpected scoring","Providing both bilirubin_mg_dl and bilirubin_umol_l may cause ambiguity — use only one","Invalid encephalopathy or ascites enum values (e.g. typos) cause validation failure","Payment not included or insufficient (x402) results in 402 Payment Required"],"whenToPreferThis":"Use 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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:38:40.485Z","isFirstParty":false,"canonicalSlug":"child-pugh-cirrhosis-severity-score-calculator-7b8c34a9"}