A 63-year-old man presents with haematemesis and melaena. He is tachycardic and hypotensive. Haemoglobin is 78 g/L. He is resuscitated with intravenous crystalloids and packed red blood cells. After stabilisation, which of the following is the most appropriate next management step according to Canadian guidelines for upper gastrointestinal bleeding?