Gravar-mail: Measuring the Delivery of Complex Interventions through Electronic Medical Records: Challenges and Lessons Learned