An 80-year-old resident of a care home develops acute confusion, agitation, and urinary incontinence over 2 days. She has a history of dementia but her baseline function has acutely deteriorated. She has no fever, cough, or focal neurological signs. Urinalysis dipstick is positive for nitrites and leukocytes. What is the most appropriate next step?