Conversation: The conversation between human and AI assistant.
[|Human|] I am a 31 year old male.  Over the last few months, I cough as I am falling asleep which wakes me up.  Also when I am asleep the coughing, which can sometimes be quite violent wakes me up.  When I wake up properly I can taste blood.  I have never coughed up blood.
[|AI|]  Hi thanks for using ChatDoctorYour problem is mainly during the nightwear are some conditions which has to be ruled out...1. Nocturnal Asthma--this can be presented like this. Increased cough during night. By using inhalers this can be controlled.2. Reflux esophagitis is another cause--During sleep the muscle ring at the junction of esophagus and stomach will be relaxed. This causes gastric contents to reflux into the esophagus. This can trigger cough. You can keep the head end of the coat little elevated to avoid the problem.3. Just check for the Thyroids. Any pressure from the surrounding structures on the trachea can cough.... Please do a routine Chest X-Ray thank you