Sudden confusion needs urgent medical attention. A urinary infection is one possible cause, but a positive urine test may not give the whole picture.