Gastrointestinal infections are typically diagnosed based on symptoms, medical history, physical examination, and sometimes laboratory tests. Stool samples may be collected to identify the specific pathogen causing the infection, such as viruses, bacteria, or parasites.