{"uid":"cap_MdCpcA6TzVvoCDeVxEkur","slug":"magent-esus-classifier-f6b0918b","name":"magent ESUS Classifier","description":"ESUS (Hart 2014). True iff all five caller-assigned flags hold: non-lacunar infarct on CT/MRI; no ≥50% stenosis supplying the ischaemia; no major-risk cardioembolic source; no other specific cause; and Panel 3 minimum workup (brain CT/MRI, 12-lead ECG, precordial echo, ≥24 h automated rhythm monitoring (not telemetry), extra- and intracranial arterial imaging). Incomplete workup is not ESUS. Not a stroke diagnosis, not TOAST cryptogenic, not anticoagulation. magent does not read imaging.","url":"https://api.magentlab.com/api/calc/esus","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":["non_lacunar_infarct","no_stenosis_ge_50","no_major_risk_cardioembolic","no_other_specific_cause","minimum_workup"],"properties":{"minimum_workup":{"type":"boolean","description":"Hart 2014 Panel 3 minimum diagnostic assessment, as assigned by the caller. true only if brain CT or MRI, 12-lead ECG, precordial echocardiography, cardiac monitoring for ≥24 h with automated rhythm detection (telemetry is not sufficient), and imaging of both extracranial and intracranial arteries supplying the ischaemic territory have been done. Incomplete workup returns esus false (not HTTP 400). true or false. magent does not read imaging."},"no_stenosis_ge_50":{"type":"boolean","description":"Absence of extracranial or intracranial atherosclerosis causing ≥50% luminal stenosis in arteries supplying the area of ischaemia, as assigned by the caller (Hart 2014 Panel 2). true means no such stenosis. true or false. magent does not read vascular imaging."},"non_lacunar_infarct":{"type":"boolean","description":"Stroke detected by CT or MRI that is not lacunar, as assigned by the caller (Hart 2014 Panel 2). Lacunar = subcortical infarct ≤1.5 cm (≤2.0 cm on MRI diffusion images) in largest dimension, in the distribution of the small penetrating cerebral arteries. true or false. magent does not read imaging."},"no_other_specific_cause":{"type":"boolean","description":"No other specific cause identified, as assigned by the caller (Hart 2014 Panel 2). Paper examples: arteritis, dissection, migraine/vasospasm, drug misuse. true or false. magent does not diagnose an alternative aetiology."},"no_major_risk_cardioembolic":{"type":"boolean","description":"No major-risk cardioembolic source, as assigned by the caller (Hart 2014 Panel 2). Major-risk sources (paper footnote): permanent or paroxysmal atrial fibrillation, sustained atrial flutter, intracardiac thrombus, prosthetic cardiac valve, atrial myxoma or other cardiac tumours, mitral stenosis, recent (<4 weeks) myocardial infarction, left ventricular ejection fraction less than 30%, valvular vegetations, or infective endocarditis. true or false. The caller assigns this boolean; magent does not enumerate each source as a separate required param."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_sL7YtxhRqbrnF5bVPwXqN","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":"Determines whether a stroke meets Hart 2014 Embolic Stroke of Undetermined Source (ESUS) criteria based on five caller-assigned boolean flags.","exampleAgentPrompt":"Check whether this patient's stroke meets ESUS criteria: the CT shows a non-lacunar infarct (true), there's no ≥50% stenosis supplying the ischemia (true), no major cardioembolic source was found (true), no other specific cause identified (true), and the full Hart 2014 Panel 3 workup is complete including brain MRI, ECG, precordial echo, ≥24-hour automated cardiac monitoring, and both extracranial and intracranial arterial imaging (true).","exampleUseCases":[{"title":"Post-stroke ESUS eligibility check","prompt":"My patient had an ischemic stroke — CT confirmed it's non-lacunar, vascular imaging showed no stenosis ≥50%, echo found no major cardioembolic source, no alternative etiology identified, and they've had the full workup including brain MRI, ECG, echo, 24-hour automated rhythm monitoring, and arterial imaging of both extracranial and intracranial arteries. Does this case qualify as ESUS by Hart 2014?"},{"title":"Incomplete workup ESUS ruling","prompt":"We have a stroke patient with a non-lacunar infarct on MRI, no significant stenosis, no cardioembolic source, no other specific cause — but we only did telemetry monitoring, not automated rhythm detection for 24 hours, so minimum_workup should be false. Does that disqualify this as ESUS?"},{"title":"Clinical trial eligibility screening","prompt":"I'm screening a stroke patient for a clinical trial that requires ESUS. They have: non-lacunar infarct (true), no ≥50% stenosis (true), no major-risk cardioembolic source (true), no other specific cause (true), and complete Panel 3 workup with automated ≥24h monitoring (true). Please confirm ESUS status."}],"resultDescription":"Returns a boolean ESUS field: true if all five Hart 2014 criteria are met (non-lacunar infarct, no ≥50% supplying stenosis, no major-risk cardioembolic source, no other specific cause, complete Panel 3 workup); false if any criterion is false or workup is incomplete. Does not return HTTP 400 for incomplete workup — returns esus false instead.","failureModes":["Incomplete workup (minimum_workup=false) returns esus=false rather than an error — caller must ensure all five Panel 3 components are genuinely completed","Missing required query parameters returns HTTP 400","Caller-assigned flags that do not accurately reflect imaging/clinical findings will produce incorrect classification — magent does not independently read imaging or diagnose","Telemetry-only cardiac monitoring passed as minimum_workup=true would be an incorrect caller assignment per Hart 2014"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic Hart 2014 ESUS criterion check against five explicitly caller-assigned boolean flags. It is the right choice when all clinical assessments (imaging interpretation, cardioembolic source evaluation, workup completeness) have already been performed by a clinician and you need a reliable algorithmic gate. Do not use it to replace clinical imaging interpretation, to diagnose alternative stroke etiologies, or as a substitute for TOAST cryptogenic stroke classification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:00:26.481Z","isFirstParty":false}