{
  "x402Version": 2,
  "id": 39073,
  "slug": "39073",
  "resource": "https://api.magentlab.com/api/calc/irae_nephritis",
  "description": "ASCO 2018 (Brahmer) irAE nephritis grade from creatinine vs baseline (mg/dL). First-match: 4 if dialysis or life-threatening; 3 if fold >3, creatinine >=4.0, or hospitalization; 2 if fold >2; 1 if fold >=1.5 or delta >=0.3; else 0. ICI action continue (0), consider_hold (1), hold (2), permanently_discontinue (3-4). Not a medical device, not a diagnosis, not KDIGO/AKIN, not a steroid dose; magent does not assay creatinine.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "AI Inference",
  "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": [
              {
                "baseline_creatinine_mg_dl": 1,
                "creatinine_mg_dl": 1.6,
                "dialysis_indicated": false,
                "hospitalization_indicated": false,
                "life_threatening": false
              },
              {
                "baseline_creatinine_mg_dl": 1,
                "creatinine_mg_dl": 1.6,
                "dialysis_indicated": false,
                "hospitalization_indicated": false,
                "life_threatening": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "baseline_creatinine_mg_dl": 1,
                "citation": {
                  "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                  "doi": "10.1200/JCO.2017.77.6385",
                  "id": "brahmer-2018",
                  "pmid": "29442540",
                  "source": "J Clin Oncol. 2018;36(17):1714-1768",
                  "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                },
                "creatinine_mg_dl": 1.6,
                "criteria": [
                  {
                    "factor": "dialysis_indicated",
                    "met": false
                  },
                  {
                    "factor": "life_threatening",
                    "met": false
                  },
                  {
                    "factor": "fold_gt_3",
                    "met": false,
                    "value": 1.6
                  },
                  {
                    "factor": "creatinine_ge_4",
                    "met": false,
                    "value": 1.6
                  },
                  {
                    "factor": "hospitalization_indicated",
                    "met": false
                  },
                  {
                    "factor": "fold_gt_2",
                    "met": false,
                    "value": 1.6
                  },
                  {
                    "factor": "fold_ge_1_5",
                    "met": true,
                    "value": 1.6
                  },
                  {
                    "factor": "delta_ge_0_3",
                    "met": true,
                    "value": 0.6
                  }
                ],
                "delta": 0.6,
                "dialysis_indicated": 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.",
                "fold": 1.6,
                "formula": "irae_nephritis",
                "formula_expression": "irae_nephritis first-match worst-wins (Brahmer 2018 Table 6.1): fold = creatinine_mg_dl / baseline_creatinine_mg_dl; delta = creatinine_mg_dl - baseline_creatinine_mg_dl. Grade 4 if dialysis_indicated or life_threatening; else grade 3 if fold > 3 or creatinine_mg_dl >= 4.0 or hospitalization_indicated; else grade 2 if fold > 2; else grade 1 if fold >= 1.5 or delta >= 0.3; else grade 0. icpi_action: 0 continue, 1 consider_hold, 2 hold, 3-4 permanently_discontinue. mg/dL only. Not KDIGO/AKIN. magent does not assay creatinine. Not a diagnosis. Not a steroid dose",
                "grade": 1,
                "hospitalization_indicated": false,
                "icpi_action": "consider_hold",
                "life_threatening": false
              },
              {
                "baseline_creatinine_mg_dl": 1,
                "citation": {
                  "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                  "doi": "10.1200/JCO.2017.77.6385",
                  "id": "brahmer-2018",
                  "pmid": "29442540",
                  "source": "J Clin Oncol. 2018;36(17):1714-1768",
                  "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                },
                "creatinine_mg_dl": 1.6,
                "criteria": [
                  {
                    "factor": "dialysis_indicated",
                    "met": false
                  },
                  {
                    "factor": "life_threatening",
                    "met": false
                  },
                  {
                    "factor": "fold_gt_3",
                    "met": false,
                    "value": 1.6
                  },
                  {
                    "factor": "creatinine_ge_4",
                    "met": false,
                    "value": 1.6
                  },
                  {
                    "factor": "hospitalization_indicated",
                    "met": false
                  },
                  {
                    "factor": "fold_gt_2",
                    "met": false,
                    "value": 1.6
                  },
                  {
                    "factor": "fold_ge_1_5",
                    "met": true,
                    "value": 1.6
                  },
                  {
                    "factor": "delta_ge_0_3",
                    "met": true,
                    "value": 0.6
                  }
                ],
                "delta": 0.6,
                "dialysis_indicated": 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.",
                "fold": 1.6,
                "formula": "irae_nephritis",
                "formula_expression": "irae_nephritis first-match worst-wins (Brahmer 2018 Table 6.1): fold = creatinine_mg_dl / baseline_creatinine_mg_dl; delta = creatinine_mg_dl - baseline_creatinine_mg_dl. Grade 4 if dialysis_indicated or life_threatening; else grade 3 if fold > 3 or creatinine_mg_dl >= 4.0 or hospitalization_indicated; else grade 2 if fold > 2; else grade 1 if fold >= 1.5 or delta >= 0.3; else grade 0. icpi_action: 0 continue, 1 consider_hold, 2 hold, 3-4 permanently_discontinue. mg/dL only. Not KDIGO/AKIN. magent does not assay creatinine. Not a diagnosis. Not a steroid dose",
                "grade": 1,
                "hospitalization_indicated": false,
                "icpi_action": "consider_hold",
                "life_threatening": false
              }
            ],
            "path": "/api/calc/irae_nephritis"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "baseline_creatinine_mg_dl": {
                          "description": "Baseline serum creatinine in mg/dL (0.1-20). µmol/L is not accepted. magent does not assay creatinine.",
                          "type": "number"
                        },
                        "creatinine_mg_dl": {
                          "description": "Current serum creatinine in mg/dL (0.1-20). Used with baseline_creatinine_mg_dl for fold and delta (Brahmer 2018 Table 6.1). magent does not assay creatinine.",
                          "type": "number"
                        },
                        "dialysis_indicated": {
                          "description": "Dialysis indicated as assigned by the caller (Brahmer 2018 Table 6.1 grade 4). true or false. When true, grade is 4 regardless of fold. magent does not start dialysis.",
                          "type": "boolean"
                        },
                        "hospitalization_indicated": {
                          "description": "Hospitalization indicated as assigned by the caller (Brahmer 2018 Table 6.1 grade 3). true or false. When true and neither dialysis_indicated nor life_threatening is true, grade is 3. magent does not admit the patient.",
                          "type": "boolean"
                        },
                        "life_threatening": {
                          "description": "Life-threatening consequences as assigned by the caller (Brahmer 2018 Table 6.1 grade 4). true or false. When true, grade is 4 regardless of fold. magent does not examine the patient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "creatinine_mg_dl",
                        "baseline_creatinine_mg_dl",
                        "hospitalization_indicated",
                        "dialysis_indicated",
                        "life_threatening"
                      ],
                      "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": [
    "irae-nephritis",
    "kidney",
    "checkpoint",
    "asco",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:11:26.5Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T07:11:26.382Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "baseline_creatinine_mg_dl": 1,
                  "creatinine_mg_dl": 1.6,
                  "dialysis_indicated": false,
                  "hospitalization_indicated": false,
                  "life_threatening": false
                },
                {
                  "baseline_creatinine_mg_dl": 1,
                  "creatinine_mg_dl": 1.6,
                  "dialysis_indicated": false,
                  "hospitalization_indicated": false,
                  "life_threatening": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "baseline_creatinine_mg_dl": 1,
                  "citation": {
                    "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                    "doi": "10.1200/JCO.2017.77.6385",
                    "id": "brahmer-2018",
                    "pmid": "29442540",
                    "source": "J Clin Oncol. 2018;36(17):1714-1768",
                    "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                  },
                  "creatinine_mg_dl": 1.6,
                  "criteria": [
                    {
                      "factor": "dialysis_indicated",
                      "met": false
                    },
                    {
                      "factor": "life_threatening",
                      "met": false
                    },
                    {
                      "factor": "fold_gt_3",
                      "met": false,
                      "value": 1.6
                    },
                    {
                      "factor": "creatinine_ge_4",
                      "met": false,
                      "value": 1.6
                    },
                    {
                      "factor": "hospitalization_indicated",
                      "met": false
                    },
                    {
                      "factor": "fold_gt_2",
                      "met": false,
                      "value": 1.6
                    },
                    {
                      "factor": "fold_ge_1_5",
                      "met": true,
                      "value": 1.6
                    },
                    {
                      "factor": "delta_ge_0_3",
                      "met": true,
                      "value": 0.6
                    }
                  ],
                  "delta": 0.6,
                  "dialysis_indicated": 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.",
                  "fold": 1.6,
                  "formula": "irae_nephritis",
                  "formula_expression": "irae_nephritis first-match worst-wins (Brahmer 2018 Table 6.1): fold = creatinine_mg_dl / baseline_creatinine_mg_dl; delta = creatinine_mg_dl - baseline_creatinine_mg_dl. Grade 4 if dialysis_indicated or life_threatening; else grade 3 if fold > 3 or creatinine_mg_dl >= 4.0 or hospitalization_indicated; else grade 2 if fold > 2; else grade 1 if fold >= 1.5 or delta >= 0.3; else grade 0. icpi_action: 0 continue, 1 consider_hold, 2 hold, 3-4 permanently_discontinue. mg/dL only. Not KDIGO/AKIN. magent does not assay creatinine. Not a diagnosis. Not a steroid dose",
                  "grade": 1,
                  "hospitalization_indicated": false,
                  "icpi_action": "consider_hold",
                  "life_threatening": false
                },
                {
                  "baseline_creatinine_mg_dl": 1,
                  "citation": {
                    "authors": "Brahmer JR, Lacchetti C, Schneider BJ, Atkins MB, Brassil KJ, Caterino JM, Chau I, Ernstoff MS, Gardner JM, Ginex P, Hallmeyer S, Holter Chakrabarty J, Leighl NB, Mammen JS, McDermott DF, Naing A, Nastoupil LJ, Phillips T, Porter LD, Puzanov I, Reichner CA, Santomasso BD, Seigel C, Spira A, Suarez-Almazor ME, Wang Y, Weber JS, Wolchok JD, Thompson JA",
                    "doi": "10.1200/JCO.2017.77.6385",
                    "id": "brahmer-2018",
                    "pmid": "29442540",
                    "source": "J Clin Oncol. 2018;36(17):1714-1768",
                    "title": "Management of Immune-Related Adverse Events in Patients Treated With Immune Checkpoint Inhibitor Therapy: American Society of Clinical Oncology Clinical Practice Guideline"
                  },
                  "creatinine_mg_dl": 1.6,
                  "criteria": [
                    {
                      "factor": "dialysis_indicated",
                      "met": false
                    },
                    {
                      "factor": "life_threatening",
                      "met": false
                    },
                    {
                      "factor": "fold_gt_3",
                      "met": false,
                      "value": 1.6
                    },
                    {
                      "factor": "creatinine_ge_4",
                      "met": false,
                      "value": 1.6
                    },
                    {
                      "factor": "hospitalization_indicated",
                      "met": false
                    },
                    {
                      "factor": "fold_gt_2",
                      "met": false,
                      "value": 1.6
                    },
                    {
                      "factor": "fold_ge_1_5",
                      "met": true,
                      "value": 1.6
                    },
                    {
                      "factor": "delta_ge_0_3",
                      "met": true,
                      "value": 0.6
                    }
                  ],
                  "delta": 0.6,
                  "dialysis_indicated": 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.",
                  "fold": 1.6,
                  "formula": "irae_nephritis",
                  "formula_expression": "irae_nephritis first-match worst-wins (Brahmer 2018 Table 6.1): fold = creatinine_mg_dl / baseline_creatinine_mg_dl; delta = creatinine_mg_dl - baseline_creatinine_mg_dl. Grade 4 if dialysis_indicated or life_threatening; else grade 3 if fold > 3 or creatinine_mg_dl >= 4.0 or hospitalization_indicated; else grade 2 if fold > 2; else grade 1 if fold >= 1.5 or delta >= 0.3; else grade 0. icpi_action: 0 continue, 1 consider_hold, 2 hold, 3-4 permanently_discontinue. mg/dL only. Not KDIGO/AKIN. magent does not assay creatinine. Not a diagnosis. Not a steroid dose",
                  "grade": 1,
                  "hospitalization_indicated": false,
                  "icpi_action": "consider_hold",
                  "life_threatening": false
                }
              ],
              "path": "/api/calc/irae_nephritis"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "baseline_creatinine_mg_dl": {
                            "description": "Baseline serum creatinine in mg/dL (0.1-20). µmol/L is not accepted. magent does not assay creatinine.",
                            "type": "number"
                          },
                          "creatinine_mg_dl": {
                            "description": "Current serum creatinine in mg/dL (0.1-20). Used with baseline_creatinine_mg_dl for fold and delta (Brahmer 2018 Table 6.1). magent does not assay creatinine.",
                            "type": "number"
                          },
                          "dialysis_indicated": {
                            "description": "Dialysis indicated as assigned by the caller (Brahmer 2018 Table 6.1 grade 4). true or false. When true, grade is 4 regardless of fold. magent does not start dialysis.",
                            "type": "boolean"
                          },
                          "hospitalization_indicated": {
                            "description": "Hospitalization indicated as assigned by the caller (Brahmer 2018 Table 6.1 grade 3). true or false. When true and neither dialysis_indicated nor life_threatening is true, grade is 3. magent does not admit the patient.",
                            "type": "boolean"
                          },
                          "life_threatening": {
                            "description": "Life-threatening consequences as assigned by the caller (Brahmer 2018 Table 6.1 grade 4). true or false. When true, grade is 4 regardless of fold. magent does not examine the patient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "creatinine_mg_dl",
                          "baseline_creatinine_mg_dl",
                          "hospitalization_indicated",
                          "dialysis_indicated",
                          "life_threatening"
                        ],
                        "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"
  }
}