{"uid":"cap_HdCRKGBywlkYF-oExse2_","slug":"abcd2-tia-stroke-risk-score-calculator-0e24c48d","name":"ABCD2 TIA Stroke Risk Score Calculator","description":"Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.","url":"https://api.magentlab.com/api/calc/abcd2?utm_source=zero.xyz","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","systolic_mm_hg","diastolic_mm_hg","clinical_features","duration_min","diabetes"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Age ≥60 scores 1; 59 scores 0."},"diabetes":{"type":"boolean","description":"Diabetes mellitus. true scores 1; false scores 0."},"duration_min":{"type":"integer","description":"Symptom duration in minutes (integer 0-1440). Under 10 scores 0; 10-59 scores 1; 60 or more scores 2."},"systolic_mm_hg":{"type":"number","description":"Cuff systolic blood pressure in mm Hg (50-250). ≥140 scores 1."},"diastolic_mm_hg":{"type":"number","description":"Cuff diastolic blood pressure in mm Hg (20-160). Must be less than systolic. ≥90 scores 1."},"clinical_features":{"type":"string","description":"Caller-assigned TIA features. none scores 0; speech_without_weakness scores 1; unilateral_weakness scores 2. Mutually exclusive. magent does not examine the patient."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/abcd2","count":2,"items":[{"score":0,"formula":"abcd2","citation":{"id":"johnston-2007","doi":"10.1016/S0140-6736(07)60150-0","title":"Validation and refinement of scores to predict very early stroke risk after transient ischaemic attack","source":"Lancet. 2007;369(9558):283-292","authors":"Johnston SC, Rothwell PM, Nguyen-Huynh MN, et al."},"age_years":55,"max_score":7,"abcd2_band":"0-3","components":[{"value":55,"factor":"age","points":0,"present":false},{"factor":"blood_pressure","points":0,"present":false,"systolic_mm_hg":120,"diastolic_mm_hg":80},{"value":"none","factor":"clinical_features","points":0,"present":false},{"value":5,"factor":"duration_min","points":0,"present":false},{"factor":"diabetes","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":"ABCD2 = age_ge_60 + blood_pressure + clinical_features + duration + diabetes; age >=60 1; SBP >=140 or DBP >=90 1; none 0 / speech_without_weakness 1 / unilateral_weakness 2; duration <10 0, 10-59 1, >=60 2; diabetes 1; bands 0-3 / 4-5 / 6-7; max 7"},{"score":0,"formula":"abcd2","citation":{"id":"johnston-2007","doi":"10.1016/S0140-6736(07)60150-0","title":"Validation and refinement of scores to predict very early stroke risk after transient ischaemic attack","source":"Lancet. 2007;369(9558):283-292","authors":"Johnston SC, Rothwell PM, Nguyen-Huynh MN, et al."},"age_years":55,"max_score":7,"abcd2_band":"0-3","components":[{"value":55,"factor":"age","points":0,"present":false},{"factor":"blood_pressure","points":0,"present":false,"systolic_mm_hg":120,"diastolic_mm_hg":80},{"value":"none","factor":"clinical_features","points":0,"present":false},{"value":5,"factor":"duration_min","points":0,"present":false},{"factor":"diabetes","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":"ABCD2 = age_ge_60 + blood_pressure + clinical_features + duration + diabetes; age >=60 1; SBP >=140 or DBP >=90 1; none 0 / speech_without_weakness 1 / unilateral_weakness 2; duration <10 0, 10-59 1, >=60 2; diabetes 1; bands 0-3 / 4-5 / 6-7; 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_yEno1obzits-Xub_eNHat","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 ABCD2 score (Johnston 2007) to estimate early stroke risk after a transient ischemic attack (TIA), based on age, blood pressure, clinical features, symptom duration, and diabetes.","exampleAgentPrompt":"Calculate the ABCD2 stroke-risk score for a 68-year-old patient with TIA who had a systolic BP of 155 and diastolic of 92, presented with unilateral weakness, symptoms lasting 75 minutes, and has a history of diabetes.","exampleUseCases":[{"title":"ED triage after TIA presentation","prompt":"I have a 72-year-old patient with TIA in the ED — BP is 148/88, they had speech difficulty without weakness lasting 45 minutes, and they have diabetes. What's their ABCD2 score and risk band?"},{"title":"Urgent neurology referral prioritization","prompt":"Help me prioritize my TIA clinic referrals: score a 55-year-old with systolic 130, diastolic 80, no diabetes, unilateral weakness, and symptoms lasting 12 minutes on the ABCD2 scale."},{"title":"Automated TIA risk documentation","prompt":"For our discharge note, calculate the ABCD2 score for a 61-year-old patient with BP 142/91, no clinical TIA features, symptom duration of 8 minutes, and no diabetes."}],"resultDescription":"Returns the numeric ABCD2 total score (0–7) and the corresponding risk band (low: 0–3, moderate: 4–5, high: 6–7), based on the deterministic Johnston 2007 scoring algorithm. Does not include a diagnosis or admission recommendation.","failureModes":["Missing required query parameters returns a validation error","Diastolic value equal to or exceeding systolic returns an error","Age outside 18–120 range or duration outside 0–1440 minutes is rejected","Invalid clinical_features enum string returns an error","Blood pressure values outside plausible ranges (systolic 50–250, diastolic 20–160) are rejected"],"whenToPreferThis":"Use this endpoint when you need the specific ABCD2 (Johnston 2007) score — not ABCD (Rothwell 2005) or ABCD3-I — for early two-day stroke risk stratification after TIA. Ideal for clinical documentation workflows, automated triage tools, or risk band reporting where a deterministic, peer-cited formula is required and the caller already has all six input values from chart or triage data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:41:24.645Z","isFirstParty":false,"canonicalSlug":"abcd2-tia-stroke-risk-score-calculator-0e24c48d"}