Exemple #1
0
        private bool CreateMissingABN(StringBuilder result)
        {
            bool res = false;

            if (this.CheckBoxABNDate.IsChecked == true ||
                this.CheckBoxABNEstimatedCost.IsChecked == true ||
                this.CheckBoxABNIdentificationNumber.IsChecked == true ||
                this.CheckBoxABNLaboratory.IsChecked == true ||
                this.CheckBoxABNNotifier.IsChecked == true ||
                this.CheckBoxABNOptionBoxChecked.IsChecked == true ||
                this.CheckBoxABNPatientName.IsChecked == true)
            {
                MissingABNLetterBody missingABNLetterBody = new MissingABNLetterBody();
                missingABNLetterBody.GetLetterBody(result, this.m_PatientNameWithBirthDate,
                                                   this.CheckBoxABNDate.IsChecked == true,
                                                   this.CheckBoxABNEstimatedCost.IsChecked == true,
                                                   this.CheckBoxABNIdentificationNumber.IsChecked == true,
                                                   this.CheckBoxABNLaboratory.IsChecked == true,
                                                   this.CheckBoxABNNotifier.IsChecked == true,
                                                   this.CheckBoxABNOptionBoxChecked.IsChecked == true,
                                                   this.CheckBoxABNPatientName.IsChecked == true);

                res = true;

                if (this.CheckBoxABNDate.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Date");
                }
                if (this.CheckBoxABNEstimatedCost.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Estimate Cost ");
                }
                if (this.CheckBoxABNIdentificationNumber.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Identification Number ");
                }
                if (this.CheckBoxABNLaboratory.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Laboratory Tests ");
                }
                if (this.CheckBoxABNNotifier.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Notifier ");
                }
                if (this.CheckBoxABNOptionBoxChecked.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Option Box Checked ");
                }
                if (this.CheckBoxABNPatientName.IsChecked == true)
                {
                    this.AppendToEventDescription(m_AbnEventComment, "Patient Name ");
                }
            }
            return(res);
        }
        private bool CreateMissingABN(StringBuilder result)
        {
            bool res = false;
            if (this.CheckBoxABNDate.IsChecked == true ||
                this.CheckBoxABNEstimatedCost.IsChecked == true ||
                this.CheckBoxABNIdentificationNumber.IsChecked == true ||
                this.CheckBoxABNLaboratory.IsChecked == true ||
                this.CheckBoxABNNotifier.IsChecked == true ||
                this.CheckBoxABNOptionBoxChecked.IsChecked == true ||
                this.CheckBoxABNPatientName.IsChecked == true)
            {
                MissingABNLetterBody missingABNLetterBody = new MissingABNLetterBody();
                missingABNLetterBody.GetLetterBody(result, this.m_PatientNameWithBirthDate,
                    this.CheckBoxABNDate.IsChecked == true,
                    this.CheckBoxABNEstimatedCost.IsChecked == true,
                    this.CheckBoxABNIdentificationNumber.IsChecked == true,
                    this.CheckBoxABNLaboratory.IsChecked == true,
                    this.CheckBoxABNNotifier.IsChecked == true,
                    this.CheckBoxABNOptionBoxChecked.IsChecked == true,
                    this.CheckBoxABNPatientName.IsChecked == true);

                res = true;

                if (this.CheckBoxABNDate.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Date");
                if (this.CheckBoxABNEstimatedCost.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Estimate Cost ");
                if (this.CheckBoxABNIdentificationNumber.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Identification Number ");
                if (this.CheckBoxABNLaboratory.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Laboratory Tests ");
                if (this.CheckBoxABNNotifier.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Notifier ");
                if (this.CheckBoxABNOptionBoxChecked.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Option Box Checked ");
                if (this.CheckBoxABNPatientName.IsChecked == true) this.AppendToEventDescription(m_AbnEventComment, "Patient Name ");
            }
            return res;
        }