# RAPID Score Calculator for Pleural Infection (Rahman 2014)

> RAPID Score Calculator for Pleural Infection (Rahman 2014) 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-13).

Computes the Rahman 2014 RAPID score for pleural infection prognosis using urea, age, fluid character, infection origin, and albumin to stratify patients into low/medium/high risk bands.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rapid
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rapid-score-calculator-for-pleural-infection-rahman-2014-28d34ecb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UjLx74jvWd4qTUD7IqAVJ

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 rapid-score-calculator-for-pleural-infection-rahman-2014-28d34ecb
```

Example prompt: Calculate the RAPID score for a 65-year-old patient with a serum urea of 7.2 mmol/L, albumin of 24 g/L, non-purulent pleural fluid, and a hospital-acquired pleural infection.

## When to prefer this

Use this endpoint when you need a fast, deterministic, citation-backed RAPID score (Rahman 2014) for pleural infection risk stratification. It is not a substitute for Light's criteria, does not make drain or surgery recommendations, and is distinct from other pleural scoring tools. Prefer it when you have the five required clinical variables and need a validated 0–7 score with low/medium/high banding.

## Known failure modes

- Missing required parameters (age, pleural_purulent, hospital_acquired) returns a 400 error
- Providing both urea_mmol_l and bun_mg_dl simultaneously returns a validation error
- Providing both albumin_g_l and albumin_g_dl simultaneously returns a validation error
- Out-of-range values (e.g. age <18 or >120, urea >50) return a validation error
- No albumin parameter provided may return an error or default to 0 points depending on server behavior

## How this service works

Rahman 2014 RAPID score for pleural infection: urea (<5=0, 5-8=1, >8=2 mmol/L), age (<50=0, 50-70=1, >70=2), non-purulent fluid 1, hospital-acquired 1, albumin <27 g/L 1; total 0-7 with low/medium/high bands. Deterministic published arithmetic with citation; not a drain or surgery decision and not Light's criteria.

## Output

Returns the total RAPID score (integer 0–7), the corresponding risk band (low, medium, or high), and a per-component breakdown showing points contributed by urea, age, fluid purulence, infection origin, and albumin.

## 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",
      "pleural_purulent",
      "hospital_acquired"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). <50 scores 0; 50-70 inclusive scores 1; >70 scores 2."
      },
      "bun_mg_dl": {
       "type": "number",
       "description": "BUN in mg/dL (3-140). Converted as urea_mmol_l = bun_mg_dl / 2.8."
      },
      "albumin_g_l": {
       "type": "number",
       "description": "Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. ≥27 scores 0; <27 scores 1."
      },
      "urea_mmol_l": {
       "type": "number",
       "description": "Serum urea in mmol/L (1-50). Provide this or bun_mg_dl, not both. <5 scores 0; 5.0-8.0 inclusive scores 1; >8 scores 2 (Rahman 2014)."
      },
      "albumin_g_dl": {
       "type": "number",
       "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both."
      },
      "pleural_purulent": {
       "type": "boolean",
       "description": "Purulent pleural fluid (Rahman 2014). true scores 0; false (non-purulent) scores 1. magent does not inspect the fluid."
      },
      "hospital_acquired": {
       "type": "boolean",
       "description": "Hospital-acquired pleural infection (Rahman 2014). true scores 1; false (community) scores 0."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rapid-score-calculator-for-pleural-infection-rahman-2014-28d34ecb/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)
