I agree. If the doctor felt that childs life was in danger, then the parents rights are secondary to saving the childs life.
Doctors make deadly mistakes every day. EVERY DAY. They are far from infallible. So unless he had actual proof such as lab results or symptoms that pointed to something like meningitis or appendicitis or flu the parent’s rights do not come secondary.