/// <summary> /// Returns true if survey was already sent. False otherwise. /// ActionItem is of form "NAME x Month Survey Sent", where x is month number and NAME is from SurveyKey /// </summary> /// <param name="surveyName"></param> /// <param name="month"></param> /// <returns></returns> private bool SurveyAlreadySent(string surveyName, int month, int patientId) { // 1. check Action to see if Action exists for this survey/month string actionName = FollowUpUtil.GetSurveyActionItem(surveyName, month.ToString()); FollowUpDA da = new FollowUpDA(); return(da.SurveyAlreadySent(patientId, actionName)); }