All perfect praise be to Allaah, the Lord of the worlds. I testify that there is none worthy of worship except Allaah and that Muhammad,
, is His slave and messenger.
There is nothing wrong in your undertaking the surgery in Ramadan in order to take out the dead fetus, since you had to. As for the three days of fasting that you have missed, if you were unable to fast and refrained from fasting because of this reason, then you are not blamed for doing so. This is because you are excused due to your inability to fast. In addition, Allaah permits the sick to break their fast. However, you need to make up the three days that you have missed. Concerning the blood that has been coming out after the surgery, it is neither menstrual nor postnatal blood.
Allaah Knows best.