# DAPT Score Calculator (Yeh 2016)

> DAPT Score Calculator (Yeh 2016) 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-16).

Computes the Yeh 2016 DAPT score after PCI to stratify patients into high (≥2) or low (<2) risk categories for ischemic and bleeding events with prolonged dual antiplatelet therapy.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dapt
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dapt-score-calculator-yeh-2016-d6e2413d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yCdI7hTVZGIeD5Ra478JR

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 dapt-score-calculator-yeh-2016-d6e2413d
```

Example prompt: Calculate the DAPT score for a 68-year-old patient who presented with MI, has prior PCI, has diabetes, is a current smoker, received a paclitaxel-eluting stent with diameter under 3 mm, and has no CHF or vein-graft intervention.

## When to prefer this

Use this endpoint when you need to programmatically apply the Yeh 2016 DAPT prediction rule in a cardiology workflow, EHR integration, or clinical decision-support agent — particularly when all nine predictor variables are already known from a structured clinical record. It is purpose-built for this specific validated score and handles the exclusive age banding (65–74 = −1, ≥75 = −2) correctly.

## Known failure modes

- Missing required boolean fields returns a validation error
- Age outside 18–120 range rejected
- Malformed query parameter types (e.g. non-boolean for flags) return 400
- Network or server errors return 5xx with no score

## How this service works

Yeh 2016 DAPT prediction rule after PCI: exclusive age (<65: 0; 65 to younger than 75: -1; 75 or older: -2) plus MI at presentation, prior MI or PCI, diabetes, stent diameter <3 mm, smoking (current or within past year), and paclitaxel-eluting stent (1 each); CHF or LVEF <30% and vein-graft intervention (2 each). Max 10. Score >=2 high, <2 low. Not a duration order. Not a diagnosis.

## Output

Returns the integer DAPT score (range roughly -2 to 10), each component's point contribution, and a binary risk classification (high if ≥2, low if <2). Does not recommend therapy duration and is not a diagnosis.

## 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",
      "myocardial_infarction_at_presentation",
      "prior_mi_or_pci",
      "diabetes",
      "stent_diameter_lt_3mm",
      "smoking",
      "paclitaxel_eluting_stent",
      "chf_or_lvef_lt_30",
      "vein_graft_intervention"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Yeh 2016 exclusive bands: younger than 65 scores 0; 65 to younger than 75 scores -1; 75 or older scores -2. Age 75 is -2, not -1."
      },
      "smoking": {
       "type": "boolean",
       "description": "Current cigarette smoking or smoking within the past year as assigned by the caller (Yeh 2016). true scores 1."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes mellitus as assigned by the caller (Yeh 2016). true scores 1."
      },
      "prior_mi_or_pci": {
       "type": "boolean",
       "description": "Prior myocardial infarction or prior PCI as assigned by the caller (Yeh 2016). true scores 1."
      },
      "chf_or_lvef_lt_30": {
       "type": "boolean",
       "description": "Congestive heart failure or LVEF <30% as assigned by the caller (Yeh 2016). true scores 2. magent does not measure LVEF."
      },
      "stent_diameter_lt_3mm": {
       "type": "boolean",
       "description": "Stent diameter <3 mm as assigned by the caller (Yeh 2016). true scores 1. magent does not measure the stent."
      },
      "vein_graft_intervention": {
       "type": "boolean",
       "description": "Vein-graft PCI as assigned by the caller (Yeh 2016). true scores 2. magent does not interpret the angiogram."
      },
      "paclitaxel_eluting_stent": {
       "type": "boolean",
       "description": "Paclitaxel-eluting stent as assigned by the caller (Yeh 2016). true scores 1."
      },
      "myocardial_infarction_at_presentation": {
       "type": "boolean",
       "description": "Myocardial infarction a
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dapt-score-calculator-yeh-2016-d6e2413d/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)
