Altered mental status (ED workup — undifferentiated AMS)
Phase C shard-3-neuro-sym wave-8 expansion (2026-05-15) — pattern-matches symptom.chest_pain.ed_undifferentiated.v1 (be7b7d2f) and symptom.abdominal_pain.ed.v1 / symptom.back_pain.ed.v1 (10eb1bcb wave-7). Engine scope: ED triage + risk-stratification + disposition for the adult undifferentiated AMS presentation. Routes confirmed phenotype to: neuro.delirium.v1, neuro.ischaemic-stroke.v1, neuro.ich.core.v1, neuro.sah.core.v1, neuro.status-epilepticus.core.v1, id.bacterial-meningitis.core.v1, id.sepsis.core.v1, gi.hepatic-encephalopathy.core.v1, gi.cirrhosis.core.v1, syndrome.hyponatremia.core.v1, syndrome.hyperkalemia.core.v1, endo.dka.core.v1, endo.hhs.core.v1, endo.thyroid-storm.core.v1, endo.myxedema-coma.core.v1, endo.adrenal-crisis.core.v1, tox.acetaminophen-overdose.core.v1, tox.salicylate-overdose.core.v1, tox.toxic-alcohols.core.v1, tox.co-poisoning.core.v1, tox.alcohol-intoxication.core.v1. Bayesian linkage (LR+, LR−, T_treat, T_test, pre-test priors by setting + age + comorbidity, GCS / FOUR / CAM / RASS thresholds) lives in companion depth bundle _briefs/symptom.altered_mental_status.ed.v1.depth.md — schema has no first-class likelihood-ratio field. 20 sibling-differentiation rows cover the key look-alikes (delirium / stroke / ICH / SAH / status epilepticus / meningitis / sepsis / hepatic encephalopathy / hyponatremia / hyperkalemia / DKA / HHS / thyroid storm / myxedema coma / adrenal crisis / acetaminophen / salicylate / toxic alcohols / CO / alcohol intoxication). 18 severity triggers (≥10 per spec): hypoglycemia + hypoxia_or_hypercapnia + opioid_toxicity + sepsis_encephalopathy + ischemic_stroke + intracerebral_hemorrhage + subarachnoid_hemorrhage + status_epilepticus_or_post_ictal + bacterial_meningitis_or_encephalitis + delirium + severe_hyponatremia + severe_hypernatremia + severe_hyperkalemia + hepatic_encephalopathy + dka_or_hhs + thyroid_storm_or_myxedema_coma + toxic_overdose + wernicke_or_korsakoff. Schema-blocked emitted: GCS / FOUR / CAM / RASS / SOFA / qSOFA / Burch-Wartofsky / West Haven grade / Rumack-Matthew / Brophy NCSE criteria / workup.altered_mental_status — none in clinical-tools-registry; manual application in setting playbook required_assessments + ticketed in shard-3 state file. Regimen_axes intentionally empty — engine is triage-only. Universal AMS bundle (thiamine, D50W, naloxone, O2, lorazepam, ceftriaxone/vanco/amp/dex, acyclovir, hydrocortisone, levothyroxine, PTU/methimazole, lactulose/rifaximin, NAC) lives in setting_playbooks.ed.drug_actions; definitive treatment is owned by downstream routed engines. Setting playbook: single `ed` per user spec — outpatient AMS workup (cognitive impairment workup) is a future engine. NO dedicated HSV encephalitis engine in registry — empiric acyclovir is captured in playbook drug_actions; consult-based ID workflow. NO dedicated alcohol-withdrawal engine in registry — CIWA-Ar protocol + benzodiazepine taper is captured in playbook required_assessments + drug_actions (Wernicke prevention is universal); future psych.alcohol_withdrawal.core.v1. SCAFFOLDED status: no workup.altered_mental_status in clinical-tools-registry; PRODUCTION audit would fail. Will promote once registry entries land.
Entry points (11)
- symptomAcute confusion / disorientation — delirium screen + medical workup (Inouye NEJM 2014 PMID 22504182)confusion_or_disorientation
- symptomDecreased level of consciousness / coma — GCS / FOUR score; immediate ABC + glucose + naloxone trial (Wijdicks NEJM 2008 PMID 18193394)decreased_loc_or_coma
- symptomAcute agitation / hyperactive delirium / psychosis — rule out medical cause before psychiatric (Inouye 2014)agitation_or_psychosis
- symptomAMS + focal neurologic deficit → STAT non-contrast head CT (stroke / ICH / SAH / mass) (Powers AHA 2019)focal_neuro_deficit_plus_ams
- symptomAMS post-seizure or active convulsion → status epilepticus pathway (neuro.status-epilepticus.core.v1)seizure_or_post_ictal_ams
- symptomAMS + fever → meningitis / encephalitis / sepsis-encephalopathy (Tunkel IDSA + SSC 2026)fever_plus_ams
- vital_abnormalityGlucose <70 mg/dL with AMS — IMMEDIATE D50W 50 mL (1 amp) IV (Wijdicks 2008)hypoglycemia_pattern
- vital_abnormalitySpO2 <90% OR pCO2 >50 OR known COPD/OSA — hypoxic or hypercapnic encephalopathy; O2 + ABG + BiPAPhypoxia_or_hypercapnia
- lab_abnormalityNa <120 / >160, K >6.5, Ca >14 → metabolic encephalopathy (syndrome.hyponatremia.core.v1 / syndrome.hyperkalemia.core.v1)severe_electrolyte_derangement
- historyAlcohol use disorder / malnutrition / hyperemesis → thiamine 500 mg IV BEFORE glucose to prevent Wernicke (Wernicke-Korsakoff Guidelines PMID 32553711)alcoholic_or_malnourished
- medicationOpioid / benzodiazepine ingestion or pinpoint pupils → naloxone 0.4-2 mg IV trial (flumazenil ONLY if pure benzo and never seizure / chronic benzo)opioid_or_benzodiazepine_exposure
Required inputs (43)
- agerequireddemographic • used at CONTEXTAge shifts priors: delirium ~30% in >65 ED visits; stroke risk increases >55; toxidromes peak 20-40; meningitis bimodal infants + elderly (Inouye 2014 PMID 22504182)
- sexrequireddemographic • used at CONTEXTSex differences in stroke (women older onset), tox patterns, thyroid disease, eclampsia (postpartum AMS)
- ams_onset_timerequiredsymptom • used at FRAMESudden = vascular (stroke/ICH/SAH/seizure); gradual = metabolic/toxic/infectious/delirium; fluctuating = delirium (Inouye 2014)
- ams_characterrequiredsymptom • used at FRAMEHypoactive (lethargy, withdrawn) vs hyperactive (agitated, hallucinations) vs mixed — delirium phenotype; coma is severe (Inouye 2014)
- baseline_cognitionrequiredsymptom • used at CONTEXTPre-existing dementia raises delirium risk + complicates assessment; baseline obtained from family/caregiver (Inouye 2014)
- associated_focal_deficitrequiredsymptom • used at ENTRYFocal deficit → STAT head CT for stroke / ICH / SAH / mass (Powers AHA 2019)
- associated_seizure_activityrequiredsymptom • used at ENTRYWitnessed convulsion / tongue bite / postictal + AMS → status epilepticus pathway (Brophy 2012)
- associated_headacherequiredsymptom • used at ENTRYThunderclap headache + AMS → SAH; gradual headache + AMS + fever → meningitis/encephalitis
- associated_chest_pain_or_dyspneasymptom • used at ENTRYMassive PE / MI / hypoxic encephalopathy / aortic dissection presenting as AMS
- recent_medication_changesrequiredsymptom • used at CONTEXTPolypharmacy + new med + AMS → drug-induced delirium (anticholinergics, benzos, opioids, steroids, lithium, antibiotics in renal failure) (Inouye 2014)
- recent_falls_or_traumarequiredsymptom • used at CONTEXTRecent fall / head trauma + AMS → subdural hematoma (especially elderly on anticoag); STAT head CT
- sbprequiredvital • used at CONTEXTHypertensive emergency → PRES / hypertensive encephalopathy / ICH; hypotension → shock encephalopathy / sepsis / adrenal crisis
- hrrequiredvital • used at CONTEXTBradycardia in Cushing reflex (raised ICP) / hypothyroid; tachycardia in sepsis / thyroid storm / sympathomimetic tox
- rrrequiredvital • used at CONTEXTTachypnea in salicylate / metabolic acidosis / sepsis; bradypnea in opioid / sedative-hypnotic; Kussmaul in DKA
- temprequiredvital • used at CONTEXTFever → meningitis/encephalitis/sepsis/thyroid storm/NMS/serotonin/heat stroke; hypothermia → myxedema / sepsis / exposure / hypoglycemia
- spo2requiredvital • used at CONTEXTHypoxia → hypoxic encephalopathy; CO poisoning has normal SpO2 despite tissue hypoxia → ABG with CO-Hb
- glucose_pocfingerstickrequiredvital • used at FRAMEMANDATORY immediate fingerstick — hypoglycemia is rapidly reversible and missed cause of AMS; D50W 50 mL IV if <70
- diabetes_mellitusrequiredhistory • used at CONTEXTDM → hypoglycemia (insulin/SU), DKA, HHS — rapid POC glucose + ketones + osmolality
- liver_disease_cirrhosisrequiredhistory • used at CONTEXTCirrhosis → hepatic encephalopathy from GI bleed / SBP / constipation / dehydration → gi.hepatic-encephalopathy.core.v1
- ckd_or_dialysisrequiredhistory • used at CONTEXTCKD/ESRD → uremic encephalopathy + drug-induced (gabapentin, cefepime, opioids) + dialysis disequilibrium
- thyroid_diseaserequiredhistory • used at CONTEXTThyroid storm OR myxedema coma — both can present with AMS; TSH + free T4 (endo.thyroid-storm.core.v1 / endo.myxedema-coma.core.v1)
- alcohol_use_disorderrequiredhistory • used at CONTEXTAlcoholic → Wernicke / hepatic encephalopathy / withdrawal / hypoglycemia / aspiration / subdural; thiamine BEFORE glucose (PMID 32553711)
- anticoagulant_userequiredhistory • used at CONTEXTWarfarin/DOAC + fall + AMS → subdural hematoma; STAT head CT + reversal pathway
- recent_infectionrequiredhistory • used at CONTEXTPneumonia/UTI/skin infection + AMS in elderly = sepsis-encephalopathy; pyelo/meningitis specifically; SSC 2026
- immunocompromised_statushistory • used at CONTEXTHIV / transplant / chemo → opportunistic infections (cryptococcal meningitis, PML, CMV encephalitis); HSV encephalitis still possible
- psych_historyhistory • used at CONTEXTSchizophrenia / bipolar with psychosis can mimic AMS; lithium tox in bipolar → AMS + tremor + GI; NMS on antipsychotics → fever + rigidity + AMS
- fingerstick_glucoserequiredlab • used at FRAMEIMMEDIATE — rules out reversible hypoglycemia in first 60 seconds
- cbc_with_diffrequiredlab • used at INITIAL_WORKUPLeukocytosis in infection (meningitis, sepsis); cytopenias in TTP (with AMS); anemia worsens hypoxic encephalopathy
- bmp_with_anion_gaprequiredlab • used at INITIAL_WORKUPNa, K, Ca, Mg, BUN, Cr, glucose; anion gap acidosis in DKA / lactic / salicylate / methanol / ethylene glycol (MUDPILES)
- lft_with_ammoniarequiredlab • used at INITIAL_WORKUPCirrhosis recognition; ammonia for hepatic encephalopathy (correlation modest but useful trend)
- tsh_free_t4lab • used at INITIAL_WORKUPThyroid storm (TSH suppressed + free T4 high) vs myxedema coma (TSH high + free T4 low); add cortisol for adrenal crisis
- serum_osmolality_and_calculated_gaplab • used at INITIAL_WORKUPOsmolar gap >10 → toxic alcohols (methanol / ethylene glycol / isopropanol) — route to tox.toxic-alcohols.core.v1
- lactaterequiredlab • used at INITIAL_WORKUPLactate >2 → sepsis, ischemia, seizure, metformin lactic acidosis, mitochondrial; bundle for sepsis (SSC 2026)
- urinalysis_and_drug_screenrequiredlab • used at INITIAL_WORKUPUA for UTI (common in elderly delirium); urine drug screen as ADJUNCT (low sensitivity/specificity — clinical context drives)
- acetaminophen_salicylate_levelsrequiredlab • used at INITIAL_WORKUPUniversal screen for occult overdose in all-comers AMS (especially in psych pts or intentional ingestion suspicion); routes to tox.acetaminophen-overdose.core.v1 or tox.salicylate-overdose.core.v1
- ethanol_levellab • used at INITIAL_WORKUPQuantify ethanol + correlate with AMS severity (mild AMS at 100-200 mg/dL; coma at >300); osmolar gap calculation factor
- abg_with_co_hblab • used at INITIAL_WORKUPABG for hypoxia/hypercapnia + acid-base; CO-Hb level (CO poisoning has normal SpO2 — pulse-ox doesn t distinguish O2-Hb from CO-Hb) → tox.co-poisoning.core.v1
- blood_cultures_x2lab • used at INITIAL_WORKUPTwo sets pre-abx if sepsis or meningitis suspicion; SSC 2026 bundle
- ecg_12_leadrequiredimaging • used at INITIAL_WORKUPQT prolongation (TCA, methadone), Brugada (Na-channel blocker tox), arrhythmia → syncope/cardiogenic AMS
- noncon_head_ctrequiredimaging • used at BRANCHING_WORKUPSTAT for any focal deficit / new seizure / anticoag + trauma / suspected ICH/SAH; rules out structural lesion before LP (Powers AHA 2019)
- mri_brain_for_ischemiaimaging • used at BRANCHING_WORKUPMRI DWI for posterior circulation stroke, encephalitis (HSV temporal), PRES, autoimmune; CT often inadequate
- lumbar_punctureimaging • used at BRANCHING_WORKUPCSF after head CT clears mass effect — meningitis (cell count, glucose, protein, culture, gram stain) / encephalitis (HSV PCR) / SAH (xanthochromia if CT neg ≥6 h post-onset)
- eeg_for_nonconvulsive_statusimaging • used at BRANCHING_WORKUPContinuous EEG for nonconvulsive status epilepticus — present in up to 20% of ICU AMS (Brophy NCS 2012)
12-phase flow (12)
- 1FRAMEIMMEDIATE: ABC + fingerstick glucose + thiamine if alcoholic + naloxone trial if pinpoint pupils; characterize AMS (sudden vs gradual, hypoactive vs hyperactive, GCS / FOUR) (Wijdicks NEJM 2008 PMID 18193394)inputs: fingerstick_glucose, ams_onset_time, ams_characteradvance: reversible causes (hypoglycemia, opioid, hypoxia) excluded or treated; GCS documented
- 2ENTRYFocal neuro deficit, seizure activity, headache, chest pain/dyspnea, recent med changes, recent falls/trauma → narrow toward vascular / seizure / infection / tox / structuralinputs: associated_focal_deficit, associated_seizure_activity, associated_headache, recent_medication_changes, recent_falls_or_traumaadvance: entry presentation captured
- 3CONTEXTAge, sex, baseline cognition, DM, liver, CKD, thyroid, alcohol, anticoag, recent infection, immunocompromise, psych — comorbidity-anchored differential narrowing (Inouye 2014)inputs: age, sex, baseline_cognition, sbp, hr, rr, temp, spo2, diabetes_mellitus, liver_disease_cirrhosis, ckd_or_dialysis, thyroid_disease, alcohol_use_disorder, anticoagulant_use, recent_infectionadvance: context complete
- 4RED_FLAGSHypoglycemia (D50W stat); hypoxia (O2/intubation); hypercapnia (BiPAP); opioid (naloxone); status epilepticus (benzo + AED); meningitis (abx within 1 h); stroke / ICH / SAH (STAT CT + thrombolytic/reversal pathway); DKA/HHS; thyroid storm / myxedema coma; adrenal crisis; sepsis bundle (SSC 2026)inputs: fingerstick_glucose, spo2, sbp, tempadvance: no immediate life-threat OR appropriate engine activated
- 5INITIAL_WORKUPCBC + diff, BMP with anion gap, LFT with ammonia, TSH + free T4, serum osmolality, lactate, UA, acetaminophen + salicylate levels (universal), ethanol level, ABG with CO-Hb, blood cultures x2, ECG (Inouye 2014; Wijdicks 2008)inputs: cbc_with_diff, bmp_with_anion_gap, lft_with_ammonia, tsh_free_t4, serum_osmolality_and_calculated_gap, lactate, urinalysis_and_drug_screen, acetaminophen_salicylate_levels, ethanol_level, abg_with_co_hb, blood_cultures_x2, ecg_12_leadactions: panel.cbc, panel.renal, panel.lft, panel.inflammationadvance: initial workup reviewed + phenotype pivoted
- 6BRANCHING_WORKUPSTAT non-contrast head CT (focal deficit / new seizure / anticoag-trauma / suspected ICH/SAH); MRI DWI for posterior stroke / HSV encephalitis / PRES; LP after CT (meningitis / encephalitis / SAH xanthochromia); continuous EEG for nonconvulsive status (Brophy 2012)inputs: noncon_head_ct, mri_brain_for_ischemia, lumbar_puncture, eeg_for_nonconvulsive_statusadvance: branching workup pivots to disposition route
- 7DIFFERENTIALAEIOU-TIPS / VITAMINS-D frame — pre-test priors at ED adult AMS population: delirium (>65) ~30%, sepsis-encephalopathy ~15%, metabolic (hypo/hyper-Na, hypoglyc, uremic, hepatic) ~20%, intoxication ~10%, stroke/ICH/SAH ~5-10%, seizure / postictal ~5%, meningitis/encephalitis ~2-5%, endocrine (DKA/HHS/thyroid/adrenal) ~5%, Wernicke/B12 deficiency ~1-2%, structural (mass, NPH, subdural) ~3-5%, psychiatric ~3-5%advance: differential ranked with pre-test priors documented
- 8RISK_STRATIFICATIONGCS / FOUR score for coma depth + intubation threshold (GCS ≤8 → intubate); CAM for delirium screening (Inouye 2014); RASS for sedation; SOFA/qSOFA for sepsis (SSC 2026); West Haven grade for hepatic encephalopathy; APACHE II in ICU — all schema-blocked in clinical-tools-registryinputs: ageadvance: risk scores documented
- 9TREATMENTUniversal AMS bundle: D50W 50 mL IV if glucose <70; thiamine 500 mg IV BEFORE glucose in alcoholics (Wernicke prevention PMID 32553711); naloxone 0.4-2 mg IV if opioid suspicion; O2 to SpO2 ≥94; protect airway if GCS ≤8 (intubate); treat the cause (route to dedicated engine). AVOID empiric flumazenil (seizure risk). Empiric ceftriaxone + vancomycin + ampicillin + dexamethasone for meningitis suspicion (within 1 h). Empiric acyclovir 10 mg/kg q8h for HSV encephalitis suspicion (temporal MRI / CSF lymphocytic pleocytosis). Empiric hydrocortisone 100 mg IV if adrenal crisis suspicion. tPA / thrombectomy pathway for ischemic stroke (Powers AHA 2019 → neuro.ischaemic-stroke.v1).inputs: fingerstick_glucose, spo2, sbpadvance: universal bundle initiated + cause-specific Rx routed
- 10DISPOSITIONReversed metabolic AMS (hypoglycemia fully treated, normalized hyponatremia) + reliable home + close PCP follow-up → discharge with return precautions; sepsis-encephalopathy → admit / ICU per SSC 2026; stroke / ICH / SAH → neuro ICU; status epilepticus → neuro ICU; thyroid storm / myxedema coma / DKA / HHS / adrenal crisis → ICU; meningitis/encephalitis → admit; severe delirium with safety concerns → admit with sitter; tox phenotypes → ICU or psych admit per agentadvance: disposition assigned + downstream handoff complete
- 11MONITORINGSerial GCS / FOUR; vital signs q15 min × 1 h then q30 min × 4 h; continuous SpO2 + telemetry; serial glucose q1-2h if hypoglycemia treated; Na correction rate ≤8 mEq/L/24 h (osmotic demyelination risk); reassess CAM q shift for delirium; serial Cr / lactate for resuscitation adequacyinputs: fingerstick_glucose, lactateadvance: stability achieved or escalation triggered
- 12FOLLOWUPDischarged: PCP within 48-72 h; medication reconciliation (deprescribe offending agents); cognitive screen at outpatient visit; behavioral interventions for delirium prevention (sleep, mobilization, hydration, family at bedside, sensory aids); referral to neurology / psych / endocrine / hepatology as indicatedadvance: discharge bundle prescribed + follow-up scheduled