I have an upcoming ear surgery for which it is necessary for me to refrain from wearing anything on my head during the procedure. Would it be considered allowed for me to completely remove my Hijab due to this necessary requirement?
Bismihi ta'ala
If it is a necessary procedure, and you have no control over the medical staff all being females, then you are allowed to undergo the surgery. Just try to ask the nurse or an accompanying family member to try and cover you as much as they can.
May Allah ta'ala grant you shifa` and speedy recovery.
And Allah knows best.