public static CysticFibrosisResultCollection GetAllResults()
 {
     CysticFibrosisResultCollection result = new CysticFibrosisResultCollection();
     result.Add(new CysticFibrosisNotDetectedResult());
     result.Add(new CysticFibrosisDetectedResult());
     result.Add(new CysticFibrosisNullResult());
     return result;
 }
        public static CysticFibrosisResultCollection GetAllResults()
        {
            CysticFibrosisResultCollection result = new CysticFibrosisResultCollection();

            result.Add(new CysticFibrosisNotDetectedResult());
            result.Add(new CysticFibrosisDetectedResult());
            result.Add(new CysticFibrosisNullResult());
            return(result);
        }
Example #3
0
        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);
        }