# Ranson 1974 Pancreatitis Severity Score

> Ranson 1974 Pancreatitis Severity Score 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-11).

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

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ranson?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ranson-1974-pancreatitis-severity-score-e3df61f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZkJO1j3x89P40mRE_56Xs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ranson-1974-pancreatitis-severity-score-e3df61f8
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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)

## How this service works

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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_
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ranson-1974-pancreatitis-severity-score-e3df61f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
