# Khorana 2008 VTE Risk Score Calculator

> Khorana 2008 VTE Risk Score Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes the Khorana 2008 venous thromboembolism (VTE) risk score for cancer patients about to receive chemotherapy, returning a numeric score and low/intermediate/high risk category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/khorana
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/khorana-2008-vte-risk-score-calculator-2262cebe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p85_xazr-yuRPG0d-yIN7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability khorana-2008-vte-risk-score-calculator-2262cebe
```

Example prompt: Calculate the Khorana VTE risk score for my patient with pancreatic cancer (very_high site), platelets 380 ×10⁹/L, hemoglobin 9.2 g/dL, WBC 12.5 ×10³/µL, not on ESA, and BMI under 35.

## When to prefer this

Use this endpoint when you need to compute the validated Khorana 2008 score specifically — not Padua, Caprini, or other VTE risk tools. Ideal when the caller has already classified cancer site per Khorana categories and has pre-chemotherapy lab values (platelets, hemoglobin, WBC) available. Choose this over a general clinical calculator when you need structured per-criterion point attribution and a machine-readable risk tier for downstream workflow logic.

## Known failure modes

- Missing required parameters (cancer_site, platelets_10e9_l, erythropoiesis_stimulating_agent, bmi_ge_35) returns a validation error
- Providing both hemoglobin_g_dl and hemoglobin_g_l simultaneously returns an error
- Out-of-range values (e.g. platelets outside 1–2000) rejected with range error
- Invalid cancer_site string (not 'very_high', 'high', or 'other') causes a parameter error
- Providing both wbc_ul and wbc_k_ul simultaneously may cause ambiguity or error

## How this service works

Khorana 2008 Blood predictive model for chemotherapy-associated thrombosis: very_high site (stomach or pancreas) 2, high (lung, lymphoma, gynecologic, bladder, testicular) 1, other 0; platelets >=350 1; hemoglobin <10 g/dL or ESA 1 (once); WBC >11 x10^9/L 1; BMI>=35 caller flag 1. Max 6. 0 low; 1-2 intermediate; >=3 high. Not a diagnosis. Not Padua or Caprini. Caller assigns cancer site; magent does not compute BMI.

## Output

Returns the total Khorana score (0–6), the risk category (low for 0, intermediate for 1–2, high for ≥3), and a breakdown of points assigned to each criterion (cancer site, platelets, hemoglobin/ESA, WBC, BMI). Does not make diagnostic or treatment decisions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cancer_site",
      "platelets_10e9_l",
      "erythropoiesis_stimulating_agent",
      "bmi_ge_35"
     ],
     "properties": {
      "wbc_ul": {
       "type": "number",
       "description": "WBC in cells/µL (same as cells/mm^3). Provide wbc_k_ul or wbc_ul. Range 10-500000. >11000 scores 1 (11000 does not)."
      },
      "wbc_k_ul": {
       "type": "number",
       "description": "WBC in 10^3/µL (same as 10^9/L). Provide wbc_k_ul or wbc_ul. Range 0.01-500. >11 scores 1 (11.0 does not)."
      },
      "bmi_ge_35": {
       "type": "boolean",
       "description": "BMI ≥35 as assigned by the caller. true or false. magent does not take height or weight. 1 point if true."
      },
      "cancer_site": {
       "type": "string",
       "description": "Caller-assigned Khorana site class. very_high (stomach or pancreas) scores 2; high (lung, lymphoma, gynecologic, bladder, or testicular) scores 1; other scores 0. magent does not assign cancer site from histology text."
      },
      "hemoglobin_g_l": {
       "type": "number",
       "description": "Hemoglobin in g/L (30-220). Converted as hemoglobin_g_dl = hemoglobin_g_l / 10. Provide this or hemoglobin_g_dl, not both."
      },
      "hemoglobin_g_dl": {
       "type": "number",
       "description": "Hemoglobin in g/dL (3-22). Provide this or hemoglobin_g_l, not both. <10 scores 1 with ESA (once, not twice). 10.0 does not score unless ESA is true."
      },
      "platelets_10e9_l": {
       "type": "number",
       "description": "Pre-chemotherapy platelet count ×10^9/L (1-2000). ≥350 scores 1 (350 scores; 349 does not)."
      },
      "erythropoiesis_stimulating_agent": {
       "type": "boolean",
       "description": "Use of an erythropoiesis-stimulating agent as assigned by the caller. true or false. Scores 1 with hemoglobin <10 g/dL (once, not twice)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/khorana",
  "count": 2,
  "items": [
   {
    "score": 0,
    "wbc_ul": 8000,
    "formula": "khorana",
    "citation": {
     "id": "khorana-2008",
     "doi": "10.1182/blood-2007-10-116327",
     "title": "Development and validation of a predictive model for chemotherapy-associated thrombosis",
     "source": "Blood. 2008;111(10):4902-4907",
     "authors": "Khorana AA, Kuderer NM, Culakova E, Lyman GH, Francis CW"
    },
    "bmi_ge_35": false,
    "max_score": 6,
    "components": [
     {
      "value": "other",
      "factor": "cancer_site",
      "points": 0,
      "present": false
     },
     {
      "value": 200,
      "factor": "platelets",
      "points": 0,
      "present": false
     },
     {
      "value": {
       "hemoglobin_g_dl": 12,
       "erythropoiesis_stimulating_agent": false
      },
      "factor": "hemoglobin_or_esa",
      "points": 0,
      "present": false
     },
     {
      "value": 8000,
      "factor": "wbc",
      "points": 0,
      "present": false
     },
     {
      "factor": "bmi_ge_35",
      "points": 0,
      "present": 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.",
    "cancer_site": "other",
    "khorana_risk": "low",
    "hemoglobin_g_dl": 12,
    "platelets_10e9_l": 200,
    "formula_expression": "Khorana = cancer_site (very_high 2, high 1, other 0) + (platelets>=350) + (hemoglobin<10 g/dL or ESA) + (wbc>11 x10^9/L) + (BMI>=35); max 6; 0 low, 1-2 intermediate, >=3 high",
    "erythropoiesis_stimulating_agent": false
   },
   {
    "score": 0,
    "wbc_ul": 8000,
    "formula": "khorana",
    "citation": {
     "id": "khorana-2008",
     "doi": "10.1182/blood-2007-10-116327",
     "title": "Development and validation of a predictive model for chemotherapy-associated thrombosis",
     "source": "Blood. 2008;111(10):4902-4907",
     "authors": "Khorana AA, Kuderer NM, Culakova E, Lyman GH, Francis CW"
    },
    "bmi_ge_35": false,
    "max_score": 6,
    "components": [
     {
      "value": "other",
      "factor": "cancer_site",
      "points": 0,
      "present": false
     },
     {
      "value": 200,
      "factor": "platelets",
      "points": 0,
      "present": false
     },
     {
      "value": {
       "hemoglobin_g_dl": 12,
       "erythropoiesis_stimulating_agent": f
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/khorana-2008-vte-risk-score-calculator-2262cebe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
