Clinical Commander

All dossiers
symptom.altered_mental_status.ed.v1

Altered mental status (ED workup — undifferentiated AMS)

symptomacuteundifferentiatedadultacute

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)

  • symptom
    Acute confusion / disorientation — delirium screen + medical workup (Inouye NEJM 2014 PMID 22504182)
    confusion_or_disorientation
  • symptom
    Decreased level of consciousness / coma — GCS / FOUR score; immediate ABC + glucose + naloxone trial (Wijdicks NEJM 2008 PMID 18193394)
    decreased_loc_or_coma
  • symptom
    Acute agitation / hyperactive delirium / psychosis — rule out medical cause before psychiatric (Inouye 2014)
    agitation_or_psychosis
  • symptom
    AMS + focal neurologic deficit → STAT non-contrast head CT (stroke / ICH / SAH / mass) (Powers AHA 2019)
    focal_neuro_deficit_plus_ams
  • symptom
    AMS post-seizure or active convulsion → status epilepticus pathway (neuro.status-epilepticus.core.v1)
    seizure_or_post_ictal_ams
  • symptom
    AMS + fever → meningitis / encephalitis / sepsis-encephalopathy (Tunkel IDSA + SSC 2026)
    fever_plus_ams
  • vital_abnormality
    Glucose <70 mg/dL with AMS — IMMEDIATE D50W 50 mL (1 amp) IV (Wijdicks 2008)
    hypoglycemia_pattern
  • vital_abnormality
    SpO2 <90% OR pCO2 >50 OR known COPD/OSA — hypoxic or hypercapnic encephalopathy; O2 + ABG + BiPAP
    hypoxia_or_hypercapnia
  • lab_abnormality
    Na <120 / >160, K >6.5, Ca >14 → metabolic encephalopathy (syndrome.hyponatremia.core.v1 / syndrome.hyperkalemia.core.v1)
    severe_electrolyte_derangement
  • history
    Alcohol use disorder / malnutrition / hyperemesis → thiamine 500 mg IV BEFORE glucose to prevent Wernicke (Wernicke-Korsakoff Guidelines PMID 32553711)
    alcoholic_or_malnourished
  • medication
    Opioid / 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)

  • agerequired
    demographic • used at CONTEXT
    Age shifts priors: delirium ~30% in >65 ED visits; stroke risk increases >55; toxidromes peak 20-40; meningitis bimodal infants + elderly (Inouye 2014 PMID 22504182)
  • sexrequired
    demographic • used at CONTEXT
    Sex differences in stroke (women older onset), tox patterns, thyroid disease, eclampsia (postpartum AMS)
  • ams_onset_timerequired
    symptom • used at FRAME
    Sudden = vascular (stroke/ICH/SAH/seizure); gradual = metabolic/toxic/infectious/delirium; fluctuating = delirium (Inouye 2014)
  • ams_characterrequired
    symptom • used at FRAME
    Hypoactive (lethargy, withdrawn) vs hyperactive (agitated, hallucinations) vs mixed — delirium phenotype; coma is severe (Inouye 2014)
  • baseline_cognitionrequired
    symptom • used at CONTEXT
    Pre-existing dementia raises delirium risk + complicates assessment; baseline obtained from family/caregiver (Inouye 2014)
  • associated_focal_deficitrequired
    symptom • used at ENTRY
    Focal deficit → STAT head CT for stroke / ICH / SAH / mass (Powers AHA 2019)
  • associated_seizure_activityrequired
    symptom • used at ENTRY
    Witnessed convulsion / tongue bite / postictal + AMS → status epilepticus pathway (Brophy 2012)
  • associated_headacherequired
    symptom • used at ENTRY
    Thunderclap headache + AMS → SAH; gradual headache + AMS + fever → meningitis/encephalitis
  • associated_chest_pain_or_dyspnea
    symptom • used at ENTRY
    Massive PE / MI / hypoxic encephalopathy / aortic dissection presenting as AMS
  • recent_medication_changesrequired
    symptom • used at CONTEXT
    Polypharmacy + new med + AMS → drug-induced delirium (anticholinergics, benzos, opioids, steroids, lithium, antibiotics in renal failure) (Inouye 2014)
  • recent_falls_or_traumarequired
    symptom • used at CONTEXT
    Recent fall / head trauma + AMS → subdural hematoma (especially elderly on anticoag); STAT head CT
  • sbprequired
    vital • used at CONTEXT
    Hypertensive emergency → PRES / hypertensive encephalopathy / ICH; hypotension → shock encephalopathy / sepsis / adrenal crisis
  • hrrequired
    vital • used at CONTEXT
    Bradycardia in Cushing reflex (raised ICP) / hypothyroid; tachycardia in sepsis / thyroid storm / sympathomimetic tox
  • rrrequired
    vital • used at CONTEXT
    Tachypnea in salicylate / metabolic acidosis / sepsis; bradypnea in opioid / sedative-hypnotic; Kussmaul in DKA
  • temprequired
    vital • used at CONTEXT
    Fever → meningitis/encephalitis/sepsis/thyroid storm/NMS/serotonin/heat stroke; hypothermia → myxedema / sepsis / exposure / hypoglycemia
  • spo2required
    vital • used at CONTEXT
    Hypoxia → hypoxic encephalopathy; CO poisoning has normal SpO2 despite tissue hypoxia → ABG with CO-Hb
  • glucose_pocfingerstickrequired
    vital • used at FRAME
    MANDATORY immediate fingerstick — hypoglycemia is rapidly reversible and missed cause of AMS; D50W 50 mL IV if <70
  • diabetes_mellitusrequired
    history • used at CONTEXT
    DM → hypoglycemia (insulin/SU), DKA, HHS — rapid POC glucose + ketones + osmolality
  • liver_disease_cirrhosisrequired
    history • used at CONTEXT
    Cirrhosis → hepatic encephalopathy from GI bleed / SBP / constipation / dehydration → gi.hepatic-encephalopathy.core.v1
  • ckd_or_dialysisrequired
    history • used at CONTEXT
    CKD/ESRD → uremic encephalopathy + drug-induced (gabapentin, cefepime, opioids) + dialysis disequilibrium
  • thyroid_diseaserequired
    history • used at CONTEXT
    Thyroid storm OR myxedema coma — both can present with AMS; TSH + free T4 (endo.thyroid-storm.core.v1 / endo.myxedema-coma.core.v1)
  • alcohol_use_disorderrequired
    history • used at CONTEXT
    Alcoholic → Wernicke / hepatic encephalopathy / withdrawal / hypoglycemia / aspiration / subdural; thiamine BEFORE glucose (PMID 32553711)
  • anticoagulant_userequired
    history • used at CONTEXT
    Warfarin/DOAC + fall + AMS → subdural hematoma; STAT head CT + reversal pathway
  • recent_infectionrequired
    history • used at CONTEXT
    Pneumonia/UTI/skin infection + AMS in elderly = sepsis-encephalopathy; pyelo/meningitis specifically; SSC 2026
  • immunocompromised_status
    history • used at CONTEXT
    HIV / transplant / chemo → opportunistic infections (cryptococcal meningitis, PML, CMV encephalitis); HSV encephalitis still possible
  • psych_history
    history • used at CONTEXT
    Schizophrenia / bipolar with psychosis can mimic AMS; lithium tox in bipolar → AMS + tremor + GI; NMS on antipsychotics → fever + rigidity + AMS
  • fingerstick_glucoserequired
    lab • used at FRAME
    IMMEDIATE — rules out reversible hypoglycemia in first 60 seconds
  • cbc_with_diffrequired
    lab • used at INITIAL_WORKUP
    Leukocytosis in infection (meningitis, sepsis); cytopenias in TTP (with AMS); anemia worsens hypoxic encephalopathy
  • bmp_with_anion_gaprequired
    lab • used at INITIAL_WORKUP
    Na, K, Ca, Mg, BUN, Cr, glucose; anion gap acidosis in DKA / lactic / salicylate / methanol / ethylene glycol (MUDPILES)
  • lft_with_ammoniarequired
    lab • used at INITIAL_WORKUP
    Cirrhosis recognition; ammonia for hepatic encephalopathy (correlation modest but useful trend)
  • tsh_free_t4
    lab • used at INITIAL_WORKUP
    Thyroid storm (TSH suppressed + free T4 high) vs myxedema coma (TSH high + free T4 low); add cortisol for adrenal crisis
  • serum_osmolality_and_calculated_gap
    lab • used at INITIAL_WORKUP
    Osmolar gap >10 → toxic alcohols (methanol / ethylene glycol / isopropanol) — route to tox.toxic-alcohols.core.v1
  • lactaterequired
    lab • used at INITIAL_WORKUP
    Lactate >2 → sepsis, ischemia, seizure, metformin lactic acidosis, mitochondrial; bundle for sepsis (SSC 2026)
  • urinalysis_and_drug_screenrequired
    lab • used at INITIAL_WORKUP
    UA for UTI (common in elderly delirium); urine drug screen as ADJUNCT (low sensitivity/specificity — clinical context drives)
  • acetaminophen_salicylate_levelsrequired
    lab • used at INITIAL_WORKUP
    Universal 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_level
    lab • used at INITIAL_WORKUP
    Quantify ethanol + correlate with AMS severity (mild AMS at 100-200 mg/dL; coma at >300); osmolar gap calculation factor
  • abg_with_co_hb
    lab • used at INITIAL_WORKUP
    ABG 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_x2
    lab • used at INITIAL_WORKUP
    Two sets pre-abx if sepsis or meningitis suspicion; SSC 2026 bundle
  • ecg_12_leadrequired
    imaging • used at INITIAL_WORKUP
    QT prolongation (TCA, methadone), Brugada (Na-channel blocker tox), arrhythmia → syncope/cardiogenic AMS
  • noncon_head_ctrequired
    imaging • used at BRANCHING_WORKUP
    STAT for any focal deficit / new seizure / anticoag + trauma / suspected ICH/SAH; rules out structural lesion before LP (Powers AHA 2019)
  • mri_brain_for_ischemia
    imaging • used at BRANCHING_WORKUP
    MRI DWI for posterior circulation stroke, encephalitis (HSV temporal), PRES, autoimmune; CT often inadequate
  • lumbar_puncture
    imaging • used at BRANCHING_WORKUP
    CSF 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_status
    imaging • used at BRANCHING_WORKUP
    Continuous EEG for nonconvulsive status epilepticus — present in up to 20% of ICU AMS (Brophy NCS 2012)

