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).
A woman used contraceptive pills, and her menses exceeded (15) days, is it permissible for her to fast?
The maximum of menstrual blood is (15) days, but if it exceeded that due to a medication, or the like, then it is Istihadah (bleeding outside the monthly period), and in this case she should perform Ghusl (ritual bath), pray, and fast. Moreover, she is obliged to make up for the missed fasting days which exceeded her regular menses. And Allah Knows Best.
What should a praying person who doubts having offered one, or two prostrations in the third Rakah (unit of prayer) do?
Whoever has doubts about their prayer should consider what is less i.e. the above person should offer another Sajda (prostration) and complete his/her prayer, then offer Sujood As-Sahw (prostration of forgetfulness). And Allah Knows Best.
Is performing Umrah an obligation for who is capable. Is he accountable for not performing it in this case?
Umrah is an obligation once in a lifetime for every Muslim. When physical and financial ability is present, it is preferable to perform Umrah, as well as Hajj. If one can afford to perform Umrah but not Hajj, then they should begin with Umrah, especially since Hajj nowadays is not accessible to everyone who wishes to perform it. In contrast, Umrah is more open and easier to undertake. And Allah knows best.