The Chief Scientist Office of the Scottish Government Health and Social Care Directorates funded the trial with supplementary awards from Edinburgh and Lothian 's Health Foundation Trust and the Heart Diseases Research Fund .