12-phase flow (12)

  1. 1FRAME
    IMMEDIATE: 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_character
    advance: reversible causes (hypoglycemia, opioid, hypoxia) excluded or treated; GCS documented
  2. 2ENTRY
    Focal neuro deficit, seizure activity, headache, chest pain/dyspnea, recent med changes, recent falls/trauma → narrow toward vascular / seizure / infection / tox / structural
    inputs: associated_focal_deficit, associated_seizure_activity, associated_headache, recent_medication_changes, recent_falls_or_trauma
    advance: entry presentation captured
  3. 3CONTEXT
    Age, 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_infection
    advance: context complete
  4. 4RED_FLAGS
    Hypoglycemia (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, temp
    advance: no immediate life-threat OR appropriate engine activated
  5. 5INITIAL_WORKUP
    CBC + 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_lead
    actions: panel.cbc, panel.renal, panel.lft, panel.inflammation
    advance: initial workup reviewed + phenotype pivoted
  6. 6BRANCHING_WORKUP
    STAT 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_status
    advance: branching workup pivots to disposition route
  7. 7DIFFERENTIAL
    AEIOU-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
  8. 8RISK_STRATIFICATION
    GCS / 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-registry
    inputs: age
    advance: risk scores documented
  9. 9TREATMENT
    Universal 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, sbp
    advance: universal bundle initiated + cause-specific Rx routed
  10. 10DISPOSITION
    Reversed 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 agent
    advance: disposition assigned + downstream handoff complete
  11. 11MONITORING
    Serial 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 adequacy
    inputs: fingerstick_glucose, lactate
    advance: stability achieved or escalation triggered
  12. 12FOLLOWUP
    Discharged: 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 indicated
    advance: discharge bundle prescribed + follow-up scheduled