DIAGNOSIS
The diagnosis for peptic ulcer relies on a thorough history and physical exam as well as imaging tests. Two such tests that are available to diagnose a peptic ulcer are an upper endoscopy and upper gastrointestinal (GI) series.
TREATMENT
Treatment will depend on the underlying cause of the ulcer. If tests show that you have an H. pylori infection, your doctor will prescribe a combination of medication, which you will have to take for up to two weeks. The medications include antibiotics to help kill infections, and proton pump inhibitors (PPIs) to help reduce stomach acid.