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 type of illness that permits breaking the fast in Ramadan?
It is an illness that, if one fasts, there is a fear it may lead to their death or cause unbearable hardship.
Is it permissible to pay the Zakah (obligatory charity) for settling the debt of a deceased relative?
It is impermissible to pay the Zakah for settling the debt of the deceased since Zakah is paid to eligible recipients who are alive. As for the debts of the deceased, they are to be settled from the estate before dividing it amongst the heirs, but if the deceased didn`t leave an estate, then it is desirable for his/her heirs to settle those debts if they can afford them. And Allah Knows Best.