{"uid":"cap_ZkJO1j3x89P40mRE_56Xs","slug":"ranson-1974-pancreatitis-severity-score-e3df61f8","name":"Ranson 1974 Pancreatitis Severity Score","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/ranson?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":["age_gt_55","wbc_gt_16k","glucose_gt_200","ldh_gt_350","ast_gt_250","hct_drop_gt_10","bun_rise_gt_5","calcium_lt_8","pao2_lt_60","base_deficit_gt_4","fluid_seq_gt_6l"],"properties":{"age_gt_55":{"type":"boolean","description":"Admission: age >55 years (Ranson 1974). true or false."},"ast_gt_250":{"type":"boolean","description":"Admission: AST >250 U/L. true or false."},"ldh_gt_350":{"type":"boolean","description":"Admission: LDH >350 IU/L. true or false."},"pao2_lt_60":{"type":"boolean","description":"First 48 h: arterial PaO2 <60 mm Hg. true or false."},"wbc_gt_16k":{"type":"boolean","description":"Admission: WBC >16 000/mm^3. true or false."},"calcium_lt_8":{"type":"boolean","description":"First 48 h: serum calcium <8 mg/dL. true or false."},"bun_rise_gt_5":{"type":"boolean","description":"First 48 h: BUN rise >5 mg/dL. true or false."},"glucose_gt_200":{"type":"boolean","description":"Admission: blood glucose >200 mg/dL. true or false."},"hct_drop_gt_10":{"type":"boolean","description":"First 48 h: hematocrit fall >10 percentage points. true or false."},"fluid_seq_gt_6l":{"type":"boolean","description":"First 48 h: estimated fluid sequestration >6 L. true or false."},"base_deficit_gt_4":{"type":"boolean","description":"First 48 h: base deficit >4 mEq/L. true or false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/ranson","count":2,"items":[{"score":0,"formula":"ranson","citation":{"id":"ranson-1974","pmid":"4834279","title":"Prognostic signs and the role of operative management in acute pancreatitis","source":"Surg Gynecol Obstet. 1974;139(1):69-81","authors":"Ranson JH, Rifkind KM, Roses DF, Fink SD, Eng K, Spencer FC"},"max_score":11,"components":[{"factor":"age_gt_55","points":0,"present":false},{"factor":"wbc_gt_16k","points":0,"present":false},{"factor":"glucose_gt_200","points":0,"present":false},{"factor":"ldh_gt_350","points":0,"present":false},{"factor":"ast_gt_250","points":0,"present":false},{"factor":"hct_drop_gt_10","points":0,"present":false},{"factor":"bun_rise_gt_5","points":0,"present":false},{"factor":"calcium_lt_8","points":0,"present":false},{"factor":"pao2_lt_60","points":0,"present":false},{"factor":"base_deficit_gt_4","points":0,"present":false},{"factor":"fluid_seq_gt_6l","points":0,"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.","mortality_band":"0-2","formula_expression":"Ranson = 5 admission signs + 6 signs during first 48 h; each 1 if present; max 11"},{"score":0,"formula":"ranson","citation":{"id":"ranson-1974","pmid":"4834279","title":"Prognostic signs and the role of operative management in acute pancreatitis","source":"Surg Gynecol Obstet. 1974;139(1):69-81","authors":"Ranson JH, Rifkind KM, Roses DF, Fink SD, Eng K, Spencer FC"},"max_score":11,"components":[{"factor":"age_gt_55","points":0,"present":false},{"factor":"wbc_gt_16k","points":0,"present":false},{"factor":"glucose_gt_200","points":0,"present":false},{"factor":"ldh_gt_350","points":0,"present":false},{"factor":"ast_gt_250","points":0,"present":false},{"factor":"hct_drop_gt_10","points":0,"present":false},{"factor":"bun_rise_gt_5","points":0,"present":false},{"factor":"calcium_lt_8","points":0,"present":false},{"factor":"pao2_lt_60","points":0,"present":false},{"factor":"base_deficit_gt_4","points":0,"present":false},{"factor":"fluid_seq_gt_6l","points":0,"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.","mortality_band":"0-2","formula_expression":"Ranson = 5 admission signs + 6 signs during first 48 h; each 1 if present; max 11"}]}},"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_XEAQPrix4cWrGy_yU5RmC","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 Ranson 1974 pancreatitis severity score from 11 boolean clinical signs (5 at admission, 6 at 48h) and returns total points plus a mortality risk band","exampleAgentPrompt":"Score this pancreatitis case using Ranson 1974 criteria: age over 55 true, WBC over 16k true, glucose over 200 false, LDH over 350 true, AST over 250 false; at 48 hours: hematocrit drop over 10 points false, BUN rise over 5 true, calcium under 8 true, PaO2 under 60 false, base deficit over 4 false, fluid sequestration over 6L true — what's the total score and mortality band?","exampleUseCases":[{"title":"Emergency triage of acute pancreatitis","prompt":"My patient came in with acute pancreatitis — age 62, WBC 18k, glucose 240, LDH 400, AST 180. At 48 hours: hematocrit dropped 12 points, BUN rose 7, calcium is 7.5, PaO2 is 65, base deficit is 3, fluid sequestration is 5L. Can you run the Ranson score and tell me what mortality band they fall into?"},{"title":"Informing ICU escalation decision","prompt":"I'm deciding whether to escalate a pancreatitis patient to ICU. Their Ranson flags are: age over 55 yes, WBC over 16k yes, glucose over 200 yes, LDH over 350 yes, AST over 250 yes; 48-hour: hematocrit drop over 10 yes, BUN rise over 5 yes, calcium under 8 yes, PaO2 under 60 yes, base deficit over 4 yes, fluid seq over 6L yes. What's the Ranson score and risk band?"},{"title":"Documenting pancreatitis severity for chart","prompt":"I need to document the Ranson 1974 severity score in the chart. Patient is 48 years old (so age flag false), WBC 14k (false), glucose 210 (true), LDH 380 (true), AST 300 (true); at 48h: hematocrit drop 8pp (false), BUN rise 3 (false), calcium 8.5 (false), PaO2 58 (true), base deficit 5 (true), fluid sequestration 4L (false). What's the score and band?"}],"resultDescription":"Returns the total Ranson score as an integer from 0 to 11 and a mortality risk band corresponding to published thresholds: 0-2 (low risk), 3-4 (moderate risk), 5-6 (high risk), or 7-11 (very high risk/near-universal mortality), based on deterministic arithmetic from the Ranson 1974 publication.","failureModes":["Missing required boolean query parameters returns a validation error","Non-boolean values passed for flag fields cause a parsing error","Network timeout on the remote API endpoint","Incorrect flag interpretation by the caller (e.g. applying non-gallstone criteria to a gallstone pancreatitis patient — Ranson 1974 is for non-gallstone etiology)"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, citation-backed Ranson 1974 pancreatitis severity score from structured boolean clinical data. Prefer it over manual calculation to eliminate arithmetic errors. It is specifically the 1974 Ranson criteria (non-gallstone, 11 signs); if gallstone pancreatitis criteria or a different scoring system (e.g. BISAP, APACHE-II) is needed, look for an alternative endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:43:24.598Z","isFirstParty":false,"canonicalSlug":"ranson-1974-pancreatitis-severity-score-e3df61f8"}