public CysticFibrosisResultPage(YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisTestOrder panelSetOrder,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
            : base(panelSetOrder, accessionOrder)
        {
            this.m_PanelSetOrder = panelSetOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_PageNavigator = pageNavigator;

            this.m_PageHeaderText = "Cystic Fibrosis Results For: " + this.m_AccessionOrder.PatientDisplayName;
            this.m_ResultCollection = YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResultCollection.GetAllResults();
            this.m_EthnicGroupCollection = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupCollection();
            this.m_CysticFibrosisGeneNames = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisGeneNames();
            this.m_CysticFibrosisTemplateCollection = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisTemplateCollection();

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
Exemplo n.º 2
0
        public CysticFibrosisResultPage(YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisTestOrder panelSetOrder,
                                        YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                        YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                        YellowstonePathology.UI.Navigation.PageNavigator pageNavigator)
        {
            this.m_PanelSetOrder  = panelSetOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_PageNavigator  = pageNavigator;

            this.m_PageHeaderText                   = "Cystic Fibrosis Results For: " + this.m_AccessionOrder.PatientDisplayName;
            this.m_ResultCollection                 = YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisResultCollection.GetAllResults();
            this.m_EthnicGroupCollection            = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisEthnicGroupCollection();
            this.m_CysticFibrosisGeneNames          = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisGeneNames();
            this.m_CysticFibrosisTemplateCollection = new YellowstonePathology.Business.Test.CysticFibrosis.CysticFibrosisTemplateCollection();

            InitializeComponent();

            DataContext = this;
        }
Exemplo n.º 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);
        }