public override YellowstonePathology.Business.Rules.MethodResult IsOkToAccept()
 {
     YellowstonePathology.Business.Rules.MethodResult result = new YellowstonePathology.Business.Rules.MethodResult();
     if (this.Final == true)
     {
         result.Success = false;
         result.Message = "The results cannot be accepted because the case is already Final.";
     }
     return result;
 }
示例#2
0
        private void ButtonDailyTaskOrderAddDays_Click(object sender, RoutedEventArgs e)
        {
            StringBuilder message = new StringBuilder();

            YellowstonePathology.Business.Rules.MethodResult result = YellowstonePathology.Business.Task.Model.TaskOrderCollection.AddDailyTaskOrderCytologySlideDisposal(30);
            message.AppendLine(result.Message);

            result = YellowstonePathology.Business.Task.Model.TaskOrderCollection.AddDailyTaskOrderSurgicalSpecimenDisposal(30);
            message.AppendLine(result.Message);

            MessageBox.Show(message.ToString());
        }
示例#3
0
 private void HyperLinkFinalize_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_PanelSetOrder.IsOkToFinalize();
     if (result.Success == true)
     {
         this.m_PanelSetOrder.Finish(this.m_AccessionOrder);
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
 public SaveBeforeNavigationEventArgs(YellowstonePathology.YpiConnect.Client.PleaseWaitDialog pleaseWaitDialog,
     //YellowstonePathology.YpiConnect.Contract.ShipmentSubmitter submitter,
     System.Windows.Controls.Frame navigator,
     System.Windows.Controls.Page pageToNavigateTo,
     YellowstonePathology.Business.Rules.MethodResult methodResult)
 {
     this.m_PleaseWaitDialog = pleaseWaitDialog;
     //this.m_Submitter = submitter;
     this.m_Navigator = navigator;
     this.m_PageToNavigateTo = pageToNavigateTo;
     this.m_MethodResult = methodResult;
 }
示例#5
0
 private void HyperLinkUnaccept_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_Amendment.IsOkToUnaccept();
     if (methodResult.Success == true)
     {
         this.m_Amendment.Unaccept();
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#6
0
 private void HyperLinkUnacceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToUnaccept();
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationByISHResult.UnacceptResults(this.m_PanelSetOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
 private void HyperLinkUnfinalResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToUnfinalize();
     if (methodResult.Success == true)
     {
         this.m_PanelSetOrder.Unfinalize();
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#8
0
 private void HyperLinkOrderBRAFV600EK_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexResult.IsOkToOrderBRAF(this.m_KRASStandardReflexResult);
     if (methodResult.Success == true)
     {
         this.OrderBRAF(this, new EventArgs());
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#9
0
 private void HyperLinkUnacceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_KRASStandardReflexResult.KRASStandardReflexTestOrder.IsOkToUnaccept();
     if (result.Success == true)
     {
         this.m_KRASStandardReflexResult.KRASStandardReflexTestOrder.Unaccept();
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
示例#10
0
 private void HyperLinkAcceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_KRASExon4MutationTestOrder.IsOkToAccept();
     if (result.Success == true)
     {
         this.m_KRASExon4MutationTestOrder.Accept();
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
示例#11
0
 private void HyperLinkUnfinalResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexResult.IsOkToUnFinalize(this.m_KRASStandardReflexResult);
     if (methodResult.Success == true)
     {
         this.m_KRASStandardReflexResult.UnFinalizeResults(this.m_KRASStandardReflexResult.KRASStandardReflexTestOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
 private void HyperLinkUnacceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_ReportOrderTrichomonas.IsOkToUnaccept();
     if (result.Success == true)
     {
         this.m_ReportOrderTrichomonas.Unaccept();
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
示例#13
0
 private void HyperLinkAcceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_PanelOrderAcidWash.IsOkToAccept();
     if (result.Success == true)
     {
         this.m_PanelOrderAcidWash.AcceptResults();
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
示例#14
0
 private void HyperLinkUnacceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_PanelSetOrderLynchSyndromeIHC.IsOkToUnaccept();
     if (result.Success == true)
     {
         this.m_PanelSetOrderLynchSyndromeIHC.Unaccept();
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
 private void HyperLinkAcceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRResult.IsOkToAccept(this.m_HPV1618ByPCRTestOrder);
     if (methodResult.Success == true)
     {
         this.m_HPV1618ByPCRTestOrder.Accept();
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#16
0
 public void ButtonTechFinal_Click(object sender, RoutedEventArgs args)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_FlowUI.IsOkToMedTechFinal();
     if (methodResult.Success == true)
     {
         this.m_FlowUI.MedTechFinal();
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#17
0
        public void Send(YellowstonePathology.Business.Rules.MethodResult result)
        {
            this.m_Document = new XElement("HL7Message");
            this.m_ObxCount = 1;

            MTDoh  client      = new MTDoh();
            OruR01 messageType = new OruR01();

            MTDohMshView msh = new MTDohMshView(client, messageType);

            msh.ToXml(this.m_Document);

            MTDohPidView pid = new MTDohPidView(this.m_AccessionOrder.PatientId, this.m_AccessionOrder.PLastName, this.m_AccessionOrder.PFirstName, this.m_AccessionOrder.PBirthdate,
                                                this.m_AccessionOrder.PSex, this.m_AccessionOrder.SvhAccount, this.m_AccessionOrder.PSSN, this.m_AccessionOrder.PAddress1, this.m_AccessionOrder.PAddress2,
                                                this.m_AccessionOrder.PCity, this.m_AccessionOrder.PState, this.m_AccessionOrder.PZipCode);

            pid.ToXml(this.m_Document);

            MTDohOrcView orc = new MTDohOrcView(this.m_AccessionOrder.ExternalOrderId, this.m_OrderingPhysician, this.m_PanelSetOrder.ReportNo, OrderStatusEnum.Complete, this.m_AccessionOrder.SystemInitiatingOrder);

            orc.ToXml(this.m_Document);

            YellowstonePathology.Business.Test.PanelSetOrder panelSetOrder = this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_PanelSetOrder.ReportNo);
            ResultStatus resultStatus = ResultStatusEnum.Final;

            YellowstonePathology.Business.Amendment.Model.AmendmentCollection amendmentCollection = this.m_AccessionOrder.AmendmentCollection.GetAmendmentsForReport(panelSetOrder.ReportNo);
            if (amendmentCollection.Count != 0)
            {
                resultStatus = ResultStatusEnum.Correction;
            }
            MTDohObrView obr = new MTDohObrView(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_OrderingPhysician);

            obr.ToXml(this.m_Document);

            MTDohObxView obx = new MTDohObxView(this.m_AccessionOrder, this.m_PanelSetOrder.ReportNo, this.m_ObxCount);

            obx.ToXml(this.m_Document);
            this.m_ObxCount = obx.ObxCount;

            YellowstonePathology.Business.OrderIdParser orderIdParser = new YellowstonePathology.Business.OrderIdParser(this.m_PanelSetOrder.ReportNo);
            string serverFileName = YellowstonePathology.Document.CaseDocumentPath.GetPath(orderIdParser) + "\\" + this.m_PanelSetOrder.ReportNo + ".Mirth.xml";

            string mirthFileName = mirthFileName = @"\\YPIIInterface1\ChannelData\Outgoing\1004\" + this.m_PanelSetOrder.ReportNo + ".Mirth.xml";

            System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(serverFileName, false, new ASCIIEncoding());
            this.m_Document.Save(streamWriter);
            streamWriter.Close();
            System.IO.File.Copy(serverFileName, mirthFileName, true);

            result.Success = true;
            result.Message = "An HL7 message was created and sent to the interface.";
        }
示例#18
0
 public override YellowstonePathology.Business.Rules.MethodResult IsOkToAccept()
 {
     YellowstonePathology.Business.Rules.MethodResult result = base.IsOkToAccept();
     if (result.Success == true)
     {
         if (string.IsNullOrEmpty(this.StainPercent) == true)
         {
             result.Success = false;
             result.Message = "The results cannot be accepted because the stain percent is not set.";
         }
     }
     return(result);
 }
示例#19
0
 private void HyperLinkResetAmendmentText_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_Amendment.IsOkToResetText(this.m_AccessionOrder);
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationByISHTestOrder her2AmplificationByISHTestOrder = (Business.Test.HER2AmplificationByISH.HER2AmplificationByISHTestOrder) this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_Amendment.ReferenceReportNo);
         this.m_Amendment.Text = YellowstonePathology.Business.Test.HER2AmplificationByISH.HER2AmplificationByISHSystemGeneratedAmendmentText.AmendmentText(her2AmplificationByISHTestOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
 public override Business.Rules.MethodResult IsOkToFinalize()
 {
     YellowstonePathology.Business.Rules.MethodResult result = base.IsOkToFinalize();
     if (result.Success == true)
     {
         if (string.IsNullOrEmpty(this.m_TumorNucleiPercentage) == true)
         {
             result.Success = false;
             result.Message = "The results cannot be finalized because the Tumor Nuclei Percentage has no value.";
         }
     }
     return(result);
 }
示例#21
0
 private void HyperLinkInsufficientTissue_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingResult.IsOkToSetResults(this.m_TestOrder);
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingInsufficientTissueResult result = new YellowstonePathology.Business.Test.ReviewForAdditionalTesting.ReviewForAdditionalTestingInsufficientTissueResult();
         result.SetResults(this.m_TestOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#22
0
 private void HyperLinkNotDetected_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_HPV1618SolidTumorTestOrder.IsOkToSetResult();
     if (methodResult.Success == true)
     {
         this.m_HPV1618SolidTumorTestOrder.SetNotDetectedResult();
         this.NotifyPropertyChanged("PanelSetOrder");
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
 private void HyperLinkIndeterminate_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRResult.IsOkToSetResult(this.m_HPV1618ByPCRTestOrder);
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618IndeterminateResult result = new Business.Test.HPV1618ByPCR.HPV1618IndeterminateResult();
         result.SetResult(this.m_HPV1618ByPCRTestOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#24
0
 public override YellowstonePathology.Business.Rules.MethodResult IsOkToAccept()
 {
     YellowstonePathology.Business.Rules.MethodResult result = base.IsOkToAccept();
     if (result.Success == true)
     {
         if (this.m_ResultCode == null)
         {
             result.Success = false;
             result.Message = "The results cannot be accepted until they are set.";
         }
     }
     return(result);
 }
 private void HyperLinkAcceptResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToAccept();
     if (methodResult.Success == true)
     {
         this.m_PanelSetOrder.Accept();
         this.NotifyPropertyChanged("");
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#26
0
 public override YellowstonePathology.Business.Rules.MethodResult IsOkToAccept()
 {
     YellowstonePathology.Business.Rules.MethodResult result = base.IsOkToAccept();
     if (result.Success == true)
     {
         if (string.IsNullOrEmpty(this.m_ResultCode) == true)
         {
             result.Success = false;
             result.Message = "The result must be set before the results can be accepted.";
         }
     }
     return(result);
 }
示例#27
0
        public static YellowstonePathology.Business.Rules.MethodResult IsOkToAccept(YellowstonePathology.Business.Test.HPV1618ByPCR.HPV1618ByPCRTestOrder panelSetOrder)
        {
            YellowstonePathology.Business.Rules.MethodResult result = panelSetOrder.IsOkToAccept();

            if (result.Success == true)
            {
                if (string.IsNullOrEmpty(panelSetOrder.ResultCode) == true)
                {
                    result.Success = false;
                    result.Message = "The results cannot be accepted because there is no result.";
                }
            }
            return(result);
        }
 private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToSetResults();
     //if (methodResult.Success == true)
     //{
     YellowstonePathology.Business.Test.ErPrSemiQuantitative.ErPrSemiQuantitativeResultCollection resultCollection = new YellowstonePathology.Business.Test.ErPrSemiQuantitative.ErPrSemiQuantitativeResultCollection();
     YellowstonePathology.Business.Test.ErPrSemiQuantitative.ErPrSemiQuantitativeResult           result           = (YellowstonePathology.Business.Test.ErPrSemiQuantitative.ErPrSemiQuantitativeResult)resultCollection.GetResult(this.m_PanelSetOrder.ErResult, this.m_PanelSetOrder.PrResult);
     result.SetResults(this.m_PanelSetOrder, this.m_SpecimenOrder);
     //}
     //else
     //{
     //	MessageBox.Show(methodResult.Message);
     //}
 }
示例#29
0
        public void CanSend(YellowstonePathology.Business.Rules.MethodResult result)
        {
            string message = "Unable to send the message due to the following: ";

            if (string.IsNullOrEmpty(this.m_OrderingPhysician.Npi) == true)
            {
                message       += "The provider NPI is not set.";
                result.Success = false;
            }
            if (result.Success == false)
            {
                result.Message = message;
            }
        }
示例#30
0
 private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToSetResults();
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.PNH.PNHResult pnhResult = YellowstonePathology.Business.Test.PNH.PNHResultCollection.GetResult(this.m_PanelSetOrder, this.m_AccessionOrder);
         pnhResult.SetResults(this.m_PanelSetOrder);
         this.NotifyPropertyChanged(string.Empty);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
 private void HyperLinkUnfinalResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult methodResult = this.m_PanelSetOrder.IsOkToUnfinalize();
     if (methodResult.Success == true)
     {
         YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResultCollection resultCollection = YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResultCollection.GetAll();
         YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResult           result           = resultCollection.GetResult(this.m_PanelSetOrder.ResultCode, this.m_PanelSetOrder.Indication);
         result.UnFinalizeResults(this.m_PanelSetOrder);
     }
     else
     {
         MessageBox.Show(methodResult.Message);
     }
 }
示例#32
0
 private void HyperLinkSetResults_Click(object sender, RoutedEventArgs e)
 {
     YellowstonePathology.Business.Rules.MethodResult result = this.m_RASRAFPanelTestOrder.IsOkToSet();
     if (result.Success == true)
     {
         YellowstonePathology.Business.Test.RASRAFPanel.ResultCollection  resultCollection  = new Business.Test.RASRAFPanel.ResultCollection(this.m_RASRAFPanelTestOrder);
         YellowstonePathology.Business.Test.RASRAFPanel.RASRAFPanelResult rasrafPanelResult = resultCollection.GetResult();
         rasrafPanelResult.SetResults(this.m_RASRAFPanelTestOrder, resultCollection);
     }
     else
     {
         MessageBox.Show(result.Message);
     }
 }
 public override YellowstonePathology.Business.Rules.MethodResult IsOkToFinalize()
 {
     YellowstonePathology.Business.Rules.MethodResult result = new YellowstonePathology.Business.Rules.MethodResult();
     if (this.Final == true)
     {
         result.Success = false;
         result.Message = "This case cannot be finalized because it is already finalized.";
     }
     else if (string.IsNullOrEmpty(this.Result) == true)
     {
         result.Success = false;
         result.Message = "This case cannot be finalized because the results have not been set.";
     }
     return result;
 }
 public void Execute(YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, YellowstonePathology.Business.Rules.MethodResult methodResult)
 {
     this.m_ClientOrder = clientOrder;
     this.m_MethodResult = methodResult;
     this.m_Rule.Execute();
 }
        public YellowstonePathology.Business.Rules.MethodResult IsOkToSetResults()
        {
            YellowstonePathology.Business.Rules.MethodResult result = new YellowstonePathology.Business.Rules.MethodResult();
            YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResultCollection cysticFibrosisResultCollection = CysticFibrosisResultCollection.GetAllResults();
            YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResult cysticFibrosisResult = cysticFibrosisResultCollection.GetResult(this.m_ResultCode);

            YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupCollection cysticFibrosisEthnicGroupCollection = new CysticFibrosisEthnicGroupCollection();
            YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroup cysticFibrosisEthnicGroup = cysticFibrosisEthnicGroupCollection.GetCysticFibrosisEthnicGroup(this.m_EthnicGroupId);

            if (this.Accepted == true)
            {
                result.Success = false;
                result.Message = "The results cannot be set because they have already been accepted";
            }
            else if (cysticFibrosisResult is YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisNullResult)
            {
                result.Success = false;
                result.Message = "The results cannot be set because the result has not been selected.";
            }
            else if(cysticFibrosisEthnicGroup is YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupNull)
            {
                result.Success = false;
                result.Message = "The results cannot be set because the ethnic group has not been selected.";
            }
            else if (this.DoesResultReflectFindings() == false)
            {
                result.Success = false;
                result.Message = "The results cannot be accepted because the individual mutation results are not consistent with the selected result.";
            }

            return result;
        }
示例#36
0
 public YellowstonePathology.Business.Rules.MethodResult IsOkToSetResults()
 {
     YellowstonePathology.Business.Rules.MethodResult result = new YellowstonePathology.Business.Rules.MethodResult();
     if(string.IsNullOrEmpty(this.m_ResultCode) == true)
     {
         result.Success = false;
         result.Message = "A Result must be selected before the result can be set.";
     }
     else if(this.m_Accepted == true)
     {
         result.Success = false;
         result.Message = "Results may not be set because the results already have been accepted.";
     }
     return result;
 }
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToFinal(KRASStandardReflexResult krasStandardReflexResult)
 {
     YellowstonePathology.Business.Rules.MethodResult result = new YellowstonePathology.Business.Rules.MethodResult();
     YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings ypi = new YellowstonePathology.Business.Facility.Model.YellowstonePathologyInstituteBillings();
     if (krasStandardReflexResult.KRASStandardReflexTestOrder.Final == false)
     {
         if (krasStandardReflexResult.KRASStandardTestOrder.Final == false)
         {
                 result.Success = false;
                 result.Message = "This case cannot be finalized because the KRAS Standard Test Order is not final.";
         }
         else if (krasStandardReflexResult.BRAFV600EKTestOrder != null && krasStandardReflexResult.BRAFV600EKTestOrder.Final == false)
         {
             result.Success = false;
             result.Message = "This case cannot be finalized because it the BRAF V600E/K Test Order is not final.";
         }
         else if (krasStandardReflexResult.KRASStandardReflexTestOrder.TechnicalComponentBillingFacilityId == ypi.FacilityId)
         {
             if (string.IsNullOrEmpty(krasStandardReflexResult.KRASStandardReflexTestOrder.TumorNucleiPercentage) == true)
             {
                 result.Success = false;
                 result.Message = "This case cannot be finalized because the Tumor Nuclei Percent is not set.";
             }
         }
     }
     else
     {
         result.Success = false;
         result.Message = "This case cannot be finalized because it is already finalized.";
     }
     return result;
 }
        public YellowstonePathology.Business.Rules.MethodResult IsOkToSet()
        {
            YellowstonePathology.Business.Rules.MethodResult methodResult = new YellowstonePathology.Business.Rules.MethodResult();
            if(this.Accepted == true)
            {
                methodResult.Success = false;
                methodResult.Message = "Unable to set results as the results have already been accepted.";
            }

            return methodResult;
        }
 public YellowstonePathology.Business.Rules.MethodResult IsOkToSetResults()
 {
     YellowstonePathology.Business.Rules.MethodResult result = new YellowstonePathology.Business.Rules.MethodResult();
     if (this.m_Accepted == true)
     {
         result.Success = false;
         result.Message = "Results may not be set because the results already have been accepted.";
     }
     return result;
 }