public BCellClonalityByPCRResult GetResultFromTests(BCellClonalityByPCRTestOrder testOrder)
 {
     BCellClonalityByPCRResult result = new BCellClonalityByPCRResult();
     if (testOrder.BCellFrameWork1.ToUpper().StartsWith("CLONAL") == true ||
         testOrder.BCellFrameWork2.ToUpper().StartsWith("CLONAL") == true ||
         testOrder.BCellFrameWork3.ToUpper().StartsWith("CLONAL") == true)
     {
         result = new BCellClonalityByPCRPositiveResult();
     }
     else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("NOT CLONAL") == true ||
         testOrder.BCellFrameWork2.ToUpper().StartsWith("NOT CLONAL") == true ||
         testOrder.BCellFrameWork3.ToUpper().StartsWith("NOT CLONAL") == true)
     {
         result = new BCellClonalityByPCRNegativeResult();
     }
     else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("INDETERMINATE") == true ||
         testOrder.BCellFrameWork2.ToUpper().StartsWith("INDETERMINATE") == true ||
         testOrder.BCellFrameWork3.ToUpper().StartsWith("INDETERMINATE") == true)
     {
         result = new BCellClonalityByPCRIndeterminateResult();
     }
     return result;
 }
Example #2
0
        public BCellClonalityByPCRResult GetResultFromTests(BCellClonalityByPCRTestOrder testOrder)
        {
            BCellClonalityByPCRResult result = new BCellClonalityByPCRResult();

            if (testOrder.BCellFrameWork1.ToUpper().StartsWith("CLONAL") == true ||
                testOrder.BCellFrameWork2.ToUpper().StartsWith("CLONAL") == true ||
                testOrder.BCellFrameWork3.ToUpper().StartsWith("CLONAL") == true)
            {
                result = new BCellClonalityByPCRPositiveResult();
            }
            else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("NOT CLONAL") == true ||
                     testOrder.BCellFrameWork2.ToUpper().StartsWith("NOT CLONAL") == true ||
                     testOrder.BCellFrameWork3.ToUpper().StartsWith("NOT CLONAL") == true)
            {
                result = new BCellClonalityByPCRNegativeResult();
            }
            else if (testOrder.BCellFrameWork1.ToUpper().StartsWith("INDETERMINATE") == true ||
                     testOrder.BCellFrameWork2.ToUpper().StartsWith("INDETERMINATE") == true ||
                     testOrder.BCellFrameWork3.ToUpper().StartsWith("INDETERMINATE") == true)
            {
                result = new BCellClonalityByPCRIndeterminateResult();
            }
            return(result);
        }