{
  "x402Version": 2,
  "id": 38860,
  "slug": "38860",
  "resource": "https://api.magentlab.com/api/calc/rifle",
  "description": "RIFLE 2004 (Bellomo Fig. 1) class from baseline and current creatinine in mg/dL and a caller-assigned urine-output category. Class is the worse of the two limbs; persistent ARF >4 weeks is Loss and >3 months is ESRD. magent does not assay creatinine, measure urine, or estimate baseline with MDRD. Not a medical device, not a diagnosis, not AKIN 2007, and not KDIGO 2012.",
  "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": [
              {
                "baseline_creatinine_mg_dl": 1,
                "current_creatinine_mg_dl": 1,
                "esrd_gt_3_months": false,
                "persistent_arf_gt_4_weeks": false,
                "urine_output": "none"
              },
              {
                "baseline_creatinine_mg_dl": 1,
                "current_creatinine_mg_dl": 1,
                "esrd_gt_3_months": false,
                "persistent_arf_gt_4_weeks": false,
                "urine_output": "none"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "baseline_creatinine_mg_dl": 1,
                "citation": {
                  "authors": "Bellomo R, Ronco C, Kellum JA, Mehta RL, Palevsky P, and the ADQI workgroup",
                  "doi": "10.1186/cc2872",
                  "id": "bellomo-2004",
                  "pmid": "15312219",
                  "source": "Crit Care. 2004;8(4):R204-R212",
                  "title": "Acute renal failure - definition, outcome measures, animal models, fluid therapy and information technology needs: the Second International Consensus Conference of the Acute Dialysis Quality Initiative (ADQI) Group"
                },
                "components": [
                  {
                    "factor": "creat_class",
                    "met": false,
                    "value": "none"
                  },
                  {
                    "factor": "uo_class",
                    "met": false,
                    "value": "none"
                  }
                ],
                "creat_class": "none",
                "current_creatinine_mg_dl": 1,
                "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.",
                "esrd_gt_3_months": false,
                "formula": "rifle",
                "formula_expression": "RIFLE class = esrd if ESRD >3 months, else loss if persistent ARF >4 weeks, else worse of creatinine vs urine (none < risk < injury < failure). Creatinine vs baseline (unrounded mg/dL): Failure if ratio ≥3.0 or (current ≥4.0 mg/dL and increase ≥0.5 mg/dL); Injury if ratio ≥2.0; Risk if ratio ≥1.5. GFR % decrease (Risk >25%, Injury >50%, Failure >75%) is equivalent to those creatinine multiples. Urine (caller-assigned): none → none; oliguria_gt_6h → Risk; oliguria_gt_12h → Injury; oliguria_24h_or_anuria_12h → Failure (Bellomo 2004 Fig. 1)",
                "persistent_arf_gt_4_weeks": false,
                "rifle_class": "none",
                "uo_class": "none",
                "urine_output": "none"
              },
              {
                "baseline_creatinine_mg_dl": 1,
                "citation": {
                  "authors": "Bellomo R, Ronco C, Kellum JA, Mehta RL, Palevsky P, and the ADQI workgroup",
                  "doi": "10.1186/cc2872",
                  "id": "bellomo-2004",
                  "pmid": "15312219",
                  "source": "Crit Care. 2004;8(4):R204-R212",
                  "title": "Acute renal failure - definition, outcome measures, animal models, fluid therapy and information technology needs: the Second International Consensus Conference of the Acute Dialysis Quality Initiative (ADQI) Group"
                },
                "components": [
                  {
                    "factor": "creat_class",
                    "met": false,
                    "value": "none"
                  },
                  {
                    "factor": "uo_class",
                    "met": false,
                    "value": "none"
                  }
                ],
                "creat_class": "none",
                "current_creatinine_mg_dl": 1,
                "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.",
                "esrd_gt_3_months": false,
                "formula": "rifle",
                "formula_expression": "RIFLE class = esrd if ESRD >3 months, else loss if persistent ARF >4 weeks, else worse of creatinine vs urine (none < risk < injury < failure). Creatinine vs baseline (unrounded mg/dL): Failure if ratio ≥3.0 or (current ≥4.0 mg/dL and increase ≥0.5 mg/dL); Injury if ratio ≥2.0; Risk if ratio ≥1.5. GFR % decrease (Risk >25%, Injury >50%, Failure >75%) is equivalent to those creatinine multiples. Urine (caller-assigned): none → none; oliguria_gt_6h → Risk; oliguria_gt_12h → Injury; oliguria_24h_or_anuria_12h → Failure (Bellomo 2004 Fig. 1)",
                "persistent_arf_gt_4_weeks": false,
                "rifle_class": "none",
                "uo_class": "none",
                "urine_output": "none"
              }
            ],
            "path": "/api/calc/rifle"
          },
          "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). Classification uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine.",
                          "type": "number"
                        },
                        "current_creatinine_mg_dl": {
                          "description": "Current serum creatinine in mg/dL (0.1-20). Classification uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine.",
                          "type": "number"
                        },
                        "esrd_gt_3_months": {
                          "description": "End-stage kidney disease for more than 3 months as assigned by the caller (Bellomo 2004 ESRD). true maps to rifle_class esrd irrespective of creatinine, urine, or Loss. true or false.",
                          "type": "boolean"
                        },
                        "persistent_arf_gt_4_weeks": {
                          "description": "Persistent complete loss of kidney function for more than 4 weeks as assigned by the caller (Bellomo 2004 Loss). true maps to rifle_class loss unless esrd_gt_3_months is true. true or false.",
                          "type": "boolean"
                        },
                        "urine_output": {
                          "description": "Caller-assigned RIFLE urine-output category (Bellomo 2004 Fig. 1): none (no oliguria or anuria criterion); oliguria_gt_6h (<0.5 mL/kg/h for 6 hours); oliguria_gt_12h (<0.5 mL/kg/h for 12 hours); oliguria_24h_or_anuria_12h (<0.3 mL/kg/h for 24 hours or anuria for 12 hours). Case-insensitive. magent does not collect weight or measure urine.",
                          "enum": [
                            "none",
                            "oliguria_gt_6h",
                            "oliguria_gt_12h",
                            "oliguria_24h_or_anuria_12h"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "baseline_creatinine_mg_dl",
                        "current_creatinine_mg_dl",
                        "urine_output",
                        "persistent_arf_gt_4_weeks",
                        "esrd_gt_3_months"
                      ],
                      "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": [
    "rifle",
    "aki",
    "kidney",
    "creatinine",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T12:36:48.657Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T12:36:48.547Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "baseline_creatinine_mg_dl": 1,
                  "current_creatinine_mg_dl": 1,
                  "esrd_gt_3_months": false,
                  "persistent_arf_gt_4_weeks": false,
                  "urine_output": "none"
                },
                {
                  "baseline_creatinine_mg_dl": 1,
                  "current_creatinine_mg_dl": 1,
                  "esrd_gt_3_months": false,
                  "persistent_arf_gt_4_weeks": false,
                  "urine_output": "none"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "baseline_creatinine_mg_dl": 1,
                  "citation": {
                    "authors": "Bellomo R, Ronco C, Kellum JA, Mehta RL, Palevsky P, and the ADQI workgroup",
                    "doi": "10.1186/cc2872",
                    "id": "bellomo-2004",
                    "pmid": "15312219",
                    "source": "Crit Care. 2004;8(4):R204-R212",
                    "title": "Acute renal failure - definition, outcome measures, animal models, fluid therapy and information technology needs: the Second International Consensus Conference of the Acute Dialysis Quality Initiative (ADQI) Group"
                  },
                  "components": [
                    {
                      "factor": "creat_class",
                      "met": false,
                      "value": "none"
                    },
                    {
                      "factor": "uo_class",
                      "met": false,
                      "value": "none"
                    }
                  ],
                  "creat_class": "none",
                  "current_creatinine_mg_dl": 1,
                  "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.",
                  "esrd_gt_3_months": false,
                  "formula": "rifle",
                  "formula_expression": "RIFLE class = esrd if ESRD >3 months, else loss if persistent ARF >4 weeks, else worse of creatinine vs urine (none < risk < injury < failure). Creatinine vs baseline (unrounded mg/dL): Failure if ratio ≥3.0 or (current ≥4.0 mg/dL and increase ≥0.5 mg/dL); Injury if ratio ≥2.0; Risk if ratio ≥1.5. GFR % decrease (Risk >25%, Injury >50%, Failure >75%) is equivalent to those creatinine multiples. Urine (caller-assigned): none → none; oliguria_gt_6h → Risk; oliguria_gt_12h → Injury; oliguria_24h_or_anuria_12h → Failure (Bellomo 2004 Fig. 1)",
                  "persistent_arf_gt_4_weeks": false,
                  "rifle_class": "none",
                  "uo_class": "none",
                  "urine_output": "none"
                },
                {
                  "baseline_creatinine_mg_dl": 1,
                  "citation": {
                    "authors": "Bellomo R, Ronco C, Kellum JA, Mehta RL, Palevsky P, and the ADQI workgroup",
                    "doi": "10.1186/cc2872",
                    "id": "bellomo-2004",
                    "pmid": "15312219",
                    "source": "Crit Care. 2004;8(4):R204-R212",
                    "title": "Acute renal failure - definition, outcome measures, animal models, fluid therapy and information technology needs: the Second International Consensus Conference of the Acute Dialysis Quality Initiative (ADQI) Group"
                  },
                  "components": [
                    {
                      "factor": "creat_class",
                      "met": false,
                      "value": "none"
                    },
                    {
                      "factor": "uo_class",
                      "met": false,
                      "value": "none"
                    }
                  ],
                  "creat_class": "none",
                  "current_creatinine_mg_dl": 1,
                  "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.",
                  "esrd_gt_3_months": false,
                  "formula": "rifle",
                  "formula_expression": "RIFLE class = esrd if ESRD >3 months, else loss if persistent ARF >4 weeks, else worse of creatinine vs urine (none < risk < injury < failure). Creatinine vs baseline (unrounded mg/dL): Failure if ratio ≥3.0 or (current ≥4.0 mg/dL and increase ≥0.5 mg/dL); Injury if ratio ≥2.0; Risk if ratio ≥1.5. GFR % decrease (Risk >25%, Injury >50%, Failure >75%) is equivalent to those creatinine multiples. Urine (caller-assigned): none → none; oliguria_gt_6h → Risk; oliguria_gt_12h → Injury; oliguria_24h_or_anuria_12h → Failure (Bellomo 2004 Fig. 1)",
                  "persistent_arf_gt_4_weeks": false,
                  "rifle_class": "none",
                  "uo_class": "none",
                  "urine_output": "none"
                }
              ],
              "path": "/api/calc/rifle"
            },
            "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). Classification uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine.",
                            "type": "number"
                          },
                          "current_creatinine_mg_dl": {
                            "description": "Current serum creatinine in mg/dL (0.1-20). Classification uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine.",
                            "type": "number"
                          },
                          "esrd_gt_3_months": {
                            "description": "End-stage kidney disease for more than 3 months as assigned by the caller (Bellomo 2004 ESRD). true maps to rifle_class esrd irrespective of creatinine, urine, or Loss. true or false.",
                            "type": "boolean"
                          },
                          "persistent_arf_gt_4_weeks": {
                            "description": "Persistent complete loss of kidney function for more than 4 weeks as assigned by the caller (Bellomo 2004 Loss). true maps to rifle_class loss unless esrd_gt_3_months is true. true or false.",
                            "type": "boolean"
                          },
                          "urine_output": {
                            "description": "Caller-assigned RIFLE urine-output category (Bellomo 2004 Fig. 1): none (no oliguria or anuria criterion); oliguria_gt_6h (<0.5 mL/kg/h for 6 hours); oliguria_gt_12h (<0.5 mL/kg/h for 12 hours); oliguria_24h_or_anuria_12h (<0.3 mL/kg/h for 24 hours or anuria for 12 hours). Case-insensitive. magent does not collect weight or measure urine.",
                            "enum": [
                              "none",
                              "oliguria_gt_6h",
                              "oliguria_gt_12h",
                              "oliguria_24h_or_anuria_12h"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "baseline_creatinine_mg_dl",
                          "current_creatinine_mg_dl",
                          "urine_output",
                          "persistent_arf_gt_4_weeks",
                          "esrd_gt_3_months"
                        ],
                        "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"
  }
}