The 2015 NICE guidelines 'Suspected cancer: recognition and referral' further updated the advice on who needs urgent referral for an endoscopy (i.e. within 2 weeks). The list below combines the advice for oesophageal and stomach cancer

Urgent

Non-urgent

Managing patients who do not meet referral criteria ('undiagnosed dyspepsia')

This can be summarised at a step-wise approach

Testing for H. pylori infection