Ejemplo n.º 1
0
        private bool DataIsValid()
        {
            bool result = true;

            string   eBirthdate = this.TextBoxBirthdate.Text;
            DateTime checkDate;
            bool     isValidDate = DateTime.TryParse(eBirthdate, out checkDate);

            if (isValidDate == false)
            {
                MessageBox.Show("Please enter a valid Birthdate.");
                result = false;
            }

            if (string.IsNullOrEmpty(this.m_AccessionOrder.PSex) == true)
            {
                MessageBox.Show("Please enter the patient sex.");
                result = false;
            }

            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new YellowstonePathology.Business.Audit.Model.TallmanMedicalRecordAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == true)
            {
                MessageBox.Show(auditCollection.Message);
                result = false;
            }

            return(result);
        }
Ejemplo n.º 2
0
        private bool DataIsValid()
        {
            bool result = true;

            /*** this shoulde be moved to the audit namespace *****/
            Business.Validation.ValidationResult accountNoValidation = this.m_AccessionOrder.IsAccountNoValid();
            Business.Validation.ValidationResult mrnValidation       = this.m_AccessionOrder.IsMedicalRecordNoValid();

            if (accountNoValidation.IsValid == false)
            {
                MessageBox.Show(accountNoValidation.Message);
                result = false;
            }
            else if (mrnValidation.IsValid == false)
            {
                MessageBox.Show(mrnValidation.Message);
                result = false;
            }
            /********/

            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new YellowstonePathology.Business.Audit.Model.TallmanMedicalRecordAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == true)
            {
                MessageBox.Show(auditCollection.Message);
                result = false;
            }

            return(result);
        }
Ejemplo n.º 3
0
        private void HyperLinkFinalizeResults_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new YellowstonePathology.Business.Audit.Model.LSETypeIsNotSetAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == false)
            {
                YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrderLynchSyndromeEvaluation.IsOkToFinalize();
                if (methodResult.Success == true)
                {
                    YellowstonePathology.Business.Test.FinalizeTestResult finalizeTestResult = this.m_PanelSetOrderLynchSyndromeEvaluation.Finish(this.m_AccessionOrder);
                    this.HandleFinalizeTestResult(finalizeTestResult);

                    // Temporary use for checking results
                    YellowstonePathology.Business.Test.LynchSyndrome.LSERule lseRule = (YellowstonePathology.Business.Test.LynchSyndrome.LSERule) this.ListViewResults.Items[0];
                    Business.Logging.EmailExceptionHandler.HandleException(this.m_PanelSetOrderLynchSyndromeEvaluation, "This LSE has just been finalized using " + lseRule.Indication + " - " + lseRule.RuleName);
                }
                else
                {
                    MessageBox.Show(methodResult.Message);
                }
            }
            else
            {
                MessageBox.Show("We are unable to finalize this report because: " + auditCollection.Message);
            }
        }
Ejemplo n.º 4
0
        public bool IsOkToContinue()
        {
            bool result = true;

            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new Business.Audit.Model.WHPIsRequiredByStandingOrderAudit(this.m_AccessionOrder));
            auditCollection.Add(new Business.Audit.Model.WHPStandingOrderNotSetAudit(this.m_AccessionOrder));
            auditCollection.Add(new Business.Audit.Model.WHPStandingOrderMismatchAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == true)
            {
                MessageBoxResult messageBoxResult = MessageBox.Show(auditCollection.Message + " Are you sure you want to continue?", "Continue", MessageBoxButton.YesNo);
                if (messageBoxResult == MessageBoxResult.No)
                {
                    result = false;
                }
            }

            return(result);
        }
Ejemplo n.º 5
0
        private void HyperLinkFinalizeResults_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new YellowstonePathology.Business.Audit.Model.LSETypeIsNotSetAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == false)
            {
                if (this.m_PanelSetOrderLynchSyndromeEvaluation.Final == false)
                {
                    this.m_PanelSetOrderLynchSyndromeEvaluation.Finalize();
                }
                else
                {
                    MessageBox.Show("This case cannot be finalized because it is already final.");
                }
            }
            else
            {
                MessageBoxResult messageBosResult = MessageBox.Show("We are unable to finalize this report because: " + auditCollection.Message);
            }
        }
        private void HyperLinkFinalizeResults_Click(object sender, RoutedEventArgs e)
        {
            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new YellowstonePathology.Business.Audit.Model.LSETypeIsNotSetAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == false)
            {
                if (this.m_PanelSetOrderLynchSyndromeEvaluation.Final == false)
                {
                    this.m_PanelSetOrderLynchSyndromeEvaluation.Finish(this.m_AccessionOrder);
                }
                else
                {
                    MessageBox.Show("This case cannot be finalized because it is already final.");
                }
            }
            else
            {
                MessageBoxResult messageBosResult = MessageBox.Show("We are unable to finalize this report because: " + auditCollection.Message);
            }
        }
Ejemplo n.º 7
0
        private bool DataIsValid()
        {
            bool result = true;

            /*** this shoulde be moved to the audit namespace *****/
            Business.Validation.ValidationResult accountNoValidation = this.m_AccessionOrder.IsAccountNoValid();
            Business.Validation.ValidationResult mrnValidation = this.m_AccessionOrder.IsMedicalRecordNoValid();

            if (accountNoValidation.IsValid == false)
            {
                MessageBox.Show(accountNoValidation.Message);
                result = false;
            }
            else if (mrnValidation.IsValid == false)
            {
                MessageBox.Show(mrnValidation.Message);
                result = false;
            }
            /********/

            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new YellowstonePathology.Business.Audit.Model.TallmanMedicalRecordAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == true)
            {
                MessageBox.Show(auditCollection.Message);
                result = false;
            }

            return result;
        }
Ejemplo n.º 8
0
        public bool IsOkToContinue()
        {
            bool result = true;

            YellowstonePathology.Business.Audit.Model.AuditCollection auditCollection = new Business.Audit.Model.AuditCollection();
            auditCollection.Add(new Business.Audit.Model.WHPIsRequiredByStandingOrderAudit(this.m_AccessionOrder));
            auditCollection.Add(new Business.Audit.Model.WHPStandingOrderNotSetAudit(this.m_AccessionOrder));
            auditCollection.Add(new Business.Audit.Model.WHPStandingOrderMismatchAudit(this.m_AccessionOrder));
            auditCollection.Run();

            if (auditCollection.ActionRequired == true)
            {
                MessageBoxResult messageBoxResult = MessageBox.Show(auditCollection.Message + " Are you sure you want to continue?", "Continue", MessageBoxButton.YesNo);
                if (messageBoxResult == MessageBoxResult.No)
                {
                    result = false;
                }
            }

            return result;
        }