Hi,
Thanks for posting your query at DoctorSpring.
I am Dr.R.K and I am pleased to assist you.
You are having dyspeptic symptoms.
An upper GI endoscopy may be done to rule out gastritis/ulcer disease.
H.pylori infection is one of the common causes and this infection should be ruled out. The night time coughing could occur in few conditions. But along with the other symptoms you have, the most probable cause is acid reflux disease.
You can take OTC Prilosec twice daily before food for 4 weeks.
Try to avoid painkiller medications. However you should NOT delay medical help. Pancreatitis is another condition that needs to be ruled out. Do NOT take alcohol or spicy food for now. Again, you should NOT delay medical help.
I hope that answers your question.
Let me know if I can assist you further. Please feel free to ask followups / clarifications.
Regards,
Dr.R.K.