I am on a type of medication (pills) for which the doctor said i should take during daytime after breakfast because taking it at night undermines my sleep. The pills are to be taken for at least 6 months depending on how well I can recover from the condition. What should I about fasting in the month of Ramadhan?

Kindly speak to the doctor and explain him and try take it after sahri.