Family members have the right of informed consent, and it is illegal to deny this right to family members. If the family really disagrees, or the patient can't sign at the scene in an emergency, then the patient can sign it himself.
If an anonymous person is critically ill and in urgent need of surgery, the hospital will do the most timely treatment according to the actual situation.