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 a condition that one should offer two sacrifices for a male newborn?
It is desirable to offer two sheep for a male newborn, and one for a female newborn. Offering one sheep for the male newborn is also permissible as it observes the Prophet`s Sunnah in this regard.
What is the ruling on someone who perform their prayer after finishing it because they believe they missed a Rak'a, a prostration, or that they did not perform it correctly (thinking their prayer was invalid)?
If he was sure that his prayer is void then reperforming it is an obligation along with figuring out the reason of invalidity so long as this wasn't out of uncertainty. And Allah Knows Best.
Is it permissible for a Muslim to slaughter an Aqeeqah on behalf of someone else, and offer it to him as a gift?
In principle, the guardian is the one who should offer the Aqeeqah (the sheep slaughtered on the seventh day from the child`s birth) because he is obliged to provide for the newborn, and it is impermissible for anyone else to slaughter it on his behalf unless with his consent. However, it is permissible for a person to offer the sheep, or its price as a gift to the guardian of the newborn, and then the latter can slaughter it, or deputies someone else to do that on his behalf.