# AUB-HAS2 Perioperative Cardiac Risk Calculator (Dakik 2019)

> AUB-HAS2 Perioperative Cardiac Risk Calculator (Dakik 2019) 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).

Computes the Dakik 2019 AUB-HAS2 score and risk category for 30-day death, MI, or stroke after noncardiac surgery using six clinical elements

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/aub_has2
- 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/aub-has2-perioperative-cardiac-risk-calculator-dakik-2019-211dae5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tcqNYOynLKy_Ab7jX49Yl

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 aub-has2-perioperative-cardiac-risk-calculator-dakik-2019-211dae5e
```

Example prompt: Calculate the AUB-HAS2 perioperative cardiac risk score for a 77-year-old patient who has a history of heart disease, symptoms of angina, a hemoglobin of 10.5 g/dL, and is scheduled for elective vascular surgery — not an emergency.

## When to prefer this

Use this endpoint when you need to apply the specific Dakik 2019 AUB-HAS2 six-element scoring algorithm for 30-day MACE risk after noncardiac surgery; prefer it over RCRI-based tools when the clinical context matches the Dakik 2019 derivation cohort or when you need AUB-HAS2 specifically rather than a generic perioperative risk score.

## Known failure modes

- Missing required boolean flags (history_of_heart_disease, angina_or_dyspnea, vascular_surgery, emergency_surgery) returns a validation error
- Age outside range 18–120 rejected with parameter error
- Providing both hemoglobin_g_dl and hemoglobin_g_l simultaneously causes a conflict error
- Hemoglobin value outside valid range (3–22 g/dL or 30–220 g/L) rejected
- Non-integer age value rejected

## How this service works

Dakik 2019 AUB-HAS2 for 30-day death/MI/stroke after noncardiac surgery: six 1-point elements (history of heart disease, angina or dyspnea, age ≥75, hemoglobin <12 g/dL, vascular surgery, emergency surgery). Low 0-1, intermediate 2-3, high >3 (max 6). Derivation rates 0%, 0.5%, 2.0%, 5.6%, 15.7% by score 0/1/2/3/>3. Not a medical device, not RCRI, not ACS treatment, and not operative clearance.

## Output

Returns the computed AUB-HAS2 total score (0–6), the corresponding risk category (low: 0–1, intermediate: 2–3, high: >3), and the derivation-cohort event rates associated with each score level (0%/0.5%/2.0%/5.6%/15.7% for scores 0/1/2/3/>3).

## 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",
      "history_of_heart_disease",
      "angina_or_dyspnea",
      "vascular_surgery",
      "emergency_surgery"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Age ≥75 scores 1 (Dakik 2019). 75 scores; 74 does not."
      },
      "hemoglobin_g_l": {
       "type": "number",
       "description": "Hemoglobin in g/L (30-220). Converted as hemoglobin_g_dl = hemoglobin_g_l / 10. Provide this or hemoglobin_g_dl, not both."
      },
      "hemoglobin_g_dl": {
       "type": "number",
       "description": "Hemoglobin in g/dL (3-22). Provide this or hemoglobin_g_l, not both. Dakik 2019 writes mg/dl; clinical use is g/dL. <12 g/dL scores 1 (11.9 scores; 12.0 does not). magent does not assay hemoglobin."
      },
      "vascular_surgery": {
       "type": "boolean",
       "description": "Vascular surgery as assigned by the caller (Dakik 2019). true or false. 1 point if true."
      },
      "angina_or_dyspnea": {
       "type": "boolean",
       "description": "Symptoms of angina or dyspnea as assigned by the caller (Dakik 2019). true or false. magent does not take a symptom history. 1 point if true."
      },
      "emergency_surgery": {
       "type": "boolean",
       "description": "Emergency surgery as assigned by the caller (Dakik 2019). true or false. 1 point if true."
      },
      "history_of_heart_disease": {
       "type": "boolean",
       "description": "History of heart disease as assigned by the caller (Dakik 2019). true or false. magent does not take a cardiac history. 1 point if true."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aub-has2-perioperative-cardiac-risk-calculator-dakik-2019-211dae5e/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)
