{
  "x402Version": 2,
  "id": 39204,
  "slug": "39204",
  "resource": "https://api.magentlab.com/api/calc/du_bois",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "age": 70,
                "fvc_change_24wk": -7,
                "fvc_percent_predicted": 55,
                "respiratory_hospitalization": false
              },
              {
                "age": 70,
                "fvc_change_24wk": -7,
                "fvc_percent_predicted": 55,
                "respiratory_hospitalization": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 70,
                "citation": {
                  "authors": "du Bois RM, Weycker D, Albera C, Bradford WZ, Costabel U, Kartashov A, Lancaster L, Noble PW, Raghu G, Sahn SA, Szwarcberg J, Thomeer M, Valeyre D, King TE Jr",
                  "doi": "10.1164/rccm.201011-1790OC",
                  "id": "du-bois-2011",
                  "pmid": "21616999",
                  "source": "Am J Respir Crit Care Med. 2011;184(4):459-466",
                  "title": "Ascertainment of individual risk of mortality for patients with idiopathic pulmonary fibrosis"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 8,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "respiratory_hospitalization",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "fvc",
                    "points": 13,
                    "present": true,
                    "value": 55
                  },
                  {
                    "factor": "fvc_change",
                    "points": 10,
                    "present": true,
                    "value": -7
                  }
                ],
                "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": "du_bois",
                "formula_expression": "du_bois = age_points + hospitalization_points + fvc_points + fvc_change_points; age <60 -> 0, 60-69 -> 4, >=70 -> 8; respiratory_hospitalization false -> 0, true -> 14; FVC% <50 -> 18, 51-65 -> 13, 66-79 -> 8, >80 -> 0 (50 and 80 unpublished); 24-wk FVC% change <= -10 -> 21, > -10 and < -4.9 -> 10, >= -4.9 -> 0; max 61; score only",
                "fvc_change_24wk": -7,
                "fvc_percent_predicted": 55,
                "max_score": 61,
                "respiratory_hospitalization": false,
                "score": 31
              },
              {
                "age_years": 70,
                "citation": {
                  "authors": "du Bois RM, Weycker D, Albera C, Bradford WZ, Costabel U, Kartashov A, Lancaster L, Noble PW, Raghu G, Sahn SA, Szwarcberg J, Thomeer M, Valeyre D, King TE Jr",
                  "doi": "10.1164/rccm.201011-1790OC",
                  "id": "du-bois-2011",
                  "pmid": "21616999",
                  "source": "Am J Respir Crit Care Med. 2011;184(4):459-466",
                  "title": "Ascertainment of individual risk of mortality for patients with idiopathic pulmonary fibrosis"
                },
                "components": [
                  {
                    "factor": "age",
                    "points": 8,
                    "present": true,
                    "value": 70
                  },
                  {
                    "factor": "respiratory_hospitalization",
                    "points": 0,
                    "present": false,
                    "value": false
                  },
                  {
                    "factor": "fvc",
                    "points": 13,
                    "present": true,
                    "value": 55
                  },
                  {
                    "factor": "fvc_change",
                    "points": 10,
                    "present": true,
                    "value": -7
                  }
                ],
                "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": "du_bois",
                "formula_expression": "du_bois = age_points + hospitalization_points + fvc_points + fvc_change_points; age <60 -> 0, 60-69 -> 4, >=70 -> 8; respiratory_hospitalization false -> 0, true -> 14; FVC% <50 -> 18, 51-65 -> 13, 66-79 -> 8, >80 -> 0 (50 and 80 unpublished); 24-wk FVC% change <= -10 -> 21, > -10 and < -4.9 -> 10, >= -4.9 -> 0; max 61; score only",
                "fvc_change_24wk": -7,
                "fvc_percent_predicted": 55,
                "max_score": 61,
                "respiratory_hospitalization": false,
                "score": 31
              }
            ],
            "path": "/api/calc/du_bois"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (integer 18-120). du Bois 2011 Table 4: <60 scores 0; 60-69 scores 4; >=70 scores 8.",
                          "type": "integer"
                        },
                        "fvc_change_24wk": {
                          "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.",
                          "type": "number"
                        },
                        "fvc_percent_predicted": {
                          "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.",
                          "type": "number"
                        },
                        "respiratory_hospitalization": {
                          "description": "24-week history of respiratory hospitalization (true or false). du Bois 2011 Table 4: false scores 0; true scores 14.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age",
                        "respiratory_hospitalization",
                        "fvc_percent_predicted",
                        "fvc_change_24wk"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "du-bois",
    "ipf",
    "fibrosis",
    "respiratory",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T02:51:01.447Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T02:51:01.295Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 70,
                  "fvc_change_24wk": -7,
                  "fvc_percent_predicted": 55,
                  "respiratory_hospitalization": false
                },
                {
                  "age": 70,
                  "fvc_change_24wk": -7,
                  "fvc_percent_predicted": 55,
                  "respiratory_hospitalization": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 70,
                  "citation": {
                    "authors": "du Bois RM, Weycker D, Albera C, Bradford WZ, Costabel U, Kartashov A, Lancaster L, Noble PW, Raghu G, Sahn SA, Szwarcberg J, Thomeer M, Valeyre D, King TE Jr",
                    "doi": "10.1164/rccm.201011-1790OC",
                    "id": "du-bois-2011",
                    "pmid": "21616999",
                    "source": "Am J Respir Crit Care Med. 2011;184(4):459-466",
                    "title": "Ascertainment of individual risk of mortality for patients with idiopathic pulmonary fibrosis"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 8,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "respiratory_hospitalization",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "fvc",
                      "points": 13,
                      "present": true,
                      "value": 55
                    },
                    {
                      "factor": "fvc_change",
                      "points": 10,
                      "present": true,
                      "value": -7
                    }
                  ],
                  "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": "du_bois",
                  "formula_expression": "du_bois = age_points + hospitalization_points + fvc_points + fvc_change_points; age <60 -> 0, 60-69 -> 4, >=70 -> 8; respiratory_hospitalization false -> 0, true -> 14; FVC% <50 -> 18, 51-65 -> 13, 66-79 -> 8, >80 -> 0 (50 and 80 unpublished); 24-wk FVC% change <= -10 -> 21, > -10 and < -4.9 -> 10, >= -4.9 -> 0; max 61; score only",
                  "fvc_change_24wk": -7,
                  "fvc_percent_predicted": 55,
                  "max_score": 61,
                  "respiratory_hospitalization": false,
                  "score": 31
                },
                {
                  "age_years": 70,
                  "citation": {
                    "authors": "du Bois RM, Weycker D, Albera C, Bradford WZ, Costabel U, Kartashov A, Lancaster L, Noble PW, Raghu G, Sahn SA, Szwarcberg J, Thomeer M, Valeyre D, King TE Jr",
                    "doi": "10.1164/rccm.201011-1790OC",
                    "id": "du-bois-2011",
                    "pmid": "21616999",
                    "source": "Am J Respir Crit Care Med. 2011;184(4):459-466",
                    "title": "Ascertainment of individual risk of mortality for patients with idiopathic pulmonary fibrosis"
                  },
                  "components": [
                    {
                      "factor": "age",
                      "points": 8,
                      "present": true,
                      "value": 70
                    },
                    {
                      "factor": "respiratory_hospitalization",
                      "points": 0,
                      "present": false,
                      "value": false
                    },
                    {
                      "factor": "fvc",
                      "points": 13,
                      "present": true,
                      "value": 55
                    },
                    {
                      "factor": "fvc_change",
                      "points": 10,
                      "present": true,
                      "value": -7
                    }
                  ],
                  "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": "du_bois",
                  "formula_expression": "du_bois = age_points + hospitalization_points + fvc_points + fvc_change_points; age <60 -> 0, 60-69 -> 4, >=70 -> 8; respiratory_hospitalization false -> 0, true -> 14; FVC% <50 -> 18, 51-65 -> 13, 66-79 -> 8, >80 -> 0 (50 and 80 unpublished); 24-wk FVC% change <= -10 -> 21, > -10 and < -4.9 -> 10, >= -4.9 -> 0; max 61; score only",
                  "fvc_change_24wk": -7,
                  "fvc_percent_predicted": 55,
                  "max_score": 61,
                  "respiratory_hospitalization": false,
                  "score": 31
                }
              ],
              "path": "/api/calc/du_bois"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (integer 18-120). du Bois 2011 Table 4: <60 scores 0; 60-69 scores 4; >=70 scores 8.",
                            "type": "integer"
                          },
                          "fvc_change_24wk": {
                            "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.",
                            "type": "number"
                          },
                          "fvc_percent_predicted": {
                            "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.",
                            "type": "number"
                          },
                          "respiratory_hospitalization": {
                            "description": "24-week history of respiratory hospitalization (true or false). du Bois 2011 Table 4: false scores 0; true scores 14.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age",
                          "respiratory_hospitalization",
                          "fvc_percent_predicted",
                          "fvc_change_24wk"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}