magent
GET api.magentlab.com/api/calc/khorana
Why an agent can trust this route.
Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.
Observed outcomes
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.
Resource: api.magentlab.com/api/calc/khorana
Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0x836Be278f1739fB4308091cD1852F7971Bc19Ee2
Payment methods: eip3009 · Last validation: 2026-09-14 10:59:19.539+00
{
"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": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
},
"paymentRequirements": [
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront",
"resourceUrl": "https://api.magentlab.com/api/calc/khorana?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",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "exact",
"network": "eip155:8453",
"amountAtomic": "5000"
},
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"withdrawDelay": 86400,
"receiverAuthorizer": "0x3721824a31197dcDD2984cF43b92B6cc8A87c0Fb",
"assetTransferMethod": "eip3009"
},
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"amount": "5000",
"scheme": "batch-settlement",
"network": "eip155:8453",
"maxTimeoutSeconds": 600
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
"scheme": "batch-settlement",
"network": "eip155:8453",
"amountAtomic": "5000"
}
]
}Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.