I am not sure what type of cough you are having - if 'neither dry nor prolonged' - then I have to assume it is 'wet' meaning infected.
Chest XRay, blood cultures (if you are having temperature spikes) or a review by a Pulmonologist is recommended (CT Chest and/or bronchoscopy
As for the gastric problem, if you are on ranitidine
for at least 3-4 weeks and no improvement then reflux disease causing cough is unlikely. Is there a temporal pattern to the cough or worsened on lying down (which indicates reflux disease).
Drug-induced dry cough are commonly due to blood pressure lowering medications such as enalapril
, captopril, lisinopril
etc that can be stopped if cough is very bothersome but consult with your Cardiologist, who will also ensure that the heart is not the cause.
I hope this was useful