Is it permissible for the doctor to uncover the hair of a female patient out of necessity?
It is only permissible for him to do so when there is no female doctor, and he should examine the patient in the presence of one of her Mahrams (unmarriageable kin).
Is it true that if a ritually impure, or a menstruating woman visits one who is in confinement, harm will be inflicted on the latter, or her baby?
This is completely wrong and unfounded piece of information.
Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
What is the ruling on the yellow discharge that comes from a woman during pregnancy?
These discharges are not menstrual blood, but they are impure like urine and break the Wudu (ablution). If the discharge is frequent, its ruling is similar to that of urinary incontinence. The woman should perform wudu after the time of each prayer, pray the obligatory prayer, and any additional prayers she wishes, read the Quran, and take precautions against impurity to the best of her ability. Using a special pad can prevent the impurity from spreading. And Allah Knows Best.