{"uid":"cap_rrYn4LAGvgHZA9R13WC0B","slug":"glasgow-alcoholic-hepatitis-score-gahs-calculator-6e1e7003","name":"Glasgow Alcoholic Hepatitis Score (GAHS) Calculator","description":"Forrest 2005 Glasgow alcoholic hepatitis score from age, WBC, urea, PT ratio, and bilirubin (range 5-12) with the published ≥9 band. Deterministic published arithmetic with citation; not a steroid order.","url":"https://api.magentlab.com/api/calc/gahs","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","pt_ratio"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). <50 scores 1; ≥50 scores 2 (Forrest 2005)."},"wbc_ul":{"type":"number","description":"WBC in cells/µL. Converted as K/µL = cells/µL / 1000."},"pt_ratio":{"type":"number","description":"Prothrombin-time ratio (0.8-10). <1.5 scores 1; 1.5-2.0 scores 2; >2.0 scores 3."},"wbc_k_ul":{"type":"number","description":"WBC in 10^3/µL (same as 10^9/L). Provide wbc_k_ul or wbc_ul. <15 scores 1; ≥15 scores 2."},"bun_mg_dl":{"type":"number","description":"BUN in mg/dL (3-140). Converted as urea_mmol_l = bun_mg_dl / 2.8."},"urea_mmol_l":{"type":"number","description":"Urea in mmol/L (1-50). Provide this or bun_mg_dl, not both. <5 scores 1; ≥5 scores 2."},"bilirubin_mg_dl":{"type":"number","description":"Total bilirubin in mg/dL (0.1-40). Converted as µmol/L = mg/dL × 17.1."},"bilirubin_umol_l":{"type":"number","description":"Total bilirubin in µmol/L (2-684). Provide this or bilirubin_mg_dl. <125 scores 1; 125-250 scores 2; >250 scores 3."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/gahs","count":2,"items":[{"score":5,"formula":"gahs","citation":{"id":"forrest-2005","doi":"10.1136/gut.2004.050781","title":"Analysis of factors predictive of mortality in alcoholic hepatitis and derivation and validation of the Glasgow alcoholic hepatitis score","source":"Gut. 2005;54(8):1174-1179","authors":"Forrest EH, Evans CD, Stewart S, et al."},"pt_ratio":1.2,"wbc_k_ul":8,"age_years":40,"gahs_band":"lt_9","max_score":12,"min_score":5,"components":[{"value":40,"factor":"age","points":1,"present":false},{"value":8,"factor":"wbc","points":1,"present":false},{"value":4,"factor":"urea","points":1,"present":false},{"value":1.2,"factor":"pt_ratio","points":1,"present":false},{"value":80,"factor":"bilirubin","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.","urea_mmol_l":4,"bilirubin_umol_l":80,"formula_expression":"GAHS = age_points + wbc_points + urea_points + pt_ratio_points + bilirubin_points; range 5-12"},{"score":5,"formula":"gahs","citation":{"id":"forrest-2005","doi":"10.1136/gut.2004.050781","title":"Analysis of factors predictive of mortality in alcoholic hepatitis and derivation and validation of the Glasgow alcoholic hepatitis score","source":"Gut. 2005;54(8):1174-1179","authors":"Forrest EH, Evans CD, Stewart S, et al."},"pt_ratio":1.2,"wbc_k_ul":8,"age_years":40,"gahs_band":"lt_9","max_score":12,"min_score":5,"components":[{"value":40,"factor":"age","points":1,"present":false},{"value":8,"factor":"wbc","points":1,"present":false},{"value":4,"factor":"urea","points":1,"present":false},{"value":1.2,"factor":"pt_ratio","points":1,"present":false},{"value":80,"factor":"bilirubin","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.","urea_mmol_l":4,"bilirubin_umol_l":80,"formula_expression":"GAHS = age_points + wbc_points + urea_points + pt_ratio_points + bilirubin_points; range 5-12"}]}},"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_9YCO6Mh-MmjFDCJ55hDoP","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 the Forrest 2005 Glasgow Alcoholic Hepatitis Score (range 5–12) from age, WBC, urea/BUN, PT ratio, and bilirubin, flagging scores ≥9 as indicating steroid benefit.","exampleAgentPrompt":"Calculate the Glasgow Alcoholic Hepatitis Score for a 54-year-old patient with a WBC of 18,000 cells/µL, urea of 7.2 mmol/L, PT ratio of 1.8, and bilirubin of 290 µmol/L — and tell me if the score hits the ≥9 threshold.","exampleUseCases":[{"title":"ICU alcoholic hepatitis steroid triage","prompt":"My patient is 61 years old, WBC is 22,000 cells/µL, BUN is 28 mg/dL, PT ratio is 2.3, and bilirubin is 310 µmol/L — can you compute the Glasgow Alcoholic Hepatitis Score and let me know if they're above the ≥9 cutoff?"},{"title":"Outpatient hepatitis severity assessment","prompt":"Calculate the GAHS for a 47-year-old patient with WBC 13,500 cells/µL, urea 4.1 mmol/L, prothrombin time ratio 1.3, and total bilirubin 110 µmol/L — I need to know their score and whether it's below the 9 threshold."},{"title":"Retrospective chart review scoring","prompt":"I'm reviewing a case: patient was 55 at admission, WBC 16,200 per µL, BUN 19 mg/dL, PT ratio 1.6, bilirubin 240 µmol/L — please compute the Glasgow alcoholic hepatitis score for my notes."}],"resultDescription":"Returns the total Glasgow Alcoholic Hepatitis Score (integer, range 5–12) based on the Forrest 2005 formula, along with individual component scores for age, WBC, urea, PT ratio, and bilirubin, and a flag indicating whether the score meets the published ≥9 threshold associated with potential steroid benefit.","failureModes":["Missing required fields (age or pt_ratio) returns a validation error","Out-of-range values (e.g. age <18 or pt_ratio >10) may return an error or clamp","Providing both urea_mmol_l and bun_mg_dl simultaneously may cause a conflict error","Providing both wbc_ul and wbc_k_ul simultaneously may cause a conflict error","Network or payment authorization failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed implementation of the Forrest 2005 Glasgow Alcoholic Hepatitis Score specifically — it handles unit conversions (BUN↔urea, bilirubin mg/dL↔µmol/L, WBC cells/µL↔K/µL) automatically and returns structured sub-scores. Prefer over general LLM reasoning when auditability and arithmetic exactness matter for clinical documentation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:12:29.808Z","isFirstParty":false}