Patients with only coughing symptoms without contraindications to painless gastroenteroscopy are generally eligible for painless gastroenteroscopy. Painless gastroscopy is a method of examination under anesthesia and after the patient has gone to sleep, capable of diagnosing and treating diseases of the stomach and duodenum. Contraindications to painless gastroscopy include allergy to anesthetic drugs, suspected gastrointestinal perforation, severe cardiopulmonary disease, bradycardia, and diseases that tend to cause choking. Painless colonoscopy can be used to assist in the diagnosis of diseases present in the patient’s intestinal tract, as well as to treat them accordingly. Contraindications to painless colonoscopy include pregnant women, severe intestinal adhesions or obstruction, and abnormal blood clotting. Therefore, without the above contraindications, patients with only coughing symptoms can have painless gastroenteroscopy. However, painless gastroenteroscopy is not recommended in cases where the cough is accompanied by severe dyspnea or acute respiratory infection.