How do doctors treat you if they give you the wrong blood type?

If incompatible blood is given in a transfusion, the donor cells are treated as if they were foreign invaders, and the patient's immune system attacks them accordingly. Not only is the blood transfusion rendered useless, but a potentially massive activation of the immune system and clotting system can cause shock, kidney failure, circulatory collapse, and death.

The doctor would just try to prevent hese from happening.