Endoscopy

I'm due to have an upper gi endoscopy I have a low iron deficiency and anemia I'm so worried it's going to be cancer and I'm going to die I have been told that it is a low chance of it being cancer