Diagnosis typically involves a combination of medical history, physical examination, and laboratory tests. A urinalysis is usually performed to check for the presence of bacteria, white blood cells, and other abnormalities in the urine. A urine culture may be conducted to identify the specific type of bacteria causing the infection.