It should be noted that if the patient has a disease that poses a direct threat to life, the endoscopy is absolutely justified. Thus, gastroduodenoscopy should be carried out even in patients with myocardial infarction or acute impairment of cerebral circulation when he develops gastrointestinal bleeding, both to identify the cause and extent of bleeding, and to stop it.