An 82-year-old woman in a residential aged care facility becomes acutely confused overnight with fluctuating level of consciousness and visual hallucinations. She has a history of mild cognitive impairment but was previously oriented. She is afebrile but has suprapubic tenderness and foul-smelling urine. What is the most appropriate initial management step?