# BISAP Score Calculator (Wu 2008)

> BISAP Score Calculator (Wu 2008) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the Bedside Index for Severity in Acute Pancreatitis (BISAP) score from five caller-supplied clinical criteria to predict early mortality risk.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/bisap
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bisap-score-calculator-wu-2008-98d9fc2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MubqB2ZefoMXYQ1rEB2_9

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 bisap-score-calculator-wu-2008-98d9fc2d
```

Example prompt: Calculate the BISAP score for a 68-year-old patient with a BUN of 32 mg/dL, SIRS present, impaired mental status, and a pleural effusion on imaging.

## When to prefer this

Use this endpoint when you need a deterministic, published BISAP score per Wu 2008 and have already assessed SIRS, mental status, and imaging yourself — this endpoint does not recompute SIRS from vitals, assign mental status, or interpret imaging. Prefer this over Ranson, APACHE II, or CTSI when you want a simple bedside 5-point score validated for early mortality prediction in acute pancreatitis. Not appropriate if you need mortality percentage estimates or a diagnostic conclusion.

## Known failure modes

- Missing required parameters (age, bun_mg_dl, impaired_mental_status, sirs, pleural_effusion) returns an error
- BUN value outside valid range 1–200 mg/dL may be rejected
- Age outside valid range 18–120 may be rejected
- Non-boolean values for sirs, impaired_mental_status, or pleural_effusion cause schema validation failure
- Boundary values (BUN exactly 25.0, age exactly 60) correctly score 0 — callers may be surprised these do not score

## How this service works

Wu 2008 BISAP for early mortality prediction in acute pancreatitis: BUN >25 mg/dL, caller-assigned impaired mental status, caller-assigned SIRS, age >60, and caller-assigned pleural effusion; 1 point each, max 5. BUN 25.0 and age 60 do not score. Score only; no mortality percentages. Not a diagnosis. Not Ranson, APACHE II, or CTSI. magent does not recompute SIRS, assign mental status, or read imaging.

## Output

An integer BISAP score from 0 to 5 reflecting the number of positive criteria (BUN >25 mg/dL, impaired mental status, SIRS, age >60, pleural effusion). No mortality percentages are included. The score does not constitute a diagnosis.

## 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",
      "bun_mg_dl",
      "impaired_mental_status",
      "sirs",
      "pleural_effusion"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Scores 1 when age >60; 60 does not score."
      },
      "sirs": {
       "type": "boolean",
       "description": "SIRS present as assigned by the caller. true or false. magent does not recompute Bone SIRS from vitals. 1 point if true."
      },
      "bun_mg_dl": {
       "type": "number",
       "description": "Blood urea nitrogen in mg/dL (1-200). Scores 1 when >25; 25.0 does not score."
      },
      "pleural_effusion": {
       "type": "boolean",
       "description": "Pleural effusion as assigned by the caller from imaging. true or false. magent does not read imaging. 1 point if true."
      },
      "impaired_mental_status": {
       "type": "boolean",
       "description": "Impaired mental status as assigned by the caller (paper: GCS <15). true or false. magent does not take GCS or assign mental status. 1 point if true."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/bisap",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "bisap",
    "citation": {
     "id": "wu-2008",
     "doi": "10.1136/gut.2008.150862",
     "title": "The early prediction of mortality in acute pancreatitis: a large population-based study",
     "source": "Gut. 2008;57(12):1698-1703",
     "authors": "Wu BU, Johannes RS, Sun X, Tabak Y, Conwell DL, Banks PA"
    },
    "age_years": 50,
    "bun_mg_dl": 20,
    "max_score": 5,
    "components": [
     {
      "value": 20,
      "factor": "bun_gt_25",
      "points": 0,
      "present": false
     },
     {
      "factor": "impaired_mental_status",
      "points": 0,
      "present": false
     },
     {
      "factor": "sirs",
      "points": 0,
      "present": false
     },
     {
      "value": 50,
      "factor": "age_gt_60",
      "points": 0,
      "present": false
     },
     {
      "factor": "pleural_effusion",
      "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.",
    "formula_expression": "BISAP = (bun_mg_dl>25) + impaired_mental_status + sirs + (age>60) + pleural_effusion; each 1 if present; max 5"
   },
   {
    "score": 0,
    "formula": "bisap",
    "citation": {
     "id": "wu-2008",
     "doi": "10.1136/gut.2008.150862",
     "title": "The early prediction of mortality in acute pancreatitis: a large population-based study",
     "source": "Gut. 2008;57(12):1698-1703",
     "authors": "Wu BU, Johannes RS, Sun X, Tabak Y, Conwell DL, Banks PA"
    },
    "age_years": 50,
    "bun_mg_dl": 20,
    "max_score": 5,
    "components": [
     {
      "value": 20,
      "factor": "bun_gt_25",
      "points": 0,
      "present": false
     },
     {
      "factor": "impaired_mental_status",
      "points": 0,
      "present": false
     },
     {
      "factor": "sirs",
      "points": 0,
      "present": false
     },
     {
      "value": 50,
      "factor": "age_gt_60",
      "points": 0,
      "present": false
     },
     {
      "factor": "pleural_effusion",
      "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.",

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bisap-score-calculator-wu-2008-98d9fc2d/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)
