# ATRIA Hemorrhage Risk Score Calculator

> ATRIA Hemorrhage 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).

Computes the Fang 2011 ATRIA bleeding risk score for patients on anticoagulation therapy based on five clinical factors: anemia, severe renal disease, age, prior hemorrhage, and hypertension.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/atria
- 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/atria-hemorrhage-risk-score-calculator-54871706
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h2voJPZ3IVHAjqRr15ZrT

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 atria-hemorrhage-risk-score-calculator-54871706
```

Example prompt: Calculate the ATRIA hemorrhage score for a 78-year-old male patient who has anemia, no severe renal disease, no prior hemorrhage, and a diagnosed hypertension — what's his score and risk category?

## When to prefer this

Use this endpoint when you need a fast, standardized ATRIA (Fang 2011) hemorrhage risk score for a patient being considered for anticoagulation therapy. Prefer this over HAS-BLED or other bleeding scores when the clinical context specifically calls for the ATRIA framework. The caller must supply pre-computed anemia and renal disease flags — do not use this endpoint if raw lab values (hemoglobin, eGFR) still need to be interpreted into boolean flags.

## Known failure modes

- Missing required query parameters (anemia, severe_renal_disease, age, prior_hemorrhage, hypertension) returns an error
- Age outside valid range (18–120) may return a validation error
- Boolean fields passed as strings instead of true/false may cause parsing errors
- Payment not included or failed x402 flow returns 402 Payment Required

## How this service works

Fang 2011 ATRIA hemorrhage score: anemia caller flag 3 (paper Hb <13 g/dL men or <12 g/dL women); severe renal disease (eGFR <30 or dialysis) caller flag 3; age >=75 scores 2; prior hemorrhage 1; diagnosed hypertension 1. Max 10. Score 0-3 low, 4 intermediate, 5-10 high. Not a diagnosis. Not a warfarin order. Not HAS-BLED. magent does not measure hemoglobin or compute eGFR.

## Output

Returns the numeric ATRIA hemorrhage score (0–10) and the corresponding risk category: low (0–3), intermediate (4), or high (5–10). Does not provide a clinical diagnosis or treatment recommendation; caller is responsible for supplying anemia and renal disease flags based on measured lab values.

## 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": [
      "anemia",
      "severe_renal_disease",
      "age",
      "prior_hemorrhage",
      "hypertension"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). ≥75 scores 2 (75 scores; 74 does not)."
      },
      "anemia": {
       "type": "boolean",
       "description": "Anemia as assigned by the caller (paper: hemoglobin <13 g/dL in men or <12 g/dL in women). true or false. Scores 3. magent does not measure hemoglobin."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Diagnosed hypertension as assigned by the caller. true or false. Scores 1."
      },
      "prior_hemorrhage": {
       "type": "boolean",
       "description": "Any prior hemorrhage diagnosis as assigned by the caller. true or false. Scores 1."
      },
      "severe_renal_disease": {
       "type": "boolean",
       "description": "Severe renal disease as assigned by the caller (paper: eGFR <30 or dialysis). true or false. Scores 3. magent does not compute eGFR."
      }
     }
    }
   },
   "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/atria",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "atria",
    "citation": {
     "id": "fang-2011",
     "doi": "10.1016/j.jacc.2011.03.031",
     "pmid": "21757117",
     "title": "A new risk scheme to predict warfarin-associated hemorrhage: the ATRIA (Anticoagulation and Risk Factors in Atrial Fibrillation) Study",
     "source": "J Am Coll Cardiol. 2011;58(4):395-401",
     "authors": "Fang MC, Go AS, Chang Y, et al."
    },
    "age_years": 60,
    "max_score": 10,
    "risk_band": "low",
    "components": [
     {
      "factor": "anemia",
      "points": 0,
      "present": false
     },
     {
      "factor": "severe_renal_disease",
      "points": 0,
      "present": false
     },
     {
      "value": 60,
      "factor": "age_ge_75",
      "points": 0,
      "present": false
     },
     {
      "factor": "prior_hemorrhage",
      "points": 0,
      "present": false
     },
     {
      "factor": "hypertension",
      "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": "ATRIA = anemia (3) + severe_renal_disease (3) + age_ge_75 (2) + prior_hemorrhage (1) + hypertension (1); max 10; 0-3 low, 4 intermediate, 5-10 high"
   },
   {
    "score": 0,
    "formula": "atria",
    "citation": {
     "id": "fang-2011",
     "doi": "10.1016/j.jacc.2011.03.031",
     "pmid": "21757117",
     "title": "A new risk scheme to predict warfarin-associated hemorrhage: the ATRIA (Anticoagulation and Risk Factors in Atrial Fibrillation) Study",
     "source": "J Am Coll Cardiol. 2011;58(4):395-401",
     "authors": "Fang MC, Go AS, Chang Y, et al."
    },
    "age_years": 60,
    "max_score": 10,
    "risk_band": "low",
    "components": [
     {
      "factor": "anemia",
      "points": 0,
      "present": false
     },
     {
      "factor": "severe_renal_disease",
      "points": 0,
      "present": false
     },
     {
      "value": 60,
      "factor": "age_ge_75",
      "points": 0,
      "present": false
     },
     {
      "factor": "prior_hemorrhage",
      "points": 0,
      "present": false
     },
     {
      "factor": "hypertension",
      "points": 0,
      "present": false
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-fo
… (truncated)
```

## More

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