# GARFIELD-AF 1-Year Risk Calculator (Fox 2017)

> GARFIELD-AF 1-Year Risk Calculator (Fox 2017) 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-14).

Calculates 1-year predicted risks of all-cause mortality, ischaemic stroke/systemic embolism, and major bleeding for atrial fibrillation patients using the published Fox 2017 GARFIELD-AF equations.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/garfield_af
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/garfield-af-1-year-risk-calculator-fox-2017-3957fcd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h01Tefhda_xEblzV7snc8

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 garfield-af-1-year-risk-calculator-fox-2017-3957fcd8
```

Example prompt: Using the Fox 2017 GARFIELD-AF model, calculate the 1-year risks of death, stroke/embolism, and major bleeding for a 72-year-old male, 85 kg, pulse 88 bpm, diastolic BP 82 mmHg, White/Caucasian ethnicity, with heart failure and diabetes but no prior stroke, no bleeding history, no CKD, no dementia, non-smoker, on a NOAC, no carotid occlusive disease, and no antiplatelet therapy.

## When to prefer this

Use this endpoint when you need the validated, published Fox 2017 GARFIELD-AF 1-year absolute risk estimates for mortality, stroke/embolism, and major bleeding in patients with atrial fibrillation. Prefer this over generic CHA2DS2-VASc or HAS-BLED calculators when you need simultaneous estimates of all three outcomes from a large real-world registry model. This is appropriate when you have all required clinical parameters available and want a research-grade, citation-backed computation rather than a simple score.

## Known failure modes

- Missing required query parameters (age, sex, weight_kg, pulse, diastolic_bp_mm_hg, comorbidity flags, oac, ethnicity, carotid_occlusive_disease, antiplatelet) returns a 400 Bad Request
- Age outside the 18-120 range or pulse outside 30-250 may return a validation error
- Invalid enum values for sex, oac, or ethnicity return an error
- Payment not provided or insufficient USDC balance results in 402 Payment Required
- Network timeout or server unavailability returns 5xx error

## How this service works

Fox 2017 GARFIELD-AF 1-year all-cause mortality, ischaemic stroke/systemic embolism, and major bleed from age, sex, weight, pulse, diastolic BP, comorbidities, smoking, caller-assigned ethnicity (White/Caucasian reference; Hispanic/Latino, Asian, Black/Mixed/Other), oral anticoagulant class (none, NOAC, VKA), carotid occlusive disease, and antiplatelet therapy. Published 1-year equations. magent does not assign race or ethnicity. Not a diagnosis or anticoagulation order.

## Output

Returns three 1-year probability estimates computed from the published Fox 2017 GARFIELD-AF linear predictors: (1) all-cause mortality, (2) ischaemic stroke or systemic embolism, and (3) major bleeding. Values are derived from the patient's age, sex, weight, pulse, diastolic BP, comorbidity flags, smoking status, ethnicity, OAC class, carotid occlusive disease, and antiplatelet use. The endpoint does not recommend anticoagulation or diagnose AF.

## 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",
      "sex",
      "weight_kg",
      "pulse",
      "diastolic_bp_mm_hg",
      "heart_failure",
      "vascular_disease",
      "prior_stroke",
      "history_of_bleeding",
      "diabetes",
      "moderate_to_severe_ckd",
      "dementia",
      "current_smoking",
      "oac",
      "ethnicity",
      "carotid_occlusive_disease",
      "antiplatelet"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Fox 2017 / GARFIELD-AF: mortality uses 0.031050027*(age-65) when age<=65 and 0.064594824*(age-65) when age>65. Stroke and bleed use 0.039138147*(age-65) and 0.043476276*(age-65) with no knot."
      },
      "oac": {
       "enum": [
        "none",
        "noac",
        "vka"
       ],
       "type": "string",
       "description": "Caller-assigned oral anticoagulant class: none, noac, or vka (mutually exclusive). NOAC and VKA enter as separate Fox 2017 terms. magent does not choose an anticoagulant."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex as recorded (female or male). Fox 2017 female sex adds 0.306202287 to the mortality linear predictor. Stroke and bleed equations have no sex term."
      },
      "pulse": {
       "type": "number",
       "description": "Pulse in beats per minute (30-250). Mortality: 0.007678035*(pulse-120) when pulse<=120; 0 when pulse>120. Bleed uses 0.004167103*(pulse-120) with no truncation."
      },
      "dementia": {
       "type": "boolean",
       "description": "Caller-assigned dementia (true or false). Mortality +0.489453313; stroke +0.513221391."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Caller-assigned diabetes (true or false). Mortality +0.280133213; stroke +0.211995445; bleed +0.176898047."
      },
      "ethnicity": {
       "enum": [
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/garfield-af-1-year-risk-calculator-fox-2017-3957fcd8/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)
