Cardiopulmonary resuscitation: who makes the decision?

Cardiopulmonary resuscitation: who makes the decision?