Is wearing a cap permissible for boys, or girls?
All Perfect Praise is due to Allah, The Lord of The Worlds.
In principle, anything is permissible sol long as there is no Sharia evidence prohibiting it, thus wearing the cap by boys is permissible as long as it isn`t done in imitation of the disbelievers. Moreover, a Muslim woman should avoid all that which attracts the attention of men because whatever leads to the forbidden is forbidden. And Allah Knows Best.
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).
Should a pregnant woman who broke fast because of pregnancy make it up, and is a ransom due on her?
The pregnant and the suckling, if they fear for their health, may break their fast and make up for it, and no ransom is due on them. However, if they broke fast in fear for the fetus and the baby, then they are obliged to make up for it, and pay the ransom which is feeding a needy person for each of the missed fasting days. And Allah Knows Best.
Is permissible to include a will requesting that a Holy Qur'an buried along with me?
It is not permissible to include a will requesting that a Quran be buried with the deceased in their grave. This is because the body of the deceased typically decomposes and may release impure substances, and it is not allowed to expose the Quran to impurity. Intentionally desecrating the Quran is an act of disbelief. Instead, read the Quran during your lifetime, as it will benefit you after death. And Allah Knows Best.