ACS · LIVE
DAPT score (Yeh 2016)
DAPT score
Sum the Yeh 2016 DAPT prediction rule after PCI from exclusive age bands and eight caller-assigned flags and return the published high/low band.
Markdown: /docs/dapt.md · Canonical: https://magentlab.com/docs/dapt
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Sum the Yeh 2016 DAPT prediction rule after PCI from exclusive age bands and eight caller-assigned flags and return the published high/low band.
When to use
When an agent needs the published Yeh 2016 DAPT point total after PCI and must not invent a dual antiplatelet duration or ischemia/bleeding percents.
When not to use
- Not a medical device and not a prescription for dual antiplatelet therapy duration.
- Not a diagnosis. magent does not interpret the angiogram or assign MI, stent, smoking, CHF, or LVEF; every flag is caller-assigned.
- Age bands are mutually exclusive: younger than 65 scores 0; 65 to younger than 75 scores -1; 75 or older scores -2. Age 75 is -2, not -1.
- Score >=2 is the published high band (continued thienopyridine associated with larger ischemic-event reduction); score <2 is low. Does not return ischemia or bleeding percents.
Formula
DAPT = exclusive age (<65: 0, 65 to <75: -1, >=75: -2) + myocardial_infarction_at_presentation 1 + prior_mi_or_pci 1 + diabetes 1 + stent_diameter_lt_3mm 1 + smoking 1 + paclitaxel_eluting_stent 1 + chf_or_lvef_lt_30 2 + vein_graft_intervention 2; max 10; >=2 high, <2 low (Yeh 2016)
Citation
- Authors
- Yeh RW, Secemsky EA, Kereiakes DJ, et al
- Source
- JAMA. 2016;315(16):1735-1749
Worked example
Age 60, all flags false
Given:
age=60chf_or_lvef_lt_30=falsediabetes=falsemyocardial_infarction_at_presentation=falsepaclitaxel_eluting_stent=falseprior_mi_or_pci=falsesmoking=falsestent_diameter_lt_3mm=falsevein_graft_intervention=false
- Age 60 is younger than 65 → 0; all flags false → 0
- Score = 0 (max 10); risk_band low
Age 60, CHF or LVEF <30%
Given:
age=60chf_or_lvef_lt_30=truediabetes=falsemyocardial_infarction_at_presentation=falsepaclitaxel_eluting_stent=falseprior_mi_or_pci=falsesmoking=falsestent_diameter_lt_3mm=falsevein_graft_intervention=false
- Age 60 → 0; chf_or_lvef_lt_30 → 2
- Score = 2 (max 10); risk_band high
Also searched as
- DAPT score
- Dual antiplatelet therapy score
- Yeh DAPT
- DAPT prediction rule
- Yeh 2016 DAPT
- prolonged DAPT score
- DAPT after PCI
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
Full URL: https://api.magentlab.com/api/calc/dapt?age=60&myocardial_infarction_at_presentation=false&prior_mi_or_pci=false&diabetes=false&stent_diameter_lt_3mm=false&smoking=false&paclitaxel_eluting_stent=false&chf_or_lvef_lt_30=false&vein_graft_intervention=false
Call
Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params
return HTTP 400 before any quote or charge.
curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/dapt?age=60&myocardial_infarction_at_presentation=false&prior_mi_or_pci=false&diabetes=false&stent_diameter_lt_3mm=false&smoking=false&paclitaxel_eluting_stent=false&chf_or_lvef_lt_30=false&vein_graft_intervention=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
age |
integer | required | 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. |
myocardial_infarction_at_presentation |
boolean | required | Myocardial infarction at presentation as assigned by the caller (Yeh 2016). true scores 1. magent does not diagnose MI. |
prior_mi_or_pci |
boolean | required | Prior myocardial infarction or prior PCI as assigned by the caller (Yeh 2016). true scores 1. |
diabetes |
boolean | required | Diabetes mellitus as assigned by the caller (Yeh 2016). true scores 1. |
stent_diameter_lt_3mm |
boolean | required | Stent diameter <3 mm as assigned by the caller (Yeh 2016). true scores 1. magent does not measure the stent. |
smoking |
boolean | required | Current cigarette smoking or smoking within the past year as assigned by the caller (Yeh 2016). true scores 1. |
paclitaxel_eluting_stent |
boolean | required | Paclitaxel-eluting stent as assigned by the caller (Yeh 2016). true scores 1. |
chf_or_lvef_lt_30 |
boolean | required | Congestive heart failure or LVEF <30% as assigned by the caller (Yeh 2016). true scores 2. magent does not measure LVEF. |
vein_graft_intervention |
boolean | required | Vein-graft PCI as assigned by the caller (Yeh 2016). true scores 2. magent does not interpret the angiogram. |
Bulk (POST)
POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.
- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.
Example request (fixture)
{
"items": [
{
"age": "60",
"chf_or_lvef_lt_30": "false",
"diabetes": "false",
"myocardial_infarction_at_presentation": "false",
"paclitaxel_eluting_stent": "false",
"prior_mi_or_pci": "false",
"smoking": "false",
"stent_diameter_lt_3mm": "false",
"vein_graft_intervention": "false"
},
{
"age": "60",
"chf_or_lvef_lt_30": "false",
"diabetes": "false",
"myocardial_infarction_at_presentation": "false",
"paclitaxel_eluting_stent": "false",
"prior_mi_or_pci": "false",
"smoking": "false",
"stent_diameter_lt_3mm": "false",
"vein_graft_intervention": "false"
}
]
}
Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.
Example 200 (fixture)
{
"count": 2,
"path": "/api/calc/dapt",
"items": [
{
"components": [
{
"value": 60,
"factor": "age",
"points": 0,
"present": false
},
{
"factor": "myocardial_infarction_at_presentation",
"points": 0,
"present": false
},
{
"factor": "prior_mi_or_pci",
"points": 0,
"present": false
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "stent_diameter_lt_3mm",
"points": 0,
"present": false
},
{
"factor": "smoking",
"points": 0,
"present": false
},
{
"factor": "paclitaxel_eluting_stent",
"points": 0,
"present": false
},
{
"factor": "chf_or_lvef_lt_30",
"points": 0,
"present": false
},
{
"factor": "vein_graft_intervention",
"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.",
"citation": {
"authors": "Yeh RW, Secemsky EA, Kereiakes DJ, et al",
"doi": "10.1001/jama.2016.3775",
"id": "yeh-2016",
"pmid": "27022822",
"source": "JAMA. 2016;315(16):1735-1749",
"title": "Development and Validation of a Prediction Rule for Benefit and Harm of Dual Antiplatelet Therapy Beyond 1 Year After Percutaneous Coronary Intervention"
},
"formula": "dapt",
"formula_expression": "DAPT = exclusive age (<65: 0, 65 to <75: -1, >=75: -2) + myocardial_infarction_at_presentation 1 + prior_mi_or_pci 1 + diabetes 1 + stent_diameter_lt_3mm 1 + smoking 1 + paclitaxel_eluting_stent 1 + chf_or_lvef_lt_30 2 + vein_graft_intervention 2; max 10; >=2 high, <2 low (Yeh 2016)",
"age_years": 60,
"max_score": 10,
"score": 0,
"risk_band": "low"
},
{
"components": [
{
"value": 60,
"factor": "age",
"points": 0,
"present": false
},
{
"factor": "myocardial_infarction_at_presentation",
"points": 0,
"present": false
},
{
"factor": "prior_mi_or_pci",
"points": 0,
"present": false
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "stent_diameter_lt_3mm",
"points": 0,
"present": false
},
{
"factor": "smoking",
"points": 0,
"present": false
},
{
"factor": "paclitaxel_eluting_stent",
"points": 0,
"present": false
},
{
"factor": "chf_or_lvef_lt_30",
"points": 0,
"present": false
},
{
"factor": "vein_graft_intervention",
"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.",
"citation": {
"authors": "Yeh RW, Secemsky EA, Kereiakes DJ, et al",
"doi": "10.1001/jama.2016.3775",
"id": "yeh-2016",
"pmid": "27022822",
"source": "JAMA. 2016;315(16):1735-1749",
"title": "Development and Validation of a Prediction Rule for Benefit and Harm of Dual Antiplatelet Therapy Beyond 1 Year After Percutaneous Coronary Intervention"
},
"formula": "dapt",
"formula_expression": "DAPT = exclusive age (<65: 0, 65 to <75: -1, >=75: -2) + myocardial_infarction_at_presentation 1 + prior_mi_or_pci 1 + diabetes 1 + stent_diameter_lt_3mm 1 + smoking 1 + paclitaxel_eluting_stent 1 + chf_or_lvef_lt_30 2 + vein_graft_intervention 2; max 10; >=2 high, <2 low (Yeh 2016)",
"age_years": 60,
"max_score": 10,
"score": 0,
"risk_band": "low"
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | dapt |
formula_expression |
string | Exact expression used |
score |
integer | Yeh 2016 DAPT points -2 to 10 |
max_score |
integer | 10 |
risk_band |
string | Yeh 2016 band: high if score >=2 (continued thienopyridine associated with larger ischemic-event reduction); low if score <2. A band, not a duration order or diagnosis. |
age_years |
integer | Age used for the exclusive age band |
components |
array | Per-factor points |
citation |
object | Yeh et al. JAMA 2016 citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"components": [
{
"value": 60,
"factor": "age",
"points": 0,
"present": false
},
{
"factor": "myocardial_infarction_at_presentation",
"points": 0,
"present": false
},
{
"factor": "prior_mi_or_pci",
"points": 0,
"present": false
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "stent_diameter_lt_3mm",
"points": 0,
"present": false
},
{
"factor": "smoking",
"points": 0,
"present": false
},
{
"factor": "paclitaxel_eluting_stent",
"points": 0,
"present": false
},
{
"factor": "chf_or_lvef_lt_30",
"points": 0,
"present": false
},
{
"factor": "vein_graft_intervention",
"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.",
"citation": {
"authors": "Yeh RW, Secemsky EA, Kereiakes DJ, et al",
"doi": "10.1001/jama.2016.3775",
"id": "yeh-2016",
"pmid": "27022822",
"source": "JAMA. 2016;315(16):1735-1749",
"title": "Development and Validation of a Prediction Rule for Benefit and Harm of Dual Antiplatelet Therapy Beyond 1 Year After Percutaneous Coronary Intervention"
},
"formula": "dapt",
"formula_expression": "DAPT = exclusive age (<65: 0, 65 to <75: -1, >=75: -2) + myocardial_infarction_at_presentation 1 + prior_mi_or_pci 1 + diabetes 1 + stent_diameter_lt_3mm 1 + smoking 1 + paclitaxel_eluting_stent 1 + chf_or_lvef_lt_30 2 + vein_graft_intervention 2; max 10; >=2 high, <2 low (Yeh 2016)",
"age_years": 60,
"max_score": 10,
"score": 0,
"risk_band": "low"
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_age |
age must be an integer from 18 to 120 Returned before settlement; you are not charged. |
| 400 | invalid_flag |
boolean clinical flags must be true or false Returned before settlement; you are not charged. |
| 400 | invalid_dapt |
each DAPT 2016 item must be a published value for that field. Returned before settlement; you are not charged. |
| 400 | invalid_items |
POST body must be a JSON object with only an items array Returned before settlement; you are not charged. |
| 400 | invalid_item_count |
items must be an array of 1 to 25 objects Returned before settlement; you are not charged. |
| 400 | invalid_item |
each items entry must be a JSON object Returned before settlement; you are not charged. |
Related tools
- CRUSADE bleeding score — Compute the CRUSADE in-hospital major bleeding score from hematocrit, caller-assigned Cockcroft–Gault creatinine clearance, heart rate, sex, signs of CHF, prior vascular disease, diabetes, and systolic BP (Subherwal 2009 Table 4).
Payment
Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64
PAYMENT-REQUIRED
header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake
and shared payment errors: Payments.
Stdio MCP: /docs/mcp.
Guarantees
- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.