The Grand Ayatollah Safi answered a question about carrying out endoscopy whilst fasting.
Question: Endoscopy is a device which enters digestive tract and takes pictures without anything entering stomach. Can this operation make fasting void or not?
The Grand Ayatollah Safi: According to precaution, this causes problem for fasting.
source : Shafaqna