Diagnosis typically involves a combination of patient history, physical examination, and diagnostic tests such as endoscopy, barium swallow, or tests for H. pylori (urea breath test, stool antigen test, and blood antibody test). Treatment usually includes a combination of antibiotics to eradicate H. pylori, proton pump inhibitors (PPIs) to reduce stomach acid, and lifestyle modifications.