Is it haram to have a male doctor deliver a woman's baby?
The generally accepted opinion is that while it is forbidden for a male doctor to see a woman’s ʿawra (the parts of her body that should be covered by the hijab), this is overruled in cases where it is absolutely necessary. So if there are no female midwives or doctors available, and if there is a fear that the woman or the baby’s health and safety may be affected without the help of a male doctor, then it is permitted for the male doctor to deliver the baby.
Source
- Fatwa from the Qatari Fatwa Authority (Arabic PDF)