# Wells DVT Score Calculator

> Wells DVT 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-10-12).

Computes the Wells deep-vein thrombosis pretest probability score from 10 clinical flags, returning both three-tier and two-tier risk bands.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/wells_dvt?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wells-dvt-score-calculator-5e59cc19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gr-S0jql-_fcUpqZGw_Ma

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 wells-dvt-score-calculator-5e59cc19
```

Example prompt: Calculate the Wells DVT score for a patient who has active cancer, entire leg swelling, calf swelling greater than 3 cm, pitting edema, and localized deep vein tenderness, but where an alternative diagnosis is considered at least as likely — no paralysis, no prior DVT, no bedridden history, no collateral veins.

## When to prefer this

Use this endpoint when you need a fast, deterministic, published Wells DVT pretest probability score from discrete clinical flags, especially in clinical decision support workflows, EMR integrations, or triage automation where reproducibility and citation traceability matter. Prefer over LLM-estimated risk when auditability and adherence to the original Wells 2003 scoring rubric are required.

## Known failure modes

- Missing required boolean query parameters returns a validation error
- Non-boolean values for clinical flag parameters cause schema rejection
- All flags false with alternative diagnosis true may yield a very low or negative score — valid but edge case
- Network timeouts if the API host is unreachable
- Payment failure via x402 protocol blocks the request before scoring

## How this service works

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

## Output

Returns the numeric Wells DVT total score along with the three-tier risk category (low, moderate, high) and two-tier risk band (DVT unlikely vs. DVT likely), based on the published Wells et al. criteria with citation. Output is deterministic given the same boolean inputs.

## 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": [
      "active_cancer",
      "paralysis_or_cast",
      "bedridden_or_surgery",
      "tenderness",
      "entire_leg_swollen",
      "calf_swelling_gt_3cm",
      "pitting_edema",
      "collateral_veins",
      "previous_dvt",
      "alternative_diagnosis_as_likely"
     ],
     "properties": {
      "tenderness": {
       "type": "boolean",
       "description": "Localized tenderness along the deep venous system. +1."
      },
      "previous_dvt": {
       "type": "boolean",
       "description": "Previously documented DVT. +1."
      },
      "active_cancer": {
       "type": "boolean",
       "description": "Active cancer (treatment ongoing, within 6 months, or palliative). +1."
      },
      "pitting_edema": {
       "type": "boolean",
       "description": "Pitting edema confined to the symptomatic leg. +1."
      },
      "collateral_veins": {
       "type": "boolean",
       "description": "Collateral superficial veins (nonvaricose). +1."
      },
      "paralysis_or_cast": {
       "type": "boolean",
       "description": "Paralysis, paresis, or recent plaster immobilization of the legs. +1."
      },
      "entire_leg_swollen": {
       "type": "boolean",
       "description": "Entire leg swollen. +1."
      },
      "bedridden_or_surgery": {
       "type": "boolean",
       "description": "Recently bedridden ≥3 days or major surgery within 12 weeks. +1."
      },
      "calf_swelling_gt_3cm": {
       "type": "boolean",
       "description": "Calf swelling >3 cm compared with the asymptomatic side. +1."
      },
      "alternative_diagnosis_as_likely": {
       "type": "boolean",
       "description": "Alternative diagnosis at least as likely as DVT. −2."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "o
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/wells_dvt",
  "count": 2,
  "items": [
   {
    "score": 2,
    "formula": "wells_dvt",
    "citation": {
     "id": "wells-dvt-2003",
     "doi": "10.1056/NEJMoa023153",
     "title": "Evaluation of D-dimer in the diagnosis of suspected deep-vein thrombosis",
     "source": "N Engl J Med. 2003;349(13):1227-1235",
     "authors": "Wells PS, Anderson DR, Rodger M, et al."
    },
    "two_tier": "likely",
    "max_score": 9,
    "components": [
     {
      "factor": "active_cancer",
      "points": 1,
      "present": true
     },
     {
      "factor": "paralysis_or_cast",
      "points": 0,
      "present": false
     },
     {
      "factor": "bedridden_or_surgery",
      "points": 0,
      "present": false
     },
     {
      "factor": "tenderness",
      "points": 0,
      "present": false
     },
     {
      "factor": "entire_leg_swollen",
      "points": 0,
      "present": false
     },
     {
      "factor": "calf_swelling_gt_3cm",
      "points": 1,
      "present": true
     },
     {
      "factor": "pitting_edema",
      "points": 0,
      "present": false
     },
     {
      "factor": "collateral_veins",
      "points": 0,
      "present": false
     },
     {
      "factor": "previous_dvt",
      "points": 0,
      "present": false
     },
     {
      "factor": "alternative_diagnosis_as_likely",
      "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.",
    "three_tier": "moderate",
    "formula_expression": "Wells DVT = +1 each of 9 findings; −2 if alternative_diagnosis_as_likely"
   },
   {
    "score": 2,
    "formula": "wells_dvt",
    "citation": {
     "id": "wells-dvt-2003",
     "doi": "10.1056/NEJMoa023153",
     "title": "Evaluation of D-dimer in the diagnosis of suspected deep-vein thrombosis",
     "source": "N Engl J Med. 2003;349(13):1227-1235",
     "authors": "Wells PS, Anderson DR, Rodger M, et al."
    },
    "two_tier": "likely",
    "max_score": 9,
    "components": [
     {
      "factor": "active_cancer",
      "points": 1,
      "present": true
     },
     {
      "factor": "paralysis_or_cast",
      "points": 0,
      "present": false
     },
     {
      "factor": "bedridden_or_surgery",
      "points": 0,
      "present": false
     },
     {
      "factor": "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wells-dvt-score-calculator-5e59cc19/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)
