It's okay that you can't fast when you are under medication. Allahu yashfiikiiy. Amin. It is a test of accepting what is already fated. You will also have the joy of 'repaying' after the fasting month! =D
We Muslim women are entitled to rest from fasting during our menses and reasons like pregnancy or sickness. But, we are not deprived from fasting when we are healed.
Allah sees our heart, sister. =D