In this randomized controlled trial , 96 patients with coronary heart disease were randomly assigned to control and intervention groups at the end of a rehabilitation program at Afshar Hospital , Yazd , Iran .