{"uid":"cap_wuYrJwrlVGn-4-sBFdIwA","slug":"timi-ua-nstemi-risk-score-calculator-af6b68e6","name":"TIMI UA/NSTEMI Risk Score Calculator","description":"TIMI risk score for unstable angina / NSTEMI from age and six caller-assigned flags. Returns the 0-7 point total and components. Deterministic published score with citation; not an invasive-strategy protocol.","url":"https://api.magentlab.com/api/calc/timi_ua_nstemi","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","cad_risk_factors_ge_3","known_cad","aspirin_last_7d","severe_angina","st_deviation","elevated_markers"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Age ≥65 scores 1."},"known_cad":{"type":"boolean","description":"Known CAD (stenosis ≥50%). true or false."},"st_deviation":{"type":"boolean","description":"ST deviation ≥0.5 mm as assigned by the caller. true or false. magent does not read ECGs."},"severe_angina":{"type":"boolean","description":"Severe angina (≥2 episodes in 24 hours). true or false."},"aspirin_last_7d":{"type":"boolean","description":"Aspirin use in the last 7 days. true or false."},"elevated_markers":{"type":"boolean","description":"Elevated cardiac markers as assigned by the caller. true or false."},"cad_risk_factors_ge_3":{"type":"boolean","description":"≥3 CAD risk factors as assigned by the caller. true or false. magent does not expand smoking, hypertension, family history, diabetes, or cholesterol."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/timi_ua_nstemi","count":2,"items":[{"score":0,"formula":"timi_ua_nstemi","citation":{"id":"antman-2000","doi":"10.1001/jama.284.7.835","title":"The TIMI risk score for unstable angina/non–ST elevation MI: A method for prognostication and therapeutic decision making","source":"JAMA. 2000;284(7):835-842","authors":"Antman EM, Cohen M, Bernink PJLM, et al."},"age_years":50,"max_score":7,"components":[{"value":50,"factor":"age_ge_65","points":0,"present":false},{"factor":"cad_risk_factors_ge_3","points":0,"present":false},{"factor":"known_cad","points":0,"present":false},{"factor":"aspirin_last_7d","points":0,"present":false},{"factor":"severe_angina","points":0,"present":false},{"factor":"st_deviation","points":0,"present":false},{"factor":"elevated_markers","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.","formula_expression":"TIMI UA/NSTEMI = age_ge_65 + cad_risk_factors_ge_3 + known_cad + aspirin_last_7d + severe_angina + st_deviation + elevated_markers; each 1 if present; max 7"},{"score":0,"formula":"timi_ua_nstemi","citation":{"id":"antman-2000","doi":"10.1001/jama.284.7.835","title":"The TIMI risk score for unstable angina/non–ST elevation MI: A method for prognostication and therapeutic decision making","source":"JAMA. 2000;284(7):835-842","authors":"Antman EM, Cohen M, Bernink PJLM, et al."},"age_years":50,"max_score":7,"components":[{"value":50,"factor":"age_ge_65","points":0,"present":false},{"factor":"cad_risk_factors_ge_3","points":0,"present":false},{"factor":"known_cad","points":0,"present":false},{"factor":"aspirin_last_7d","points":0,"present":false},{"factor":"severe_angina","points":0,"present":false},{"factor":"st_deviation","points":0,"present":false},{"factor":"elevated_markers","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.","formula_expression":"TIMI UA/NSTEMI = age_ge_65 + cad_risk_factors_ge_3 + known_cad + aspirin_last_7d + severe_angina + st_deviation + elevated_markers; each 1 if present; max 7"}]}},"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_KTbU9qUf8Ddys7iSq7LAQ","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":"Calculates the TIMI risk score (0–7) for unstable angina and NSTEMI from patient age and six clinical flags, returning the total and component breakdown.","exampleAgentPrompt":"Calculate the TIMI risk score for a 68-year-old patient who has known CAD with stenosis over 50%, had 3 angina episodes in the last 24 hours, shows ST deviation on ECG, has elevated cardiac markers, has been taking aspirin for the past week, and has 3 or more CAD risk factors.","exampleUseCases":[{"title":"ED chest pain triage scoring","prompt":"I have a 72-year-old ER patient with chest pain — they have known coronary artery disease, took aspirin yesterday, have elevated troponin, ST depression on their ECG, only one angina episode in the last 24 hours, and have 2 CAD risk factors. What's their TIMI UA/NSTEMI score?"},{"title":"Telemedicine ACS risk assessment","prompt":"Can you compute the TIMI risk score for a 59-year-old patient I'm evaluating remotely? They have no known CAD, no aspirin use in the last week, no ST deviation, normal cardiac markers, fewer than 3 CAD risk factors, and only one angina episode in the past day."},{"title":"Clinical documentation and risk flagging","prompt":"For a 64-year-old admitted with NSTEMI — aspirin taken in the last 7 days, 3 or more CAD risk factors, known stenosis above 50%, two severe angina episodes today, ST deviation present, and elevated markers — give me their TIMI score and break down how each component contributes."}],"resultDescription":"Returns the integer TIMI UA/NSTEMI total score from 0 to 7 along with the individual point contributions from each of the seven components (age ≥65, ≥3 CAD risk factors, known CAD, aspirin use, severe angina, ST deviation, elevated markers), with a citation to the published scoring system.","failureModes":["Missing required query parameters (age or any of the six boolean flags) returns a validation error","Age outside 18–120 range may be rejected or flagged","Non-boolean values for flag parameters cause schema validation failures","Payment failure (x402) if USDC balance is insufficient","Network timeout on the remote API"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, evidence-based TIMI risk score for an unstable angina or NSTEMI patient and already have the clinical flags assigned by a clinician. It is ideal for automating documentation, populating risk stratification fields in clinical workflows, or double-checking manual calculations. It does not interpret ECGs or expand risk factor lists — those must be pre-assigned by the caller. Prefer this over general-purpose LLM reasoning for TIMI scoring because it guarantees mathematical correctness and returns a citable published formula (Antman 2000).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:07:12.798Z","isFirstParty":false}