{"uid":"cap_bGS72AahyS9BbY-a33sBY","slug":"ottawa-sah-rule-calculator-perry-2013-42a6ae30","name":"Ottawa SAH Rule Calculator (Perry 2013)","description":"Ottawa SAH Rule (Perry 2013 JAMA). Investigate when any of six findings is present: age 40 or older, neck pain or stiffness, witnessed loss of consciousness, onset during exertion, thunderclap headache (instantly peaking pain), or limited neck flexion on examination. Not a diagnosis of SAH, not Hunt-Hess, and not Fisher grade. For alert, neurologically intact adults with nontraumatic headache peaking within 1 hour as published. magent does not examine the neck.","url":"https://api.magentlab.com/api/calc/ottawa_sah","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","neck_pain_or_stiffness","witnessed_loc","onset_during_exertion","thunderclap_headache","limited_neck_flexion"],"properties":{"age":{"type":"integer","description":"Age in years (18-120). Age ≥40 meets this criterion; 39 does not."},"witnessed_loc":{"type":"boolean","description":"Witnessed loss of consciousness. true or false as assigned by the caller."},"limited_neck_flexion":{"type":"boolean","description":"Limited neck flexion on examination as assigned by the caller. true or false. magent does not examine the neck."},"thunderclap_headache":{"type":"boolean","description":"Thunderclap headache (instantly peaking pain as published). true or false as assigned by the caller."},"onset_during_exertion":{"type":"boolean","description":"Onset during exertion. true or false as assigned by the caller."},"neck_pain_or_stiffness":{"type":"boolean","description":"Neck pain or stiffness as assigned by the caller. true or false."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/ottawa_sah","count":2,"items":[{"formula":"ottawa_sah","citation":{"id":"perry-2013","doi":"10.1001/jama.2013.278018","title":"Clinical decision rules to rule out subarachnoid hemorrhage for acute headache","source":"JAMA. 2013;310(12):1248-1255","authors":"Perry JJ, Stiell IG, Sivilotti MLA, et al."},"criteria":[{"met":false,"value":30,"factor":"age_ge_40"},{"met":false,"factor":"neck_pain_or_stiffness"},{"met":false,"factor":"witnessed_loc"},{"met":false,"factor":"onset_during_exertion"},{"met":false,"factor":"thunderclap_headache"},{"met":false,"factor":"limited_neck_flexion"}],"age_years":30,"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":"Investigation indicated iff age >= 40 or neck_pain_or_stiffness or witnessed_loc or onset_during_exertion or thunderclap_headache or limited_neck_flexion","investigation_indicated":false},{"formula":"ottawa_sah","citation":{"id":"perry-2013","doi":"10.1001/jama.2013.278018","title":"Clinical decision rules to rule out subarachnoid hemorrhage for acute headache","source":"JAMA. 2013;310(12):1248-1255","authors":"Perry JJ, Stiell IG, Sivilotti MLA, et al."},"criteria":[{"met":false,"value":30,"factor":"age_ge_40"},{"met":false,"factor":"neck_pain_or_stiffness"},{"met":false,"factor":"witnessed_loc"},{"met":false,"factor":"onset_during_exertion"},{"met":false,"factor":"thunderclap_headache"},{"met":false,"factor":"limited_neck_flexion"}],"age_years":30,"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":"Investigation indicated iff age >= 40 or neck_pain_or_stiffness or witnessed_loc or onset_during_exertion or thunderclap_headache or limited_neck_flexion","investigation_indicated":false}]}},"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_z0L2K8J3R9PpAfoNzjqQV","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":"Applies the Ottawa Subarachnoid Hemorrhage rule to determine whether further investigation for SAH is warranted in adult patients presenting with acute headache","exampleAgentPrompt":"Run the Ottawa SAH rule for a 45-year-old patient who has neck stiffness, no witnessed loss of consciousness, no onset during exertion, no thunderclap headache, and no limited neck flexion on exam.","exampleUseCases":[{"title":"Emergency triage for thunderclap headache","prompt":"I have a 52-year-old alert patient in the ED with a thunderclap headache that peaked instantly — no neck stiffness, no witnessed LOC, no exertional onset, and neck flexion looks normal. Does the Ottawa SAH rule say I should investigate?"},{"title":"Screening headache with neck stiffness","prompt":"Patient is 38 years old, neurologically intact, came in with a headache that peaked within an hour and is complaining of neck pain. No thunderclap onset, no witnessed loss of consciousness, no exertional trigger, no limited neck flexion. Apply the Ottawa SAH decision rule."},{"title":"Elderly patient with exertional headache","prompt":"Can you run the Ottawa SAH rule on a 67-year-old who developed a severe headache during exercise? No neck pain or stiffness, no witnessed loss of consciousness, no thunderclap quality, and no limited neck flexion on exam."}],"resultDescription":"Returns whether the Ottawa SAH rule criteria are met and whether further investigation for subarachnoid hemorrhage is indicated, based on the six clinical findings (age ≥40, neck pain/stiffness, witnessed LOC, exertional onset, thunderclap headache, limited neck flexion). Not a diagnosis and does not replace clinical judgment.","failureModes":["Missing any required query parameter (age, neck_pain_or_stiffness, witnessed_loc, onset_during_exertion, thunderclap_headache, limited_neck_flexion) returns a validation error","Age outside valid range (below 18 or above 120) may return an error","Incorrect type for boolean fields (e.g. string instead of boolean) causes schema validation failure","Payment not included or insufficient USDC balance returns 402 payment required"],"whenToPreferThis":"Use this endpoint when you need to apply the validated Ottawa SAH Rule (Perry 2013, JAMA) to alert, neurologically intact adults with nontraumatic headache peaking within one hour. Prefer this over general clinical reasoning when you need a reproducible, evidence-based binary screening result. Not suitable for Hunt-Hess grading, Fisher grade, traumatic headache, or altered mental status patients.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:02:58.027Z","isFirstParty":false}