This study aims to explore the effect of ciprofol on the postoperative cognitive function of inpatients undergoing gastrointestinal endoscopy examination, to compare the anesthetic effects and differences in adverse reactions of propofol and ciprofol in gastrointestinal endoscopy , to compare the incidence of postoperative cognitive decline in patients undergoing gastrointestinal endoscopy examination between propofol and coprofol, and to optimize the anesthesia medication regimen for patients undergoing gastrointestinal endoscopy examination.