Exemple #1
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);
            }
        }
Exemple #2
0
        private bool BRAFReminder()
        {
            bool result = false;

            if (this.m_LSERuleCollection.Count == 1)
            {
                YellowstonePathology.Business.Test.LynchSyndrome.LSERule lseRule = (YellowstonePathology.Business.Test.LynchSyndrome.LSERule) this.ListViewResults.Items[0];
                if (lseRule.BRAFIsRequired(this.m_AccessionOrder, this.m_PanelSetOrderLynchSyndromeEvaluation) == true)
                {
                    MessageBoxResult messageBoxResult = MessageBox.Show("A Braf is required.  Click Yes to stop and order one or click No to continue?", "Continue!", MessageBoxButton.YesNo);
                    if (messageBoxResult == MessageBoxResult.Yes)
                    {
                        result = true;
                        return(result);
                    }
                }

                if (lseRule.MethIsRequired(this.m_AccessionOrder, this.m_PanelSetOrderLynchSyndromeEvaluation) == true)
                {
                    MessageBoxResult messageBoxResult = MessageBox.Show("A Meth Analysis is required.  Click Yes to stop and order one or click No to continue?", "Continue!", MessageBoxButton.YesNo);
                    if (messageBoxResult == MessageBoxResult.Yes)
                    {
                        result = true;
                    }
                }
            }
            return(result);
        }
Exemple #3
0
 private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e)
 {
     if (this.ListViewResults.Items.Count == 1)
     {
         YellowstonePathology.Business.Test.LynchSyndrome.LSERule lseRule = (YellowstonePathology.Business.Test.LynchSyndrome.LSERule) this.ListViewResults.Items[0];
         YellowstonePathology.Business.Audit.Model.AuditResult    result  = lseRule.IsOkToSetResults(this.m_AccessionOrder, this.m_PanelSetOrderLynchSyndromeEvaluation);
         if (result.Status == Business.Audit.Model.AuditStatusEnum.OK)
         {
             lseRule.SetResults(this.m_AccessionOrder, this.m_PanelSetOrderLynchSyndromeEvaluation);
         }
         else
         {
             MessageBox.Show(result.Message);
         }
     }
     else
     {
         MessageBox.Show("Results can be set as the evaluation is not complete.");
     }
 }
 public void SetSummaryResult(YellowstonePathology.Business.Test.LynchSyndrome.LSERule lSEResult)
 {
 }