예제 #1
0
        protected void button1_Click_1(object sender, EventArgs e)
        {
            ReportInfoMessage bidm               = new ReportInfoMessage();
            string            preamble           = "";
            string            incidence_modifier = "";
            int numerator = 0;

            if (current_mode == Mode.Incidence)
            {
                numerator          = data.incidence;
                incidence_modifier = " for the first time:";
            }
            else
            {
                numerator          = data.prevelance;
                incidence_modifier = ":";
            }


            preamble = "There were " + numerator.ToString() + " non test patients (MRN not like 999*) who had an appointment between " +
                       data.startTime.ToShortDateString() + " and " + data.endTime.ToShortDateString() +
                       " (inclusively), who met AT LEAST ONE of the following conditions" + incidence_modifier + Environment.NewLine;



            string formatted = "\t- " + data.info.Replace(", ", Environment.NewLine + "\t- ").Trim(trimChars);

            bidm.SetText(preamble + formatted);
            bidm.ShowDialog();
        }
예제 #2
0
        protected void button1_Click_1(object sender, EventArgs e)
        {
            ReportInfoMessage bidm = new ReportInfoMessage();
            string preamble = "";
            string incidence_modifier = "";
            int numerator = 0;
            if (current_mode == Mode.Incidence)
            {
                numerator = data.incidence;
                incidence_modifier = " for the first time:";

            }
            else
            {
                numerator = data.prevelance;
                incidence_modifier = ":";
            }

            preamble = "There were " + numerator.ToString() + " non test patients (MRN not like 999*) who had an appointment between " +
                        data.startTime.ToShortDateString() + " and " + data.endTime.ToShortDateString() +
                        " (inclusively), who met AT LEAST ONE of the following conditions" + incidence_modifier + Environment.NewLine;

            string formatted = "\t- " + data.info.Replace(", ", Environment.NewLine + "\t- ").Trim(trimChars);
            bidm.SetText(preamble + formatted);
            bidm.ShowDialog();
        }