# du Bois 2011 Abbreviated IPF Score Calculator

> du Bois 2011 Abbreviated IPF Score Calculator 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 du Bois 2011 four-predictor abbreviated IPF (Idiopathic Pulmonary Fibrosis) score from age, respiratory hospitalization history, FVC % predicted, and 24-week FVC % change, returning a total score from 0 to 61.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/du_bois
- 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/du-bois-2011-abbreviated-ipf-score-calculator-cda2f6f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_83vvf-o2UYpE45xv1brhB

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 du-bois-2011-abbreviated-ipf-score-calculator-cda2f6f4
```

Example prompt: Calculate the du Bois 2011 abbreviated IPF score for a 67-year-old patient who had a respiratory hospitalization in the past 24 weeks, FVC percent predicted of 72%, and a 24-week FVC change of -7 percentage points.

## When to prefer this

Use this endpoint when you need the specific du Bois 2011 abbreviated four-predictor IPF score (0–61) for a patient with known age, 24-week respiratory hospitalization history, FVC percent predicted, and 24-week FVC percent change. Choose this over generic calculators when you need the published scoring table logic faithfully implemented. Do not use this for GAP index scoring, transplant listing decisions, or when you need Table 4 risk percentages — this endpoint returns the raw score only.

## Known failure modes

- Missing required parameters (age, respiratory_hospitalization, fvc_percent_predicted, fvc_change_24wk) returns an error
- FVC percent predicted exactly at boundary values 50 or 80 is unpublished/undefined — results may be ambiguous
- Out-of-range inputs (age <18 or >120, FVC values outside 10–150) may return validation errors
- Payment not provided or insufficient (x402 payment required at $0.005 USDC per call)

## How this service works

du Bois 2011 abbreviated four-predictor IPF score from age (<60 → 0, 60–69 → 4, ≥70 → 8), 24-week respiratory hospitalization (true → 14), FVC % predicted (<50 → 18, 51–65 → 13, 66–79 → 8, >80 → 0; 50 and 80 unpublished), and 24-week FVC % change (≤ −10 → 21, > −10 and < −4.9 → 10, ≥ −4.9 → 0). Returns a 0–61 total only. Does not interpolate Table 4 risk percents. Not GAP and not a transplant listing.

## Output

Returns a single integer total score ranging from 0 to 61, representing the sum of points assigned by the du Bois 2011 abbreviated four-predictor IPF model. Higher scores indicate worse prognosis. The endpoint does not interpolate or return Table 4 risk percentages, and does not compute the GAP index or transplant listing scores.

## 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",
      "respiratory_hospitalization",
      "fvc_percent_predicted",
      "fvc_change_24wk"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). du Bois 2011 Table 4: <60 scores 0; 60-69 scores 4; >=70 scores 8."
      },
      "fvc_change_24wk": {
       "type": "number",
       "description": "24-week change in FVC percent predicted, in percentage points (-50 to 50). du Bois 2011 Table 4: <= -10 scores 21; > -10 and < -4.9 scores 10; >= -4.9 scores 0."
      },
      "fvc_percent_predicted": {
       "type": "number",
       "description": "FVC percent predicted (10-150). du Bois 2011 Table 4: <50 scores 18; 51-65 scores 13; 66-79 scores 8; >80 scores 0. Exactly 50 or 80 is unpublished."
      },
      "respiratory_hospitalization": {
       "type": "boolean",
       "description": "24-week history of respiratory hospitalization (true or false). du Bois 2011 Table 4: false scores 0; true scores 14."
      }
     }
    }
   },
   "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/du-bois-2011-abbreviated-ipf-score-calculator-cda2f6f4/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)
