You will be instructed not to eat or drink anything for as many as 12 hours before your appointment. If you do eat any food or drink beverages, the ducts and gallbladder will empty so food can be digested and we won't be able to view them easily during the test.  If your appointment is in the morning, ask your doctor when you should eat last the night before. You may take medications with small sips of water.