MAGENT

Infection / VTE · LIVE

VTE-BLEED calculator

VTE-BLEED

Sum the Klok 2016 VTE-BLEED items for major bleeding on stable anticoagulation after VTE and return low (<2) or high (≥2).

LIVE $0.005 USDC GET /api/calc/vte_bleed

Markdown: /docs/vte-bleed.md · Canonical: https://magentlab.com/docs/vte-bleed

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Sum the Klok 2016 VTE-BLEED items for major bleeding on stable anticoagulation after VTE and return low (<2) or high (≥2).

When to use

When an agent needs the published Klok 2016 VTE-BLEED point total and band and must not invent a treatment-duration or HAS-BLED decision.

When not to use

  • Not a medical device. magent does not diagnose VTE or bleeding and does not assay hemoglobin or eGFR.
  • Not HAS-BLED. VTE-BLEED is the Klok 2016 six-item score after VTE on stable anticoagulation, not an atrial-fibrillation bleed score.
  • Not a treatment-duration order, anticoagulation start/stop protocol, or bleed-treatment recommendation. Bands are low (<2) and high (≥2) only.
  • Anemia, renal dysfunction, and uncontrolled hypertension (SBP ≥140) are caller-assigned booleans. magent does not take a hemoglobin, eGFR, creatinine, or blood-pressure number.

Formula

VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2

Citation

Title
Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment
Authors
Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV
Source
Eur Respir J. 2016;48(5):1369-1376
DOI
10.1183/13993003.00280-2016

Worked example

Age 70 male, no other items

Given: active_cancer=falseage=70anemia=falsehistory_of_bleeding=falserenal_dysfunction=falsesex=maleuncontrolled_hypertension=false

  1. Age ≥60 → 1.5; active_cancer, male hypertension, anemia, history_of_bleeding, and renal_dysfunction false → 0
  2. Score = 1.5 (max 9); vte_bleed_band = low (<2)

Active cancer alone

Given: active_cancer=trueage=50anemia=falsehistory_of_bleeding=falserenal_dysfunction=falsesex=maleuncontrolled_hypertension=false

  1. active_cancer → 2; age <60 and remaining flags false → 0
  2. Score = 2 (max 9); vte_bleed_band = high (≥2)

Also searched as

  • VTE-BLEED
  • VTE BLEED score
  • Klok VTE-BLEED
  • Klok 2016 bleed
  • VTE anticoagulation bleeding
  • XALIA bleeding score
  • venous thromboembolism bleed

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/vte_bleed?age=70&sex=male&active_cancer=false&uncontrolled_hypertension=false&anemia=false&history_of_bleeding=false&renal_dysfunction=false

Full URL: https://api.magentlab.com/api/calc/vte_bleed?age=70&sex=male&active_cancer=false&uncontrolled_hypertension=false&anemia=false&history_of_bleeding=false&renal_dysfunction=false

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/vte_bleed?age=70&sex=male&active_cancer=false&uncontrolled_hypertension=false&anemia=false&history_of_bleeding=false&renal_dysfunction=false"

Parameters

