# HEMORR2HAGES Bleeding Risk Score Calculator

> HEMORR2HAGES Bleeding Risk 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-09-15).

Calculates the HEMORR2HAGES major bleeding risk score for atrial fibrillation patients on warfarin, returning a score (0–12) and estimated bleeds per 100 patient-years.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/hemorr2hages
- 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/hemorr2hages-bleeding-risk-score-calculator-73806422
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2WKaUYq4Z_zVfjlxkDmsp

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 hemorr2hages-bleeding-risk-score-calculator-73806422
```

Example prompt: Calculate the HEMORR2HAGES score for a 79-year-old patient with atrial fibrillation who has a prior bleed and anemia, but no hepatic or renal disease, no ethanol abuse, no malignancy, no reduced platelet function, no uncontrolled hypertension, no known genetic factors, no excessive fall risk, and no prior stroke.

## When to prefer this

Use this endpoint when you need to compute the HEMORR2HAGES (Gage 2006) bleeding risk score specifically, as opposed to HAS-BLED, ORBIT, or ATRIA. It is ideal when the clinical context calls for the NRAF/HEMORR2HAGES framework, all 11 risk factor flags have already been clinically determined by the provider, and you need the corresponding published bleed-rate lookup per 100 patient-years. Not suitable as a substitute for HAS-BLED or when raw lab values (hemoglobin, platelet count) need to be auto-interpreted.

## Known failure modes

- Missing required query parameters (age or any boolean flag) returns a 400 error
- Age outside the 18–120 range may be rejected or return unexpected results
- Boolean values passed as non-boolean types may cause schema validation errors
- Network or payment failure returns a 402 or 5xx response

## How this service works

Gage 2006 HEMORR2HAGES (NRAF) AF major-bleed score: prior bleed 2; hepatic or renal, ethanol, malignancy, age >75, reduced platelet count or function, uncontrolled hypertension, anemia, genetic factors, excessive fall risk, and stroke each 1. Max 12. Warfarin major bleed per 100 patient-years: 0→1.9, 1→2.5, 2→5.3, 3→8.4, 4→10.4, ≥5→12.3. Not a medical device. Not a decision to start or stop anticoagulation. Not HAS-BLED, ORBIT, or ATRIA.

## Output

Returns an integer HEMORR2HAGES score from 0 to 12 and the corresponding estimated rate of major warfarin-related bleeds per 100 patient-years (0→1.9, 1→2.5, 2→5.3, 3→8.4, 4→10.4, ≥5→12.3), based on the 11 clinical criteria from Gage 2006.

## 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": [
      "age",
      "prior_bleed",
      "hepatic_or_renal",
      "ethanol",
      "malignancy",
      "reduced_platelet",
      "uncontrolled_hypertension",
      "anemia",
      "genetic_factors",
      "excessive_fall_risk",
      "stroke"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Age >75 scores 1 (76 scores; 75 does not)."
      },
      "anemia": {
       "type": "boolean",
       "description": "Anemia as assigned by the caller. true or false. Scores 1. magent does not take hemoglobin."
      },
      "stroke": {
       "type": "boolean",
       "description": "Prior stroke as assigned by the caller. true or false. Scores 1."
      },
      "ethanol": {
       "type": "boolean",
       "description": "Ethanol abuse as assigned by the caller. true or false. Scores 1."
      },
      "malignancy": {
       "type": "boolean",
       "description": "Malignancy as assigned by the caller. true or false. Scores 1."
      },
      "prior_bleed": {
       "type": "boolean",
       "description": "Prior bleed / rebleeding as assigned by the caller. true or false. Scores 2 (the 2 in HEMORR2HAGES)."
      },
      "genetic_factors": {
       "type": "boolean",
       "description": "Genetic factors as assigned by the caller (paper: CYP2C9). true or false. Scores 1. magent does not genotype."
      },
      "hepatic_or_renal": {
       "type": "boolean",
       "description": "Hepatic or renal disease as assigned by the caller. true or false. Scores 1 as a single flag."
      },
      "reduced_platelet": {
       "type": "boolean",
       "description": "Reduced platelet count or function as assigned by the caller. true or false. Scores 1. magent does not take a platelet count."
      },
      "excessive_fall_risk": {
       "type": "boolean",
       "description": "Excessive fall risk as assigned by the caller. true or false. 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/hemorr2hages",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "hemorr2hages",
    "citation": {
     "id": "gage-2006",
     "doi": "10.1016/j.ahj.2005.04.017",
     "pmid": "16504638",
     "title": "Clinical classification schemes for predicting hemorrhage: results from the National Registry of Atrial Fibrillation (NRAF)",
     "source": "Am Heart J. 2006;151(3):713-719",
     "authors": "Gage BF, Yan Y, Milligan PE, et al."
    },
    "age_years": 60,
    "max_score": 12,
    "components": [
     {
      "factor": "prior_bleed",
      "points": 0,
      "present": false
     },
     {
      "factor": "hepatic_or_renal",
      "points": 0,
      "present": false
     },
     {
      "factor": "ethanol",
      "points": 0,
      "present": false
     },
     {
      "factor": "malignancy",
      "points": 0,
      "present": false
     },
     {
      "value": 60,
      "factor": "age_gt_75",
      "points": 0,
      "present": false
     },
     {
      "factor": "reduced_platelet",
      "points": 0,
      "present": false
     },
     {
      "factor": "uncontrolled_hypertension",
      "points": 0,
      "present": false
     },
     {
      "factor": "anemia",
      "points": 0,
      "present": false
     },
     {
      "factor": "genetic_factors",
      "points": 0,
      "present": false
     },
     {
      "factor": "excessive_fall_risk",
      "points": 0,
      "present": false
     },
     {
      "factor": "stroke",
      "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.",
    "formula_expression": "HEMORR2HAGES = prior_bleed (2) + hepatic_or_renal (1) + ethanol (1) + malignancy (1) + age_gt_75 (1) + reduced_platelet (1) + uncontrolled_hypertension (1) + anemia (1) + genetic_factors (1) + excessive_fall_risk (1) + stroke (1); max 12; warfarin major bleed per 100 pt-years: 0=1.9, 1=2.5, 2=5.3, 3=8.4, 4=10.4, >=5=12.3",
    "bleed_rate_per_100_pt_years": 1.9
   },
   {
    "score": 0,
    "formula": "hemorr2hages",
    "citation": {
     "id": "gage-2006",
     "doi": "10.1016/j.ahj.2005.04.017",
     "pmid": "16504638",
     "title": "Clinical classification schemes for predicting hemorrhage: results from the National Registry of Atrial Fibrillation (NRAF)",
     "source":
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hemorr2hages-bleeding-risk-score-calculator-73806422/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)
