Like most medical procedures, you are advised to refrain from eating and drinking for 6 hours before it. This is to ensure that your stomach is empty, and your doctor will be able to get a clear view of your upper digestive tract.
You must also inform your gastroenterologist of any medication you may be taking, and of any allergies you may have.