{
  "x402Version": 2,
  "id": 38942,
  "slug": "38942",
  "resource": "https://api.magentlab.com/api/calc/psc_revised",
  "description": "Kim 2000 revised natural history model for primary sclerosing cholangitis (no histologic stage). R = 0.03*age_years + 0.54*ln(bilirubin_mg_dL) + 0.54*ln(AST_U_L) + 1.24*variceal_bleeding - 0.84*albumin_g_dL. Natural log. Returns R only; does not look up unpublished survival percents or invent risk bands. Not a transplant listing, biopsy order, PSC diagnosis, or lab assay. Not the original Mayo PSC biopsy model.",
  "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": 55,
                "albumin_g_dl": 3,
                "ast_u_l": 120,
                "bilirubin_mg_dl": 5,
                "variceal_bleeding": true
              },
              {
                "age_years": 55,
                "albumin_g_dl": 3,
                "ast_u_l": 120,
                "bilirubin_mg_dl": 5,
                "variceal_bleeding": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 55,
                "albumin_g_dl": 3,
                "ast_u_l": 120,
                "bilirubin_mg_dl": 5,
                "citation": {
                  "authors": "Kim WR, Therneau TM, Wiesner RH, Poterucha JJ, Benson JT, Malinchoc M, LaRusso NF, Lindor KD, Dickson ER",
                  "doi": "10.4065/75.7.688",
                  "id": "kim-2000",
                  "pmid": "10907383",
                  "source": "Mayo Clin Proc. 2000;75(7):688-694",
                  "title": "A revised natural history model for primary sclerosing cholangitis"
                },
                "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": "kim_psc_revised_2000",
                "formula_expression": "R = 0.03 * age_years + 0.54 * ln(bilirubin_mg_dl) + 0.54 * ln(ast_u_l) + 1.24 * variceal_bleeding - 0.84 * albumin_g_dl",
                "r": 3.82,
                "variceal_bleeding": true
              },
              {
                "age_years": 55,
                "albumin_g_dl": 3,
                "ast_u_l": 120,
                "bilirubin_mg_dl": 5,
                "citation": {
                  "authors": "Kim WR, Therneau TM, Wiesner RH, Poterucha JJ, Benson JT, Malinchoc M, LaRusso NF, Lindor KD, Dickson ER",
                  "doi": "10.4065/75.7.688",
                  "id": "kim-2000",
                  "pmid": "10907383",
                  "source": "Mayo Clin Proc. 2000;75(7):688-694",
                  "title": "A revised natural history model for primary sclerosing cholangitis"
                },
                "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": "kim_psc_revised_2000",
                "formula_expression": "R = 0.03 * age_years + 0.54 * ln(bilirubin_mg_dl) + 0.54 * ln(ast_u_l) + 1.24 * variceal_bleeding - 0.84 * albumin_g_dl",
                "r": 3.82,
                "variceal_bleeding": true
              }
            ],
            "path": "/api/calc/psc_revised"
          },
          "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 in whole years (18-120, magent clamp). Kim 2000 uses age in years in the R equation.",
                          "type": "integer"
                        },
                        "albumin_g_dl": {
                          "description": "Serum albumin in g/dL (1.0-6.0, magent clamp). Must be positive. Kim 2000 uses g/dL. magent does not assay albumin.",
                          "type": "number"
                        },
                        "ast_u_l": {
                          "description": "Aspartate aminotransferase in U/L (1-10000, magent clamp). Must be positive. magent does not assay AST.",
                          "type": "number"
                        },
                        "bilirubin_mg_dl": {
                          "description": "Total bilirubin in mg/dL (0.1-40, magent clamp). Must be positive; natural log is undefined at 0. Kim 2000 uses mg/dL. magent does not assay bilirubin.",
                          "type": "number"
                        },
                        "variceal_bleeding": {
                          "description": "History of variceal bleeding as assigned by the caller (Kim 2000): true (1) or false (0). magent does not diagnose bleeding.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age_years",
                        "bilirubin_mg_dl",
                        "ast_u_l",
                        "albumin_g_dl",
                        "variceal_bleeding"
                      ],
                      "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": [
    "psc",
    "liver",
    "kim-2000",
    "prognosis",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T11:42:05.689Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T11:42:05.538Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age_years": 55,
                  "albumin_g_dl": 3,
                  "ast_u_l": 120,
                  "bilirubin_mg_dl": 5,
                  "variceal_bleeding": true
                },
                {
                  "age_years": 55,
                  "albumin_g_dl": 3,
                  "ast_u_l": 120,
                  "bilirubin_mg_dl": 5,
                  "variceal_bleeding": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 55,
                  "albumin_g_dl": 3,
                  "ast_u_l": 120,
                  "bilirubin_mg_dl": 5,
                  "citation": {
                    "authors": "Kim WR, Therneau TM, Wiesner RH, Poterucha JJ, Benson JT, Malinchoc M, LaRusso NF, Lindor KD, Dickson ER",
                    "doi": "10.4065/75.7.688",
                    "id": "kim-2000",
                    "pmid": "10907383",
                    "source": "Mayo Clin Proc. 2000;75(7):688-694",
                    "title": "A revised natural history model for primary sclerosing cholangitis"
                  },
                  "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": "kim_psc_revised_2000",
                  "formula_expression": "R = 0.03 * age_years + 0.54 * ln(bilirubin_mg_dl) + 0.54 * ln(ast_u_l) + 1.24 * variceal_bleeding - 0.84 * albumin_g_dl",
                  "r": 3.82,
                  "variceal_bleeding": true
                },
                {
                  "age_years": 55,
                  "albumin_g_dl": 3,
                  "ast_u_l": 120,
                  "bilirubin_mg_dl": 5,
                  "citation": {
                    "authors": "Kim WR, Therneau TM, Wiesner RH, Poterucha JJ, Benson JT, Malinchoc M, LaRusso NF, Lindor KD, Dickson ER",
                    "doi": "10.4065/75.7.688",
                    "id": "kim-2000",
                    "pmid": "10907383",
                    "source": "Mayo Clin Proc. 2000;75(7):688-694",
                    "title": "A revised natural history model for primary sclerosing cholangitis"
                  },
                  "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": "kim_psc_revised_2000",
                  "formula_expression": "R = 0.03 * age_years + 0.54 * ln(bilirubin_mg_dl) + 0.54 * ln(ast_u_l) + 1.24 * variceal_bleeding - 0.84 * albumin_g_dl",
                  "r": 3.82,
                  "variceal_bleeding": true
                }
              ],
              "path": "/api/calc/psc_revised"
            },
            "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 in whole years (18-120, magent clamp). Kim 2000 uses age in years in the R equation.",
                            "type": "integer"
                          },
                          "albumin_g_dl": {
                            "description": "Serum albumin in g/dL (1.0-6.0, magent clamp). Must be positive. Kim 2000 uses g/dL. magent does not assay albumin.",
                            "type": "number"
                          },
                          "ast_u_l": {
                            "description": "Aspartate aminotransferase in U/L (1-10000, magent clamp). Must be positive. magent does not assay AST.",
                            "type": "number"
                          },
                          "bilirubin_mg_dl": {
                            "description": "Total bilirubin in mg/dL (0.1-40, magent clamp). Must be positive; natural log is undefined at 0. Kim 2000 uses mg/dL. magent does not assay bilirubin.",
                            "type": "number"
                          },
                          "variceal_bleeding": {
                            "description": "History of variceal bleeding as assigned by the caller (Kim 2000): true (1) or false (0). magent does not diagnose bleeding.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age_years",
                          "bilirubin_mg_dl",
                          "ast_u_l",
                          "albumin_g_dl",
                          "variceal_bleeding"
                        ],
                        "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"
  }
}