What is the ruling of Sharia on male doctor delivering a baby?
All perfect praise be to Allah the Lord of The Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
The person most entitled to deliver a baby is a Muslim woman, then a woman from the People of the Book, then a woman from the disbelievers, then a Muslim man, then a man from the People of the Book. However, if there was no woman to deliver the baby, then it is permissible for a male doctor do deliver it. And Allah The Almighty Knows Best.
Is it permissible for a woman who broke fasting due to a delivery to pay a ransom?
She should make up for the missed fasting days once she becomes ritually pure, but it is impermissible for her to pay a ransom while being able to fast.
What is the ruling on determining the sex of the baby whether through killing the female spermatozoa, or any other way in order to have a male?
If it is done through having a certain type of food, taking a certain type of medication, or organizing the time of the marital relation, then it is permissible.
Is it permissible to offer prayer at home, or should it be offered in the mosque?
All perfect praise be to Allah, The Lord of The Worlds. It isn`t preferable for the man to pray at home as praying in the mosque is twenty seven times more rewarding. Therefore, this should motivate him to offer prayers in the mosque. And Allah Knows Best.