Diagnosis involves a detailed history and physical examination. It is vital to identify any recent exposure to potential toxins. Laboratory tests may include blood and urine analyses to detect specific toxins. Imaging studies or endoscopy might be necessary if structural damage to the GI tract is suspected. In cases of suspected heavy metal poisoning, blood tests can determine levels of metals like lead or mercury.