Diagnosis of E. coli infection is confirmed through laboratory testing of a stool sample. Rapid identification of the bacteria can help in managing the infection and preventing its spread. Healthcare providers may also conduct additional tests to check for complications such as HUS.