{"uid":"cap_txhD2FO4JQcKea3JfJcRd","slug":"heart-score-calculator-8fd20fd5","name":"HEART Score Calculator","description":"HEART score for emergency chest pain from age and caller-assigned history, ECG, risk factors, and troponin (each 0-2, max 10). Bands 0-3, 4-6, and 7-10 from Six 2008. Deterministic published score with citation; not a diagnosis or discharge protocol. magent does not read an ECG.","url":"https://api.magentlab.com/api/calc/heart","method":"GET","headers":{},"bodySchema":{"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","ecg","risk_factors","troponin"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Younger than 45 scores 0; 45-64 scores 1; 65 or older scores 2."},"ecg":{"type":"integer","description":"Caller-assigned ECG. 0 normal; 1 repolarization without significant ST depression (including BBB, LVH, digoxin, or known unchanged); 2 significant ST depression or elevation without those confounders. magent does not read an ECG."},"history":{"type":"integer","description":"Caller-assigned history. 0 nonspecific, 1 moderately suspicious, 2 highly suspicious. magent does not interpret the history."},"troponin":{"type":"integer","description":"Caller-assigned troponin. 0 ≤ULN, 1 = 1-2× ULN, 2 = >2× ULN (Six 2008). magent does not interpret assays."},"risk_factors":{"type":"integer","description":"Caller-assigned risk-factor points. 0 none, 1 = 1-2 risk factors, 2 = ≥3 or atherosclerotic disease. magent does not count diabetes, smoking, or other factors."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/heart","count":2,"items":[{"score":0,"formula":"heart","citation":{"id":"six-2008","doi":"10.1007/BF03086144","title":"Chest pain in the emergency room: value of the HEART score","source":"Neth Heart J. 2008;16(6):191-196","authors":"Six AJ, Backus BE, Kelder JC"},"age_years":40,"max_score":10,"components":[{"value":0,"factor":"history","points":0,"present":false},{"value":0,"factor":"ecg","points":0,"present":false},{"value":40,"factor":"age","points":0,"present":false},{"value":0,"factor":"risk_factors","points":0,"present":false},{"value":0,"factor":"troponin","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.","heart_band":"0-3","formula_expression":"HEART = history + ECG + age + risk_factors + troponin; each 0-2; age <45 0, 45-64 1, >=65 2; bands 0-3 / 4-6 / 7-10; max 10"},{"score":0,"formula":"heart","citation":{"id":"six-2008","doi":"10.1007/BF03086144","title":"Chest pain in the emergency room: value of the HEART score","source":"Neth Heart J. 2008;16(6):191-196","authors":"Six AJ, Backus BE, Kelder JC"},"age_years":40,"max_score":10,"components":[{"value":0,"factor":"history","points":0,"present":false},{"value":0,"factor":"ecg","points":0,"present":false},{"value":40,"factor":"age","points":0,"present":false},{"value":0,"factor":"risk_factors","points":0,"present":false},{"value":0,"factor":"troponin","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.","heart_band":"0-3","formula_expression":"HEART = history + ECG + age + risk_factors + troponin; each 0-2; age <45 0, 45-64 1, >=65 2; bands 0-3 / 4-6 / 7-10; max 10"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__a8N2mtG2tZPB2ituUdFo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the HEART score for emergency chest pain risk stratification from caller-assigned age, history, ECG, risk factors, and troponin values, returning a total (0-10) and risk band per Six 2008.","exampleAgentPrompt":"Calculate the HEART score for a 67-year-old patient presenting with chest pain: history is highly suspicious (2), ECG shows significant ST depression (2), 3 cardiac risk factors (2), and troponin is 1.5 times the upper limit of normal (1).","exampleUseCases":[{"title":"ED triage chest pain risk stratification","prompt":"I have a 58-year-old male in the ED with moderately suspicious chest pain history (1), normal ECG (0), two cardiac risk factors (1), and troponin just at the upper limit of normal (0). Can you calculate his HEART score and tell me which risk band he falls in?"},{"title":"High-risk troponin and ECG alert","prompt":"A 72-year-old woman came in with highly suspicious chest pain history (2), significant ST depression on ECG (2), three or more risk factors including known atherosclerotic disease (2), and troponin greater than twice the upper limit of normal (2). What is her HEART score?"},{"title":"Low-risk chest pain discharge decision support","prompt":"Our patient is 38 years old, the history is nonspecific (0), ECG is normal (0), no cardiac risk factors (0), and troponin is within normal limits (0). Calculate the HEART score so we can document the risk band for the chart."}],"resultDescription":"Returns a HEART total score (integer 0-10), the corresponding risk band label (low: 0-3, moderate: 4-6, high: 7-10), and the Six 2008 citation. The score is deterministic and reproducible given the same five inputs. No diagnosis or discharge recommendation is provided.","failureModes":["Missing required parameter (age, history, ecg, risk_factors, troponin) returns a validation error","Non-integer or out-of-range values (e.g. ecg=3, age=15) return an error","Caller misassigns component scores (e.g. ECG interpretation) — the API scores only what is passed; garbage-in, garbage-out","Network or payment (x402) failure returns non-200 response"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, citation-backed HEART score computation from pre-assigned component values and do not need ECG interpretation, history parsing, or clinical judgment — the caller must supply all five scored inputs. Prefer this over manual lookup tables when automating documentation or risk-band classification in an ED workflow agent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:16:00.305Z","isFirstParty":false}