The following tests can be done in the hospital for stomach pain: 1. Barium meal examination, you need to take a certain amount of contrast agent, after a while through the peristalsis of the stomach and intestines contrast agent will be all over the various locations of the stomach and intestines, and then do the X-ray examination, can be a good observation of the condition of the stomach, when doing the examination need to fasting, doing the examination process slightly discomfort. 2. Gastroscopy, through the mouth with the camera hose into the stomach, and then Gastroscopy can directly observe the condition of the stomach to see whether there is erosion, edema, congestion, ulcer, etc. When doing gastroscopy, you can also do pathological examination on the lesioned tissue to determine the nature of the lesion, which can help to confirm the diagnosis of gastric ulcer, gastritis, gastric cancer and other diseases, you also need to do gastroscopy on an empty stomach, and general gastroscopy can be a bit uncomfortable, so you can do painless gastroscopy, and you need to do anesthesia before doing painless gastroscopy. 3. C14 breath test, this test is mainly to detect the presence of H. pylori in the body, this germ can easily lead to gastric erosion, redness and swelling, and sometimes can even cause ulcers, so testing H. pylori helps to identify the cause of gastric disease, and then develop a suitable treatment plan. This test is simple and the procedure does not cause discomfort to the patient, but the information that can be learned is particularly small, only a little about H. pylori and not useful for other conditions such as congestion, erosion, edema, etc.