Margaret began her career within the Information and Statistics Division of the NHS in Scotland gaining a good understanding of healthcare datasets and developing research-based skills.
She then spent many years as a primary care/health services researcher within General Practice at the University of Edinburgh researching quality of care in general practice consultations and developing consultation outcome measures. In 2003 she took up a joint CSO/SHEFC funded senior post to develop a programme of research in primary care mental health.
From 2006-2011 she was Director of the Scottish Government funded Scottish Primary Care Mental Health Research and Development Programme and continues to build on these foundational programmes of primary care mental health research in Scotland. In November 2016 she became Director of the NMAHP Research Unit where she also leads on its Quality and Delivery of Care programme.