Diagnosing a urinary tract infection