{
  "x402Version": 2,
  "id": 39153,
  "slug": "39153",
  "resource": "https://api.magentlab.com/api/calc/igan_predict",
  "description": "Barbour 2019 race-free full IgAN model: 5-year risk of 50% eGFR decline or ESKD from age, eGFR, MAP, proteinuria g/day, Oxford MEST, RAS blockade, and immunosuppression at biopsy. Risk = 1 - S0(60)^exp(LP) with eTable 3 coefficients. Caller supplies eGFR; magent does not compute CKD-EPI or score the biopsy. Not the race/ethnicity model. Not KFRE. Not a diagnosis or treatment order. Not a medical device.",
  "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_years": 38,
                "egfr_ml_min_1_73m2": 77,
                "immunosuppression_at_biopsy": false,
                "map_mm_hg": 97,
                "mest_e": 0,
                "mest_m": 1,
                "mest_s": 1,
                "mest_t": 0,
                "proteinuria_g_day": 1.1,
                "rasb_at_biopsy": true
              },
              {
                "age_years": 38,
                "egfr_ml_min_1_73m2": 77,
                "immunosuppression_at_biopsy": false,
                "map_mm_hg": 97,
                "mest_e": 0,
                "mest_m": 1,
                "mest_s": 1,
                "mest_t": 0,
                "proteinuria_g_day": 1.1,
                "rasb_at_biopsy": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 38,
                "citation": {
                  "authors": "Barbour SJ, Coppo R, Zhang H, Liu ZH, Suzuki Y, Matsuzaki K, Katafuchi R, Er L, Espino-Hernandez G, Kim SJ, Reich HN, Cattran DC, Feehally J; International IgA Nephropathy Network",
                  "doi": "10.1001/jamainternmed.2019.0600",
                  "id": "barbour-2019-igan",
                  "pmid": "30980653",
                  "source": "JAMA Intern Med. 2019;179(7):942-952",
                  "title": "Evaluating a new international risk-prediction tool in IgA nephropathy"
                },
                "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.",
                "egfr_ml_min_1_73m2": 77,
                "five_year_risk_percent": 8.8,
                "formula": "igan_predict",
                "formula_expression": "LP = -0.320*(sqrt(egfr_ml_min_1_73m2) - 8.8) + 0.002*(map_mm_hg - 97) - 0.035*(ln(proteinuria_g_day) - 0.09) + 0.004*(map_mm_hg*ln(proteinuria_g_day) - 8.73) + 0.201*M1 - 0.035*E1 + 0.084*S1 + 0.700*T1 + 1.237*T2 + 0.101*T1*ln(proteinuria_g_day) - 0.321*T2*ln(proteinuria_g_day) - 0.017*(age_years - 38) + 0.118*RASB + 0.166*RASB*ln(proteinuria_g_day) - 0.266*immunosuppression; S0(t) = 1.0003754 - 0.1131641*u^2 + 0.0964763*u^2*ln(u), u = (t + 0.1)/100, t months; 5-year risk = 1 - S0(60)^exp(LP); Barbour 2019 eTable 3 full model without race/ethnicity only; M/E/S/T1/T2 RASB and immunosuppression are 0 or 1; natural log; caller supplies eGFR; not the race model; not KFRE",
                "horizon_months": 60,
                "immunosuppression_at_biopsy": false,
                "linear_predictor": 0.4287,
                "map_mm_hg": 97,
                "mest_e": 0,
                "mest_m": 1,
                "mest_s": 1,
                "mest_t": 0,
                "proteinuria_g_day": 1.1,
                "rasb_at_biopsy": true,
                "s0_5_year": 0.94176
              },
              {
                "age_years": 38,
                "citation": {
                  "authors": "Barbour SJ, Coppo R, Zhang H, Liu ZH, Suzuki Y, Matsuzaki K, Katafuchi R, Er L, Espino-Hernandez G, Kim SJ, Reich HN, Cattran DC, Feehally J; International IgA Nephropathy Network",
                  "doi": "10.1001/jamainternmed.2019.0600",
                  "id": "barbour-2019-igan",
                  "pmid": "30980653",
                  "source": "JAMA Intern Med. 2019;179(7):942-952",
                  "title": "Evaluating a new international risk-prediction tool in IgA nephropathy"
                },
                "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.",
                "egfr_ml_min_1_73m2": 77,
                "five_year_risk_percent": 8.8,
                "formula": "igan_predict",
                "formula_expression": "LP = -0.320*(sqrt(egfr_ml_min_1_73m2) - 8.8) + 0.002*(map_mm_hg - 97) - 0.035*(ln(proteinuria_g_day) - 0.09) + 0.004*(map_mm_hg*ln(proteinuria_g_day) - 8.73) + 0.201*M1 - 0.035*E1 + 0.084*S1 + 0.700*T1 + 1.237*T2 + 0.101*T1*ln(proteinuria_g_day) - 0.321*T2*ln(proteinuria_g_day) - 0.017*(age_years - 38) + 0.118*RASB + 0.166*RASB*ln(proteinuria_g_day) - 0.266*immunosuppression; S0(t) = 1.0003754 - 0.1131641*u^2 + 0.0964763*u^2*ln(u), u = (t + 0.1)/100, t months; 5-year risk = 1 - S0(60)^exp(LP); Barbour 2019 eTable 3 full model without race/ethnicity only; M/E/S/T1/T2 RASB and immunosuppression are 0 or 1; natural log; caller supplies eGFR; not the race model; not KFRE",
                "horizon_months": 60,
                "immunosuppression_at_biopsy": false,
                "linear_predictor": 0.4287,
                "map_mm_hg": 97,
                "mest_e": 0,
                "mest_m": 1,
                "mest_s": 1,
                "mest_t": 0,
                "proteinuria_g_day": 1.1,
                "rasb_at_biopsy": true,
                "s0_5_year": 0.94176
              }
            ],
            "path": "/api/calc/igan_predict"
          },
          "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_years": {
                          "description": "Age at biopsy in years (integer 18-120). Barbour 2019 derivation was adults 18 years or older. Enters the linear predictor as age_years - 38.",
                          "type": "integer"
                        },
                        "egfr_ml_min_1_73m2": {
                          "description": "Caller-supplied eGFR in mL/min/1.73 m2 (5-200). Enters as sqrt(eGFR) centered at 8.8. Derivation used CKD-EPI and excluded ESKD at biopsy. magent does not compute CKD-EPI and does not assay creatinine.",
                          "type": "number"
                        },
                        "immunosuppression_at_biopsy": {
                          "description": "true if immunosuppression was in use at biopsy. Enters as 1 or 0. magent does not prescribe immunosuppression.",
                          "type": "boolean"
                        },
                        "map_mm_hg": {
                          "description": "Mean arterial pressure at biopsy in mm Hg (30-180). Enters centered at 97 and in the proteinuria×MAP interaction.",
                          "type": "number"
                        },
                        "mest_e": {
                          "description": "Oxford MEST endocapillary hypercellularity at biopsy. 0 = E0, 1 = E1. magent does not score the biopsy.",
                          "enum": [
                            0,
                            1
                          ],
                          "type": "integer"
                        },
                        "mest_m": {
                          "description": "Oxford MEST mesangial hypercellularity at biopsy. 0 = M0, 1 = M1. magent does not score the biopsy.",
                          "enum": [
                            0,
                            1
                          ],
                          "type": "integer"
                        },
                        "mest_s": {
                          "description": "Oxford MEST segmental sclerosis at biopsy. 0 = S0, 1 = S1. magent does not score the biopsy.",
                          "enum": [
                            0,
                            1
                          ],
                          "type": "integer"
                        },
                        "mest_t": {
                          "description": "Oxford MEST tubular atrophy/interstitial fibrosis at biopsy. 0 = T0, 1 = T1, 2 = T2. T1 and T2 have main-effect and proteinuria-interaction terms. magent does not score the biopsy.",
                          "enum": [
                            0,
                            1,
                            2
                          ],
                          "type": "integer"
                        },
                        "proteinuria_g_day": {
                          "description": "Proteinuria at biopsy in g/day (0.01-20). Enters as natural log, centered at 0.09, plus interactions with MAP, T, and RASB. magent does not assay urine protein.",
                          "type": "number"
                        },
                        "rasb_at_biopsy": {
                          "description": "true if renin-angiotensin system blockade (ACE inhibitor or ARB) was in use at biopsy. Enters as 1 or 0 plus a RASB×proteinuria term. magent does not prescribe RAS blockade.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age_years",
                        "egfr_ml_min_1_73m2",
                        "map_mm_hg",
                        "proteinuria_g_day",
                        "mest_m",
                        "mest_e",
                        "mest_s",
                        "mest_t",
                        "rasb_at_biopsy",
                        "immunosuppression_at_biopsy"
                      ],
                      "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": [
    "igan",
    "kidney",
    "mest",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T04:46:47.471Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T04:46:47.32Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_years": 38,
                  "egfr_ml_min_1_73m2": 77,
                  "immunosuppression_at_biopsy": false,
                  "map_mm_hg": 97,
                  "mest_e": 0,
                  "mest_m": 1,
                  "mest_s": 1,
                  "mest_t": 0,
                  "proteinuria_g_day": 1.1,
                  "rasb_at_biopsy": true
                },
                {
                  "age_years": 38,
                  "egfr_ml_min_1_73m2": 77,
                  "immunosuppression_at_biopsy": false,
                  "map_mm_hg": 97,
                  "mest_e": 0,
                  "mest_m": 1,
                  "mest_s": 1,
                  "mest_t": 0,
                  "proteinuria_g_day": 1.1,
                  "rasb_at_biopsy": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 38,
                  "citation": {
                    "authors": "Barbour SJ, Coppo R, Zhang H, Liu ZH, Suzuki Y, Matsuzaki K, Katafuchi R, Er L, Espino-Hernandez G, Kim SJ, Reich HN, Cattran DC, Feehally J; International IgA Nephropathy Network",
                    "doi": "10.1001/jamainternmed.2019.0600",
                    "id": "barbour-2019-igan",
                    "pmid": "30980653",
                    "source": "JAMA Intern Med. 2019;179(7):942-952",
                    "title": "Evaluating a new international risk-prediction tool in IgA nephropathy"
                  },
                  "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.",
                  "egfr_ml_min_1_73m2": 77,
                  "five_year_risk_percent": 8.8,
                  "formula": "igan_predict",
                  "formula_expression": "LP = -0.320*(sqrt(egfr_ml_min_1_73m2) - 8.8) + 0.002*(map_mm_hg - 97) - 0.035*(ln(proteinuria_g_day) - 0.09) + 0.004*(map_mm_hg*ln(proteinuria_g_day) - 8.73) + 0.201*M1 - 0.035*E1 + 0.084*S1 + 0.700*T1 + 1.237*T2 + 0.101*T1*ln(proteinuria_g_day) - 0.321*T2*ln(proteinuria_g_day) - 0.017*(age_years - 38) + 0.118*RASB + 0.166*RASB*ln(proteinuria_g_day) - 0.266*immunosuppression; S0(t) = 1.0003754 - 0.1131641*u^2 + 0.0964763*u^2*ln(u), u = (t + 0.1)/100, t months; 5-year risk = 1 - S0(60)^exp(LP); Barbour 2019 eTable 3 full model without race/ethnicity only; M/E/S/T1/T2 RASB and immunosuppression are 0 or 1; natural log; caller supplies eGFR; not the race model; not KFRE",
                  "horizon_months": 60,
                  "immunosuppression_at_biopsy": false,
                  "linear_predictor": 0.4287,
                  "map_mm_hg": 97,
                  "mest_e": 0,
                  "mest_m": 1,
                  "mest_s": 1,
                  "mest_t": 0,
                  "proteinuria_g_day": 1.1,
                  "rasb_at_biopsy": true,
                  "s0_5_year": 0.94176
                },
                {
                  "age_years": 38,
                  "citation": {
                    "authors": "Barbour SJ, Coppo R, Zhang H, Liu ZH, Suzuki Y, Matsuzaki K, Katafuchi R, Er L, Espino-Hernandez G, Kim SJ, Reich HN, Cattran DC, Feehally J; International IgA Nephropathy Network",
                    "doi": "10.1001/jamainternmed.2019.0600",
                    "id": "barbour-2019-igan",
                    "pmid": "30980653",
                    "source": "JAMA Intern Med. 2019;179(7):942-952",
                    "title": "Evaluating a new international risk-prediction tool in IgA nephropathy"
                  },
                  "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.",
                  "egfr_ml_min_1_73m2": 77,
                  "five_year_risk_percent": 8.8,
                  "formula": "igan_predict",
                  "formula_expression": "LP = -0.320*(sqrt(egfr_ml_min_1_73m2) - 8.8) + 0.002*(map_mm_hg - 97) - 0.035*(ln(proteinuria_g_day) - 0.09) + 0.004*(map_mm_hg*ln(proteinuria_g_day) - 8.73) + 0.201*M1 - 0.035*E1 + 0.084*S1 + 0.700*T1 + 1.237*T2 + 0.101*T1*ln(proteinuria_g_day) - 0.321*T2*ln(proteinuria_g_day) - 0.017*(age_years - 38) + 0.118*RASB + 0.166*RASB*ln(proteinuria_g_day) - 0.266*immunosuppression; S0(t) = 1.0003754 - 0.1131641*u^2 + 0.0964763*u^2*ln(u), u = (t + 0.1)/100, t months; 5-year risk = 1 - S0(60)^exp(LP); Barbour 2019 eTable 3 full model without race/ethnicity only; M/E/S/T1/T2 RASB and immunosuppression are 0 or 1; natural log; caller supplies eGFR; not the race model; not KFRE",
                  "horizon_months": 60,
                  "immunosuppression_at_biopsy": false,
                  "linear_predictor": 0.4287,
                  "map_mm_hg": 97,
                  "mest_e": 0,
                  "mest_m": 1,
                  "mest_s": 1,
                  "mest_t": 0,
                  "proteinuria_g_day": 1.1,
                  "rasb_at_biopsy": true,
                  "s0_5_year": 0.94176
                }
              ],
              "path": "/api/calc/igan_predict"
            },
            "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_years": {
                            "description": "Age at biopsy in years (integer 18-120). Barbour 2019 derivation was adults 18 years or older. Enters the linear predictor as age_years - 38.",
                            "type": "integer"
                          },
                          "egfr_ml_min_1_73m2": {
                            "description": "Caller-supplied eGFR in mL/min/1.73 m2 (5-200). Enters as sqrt(eGFR) centered at 8.8. Derivation used CKD-EPI and excluded ESKD at biopsy. magent does not compute CKD-EPI and does not assay creatinine.",
                            "type": "number"
                          },
                          "immunosuppression_at_biopsy": {
                            "description": "true if immunosuppression was in use at biopsy. Enters as 1 or 0. magent does not prescribe immunosuppression.",
                            "type": "boolean"
                          },
                          "map_mm_hg": {
                            "description": "Mean arterial pressure at biopsy in mm Hg (30-180). Enters centered at 97 and in the proteinuria×MAP interaction.",
                            "type": "number"
                          },
                          "mest_e": {
                            "description": "Oxford MEST endocapillary hypercellularity at biopsy. 0 = E0, 1 = E1. magent does not score the biopsy.",
                            "enum": [
                              0,
                              1
                            ],
                            "type": "integer"
                          },
                          "mest_m": {
                            "description": "Oxford MEST mesangial hypercellularity at biopsy. 0 = M0, 1 = M1. magent does not score the biopsy.",
                            "enum": [
                              0,
                              1
                            ],
                            "type": "integer"
                          },
                          "mest_s": {
                            "description": "Oxford MEST segmental sclerosis at biopsy. 0 = S0, 1 = S1. magent does not score the biopsy.",
                            "enum": [
                              0,
                              1
                            ],
                            "type": "integer"
                          },
                          "mest_t": {
                            "description": "Oxford MEST tubular atrophy/interstitial fibrosis at biopsy. 0 = T0, 1 = T1, 2 = T2. T1 and T2 have main-effect and proteinuria-interaction terms. magent does not score the biopsy.",
                            "enum": [
                              0,
                              1,
                              2
                            ],
                            "type": "integer"
                          },
                          "proteinuria_g_day": {
                            "description": "Proteinuria at biopsy in g/day (0.01-20). Enters as natural log, centered at 0.09, plus interactions with MAP, T, and RASB. magent does not assay urine protein.",
                            "type": "number"
                          },
                          "rasb_at_biopsy": {
                            "description": "true if renin-angiotensin system blockade (ACE inhibitor or ARB) was in use at biopsy. Enters as 1 or 0 plus a RASB×proteinuria term. magent does not prescribe RAS blockade.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age_years",
                          "egfr_ml_min_1_73m2",
                          "map_mm_hg",
                          "proteinuria_g_day",
                          "mest_m",
                          "mest_e",
                          "mest_s",
                          "mest_t",
                          "rasb_at_biopsy",
                          "immunosuppression_at_biopsy"
                        ],
                        "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"
  }
}