{
  "x402Version": 2,
  "id": 39424,
  "slug": "39424",
  "resource": "https://api.magentlab.com/api/calc/rai",
  "description": "Rai 1975 original CLL staging (stages 0-IV). Returns rai_stage 0-4 from caller-assigned lymphadenopathy, hepatosplenomegaly (spleen or liver or both), anemia (Hb <11 g/dL), and thrombocytopenia (platelets <100,000/mm3). Highest applicable: thrombocytopenia 4, else anemia 3, else organomegaly 2, else nodes 1, else 0 (lymphocytosis only). Not a CLL diagnosis; magent does not examine the patient or read a CBC. Not modified Rai. Not Binet (Binet C is Hb <10).",
  "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": [
              {
                "anemia_hb_lt_11": false,
                "hepatosplenomegaly": false,
                "lymphadenopathy": false,
                "thrombocytopenia_plt_lt_100": false
              },
              {
                "anemia_hb_lt_11": false,
                "hepatosplenomegaly": false,
                "lymphadenopathy": false,
                "thrombocytopenia_plt_lt_100": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "anemia_hb_lt_11": false,
                "citation": {
                  "authors": "Rai KR, Sawitsky A, Cronkite EP, Chanana AD, Levy RN, Pasternack BS",
                  "doi": "10.1182/blood.v46.2.219.219",
                  "id": "rai-1975",
                  "pmid": "1139039",
                  "source": "Blood. 1975;46(2):219-234",
                  "title": "Clinical staging of chronic lymphocytic leukemia"
                },
                "criteria": [
                  {
                    "factor": "thrombocytopenia_plt_lt_100",
                    "met": false
                  },
                  {
                    "factor": "anemia_hb_lt_11",
                    "met": false
                  },
                  {
                    "factor": "hepatosplenomegaly",
                    "met": false
                  },
                  {
                    "factor": "lymphadenopathy",
                    "met": 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.",
                "formula": "rai",
                "formula_expression": "rai_stage = 4 if thrombocytopenia_plt_lt_100; else 3 if anemia_hb_lt_11; else 2 if hepatosplenomegaly; else 1 if lymphadenopathy; else 0 (lymphocytosis only). Original Rai 1975 stages 0-IV. Not modified Rai. Not Binet.",
                "hepatosplenomegaly": false,
                "lymphadenopathy": false,
                "rai_stage": 0,
                "thrombocytopenia_plt_lt_100": false
              },
              {
                "anemia_hb_lt_11": false,
                "citation": {
                  "authors": "Rai KR, Sawitsky A, Cronkite EP, Chanana AD, Levy RN, Pasternack BS",
                  "doi": "10.1182/blood.v46.2.219.219",
                  "id": "rai-1975",
                  "pmid": "1139039",
                  "source": "Blood. 1975;46(2):219-234",
                  "title": "Clinical staging of chronic lymphocytic leukemia"
                },
                "criteria": [
                  {
                    "factor": "thrombocytopenia_plt_lt_100",
                    "met": false
                  },
                  {
                    "factor": "anemia_hb_lt_11",
                    "met": false
                  },
                  {
                    "factor": "hepatosplenomegaly",
                    "met": false
                  },
                  {
                    "factor": "lymphadenopathy",
                    "met": 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.",
                "formula": "rai",
                "formula_expression": "rai_stage = 4 if thrombocytopenia_plt_lt_100; else 3 if anemia_hb_lt_11; else 2 if hepatosplenomegaly; else 1 if lymphadenopathy; else 0 (lymphocytosis only). Original Rai 1975 stages 0-IV. Not modified Rai. Not Binet.",
                "hepatosplenomegaly": false,
                "lymphadenopathy": false,
                "rai_stage": 0,
                "thrombocytopenia_plt_lt_100": false
              }
            ],
            "path": "/api/calc/rai"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "anemia_hb_lt_11": {
                          "description": "Anemia as assigned by the caller using the Rai 1975 cutoff hemoglobin <11 g/dL (hematocrit <33% is the same clinical call). true or false. magent does not read a CBC.",
                          "type": "boolean"
                        },
                        "hepatosplenomegaly": {
                          "description": "Enlarged spleen or liver or both as assigned by the caller (Rai 1975 stage II). true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "lymphadenopathy": {
                          "description": "Lymphadenopathy as assigned by the caller (Rai 1975 stage I when this is the highest finding). true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "thrombocytopenia_plt_lt_100": {
                          "description": "Thrombocytopenia as assigned by the caller using the Rai 1975 cutoff platelets <100,000/mm3 (<100×10^9/L). true or false. magent does not read a CBC.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "lymphadenopathy",
                        "hepatosplenomegaly",
                        "anemia_hb_lt_11",
                        "thrombocytopenia_plt_lt_100"
                      ],
                      "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": [
    "rai",
    "cll",
    "hematology",
    "staging",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:55:01.536Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:55:01.383Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "anemia_hb_lt_11": false,
                  "hepatosplenomegaly": false,
                  "lymphadenopathy": false,
                  "thrombocytopenia_plt_lt_100": false
                },
                {
                  "anemia_hb_lt_11": false,
                  "hepatosplenomegaly": false,
                  "lymphadenopathy": false,
                  "thrombocytopenia_plt_lt_100": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "anemia_hb_lt_11": false,
                  "citation": {
                    "authors": "Rai KR, Sawitsky A, Cronkite EP, Chanana AD, Levy RN, Pasternack BS",
                    "doi": "10.1182/blood.v46.2.219.219",
                    "id": "rai-1975",
                    "pmid": "1139039",
                    "source": "Blood. 1975;46(2):219-234",
                    "title": "Clinical staging of chronic lymphocytic leukemia"
                  },
                  "criteria": [
                    {
                      "factor": "thrombocytopenia_plt_lt_100",
                      "met": false
                    },
                    {
                      "factor": "anemia_hb_lt_11",
                      "met": false
                    },
                    {
                      "factor": "hepatosplenomegaly",
                      "met": false
                    },
                    {
                      "factor": "lymphadenopathy",
                      "met": 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.",
                  "formula": "rai",
                  "formula_expression": "rai_stage = 4 if thrombocytopenia_plt_lt_100; else 3 if anemia_hb_lt_11; else 2 if hepatosplenomegaly; else 1 if lymphadenopathy; else 0 (lymphocytosis only). Original Rai 1975 stages 0-IV. Not modified Rai. Not Binet.",
                  "hepatosplenomegaly": false,
                  "lymphadenopathy": false,
                  "rai_stage": 0,
                  "thrombocytopenia_plt_lt_100": false
                },
                {
                  "anemia_hb_lt_11": false,
                  "citation": {
                    "authors": "Rai KR, Sawitsky A, Cronkite EP, Chanana AD, Levy RN, Pasternack BS",
                    "doi": "10.1182/blood.v46.2.219.219",
                    "id": "rai-1975",
                    "pmid": "1139039",
                    "source": "Blood. 1975;46(2):219-234",
                    "title": "Clinical staging of chronic lymphocytic leukemia"
                  },
                  "criteria": [
                    {
                      "factor": "thrombocytopenia_plt_lt_100",
                      "met": false
                    },
                    {
                      "factor": "anemia_hb_lt_11",
                      "met": false
                    },
                    {
                      "factor": "hepatosplenomegaly",
                      "met": false
                    },
                    {
                      "factor": "lymphadenopathy",
                      "met": 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.",
                  "formula": "rai",
                  "formula_expression": "rai_stage = 4 if thrombocytopenia_plt_lt_100; else 3 if anemia_hb_lt_11; else 2 if hepatosplenomegaly; else 1 if lymphadenopathy; else 0 (lymphocytosis only). Original Rai 1975 stages 0-IV. Not modified Rai. Not Binet.",
                  "hepatosplenomegaly": false,
                  "lymphadenopathy": false,
                  "rai_stage": 0,
                  "thrombocytopenia_plt_lt_100": false
                }
              ],
              "path": "/api/calc/rai"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "anemia_hb_lt_11": {
                            "description": "Anemia as assigned by the caller using the Rai 1975 cutoff hemoglobin <11 g/dL (hematocrit <33% is the same clinical call). true or false. magent does not read a CBC.",
                            "type": "boolean"
                          },
                          "hepatosplenomegaly": {
                            "description": "Enlarged spleen or liver or both as assigned by the caller (Rai 1975 stage II). true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "lymphadenopathy": {
                            "description": "Lymphadenopathy as assigned by the caller (Rai 1975 stage I when this is the highest finding). true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "thrombocytopenia_plt_lt_100": {
                            "description": "Thrombocytopenia as assigned by the caller using the Rai 1975 cutoff platelets <100,000/mm3 (<100×10^9/L). true or false. magent does not read a CBC.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "lymphadenopathy",
                          "hepatosplenomegaly",
                          "anemia_hb_lt_11",
                          "thrombocytopenia_plt_lt_100"
                        ],
                        "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"
  }
}