Does burping (belching) break the fast?
Burping does not break the fast. However, if anything comes up from the stomach, the fasting person must spit it out and rinse their mouth to cleanse it.
If they swallow it intentionally while being able to expel it, or if they swallow their saliva before rinsing their mouth, their fast is invalidated.
What is the ruling on X-ray imaging while fasting in Ramadan?
X-ray imaging itself does not break the fast. However, if a person ingests a contrast agent or medication to enhance the imaging process through an open passage to the body cavity (jauf)—such as the mouth or rectum—then their fast is invalidated.
Does undergoing an endoscopy during the day in Ramadan affect the validity of fasting?
Undergoing an endoscopic procedure during the day in Ramadan—whether through the mouth, nose, front private part, or back private part—invalidates the fast.
Whoever undergoes such a procedure must refrain from eating and drinking for the rest of the day out of respect for the sacred month and make up for that day after Ramadan.
What is the Islamic ruling on breaking off one's prayer to save a person from destruction or imminent harm—such as witnessing someone falling or drowning while one is engaged in prayer?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is obligatory to break off the prayer if the situation requires rescuing a person from destruction or certain harm. The number of people needed to meet the need breaks off their prayer, namely those who are able to rescue him, while the others remain in their prayer, because the preservation of life is among the greatest objectives of the Sharīʿah.
Allah the Exalted says {what means}: “And whoever saves one [life], it is as if he had saved mankind entirely” [al-Māʾidah/32]. The Messenger of Allah (peace and blessings be upon him) said: “There should be neither harm nor reciprocating harm.”
Imam al-ʿIzz ibn ʿAbd al-Salām (may Allah have mercy on him) said: “Rescuing drowning persons whose lives are protected under Islamic Law takes precedence over performing the prayer, because in Allah’s sight rescuing drowning persons whose lives are protected under Islamic Law is better than performing the prayer.” [Qawāʿid al-Aḥkām fī Maṣāliḥ al-Anām, Vol.1/p.66]. And Allah Almighty knows best.