Пример #1
0
        private bool CreateMissingSignature(StringBuilder result)
        {
            bool res = false;

            this.m_TestName = string.Empty;
            if (this.CheckBoxMissingSignatureSurgical.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureSurgical.Tag.ToString();
            }

            if (this.CheckBoxMissingSignatureCytology.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureCytology.Tag.ToString();
            }

            if (this.CheckBoxMissingSignatureFlow.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureFlow.Tag.ToString();
            }

            if (this.CheckBoxMissingSignatureMolecular.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureMolecular.Tag.ToString();
            }
            if (this.m_TestName.Length > 0)
            {
                MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                missingSignatureLetterBody.GetLetterBody(result, this.m_TestName, this.m_PatientNameWithBirthDate, this.m_AccessionOrder.PhysicianName);
            }
            return(res);
        }
Пример #2
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_AccessionOrder.ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_AccessionOrder.ClientName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                DateTime timeToSchedule = DateTime.Parse(DateTime.Today.ToShortDateString() + " 13:00");
                if (DateTime.Now >= timeToSchedule)
                {
                    timeToSchedule = timeToSchedule.AddDays(1);
                }

                YellowstonePathology.Business.ReportDistribution.Model.ScheduledFaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", @"C:\\Program Files\\Yellowstone Pathology Institute\\ClientMissingInformationLetter.xml", timeToSchedule);
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
        }
Пример #3
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;

            if (this.m_ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_ProviderName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                YellowstonePathology.Business.ReportDistribution.Model.FaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", YellowstonePathology.UI.Properties.Settings.Default.ClientMissingInformationLetterFileName);

                if (string.IsNullOrEmpty(this.m_InfoEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                                                                                  this.m_InfoEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingInformation);
                }

                if (string.IsNullOrEmpty(this.m_AbnEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                                                                                  this.m_AbnEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingABN);
                }
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
            this.Close();
        }
Пример #4
0
        private bool CreateMissingSignature(StringBuilder result)
        {
            bool res = false;
            this.m_TestName = string.Empty;
            if (this.CheckBoxMissingSignatureSurgical.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureSurgical.Tag.ToString();
            }

            if (this.CheckBoxMissingSignatureCytology.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureCytology.Tag.ToString();
            }

            if (this.CheckBoxMissingSignatureFlow.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureFlow.Tag.ToString();
            }

            if (this.CheckBoxMissingSignatureMolecular.IsChecked == true)
            {
                this.m_TestName = this.CheckBoxMissingSignatureMolecular.Tag.ToString();
            }
            if (this.m_TestName.Length > 0)
            {
                MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                missingSignatureLetterBody.GetLetterBody(result, this.m_TestName, this.m_PatientNameWithBirthDate, this.m_AccessionOrder.PhysicianName);
                this.m_FormatBold = true;
            }
            return res;
        }
Пример #5
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            if (this.m_AccessionOrder.ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_AccessionOrder.ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_AccessionOrder.ClientName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                DateTime timeToSchedule = DateTime.Parse(DateTime.Today.ToShortDateString() + " 13:00");
                if(DateTime.Now >= timeToSchedule)
                {
                    timeToSchedule = timeToSchedule.AddDays(1);
                }

                YellowstonePathology.Business.ReportDistribution.Model.ScheduledFaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", @"C:\\Program Files\\Yellowstone Pathology Institute\\ClientMissingInformationLetter.xml", timeToSchedule);
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
        }
Пример #6
0
        private void ButtonFaxLetter_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;

            if (this.m_ClientId != 0)
            {
                YellowstonePathology.Business.Client.Model.Client client = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetClientByClientId(this.m_ClientId);
                string letterBody = this.TextBoxLetterBody.Text;

                if (this.m_FormatBold)
                {
                    MissingSignatureLetterBody missingSignatureLetterBody = new MissingSignatureLetterBody();
                    StringBuilder body = new StringBuilder();
                    letterBody = missingSignatureLetterBody.GetLetterBodyForFax(this.m_TestName);
                    YellowstonePathology.Business.Document.ClientLetterBold clientLetterBold = new YellowstonePathology.Business.Document.ClientLetterBold();
                    clientLetterBold.Create(this.m_PatientNameWithBirthDate, this.m_ProviderName, client, letterBody);
                }
                else
                {
                    YellowstonePathology.Business.Document.ClientLetter clientLetter = new YellowstonePathology.Business.Document.ClientLetter();
                    clientLetter.Create(this.m_PatientNameWithBirthDate, client, letterBody);
                }

                YellowstonePathology.Business.ReportDistribution.Model.FaxSubmission.Submit(client.Fax, client.LongDistance, "Missing Information", YellowstonePathology.Properties.Settings.Default.ClientMissingInformationLetterFileName);

                if (string.IsNullOrEmpty(this.m_InfoEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                        this.m_InfoEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingInformation);
                }

                if (string.IsNullOrEmpty(this.m_AbnEventComment.ToString()) == false)
                {
                    YellowstonePathology.Business.Domain.OrderCommentLog.LogEvent(this.m_SpecimenLogId, m_MasterAccessionNo,
                        this.m_AbnEventComment.ToString(), this.m_SystemIdentity.User, YellowstonePathology.Business.Domain.OrderCommentEnum.CytologyLogFaxSentRequestingABN);
                }
            }
            else
            {
                MessageBox.Show("Client must be selected before a fax can be generated.");
            }
            this.Close();
        }