{"uid":"cap_HnTlpScJpAhTcgnzRkF7L","slug":"cha2ds2-vasc-score-calculator-06284735","name":"CHA2DS2-VASc 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/cha2ds2_vasc?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","sex","chf","hypertension","diabetes","stroke_tia","vascular_disease"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). ≥75 scores 2; 65-74 scores 1."},"chf":{"type":"boolean","description":"Congestive heart failure or LV dysfunction. true or false."},"sex":{"enum":["female","male"],"type":"string","description":"female scores 1 (Sc); male scores 0."},"diabetes":{"type":"boolean","description":"Diabetes mellitus. true or false."},"stroke_tia":{"type":"boolean","description":"Prior stroke, TIA, or thromboembolism. true or false (2 points)."},"hypertension":{"type":"boolean","description":"Hypertension history. true or false."},"vascular_disease":{"type":"boolean","description":"Prior MI, peripheral artery disease, or aortic plaque. true or false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/cha2ds2_vasc","count":2,"items":[{"sex":"female","score":5,"formula":"cha2ds2_vasc","citation":{"id":"lip-2010","doi":"10.1378/chest.09-1584","title":"Refining clinical risk stratification for predicting stroke and thromboembolism in atrial fibrillation using a novel risk factor-based approach: the euro heart survey on atrial fibrillation","source":"Chest. 2010;137(2):263-272","authors":"Lip GYH, Nieuwlaat R, Pisters R, Lane DA, Crijns HJ"},"age_years":78,"max_score":9,"components":[{"factor":"congestive_heart_failure","points":0,"present":false},{"factor":"hypertension","points":1,"present":true},{"value":78,"factor":"age","points":2,"present":true},{"factor":"diabetes","points":1,"present":true},{"factor":"stroke_tia_thromboembolism","points":0,"present":false},{"factor":"vascular_disease","points":0,"present":false},{"factor":"sex_female","points":1,"present":true}],"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":"CHA2DS2-VASc = CHF 1 + HTN 1 + Age≥75 2 (or 65-74 1) + diabetes 1 + stroke/TIA 2 + vascular 1 + female 1; max 9"},{"sex":"female","score":5,"formula":"cha2ds2_vasc","citation":{"id":"lip-2010","doi":"10.1378/chest.09-1584","title":"Refining clinical risk stratification for predicting stroke and thromboembolism in atrial fibrillation using a novel risk factor-based approach: the euro heart survey on atrial fibrillation","source":"Chest. 2010;137(2):263-272","authors":"Lip GYH, Nieuwlaat R, Pisters R, Lane DA, Crijns HJ"},"age_years":78,"max_score":9,"components":[{"factor":"congestive_heart_failure","points":0,"present":false},{"factor":"hypertension","points":1,"present":true},{"value":78,"factor":"age","points":2,"present":true},{"factor":"diabetes","points":1,"present":true},{"factor":"stroke_tia_thromboembolism","points":0,"present":false},{"factor":"vascular_disease","points":0,"present":false},{"factor":"sex_female","points":1,"present":true}],"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":"CHA2DS2-VASc = CHF 1 + HTN 1 + Age≥75 2 (or 65-74 1) + diabetes 1 + stroke/TIA 2 + vascular 1 + female 1; max 9"}]}},"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_NvmsgACwtnJ-7VnWEhMM4","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 CHA2DS2-VASc stroke-risk score for atrial fibrillation patients from discrete clinical flags (age, sex, CHF, hypertension, diabetes, prior stroke/TIA, vascular disease).","exampleAgentPrompt":"Calculate the CHA2DS2-VASc score for a 73-year-old female patient with atrial fibrillation who has hypertension and diabetes, no history of stroke or TIA, no congestive heart failure, and no vascular disease.","exampleUseCases":[{"title":"Anticoagulation decision for new AFib diagnosis","prompt":"My patient is a 68-year-old male just diagnosed with atrial fibrillation — he has hypertension and had a prior MI, but no diabetes, no heart failure, and no history of stroke or TIA. What's his CHA2DS2-VASc score?"},{"title":"High-risk elderly female stroke screening","prompt":"Can you run the CHA2DS2-VASc score for a 76-year-old female with congestive heart failure, diabetes, and a previous TIA? She also has peripheral artery disease but no hypertension."},{"title":"Low-risk male AFib triage","prompt":"I have a 58-year-old male AFib patient with no hypertension, no diabetes, no heart failure, no stroke history, and no vascular disease — calculate his CHA2DS2-VASc score so I can see if he needs anticoagulation."}],"resultDescription":"Returns the integer CHA2DS2-VASc total score (0–9) computed from the submitted clinical flags, with individual component contributions and a citation to the published scoring method for stroke-risk stratification in atrial fibrillation.","failureModes":["Missing required query parameters (age, sex, chf, hypertension, diabetes, stroke_tia, vascular_disease) returns a 400 error","Age outside valid range (18–120) may return a validation error","Invalid enum for sex (not 'male' or 'female') returns a schema error","Network timeout or upstream unavailability returns a 5xx error","Payment not provided or insufficient USDC triggers x402 payment-required response"],"whenToPreferThis":"Use this endpoint when you need a deterministic, citation-backed CHA2DS2-VASc score computed from discrete structured clinical inputs within an automated clinical or administrative workflow. Prefer it over general LLM reasoning for auditable, reproducible stroke-risk arithmetic that must match the published Lip 2010 / ESC guideline formula exactly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:38:06.991Z","isFirstParty":false,"canonicalSlug":"cha2ds2-vasc-score-calculator-06284735"}