# RIETE Score Calculator (Ruiz-Giménez 2008)

> RIETE Score Calculator (Ruiz-Giménez 2008) 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 RIETE score for 3-month major bleeding risk after acute VTE, returning a numeric score and low/intermediate/high risk category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/riete
- 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/riete-score-calculator-ruiz-gim-nez-2008-367a1bd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EwIsAGnC2lI8tmq3RVoE1

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 riete-score-calculator-ruiz-gim-nez-2008-367a1bd8
```

Example prompt: Calculate the RIETE bleeding risk score for a VTE patient who had a recent major bleeding episode, has creatinine above 1.2, is anemic, does not have cancer, has a clinically overt pulmonary embolism, and is not over 75 years old.

## When to prefer this

Use this endpoint when you need a validated, published bleeding risk score specifically for patients with documented acute VTE who are candidates for anticoagulation, following the Ruiz-Giménez 2008 RIETE model. Prefer RIETE over HAS-BLED or ATRIA when the clinical context is VTE (DVT or PE) rather than atrial fibrillation. This endpoint is ideal when all six clinical flags have already been determined by a clinician or upstream data extraction step, as this service only performs the arithmetic scoring.

## Known failure modes

- Missing required boolean parameters returns a validation error
- Non-boolean values for flag fields cause schema rejection
- All flags false still returns a valid score of 0 (low risk — not an error)
- API unavailability returns HTTP 5xx; retry logic recommended

## How this service works

Ruiz-Giménez 2008 RIETE score for 3-month major bleeding after documented acute VTE. Six caller-assigned flags: recent major bleeding (2), creatinine >1.2 mg/dL (1.5), anemia (1.5), cancer (1), clinically overt PE (1), age >75 (1); max 8. Low 0 (0.3%), intermediate 1–4 (2.6%), high >4 (7.3%) in derivation; validation 0.1%/2.8%/6.2%. Not a VTE diagnosis or bleed-treatment protocol. magent does not assay hemoglobin or creatinine.

## Output

Returns a numeric RIETE score (0–8) computed by summing caller-supplied boolean flags weighted by their published point values, along with a risk category (low: 0 points, ~0.3% bleeding; intermediate: 1–4 points, ~2.6%; high: >4 points, ~7.3%) derived from the Ruiz-Giménez 2008 derivation cohort with validation cohort rates also cited.

## 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": [
      "recent_major_bleeding",
      "creatinine_gt_1_2",
      "anemia",
      "cancer",
      "clinically_overt_pe",
      "age_gt_75"
     ],
     "properties": {
      "anemia": {
       "type": "boolean",
       "description": "Anemia as assigned by the caller (Ruiz-Giménez 2008: hemoglobin <13 g/dL in men or <12 g/dL in women). true scores 1.5. magent does not assay hemoglobin."
      },
      "cancer": {
       "type": "boolean",
       "description": "Cancer as assigned by the caller (Ruiz-Giménez 2008). true scores 1.0. magent does not diagnose cancer."
      },
      "age_gt_75": {
       "type": "boolean",
       "description": "Age >75 years as assigned by the caller (Ruiz-Giménez 2008). true scores 1.0. magent does not assign age."
      },
      "creatinine_gt_1_2": {
       "type": "boolean",
       "description": "Creatinine >1.2 mg/dL as assigned by the caller (Ruiz-Giménez 2008). true scores 1.5. magent does not compute creatinine from a lab."
      },
      "clinically_overt_pe": {
       "type": "boolean",
       "description": "Clinically overt pulmonary embolism as assigned by the caller (Ruiz-Giménez 2008). true scores 1.0. magent does not diagnose PE."
      },
      "recent_major_bleeding": {
       "type": "boolean",
       "description": "Recent major bleeding as assigned by the caller (Ruiz-Giménez 2008). true scores 2.0. magent does not grade bleeding."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/riete",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "riete",
    "citation": {
     "id": "ruiz-gimenez-2008",
     "doi": "10.1160/TH08-03-0193",
     "pmid": "18612548",
     "title": "Predictive variables for major bleeding events in patients presenting with documented acute venous thromboembolism. Findings from the RIETE Registry",
     "source": "Thromb Haemost. 2008;100(1):26-31",
     "authors": "Ruiz-Giménez N, Suárez C, González R, Nieto JA, Todolí JA, Samperiz AL, Monreal M; RIETE Investigators"
    },
    "max_score": 8,
    "components": [
     {
      "factor": "recent_major_bleeding",
      "points": 0,
      "present": false
     },
     {
      "factor": "creatinine_gt_1_2",
      "points": 0,
      "present": false
     },
     {
      "factor": "anemia",
      "points": 0,
      "present": false
     },
     {
      "factor": "cancer",
      "points": 0,
      "present": false
     },
     {
      "factor": "clinically_overt_pe",
      "points": 0,
      "present": false
     },
     {
      "factor": "age_gt_75",
      "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.",
    "riete_band": "low",
    "formula_expression": "RIETE = recent_major_bleeding 2.0 + creatinine_gt_1_2 1.5 + anemia 1.5 + cancer 1.0 + clinically_overt_pe 1.0 + age_gt_75 1.0; Ruiz-Giménez 2008; max 8; low 0, intermediate 1-4, high >4"
   },
   {
    "score": 0,
    "formula": "riete",
    "citation": {
     "id": "ruiz-gimenez-2008",
     "doi": "10.1160/TH08-03-0193",
     "pmid": "18612548",
     "title": "Predictive variables for major bleeding events in patients presenting with documented acute venous thromboembolism. Findings from the RIETE Registry",
     "source": "Thromb Haemost. 2008;100(1):26-31",
     "authors": "Ruiz-Giménez N, Suárez C, González R, Nieto JA, Todolí JA, Samperiz AL, Monreal M; RIETE Investigators"
    },
    "max_score": 8,
    "components": [
     {
      "factor": "recent_major_bleeding",
      "points": 0,
      "present": false
     },
     {
      "factor": "creatinine_gt_1_2",
      "points": 0,
      "present": false
     },
     {
      "factor": "anemia",
      "points": 0,
      "present": false
     },
     {
      "factor": "cancer",
      "points": 0,
   
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riete-score-calculator-ruiz-gim-nez-2008-367a1bd8/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)