Name Type Required Description
age integer required Age in years (18-120). Age ≥60 scores 1.5 (Klok 2016). magent does not assign age.
sex string required · female, male female or male. Uncontrolled hypertension scores 1 only when sex is male (Klok 2016 / XALIA SBP ≥140 item). Female never scores that item.
active_cancer boolean required Active cancer as assigned by the caller (Klok 2016). true scores 2. magent does not diagnose cancer.
uncontrolled_hypertension boolean required Uncontrolled hypertension (SBP ≥140 mmHg) as assigned by the caller (Klok 2016 / XALIA). true scores 1 only in males; females score 0 even when true. magent does not measure blood pressure.
anemia boolean required Anemia as assigned by the caller (Klok 2016: hemoglobin <130 g/L in men or <120 g/L in women). true scores 1.5. magent does not take a hemoglobin number.
history_of_bleeding boolean required History of bleeding as assigned by the caller (Klok 2016). true scores 1.5. magent does not grade bleeding.
renal_dysfunction boolean required Renal dysfunction (eGFR or CrCl <60) as assigned by the caller (Klok 2016). true scores 1.5. magent does not compute eGFR or creatinine clearance.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/vte_bleed Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "active_cancer": "false",
      "age": "70",
      "anemia": "false",
      "history_of_bleeding": "false",
      "renal_dysfunction": "false",
      "sex": "male",
      "uncontrolled_hypertension": "false"
    },
    {
      "active_cancer": "false",
      "age": "70",
      "anemia": "false",
      "history_of_bleeding": "false",
      "renal_dysfunction": "false",
      "sex": "male",
      "uncontrolled_hypertension": "false"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/vte_bleed",
  "items": [
    {
      "components": [
        {
          "factor": "active_cancer",
          "points": 0,
          "present": false
        },
        {
          "factor": "male_uncontrolled_hypertension",
          "points": 0,
          "present": false,
          "sex": "male",
          "uncontrolled_hypertension": false
        },
        {
          "factor": "anemia",
          "points": 0.0,
          "present": false
        },
        {
          "factor": "history_of_bleeding",
          "points": 0.0,
          "present": false
        },
        {
          "value": 70,
          "factor": "age_ge_60",
          "points": 1.5,
          "present": true
        },
        {
          "factor": "renal_dysfunction",
          "points": 0.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.",
      "citation": {
        "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
        "doi": "10.1183/13993003.00280-2016",
        "id": "klok-2016",
        "pmid": "27471209",
        "source": "Eur Respir J. 2016;48(5):1369-1376",
        "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
      },
      "formula": "vte_bleed",
      "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
      "max_score": 9,
      "score": 1.5,
      "age_years": 70,
      "sex": "male",
      "vte_bleed_band": "low"
    },
    {
      "components": [
        {
          "factor": "active_cancer",
          "points": 0,
          "present": false
        },
        {
          "factor": "male_uncontrolled_hypertension",
          "points": 0,
          "present": false,
          "sex": "male",
          "uncontrolled_hypertension": false
        },
        {
          "factor": "anemia",
          "points": 0.0,
          "present": false
        },
        {
          "factor": "history_of_bleeding",
          "points": 0.0,
          "present": false
        },
        {
          "value": 70,
          "factor": "age_ge_60",
          "points": 1.5,
          "present": true
        },
        {
          "factor": "renal_dysfunction",
          "points": 0.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.",
      "citation": {
        "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
        "doi": "10.1183/13993003.00280-2016",
        "id": "klok-2016",
        "pmid": "27471209",
        "source": "Eur Respir J. 2016;48(5):1369-1376",
        "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
      },
      "formula": "vte_bleed",
      "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
      "max_score": 9,
      "score": 1.5,
      "age_years": 70,
      "sex": "male",
      "vte_bleed_band": "low"
    }
  ]
}

Response

Field Type Description
formula string vte_bleed
formula_expression string Exact expression used
score number VTE-BLEED points 0-9 (1.5 steps allowed; not integer-rounded)
max_score integer Always 9
vte_bleed_band string low when score is <2, high when score is ≥2 (Klok 2016). Not a treatment-duration order.
sex string female or male used for the hypertension item
age_years integer Age used for the ≥60 criterion
components array Per-factor points
citation object Klok 2016 Eur Respir J citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "factor": "active_cancer",
      "points": 0,
      "present": false
    },
    {
      "factor": "male_uncontrolled_hypertension",
      "points": 0,
      "present": false,
      "sex": "male",
      "uncontrolled_hypertension": false
    },
    {
      "factor": "anemia",
      "points": 0.0,
      "present": false
    },
    {
      "factor": "history_of_bleeding",
      "points": 0.0,
      "present": false
    },
    {
      "value": 70,
      "factor": "age_ge_60",
      "points": 1.5,
      "present": true
    },
    {
      "factor": "renal_dysfunction",
      "points": 0.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.",
  "citation": {
    "authors": "Klok FA, Hösel V, Clemens A, Yollo WD, Tilke C, Schulman S, Lankeit M, Konstantinides SV",
    "doi": "10.1183/13993003.00280-2016",
    "id": "klok-2016",
    "pmid": "27471209",
    "source": "Eur Respir J. 2016;48(5):1369-1376",
    "title": "Prediction of bleeding events in patients with venous thromboembolism on stable anticoagulation treatment"
  },
  "formula": "vte_bleed",
  "formula_expression": "VTE-BLEED = active_cancer 2 + (male AND uncontrolled_hypertension) 1 + anemia 1.5 + history_of_bleeding 1.5 + age_ge_60 1.5 + renal_dysfunction 1.5; Klok 2016; max 9; low <2, high >=2",
  "max_score": 9,
  "score": 1.5,
  "age_years": 70,
  "sex": "male",
  "vte_bleed_band": "low"
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_age age must be an integer from 18 to 120 Returned before settlement; you are not charged.
400 invalid_sex sex must be female or male Returned before settlement; you are not charged.
400 invalid_flag boolean clinical flags must be true or false Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • HAS-BLED — Compute the HAS-BLED bleeding-risk score from discrete clinical flags.
  • RIETE — Sum the Ruiz-Giménez 2008 RIETE adverse factors for 3-month major bleeding after documented acute VTE and return low (0), intermediate (1–4), or high (>4).

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.