{
  "x402Version": 2,
  "id": 39542,
  "slug": "39542",
  "resource": "https://api.magentlab.com/api/calc/khorana",
  "description": "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.",
  "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": [
              {
                "bmi_ge_35": false,
                "cancer_site": "other",
                "erythropoiesis_stimulating_agent": false,
                "hemoglobin_g_dl": 12,
                "hemoglobin_g_l": 120,
                "platelets_10e9_l": 200,
                "wbc_k_ul": 8,
                "wbc_ul": 8000
              },
              {
                "bmi_ge_35": false,
                "cancer_site": "other",
                "erythropoiesis_stimulating_agent": false,
                "hemoglobin_g_dl": 12,
                "hemoglobin_g_l": 120,
                "platelets_10e9_l": 200,
                "wbc_k_ul": 8,
                "wbc_ul": 8000
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "bmi_ge_35": false,
                "cancer_site": "other",
                "citation": {
                  "authors": "Khorana AA, Kuderer NM, Culakova E, Lyman GH, Francis CW",
                  "doi": "10.1182/blood-2007-10-116327",
                  "id": "khorana-2008",
                  "source": "Blood. 2008;111(10):4902-4907",
                  "title": "Development and validation of a predictive model for chemotherapy-associated thrombosis"
                },
                "components": [
                  {
                    "factor": "cancer_site",
                    "points": 0,
                    "present": false,
                    "value": "other"
                  },
                  {
                    "factor": "platelets",
                    "points": 0,
                    "present": false,
                    "value": 200
                  },
                  {
                    "factor": "hemoglobin_or_esa",
                    "points": 0,
                    "present": false,
                    "value": {
                      "erythropoiesis_stimulating_agent": false,
                      "hemoglobin_g_dl": 12
                    }
                  },
                  {
                    "factor": "wbc",
                    "points": 0,
                    "present": false,
                    "value": 8000
                  },
                  {
                    "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.",
                "erythropoiesis_stimulating_agent": false,
                "formula": "khorana",
                "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",
                "hemoglobin_g_dl": 12,
                "khorana_risk": "low",
                "max_score": 6,
                "platelets_10e9_l": 200,
                "score": 0,
                "wbc_ul": 8000
              },
              {
                "bmi_ge_35": false,
                "cancer_site": "other",
                "citation": {
                  "authors": "Khorana AA, Kuderer NM, Culakova E, Lyman GH, Francis CW",
                  "doi": "10.1182/blood-2007-10-116327",
                  "id": "khorana-2008",
                  "source": "Blood. 2008;111(10):4902-4907",
                  "title": "Development and validation of a predictive model for chemotherapy-associated thrombosis"
                },
                "components": [
                  {
                    "factor": "cancer_site",
                    "points": 0,
                    "present": false,
                    "value": "other"
                  },
                  {
                    "factor": "platelets",
                    "points": 0,
                    "present": false,
                    "value": 200
                  },
                  {
                    "factor": "hemoglobin_or_esa",
                    "points": 0,
                    "present": false,
                    "value": {
                      "erythropoiesis_stimulating_agent": false,
                      "hemoglobin_g_dl": 12
                    }
                  },
                  {
                    "factor": "wbc",
                    "points": 0,
                    "present": false,
                    "value": 8000
                  },
                  {
                    "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.",
                "erythropoiesis_stimulating_agent": false,
                "formula": "khorana",
                "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",
                "hemoglobin_g_dl": 12,
                "khorana_risk": "low",
                "max_score": 6,
                "platelets_10e9_l": 200,
                "score": 0,
                "wbc_ul": 8000
              }
            ],
            "path": "/api/calc/khorana"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "bmi_ge_35": {
                          "description": "BMI ≥35 as assigned by the caller. true or false. magent does not take height or weight. 1 point if true.",
                          "type": "boolean"
                        },
                        "cancer_site": {
                          "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.",
                          "type": "string"
                        },
                        "erythropoiesis_stimulating_agent": {
                          "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).",
                          "type": "boolean"
                        },
                        "hemoglobin_g_dl": {
                          "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.",
                          "type": "number"
                        },
                        "hemoglobin_g_l": {
                          "description": "Hemoglobin in g/L (30-220). Converted as hemoglobin_g_dl = hemoglobin_g_l / 10. Provide this or hemoglobin_g_dl, not both.",
                          "type": "number"
                        },
                        "platelets_10e9_l": {
                          "description": "Pre-chemotherapy platelet count ×10^9/L (1-2000). ≥350 scores 1 (350 scores; 349 does not).",
                          "type": "number"
                        },
                        "wbc_k_ul": {
                          "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).",
                          "type": "number"
                        },
                        "wbc_ul": {
                          "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).",
                          "type": "number"
                        }
                      },
                      "required": [
                        "cancer_site",
                        "platelets_10e9_l",
                        "erythropoiesis_stimulating_agent",
                        "bmi_ge_35"
                      ],
                      "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": [
    "khorana",
    "vte",
    "thrombosis",
    "cancer",
    "score",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:15:30.153Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T14:15:30.022Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "bmi_ge_35": false,
                  "cancer_site": "other",
                  "erythropoiesis_stimulating_agent": false,
                  "hemoglobin_g_dl": 12,
                  "hemoglobin_g_l": 120,
                  "platelets_10e9_l": 200,
                  "wbc_k_ul": 8,
                  "wbc_ul": 8000
                },
                {
                  "bmi_ge_35": false,
                  "cancer_site": "other",
                  "erythropoiesis_stimulating_agent": false,
                  "hemoglobin_g_dl": 12,
                  "hemoglobin_g_l": 120,
                  "platelets_10e9_l": 200,
                  "wbc_k_ul": 8,
                  "wbc_ul": 8000
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "bmi_ge_35": false,
                  "cancer_site": "other",
                  "citation": {
                    "authors": "Khorana AA, Kuderer NM, Culakova E, Lyman GH, Francis CW",
                    "doi": "10.1182/blood-2007-10-116327",
                    "id": "khorana-2008",
                    "source": "Blood. 2008;111(10):4902-4907",
                    "title": "Development and validation of a predictive model for chemotherapy-associated thrombosis"
                  },
                  "components": [
                    {
                      "factor": "cancer_site",
                      "points": 0,
                      "present": false,
                      "value": "other"
                    },
                    {
                      "factor": "platelets",
                      "points": 0,
                      "present": false,
                      "value": 200
                    },
                    {
                      "factor": "hemoglobin_or_esa",
                      "points": 0,
                      "present": false,
                      "value": {
                        "erythropoiesis_stimulating_agent": false,
                        "hemoglobin_g_dl": 12
                      }
                    },
                    {
                      "factor": "wbc",
                      "points": 0,
                      "present": false,
                      "value": 8000
                    },
                    {
                      "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.",
                  "erythropoiesis_stimulating_agent": false,
                  "formula": "khorana",
                  "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",
                  "hemoglobin_g_dl": 12,
                  "khorana_risk": "low",
                  "max_score": 6,
                  "platelets_10e9_l": 200,
                  "score": 0,
                  "wbc_ul": 8000
                },
                {
                  "bmi_ge_35": false,
                  "cancer_site": "other",
                  "citation": {
                    "authors": "Khorana AA, Kuderer NM, Culakova E, Lyman GH, Francis CW",
                    "doi": "10.1182/blood-2007-10-116327",
                    "id": "khorana-2008",
                    "source": "Blood. 2008;111(10):4902-4907",
                    "title": "Development and validation of a predictive model for chemotherapy-associated thrombosis"
                  },
                  "components": [
                    {
                      "factor": "cancer_site",
                      "points": 0,
                      "present": false,
                      "value": "other"
                    },
                    {
                      "factor": "platelets",
                      "points": 0,
                      "present": false,
                      "value": 200
                    },
                    {
                      "factor": "hemoglobin_or_esa",
                      "points": 0,
                      "present": false,
                      "value": {
                        "erythropoiesis_stimulating_agent": false,
                        "hemoglobin_g_dl": 12
                      }
                    },
                    {
                      "factor": "wbc",
                      "points": 0,
                      "present": false,
                      "value": 8000
                    },
                    {
                      "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.",
                  "erythropoiesis_stimulating_agent": false,
                  "formula": "khorana",
                  "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",
                  "hemoglobin_g_dl": 12,
                  "khorana_risk": "low",
                  "max_score": 6,
                  "platelets_10e9_l": 200,
                  "score": 0,
                  "wbc_ul": 8000
                }
              ],
              "path": "/api/calc/khorana"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "bmi_ge_35": {
                            "description": "BMI ≥35 as assigned by the caller. true or false. magent does not take height or weight. 1 point if true.",
                            "type": "boolean"
                          },
                          "cancer_site": {
                            "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.",
                            "type": "string"
                          },
                          "erythropoiesis_stimulating_agent": {
                            "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).",
                            "type": "boolean"
                          },
                          "hemoglobin_g_dl": {
                            "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.",
                            "type": "number"
                          },
                          "hemoglobin_g_l": {
                            "description": "Hemoglobin in g/L (30-220). Converted as hemoglobin_g_dl = hemoglobin_g_l / 10. Provide this or hemoglobin_g_dl, not both.",
                            "type": "number"
                          },
                          "platelets_10e9_l": {
                            "description": "Pre-chemotherapy platelet count ×10^9/L (1-2000). ≥350 scores 1 (350 scores; 349 does not).",
                            "type": "number"
                          },
                          "wbc_k_ul": {
                            "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).",
                            "type": "number"
                          },
                          "wbc_ul": {
                            "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).",
                            "type": "number"
                          }
                        },
                        "required": [
                          "cancer_site",
                          "platelets_10e9_l",
                          "erythropoiesis_stimulating_agent",
                          "bmi_ge_35"
                        ],
                        "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"
  }
}