Diagnosis typically involves a combination of clinical evaluation and diagnostic tests. A gastric emptying study is often used to measure how quickly food leaves the stomach. Other tests, such as an upper endoscopy, ultrasound, or electrogastrography, may also be employed to rule out other conditions.