 The use of the upper GI series for the diagnosis of HPS, which was the primary diagnostic tool for this condition in the 1980s and 1990s, has been largely replaced by the use of ultrasound, which is less invasive and can visualize the thickened pylorus, giving actual measurements of this thickening.