Gastroscopy is the most common and reliable diagnostic method for gastrointestinal diseases. Those who have indications for gastroscopy but fear routine gastroscopy, severe vomiting or other reasons for difficulty in completing routine gastroscopy can choose painless gastroscopy. There are two main types of anesthesia for painless gastroscopy: i. Propofol anesthesia: as long as there are no circulatory and respiratory diseases that may threaten life, such as uncontrolled severe hypertension, severe arrhythmia, unstable angina and acute respiratory infection, asthma attack, snoring, etc., no severe liver dysfunction, acute upper gastrointestinal bleeding with shock, severe anemia, gastrointestinal obstruction with gastric content retention Propofol anesthesia can be used for gastroscopy and colonoscopy without sedation/anesthetic drug allergy and other serious anesthetic risks. Patients wake up quickly after anesthesia and have few side effects, and can leave the hospital and go home on their own after 30 minutes of observation of complete wakefulness. Second, basic anesthesia: for patients of advanced age (>75 years old), with poor compensatory function and many complications, it is recommended to use imipramine plus fentanyl for anesthesia, which is mainly sedative and analgesic, with little effect on the patient’s breathing, and the patient is awake throughout, but with minimal pain and higher safety.