The residents randomized to the intervention group were then offered to receive text messages termed electronically Generated Educational Messages ( eGEMs ) three times per week during a 12-week period .