Cardiopulmonary resuscitation in a teaching hospital