コード例 #1
0
        public static string GetLetterActionItem(string surveyName, string month, int patientId)
        {
            // first get last survey sent
            FollowUpDA da = new FollowUpDA();
            DataTable  dt = da.GetLastSurveySent(patientId);

            if (dt.Rows.Count > 0)
            {
                string actionItem = dt.Rows[0][Caisis.BOL.Action.ActionItem].ToString();
                string surveyType = GetSurveyNameFromActionItem(actionItem);
                // format of follow up action item is "NAME x Month Letter Sent"
                string letterActionItem = surveyType + " " + month + " Month Letter Sent";
                return(letterActionItem);
            }
            else
            {
                return(string.Empty);
            }
        }