In a 68‑year‑old man post‑total hip arthroplasty under general anesthesia (after failed spinal) who is taking codeine, aspirin, Celebrex (celecoxib), doxycycline, and senna, what is the likely cause of his closed‑eye kaleidoscope visual hallucinations and how should it be managed?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: February 15, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Visual Hallucinations Post-Hip Arthroplasty: Opioid-Induced Delirium

The closed-eye kaleidoscope visual hallucinations are most likely caused by codeine-induced delirium, and the codeine should be discontinued immediately and replaced with non-opioid analgesics. 1

Primary Cause: Opioid-Induced Delirium

  • Codeine is a high-risk medication for postoperative delirium in older adults and should be avoided entirely in this population. 1 The American Geriatrics Society specifically identifies opioids, particularly in the context of inadequate multimodal analgesia, as a major contributor to postoperative delirium manifesting with visual hallucinations. 1

  • Visual hallucinations, particularly the "kaleidoscope" pattern described, are a classic manifestation of delirium in elderly postoperative patients. 1 This presentation is especially concerning given the patient's age (68 years) and recent major surgery under general anesthesia.

  • The combination of general anesthesia (after failed spinal) and opioid administration creates a particularly high-risk scenario for delirium development. 1 Deeper levels of sedation and opioid exposure are independently associated with increased delirium rates. 1

Immediate Management Steps

Discontinue Offending Medications

  • Stop codeine immediately. 1 The American Geriatrics Society guidelines explicitly recommend avoiding opioids that induce delirium, and codeine is particularly problematic in elderly patients due to variable metabolism and accumulation of active metabolites.

  • Review and discontinue any other potentially deliriogenic medications. 1 While the patient's current regimen of aspirin, Celebrex, doxycycline, and senna are generally safe, ensure no additional anticholinergics, benzodiazepines, or sedative-hypnotics have been administered. 1

Implement Multimodal Non-Opioid Analgesia

  • Optimize Celebrex (celecoxib) dosing as the primary analgesic, ensuring it is given at regular intervals rather than as-needed. 1 COX-2 selective inhibitors provide excellent pain control post-hip arthroplasty when used as part of basic analgesia.

  • Add scheduled acetaminophen (paracetamol) 1000 mg every 6-8 hours (maximum 4000 mg/24 hours) as baseline analgesia. 1 This combination of NSAID plus acetaminophen forms the foundation of postoperative pain management.

  • Consider adding dexamethasone 8-10 mg IV if not already given, which reduces pain and opioid requirements. 1 A single dose is safe and well-documented for postoperative pain control.

Monitor and Assess for Delirium

  • Perform formal delirium screening using validated tools (CAM, 4AT, or similar). 1 Document the presence, severity, and fluctuation of symptoms.

  • Assess for other contributing factors: hypoxia, infection, metabolic derangements, urinary retention, constipation, and pain. 1 Check vital signs, oxygen saturation, and consider basic laboratory work if not recently obtained.

  • Ensure adequate hydration and nutrition, as these are frequently overlooked contributors to postoperative delirium. 1

Alternative Diagnoses to Consider (Less Likely)

Gabapentinoid Side Effects

  • While gabapentinoids can cause visual disturbances and blurred vision 1, the patient is not currently on these medications. This makes gabapentinoid toxicity unlikely unless recently discontinued or not documented.

Anesthesia-Related Visual Complications

  • Direct ocular compression or ischemic optic neuropathy are extremely rare after hip arthroplasty in the supine position. 1 These complications are primarily associated with prone spinal surgery with prolonged operative times and would present with actual vision loss, not closed-eye hallucinations. 1

  • The failed spinal anesthesia itself does not directly cause visual hallucinations. 2, 3 However, the conversion to general anesthesia may have increased delirium risk compared to successful spinal anesthesia. 2

Pain Management Going Forward

  • If breakthrough pain occurs after codeine discontinuation, use short-acting oral morphine or oxycodone in minimal doses (e.g., morphine 2.5-5 mg PO every 4 hours as needed), but only after maximizing non-opioid analgesia. 1 The goal is to minimize total opioid exposure.

  • Avoid meperidine, diphenhydramine, and benzodiazepines entirely. 1 These medications significantly worsen delirium and have no role in this patient's care.

  • Regional anesthesia techniques (femoral nerve block, fascia iliaca block) could have been beneficial if performed perioperatively but are less practical now in the postoperative period. 1, 4

Common Pitfalls to Avoid

  • Do not attribute visual hallucinations to "normal postoperative confusion" and continue opioids. 1 This represents undertreated delirium and will worsen outcomes including prolonged hospitalization, functional decline, and increased mortality risk.

  • Do not add antipsychotics as first-line treatment without addressing the underlying cause. 1 While antipsychotics may be needed for severe agitation or safety concerns, removing the offending agent (codeine) is the primary intervention.

  • Do not delay mobilization due to visual symptoms. 1 Early mobilization is crucial for recovery after hip arthroplasty and also helps resolve delirium, provided the patient can ambulate safely with assistance.

Expected Clinical Course

  • Visual hallucinations should begin to improve within 24-48 hours of codeine discontinuation, though complete resolution of delirium may take several days. 1 If symptoms persist beyond 72 hours or worsen, reassess for other causes including infection, metabolic disturbances, or medication interactions.

  • Pain control with the optimized non-opioid regimen (Celebrex + acetaminophen + dexamethasone) should be adequate for post-hip arthroplasty pain. 1 Studies demonstrate that modern multimodal analgesia provides excellent pain relief without routine opioid use.

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

Failed spinal anesthesia after a psoas compartment block.

Canadian journal of anaesthesia = Journal canadien d'anesthesie, 2005

Guideline

Ideal Anesthetic for Anterior Hip Replacement

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.