示例#1
0
 public static YellowstonePathology.Business.Rules.MethodResult IsOkToFinal(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder brafv600ekTestOrder)
 {
     YellowstonePathology.Business.Rules.MethodResult result = brafv600ekTestOrder.IsOkToFinalize();
     if (result.Success == true)
     {
         YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTest krasStandardReflexTest = new KRASStandardReflex.KRASStandardReflexTest();
         if (accessionOrder.PanelSetOrderCollection.Exists(krasStandardReflexTest.PanelSetId, brafv600ekTestOrder.OrderedOnId, true) == false)
         {
             if (string.IsNullOrEmpty(brafv600ekTestOrder.TumorNucleiPercentage) == true)
             {
                 result.Success = false;
                 result.Message = "This case cannot be finalized because the Tumor Nuclei Percent is not set.";
             }
         }
         else if (string.IsNullOrEmpty(brafv600ekTestOrder.Result) == true)
         {
             result.Success = false;
             result.Message = "We are unable to finalize this case because the result is blank.";
         }
     }
     return result;
 }