The futility of cardiopulmonary resuscitation attempts in nursing homes and primary care wards