Dyspepsia is pain or an uncomfortable feeling in the upper or middle part of the stomach that can cause symptoms of bloating, heartburn, nausea and vomiting .