Exemplo n.º 1
0
 /**************************************************************************************************/
 private void theBreastImagingHxLoaded(HraListLoadedEventArgs e)
 {
     fastDataListView1.AddObjects(proband.breastImagingHx);
     if (InitialDx != null)
     {
         if (proband.breastImagingHx.Contains(InitialDx))
         {
             fastDataListView1.SelectObject(InitialDx);
         }
     }
     else
     {
         if (fastDataListView1.SelectedObject == null)
         {
             if (fastDataListView1.Items.Count > 0)
             {
                 fastDataListView1.SelectedIndex = 0;
             }
         }
     }
 }
Exemplo n.º 2
0
        /*********************************************************************************/
        private void TaskListLoaded(HraListLoadedEventArgs e)
        {
            Patient p = SessionManager.Instance.GetActivePatient();

            if (p != null)
            {
                string assignedBy = "";
                if (SessionManager.Instance.ActiveUser != null)
                {
                    if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
                    {
                        assignedBy = SessionManager.Instance.ActiveUser.ToString();
                    }
                }
                Task t = new Task(p, "Task", "Pending", assignedBy, DateTime.Now);
                HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
                args.Persist = true;
                p.Tasks.AddToList(t, args);
                TaskView tv = new TaskView(t);
                tv.ShowDialog();
            }
        }
Exemplo n.º 3
0
        /**************************************************************************************************/
        private void UsersReadyForParagraphEditor(HraListLoadedEventArgs e)
        {
            User u = (User)SessionManager.Instance.MetaData.Users
                     .FirstOrDefault(l => ((User)l).userLogin == userLogin);

            this.Hide();

            if (u != null)
            {
                SessionManager.Instance.ActiveUser = u;
                AdminMainForm amf = new AdminMainForm();
                amf.ShowDialog();
            }
            else
            {
                MessageBox.Show(
                    "User " + userLogin + " is not in the riskApps database.",
                    "Unable to login.");
            }

            this.Close();
        }
Exemplo n.º 4
0
        /**************************************************************************************************/
        private void ListLoaded(HraListLoadedEventArgs e)
        {
            //objectListView1.SetObjects(templates.Where(g => string.IsNullOrEmpty(((DocumentTemplate)g).htmlPath) == false));

            if (string.IsNullOrEmpty(routine) == false)
            {
                foreach (DocumentTemplate dt in templates)
                {
                    if (supported.Contains(dt.routineName))
                    {
                        if (string.Compare(routine, dt.routineName, true) == 0 || string.Compare(dt.routineName, "surveySummary", true) == 0)
                        {
                            objectListView2.AddObject(dt);
                        }
                        else
                        {
                            objectListView1.AddObject(dt);
                        }
                    }
                }
            }
            else
            {
                foreach (DocumentTemplate dt in templates)
                {
                    if (dt.suggested == 1 || string.Compare(dt.routineName, "surveySummary", true) == 0)
                    {
                        objectListView2.AddObject(dt);
                    }
                    else
                    {
                        if (string.IsNullOrEmpty(dt.htmlPath) == false)
                        {
                            objectListView1.AddObject(dt);
                        }
                    }
                }
            }
        }
Exemplo n.º 5
0
        private void UserGroupsLoaded(HraListLoadedEventArgs e)
        {
            comboBox2.Items.Clear();
            comboBox2.Items.Add(SessionManager.Instance.ActiveUser.ToString());

            int numadded = 0;

            foreach (UserGroupMembership group in SessionManager.Instance.MetaData.UserGroups)
            {
                if (SessionManager.Instance.ActiveUser.userLogin == group.userLogin)
                {
                    numadded++;
                    comboBox2.Items.Add(group.userGroup);
                }
            }
            if (numadded > 1)
            {
                comboBox2.Items.Add("All my groups");
            }
            comboBox2.Text = "Entire Clinic";
            comboBox2.Items.Add("Entire Clinic");
        }
Exemplo n.º 6
0
        /**************************************************************************************************/

        private void FollowupListLoaded(HraListLoadedEventArgs e)
        {
            //if (task.FollowUps.Count == 0)
            //{
            //    if (task.Task_Type == "Patient Followup" || task.Task_Type == "To Do")
            //    {
            //        PtFollowup newFollowup = new PtFollowup(task);
            //        HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            //        args.Persist = false;
            //        task.FollowUps.AddToList(newFollowup, args);
            //    }
            //}
            //else
            //{
            foreach (PtFollowup theFollowup in task.FollowUps.OrderBy(f => ((PtFollowup)f).Date))
            {
                PtFollowupRow ptr = new PtFollowupRow(theFollowup);
                ptr.SetScrollState(false);
                ptr.Width = FollowupFlowPanel.Width - 30;
                FollowupFlowPanel.Controls.Add(ptr);
            }
            //}
        }
Exemplo n.º 7
0
 private void GtLoaded(HraListLoadedEventArgs e)
 {
     lock (e.sender)
     {
         foreach (GeneticTest gt in (GeneticTestList)e.sender)
         {
             GeniticTestStatusContainer gtsc = new GeniticTestStatusContainer();
             gtsc.Relative = gt.owningPMH.RelativeOwningPMH.relationship.Replace("Self", "Patient");
             gtsc.Panel    = gt.panelName;
             gtsc.Status   = gt.status;
             gtsc.owner    = gt.owningPMH.RelativeOwningPMH;
             if (string.IsNullOrEmpty(gt.GeneticTest_testDay))
             {
                 gtsc.Date = (gt.GeneticTest_testMonth + "/" + gt.GeneticTest_testYear).Trim(trimChars);
             }
             else
             {
                 gtsc.Date = (gt.GeneticTest_testMonth + "/" + gt.GeneticTest_testDay + "/" + gt.GeneticTest_testYear).Trim(trimChars);
             }
             AddGtObject(gtsc);
         }
     }
 }
Exemplo n.º 8
0
 /**************************************************************************************************/
 private void OrdersListLoaded(HraListLoadedEventArgs e)
 {
     FillControls();
     setNoOrdersLabels();
 }
Exemplo n.º 9
0
        /**************************************************************************************************/
        private void CCRATCancerRiskLoaded(HraListLoadedEventArgs list_e)
        {
            String colonNA = "";

            if (proband.HasColonCancer())
            {
                colonNA = "N/A because the patient has Colon cancer";
            }

            if (colonNA.Length > 0)
            {
                CCRATchart.Visible        = false;
                tableLayoutPanel5.Visible = false;
                CCRATTextBox.Visible      = false;
                CCRATNALabel.Visible      = true;
                CCRATNALabel.Text         = colonNA;
                return;
            }
            else
            {
                CCRATchart.Visible        = true;
                tableLayoutPanel5.Visible = true;
                CCRATTextBox.Visible      = true;
                CCRATNALabel.Visible      = false;
            }


            CCRATTextBox.Text    = "";
            CCRATTextBox.Visible = false;

            CCRATchart.SeriesCollection.Clear();
            CCRAT_series.Elements.Clear();
            CCRAT_series.Name = "CCRAT Colon Cancer Risk";

            int proband_age = -1;

            int.TryParse(proband.age, out proband_age);


            Element cur = new Element();

            cur.XValue = proband_age;
            cur.YValue = 0;
            CCRAT_series.Elements.Add(cur);

            foreach (CCRATRiskByAge score in proband.RP.CCRATModel)
            {
                Element e = new Element();
                e.XValue = score.CCRATRiskByAge_age;
                e.YValue = score.CCRATRiskByAge_ColonCaRisk;
                CCRAT_series.Elements.Add(e);
            }

            CCRAT_series.DefaultElement.Color = Color.Black;

            CCRATFiveYearPatientLabel.Text = NullDoubleToRoundedString(proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_FiveYear_CRC);
            CCRATLifetimePatientLabel.Text = NullDoubleToRoundedString(proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_Lifetime_CRC);

            CCRATTextBox.Text += proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_MESSAGES + Environment.NewLine;
            CCRATTextBox.Text += proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_NAERRORS;
            //CCRATERRORS.Text = proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_NAERRORS;
            //CCRATMSGS.Text = proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_MESSAGES;

            if (string.IsNullOrEmpty(proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_MESSAGES) == false)
            {
                CCRATTextBox.Visible = true;
            }

            if (string.IsNullOrEmpty(proband.RP.CCRATModel.Details.CCRATDetails_CCRAT_NAERRORS) == false)
            {
                CCRATTextBox.Visible = true;
                CCRATFiveYearPatientLabel.Visible = false;
                CCRATLifetimePatientLabel.Visible = false;
                CCRATchart.Visible = false;
            }
            else
            {
                ColonCaRisk_series.DefaultElement.Color = Color.Black;
                CCRATchart.SeriesCollection.Add(CCRAT_series);
                CCRATchart.RefreshChart();
            }
        }
Exemplo n.º 10
0
        /**************************************************************************************************/
        private void UsersListLoaded(HraListLoadedEventArgs e)
        {
            //don't show and ask for login + password unless not using NT Auth or NT Auth failed
            groupBox1.Visible = false;

            WindowsPrincipal wp      = new WindowsPrincipal(WindowsIdentity.GetCurrent());
            string           strTemp = wp.Identity.Name;
            int intPos = strTemp.IndexOf("\\", 0);

            ntUser = strTemp.Substring(intPos + 1);

            usernameTextBox.Text = ntUser;

            usernameTextBox.Focus();
            usernameTextBox.SelectAll();
            bool userInList = users.IsUserInList(usernameTextBox.Text);

            if (UseNtAuthentication && Configurator.useNTAuthentication() && userInList)
            {
                roleID   = RiskAppCore.User.fetchUserRoleID(usernameTextBox.Text);
                roleName = RiskAppCore.User.fetchUserRoleName(usernameTextBox.Text);

                SessionManager.Instance.ActiveUser = users.GetUser(usernameTextBox.Text);
                InitUserGUIPrefs(SessionManager.Instance.ActiveUser);
                SessionManager.Instance.ActiveUser.UserClinicList.user_login = SessionManager.Instance.ActiveUser.userLogin;
                SessionManager.Instance.ActiveUser.UserClinicList.AddHandlersWithLoad(null, UserClinicListLoaded, null);

                HraObject.AuditUserLogin(ntUser);

                stopWatch.Stop();
                // Get the elapsed time as a TimeSpan value.
                TimeSpan ts = stopWatch.Elapsed;
                if (ts.TotalSeconds < requiredSplashTime)
                {
                    progressBar1.Style = ProgressBarStyle.Blocks;
                    progressBar1.Value = progressBar1.Maximum;
                    progressBar1.Refresh();

                    for (int i = 1; i <= 50; i++)
                    {
                        Application.DoEvents();
                        Thread.Sleep((int)(20 * (requiredSplashTime - ts.TotalSeconds)));
                    }
                }
            }
            else
            {
                groupBox1.Visible    = true;
                progressBar1.Visible = false;
                label12.Visible      = false;
                foreach (User u in users)
                {
                    if (u.userLogin.Equals(ntUser))
                    {
                        usernameTextBox.Tag  = u;
                        usernameTextBox.Text = u.userLogin;
                        break;
                    }
                }

                while (this.Height < 525)
                {
                    this.Height = this.Height + 5;
                    Application.DoEvents();
                }
            }
        }
Exemplo n.º 11
0
 private void TaskListLoaded(HraListLoadedEventArgs e)
 {
 }
Exemplo n.º 12
0
 /**************************************************************************************************/
 private void FHLoaded(HraListLoadedEventArgs e)
 {
 }
Exemplo n.º 13
0
 /**************************************************************************************************/
 private void UserClinicListLoaded(HraListLoadedEventArgs e)
 {
     DialogResult = DialogResult.OK;
 }
Exemplo n.º 14
0
 /**************************************************************************************************/
 private void ClinicalObservationListLoaded(HraListLoadedEventArgs e)
 {
 }
Exemplo n.º 15
0
 /**************************************************************************************************/
 private void theTransvaginalImagingHxLoaded(HraListLoadedEventArgs e)
 {
     FillTvsControls();
     CheckForFullyLoaded();
 }
Exemplo n.º 16
0
 private void DiseasesLoaded(HraListLoadedEventArgs e)
 {
     this.setupGrouping();
     this.setupDiseases();
 }
Exemplo n.º 17
0
        /**************************************************************************************************/

        private void TaskListLoaded(HraListLoadedEventArgs e)
        {
            FillControls();
        }
Exemplo n.º 18
0
 private void loadFinished(HraListLoadedEventArgs e)
 {
     FillControls();
 }
Exemplo n.º 19
0
        /**************************************************************************************************/
        private void theBreastImagingHxLoaded(HraListLoadedEventArgs e)
        {
            FillBreastImagingControls();

            CheckForFullyLoaded();
        }
Exemplo n.º 20
0
 /**************************************************************************************************/
 private void theLabsLoaded(HraListLoadedEventArgs e)
 {
     FillLabControls();
     CheckForFullyLoaded();
 }
Exemplo n.º 21
0
        private void MMRproCancerRiskLoaded(HraListLoadedEventArgs list_e)
        {
            if (this.InvokeRequired)
            {
                MMRproCancerRiskLoadedCallback rmc = new MMRproCancerRiskLoadedCallback(MMRproCancerRiskLoaded);
                object[] args = new object[1];
                args[0] = list_e;
                this.Invoke(rmc, args);
            }
            else
            {
                String endoNA = "";
                if (proband.HasUterineCancer())
                {
                    endoNA = "N/A because the patient has Endometrial cancer";
                }
                if (proband.gender == "Male")
                {
                    endoNA = "N/A because the patient is male";
                }


                if (endoNA.Length > 0)
                {
                    chart2.Visible             = false;
                    tableLayoutPanel2.Visible  = false;
                    label26.Visible            = false;
                    comboBox4.Visible          = false;
                    endometrialNALabel.Visible = true;
                    endometrialNALabel.Text    = endoNA;
                }
                else
                {
                    chart2.Visible             = true;
                    tableLayoutPanel2.Visible  = true;
                    label26.Visible            = true;
                    comboBox4.Visible          = true;
                    endometrialNALabel.Visible = false;
                }


                String colonNA = "";
                if (proband.HasColonCancer())
                {
                    colonNA = "N/A because the patient has Colon cancer";
                }

                if (colonNA.Length > 0)
                {
                    chart1.Visible            = false;
                    tableLayoutPanel1.Visible = false;
                    label1.Visible            = false;
                    comboBox3.Visible         = false;
                    colonNALabel.Visible      = true;
                    colonNALabel.Text         = colonNA;
                }
                else
                {
                    chart1.Visible            = true;
                    tableLayoutPanel1.Visible = true;
                    label1.Visible            = true;
                    comboBox3.Visible         = true;
                    colonNALabel.Visible      = false;
                }



                chart1.SeriesCollection.Clear();
                chart2.SeriesCollection.Clear();

                ColonCaRisk_series.Elements.Clear();
                ColonCaRiskWithMLH1_series.Elements.Clear();
                ColonCaRiskWithMSH2_series.Elements.Clear();
                ColonCaRiskWithMSH6_series.Elements.Clear();
                ColonCaRiskNoMut_series.Elements.Clear();

                EndometrialCaRisk_series.Elements.Clear();
                EndometrialCaRiskWithMLH1_series.Elements.Clear();
                EndometrialCaRiskWithMSH2_series.Elements.Clear();
                EndometrialCaRiskWithMSH6_series.Elements.Clear();
                EndometrialCaRiskNoMut_series.Elements.Clear();


                ColonCaRisk_series.Name         = "MMRPRO Colon Cancer Risk";
                ColonCaRiskWithMLH1_series.Name = "MMRPRO Colon Cancer Risk w/ MLH1 Mutation";
                ColonCaRiskWithMSH2_series.Name = "MMRPRO Colon Cancer Risk w/ MSH2 Mutation";
                ColonCaRiskWithMSH6_series.Name = "MMRPRO Colon Cancer Risk w/ MSH6 Mutation";
                ColonCaRiskNoMut_series.Name    = "Baseline Colon Cancer Risk w/ No Mutation";

                /*****************************************/

                EndometrialCaRisk_series.Name         = "MMRPRO Endometrial Cancer Risk";
                EndometrialCaRiskWithMLH1_series.Name = "MMRPRO Endometrial Cancer Risk w/ MLH1 Mutation";
                EndometrialCaRiskWithMSH2_series.Name = "MMRPRO Endometrial Cancer Risk w/ MSH2 Mutation";
                EndometrialCaRiskWithMSH6_series.Name = "MMRPRO Endometrial Cancer Risk w/ MSH6 Mutation";
                EndometrialCaRiskNoMut_series.Name    = "Baseline Endometrial Cancer Risk w/ No Mutation";

                int proband_age = -1;
                int.TryParse(proband.age, out proband_age);
                Element origin = new Element();
                origin.XValue = proband_age;
                origin.YValue = 0;

                ColonCaRisk_series.Elements.Add(origin);
                ColonCaRiskWithMLH1_series.Elements.Add(origin);
                ColonCaRiskWithMSH2_series.Elements.Add(origin);
                ColonCaRiskWithMSH6_series.Elements.Add(origin);
                ColonCaRiskNoMut_series.Elements.Add(origin);

                EndometrialCaRisk_series.Elements.Add(origin);
                EndometrialCaRiskWithMLH1_series.Elements.Add(origin);
                EndometrialCaRiskWithMSH2_series.Elements.Add(origin);
                EndometrialCaRiskWithMSH6_series.Elements.Add(origin);
                EndometrialCaRiskNoMut_series.Elements.Add(origin);

                int current_age = 0;
                foreach (MMRproCancerRiskByAge score in proband.RP.MmrproCancerRiskList)
                {
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_ColonCaRisk > 0)
                    {
                        Element e = new Element();
                        e.XValue = score.MMRproCancerRiskByAge_age;
                        e.YValue = score.MMRproCancerRiskByAge_ColonCaRisk;
                        ColonCaRisk_series.Elements.Add(e);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_ColonCaRiskWithMLH1 > 0)
                    {
                        Element e2 = new Element();
                        e2.XValue = score.MMRproCancerRiskByAge_age;
                        e2.YValue = score.MMRproCancerRiskByAge_ColonCaRiskWithMLH1;
                        ColonCaRiskWithMLH1_series.Elements.Add(e2);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_ColonCaRiskWithMSH2 > 0)
                    {
                        Element e3 = new Element();
                        e3.XValue = score.MMRproCancerRiskByAge_age;
                        e3.YValue = score.MMRproCancerRiskByAge_ColonCaRiskWithMSH2;
                        ColonCaRiskWithMSH2_series.Elements.Add(e3);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_ColonCaRiskWithMSH6 > 0)
                    {
                        Element e4 = new Element();
                        e4.XValue = score.MMRproCancerRiskByAge_age;
                        e4.YValue = score.MMRproCancerRiskByAge_ColonCaRiskWithMSH6;
                        ColonCaRiskWithMSH6_series.Elements.Add(e4);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_ColonCaRiskNoMut > 0)
                    {
                        Element e5 = new Element();
                        e5.XValue = score.MMRproCancerRiskByAge_age;
                        e5.YValue = score.MMRproCancerRiskByAge_ColonCaRiskNoMut;
                        ColonCaRiskNoMut_series.Elements.Add(e5);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_EndometrialCaRisk > 0)
                    {
                        Element e7 = new Element();
                        e7.XValue = score.MMRproCancerRiskByAge_age;
                        e7.YValue = score.MMRproCancerRiskByAge_EndometrialCaRisk;
                        EndometrialCaRisk_series.Elements.Add(e7);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_EndometrialCaRiskWithMLH1 > 0)
                    {
                        Element e8 = new Element();
                        e8.XValue = score.MMRproCancerRiskByAge_age;
                        e8.YValue = score.MMRproCancerRiskByAge_EndometrialCaRiskWithMLH1;
                        EndometrialCaRiskWithMLH1_series.Elements.Add(e8);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH2 > 0)
                    {
                        Element e9 = new Element();
                        e9.XValue = score.MMRproCancerRiskByAge_age;
                        e9.YValue = score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH2;
                        EndometrialCaRiskWithMSH2_series.Elements.Add(e9);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH6 > 0)
                    {
                        Element e10 = new Element();
                        e10.XValue = score.MMRproCancerRiskByAge_age;
                        e10.YValue = score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH6;
                        EndometrialCaRiskWithMSH6_series.Elements.Add(e10);
                    }
                    if (score.MMRproCancerRiskByAge_age > proband_age && score.MMRproCancerRiskByAge_EndometrialCaRiskNoMut > 0)
                    {
                        Element e11 = new Element();
                        e11.XValue = score.MMRproCancerRiskByAge_age;
                        e11.YValue = score.MMRproCancerRiskByAge_EndometrialCaRiskNoMut;
                        EndometrialCaRiskNoMut_series.Elements.Add(e11);
                    }
                    if (proband_age > 0)
                    {
                        if (score.MMRproCancerRiskByAge_age == proband_age + 5)
                        {
                            MLH1PosFiveYearColon = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskWithMLH1);
                            MSH2PosFiveYearColon = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskWithMSH2);
                            MSH6PosFiveYearColon = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskWithMSH6);

                            MLH1PosFiveYearEndo = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskWithMLH1);
                            MSH2PosFiveYearEndo = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH2);
                            MSH6PosFiveYearEndo = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH6);

                            label13.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskNoMut);
                            label53.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRisk);

                            label11.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRisk);
                            label56.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskNoMut);
                        }
                    }
                    if (score.MMRproCancerRiskByAge_age > current_age)
                    {
                        MLH1PosLifetimeYearColon = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskWithMLH1);
                        MSH2PosLifetimeYearColon = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskWithMSH2);
                        MSH6PosLifetimeYearColon = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskWithMSH6);

                        MLH1PosLifetimeYearEndo = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskWithMLH1);
                        MSH2PosLifetimeYearEndo = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH2);
                        MSH6PosLifetimeYearEndo = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskWithMSH6);

                        label14.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRisk);;
                        label57.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRisk);;

                        label20.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_ColonCaRiskNoMut);
                        label61.Text = NullDoubleToRoundedString(score.MMRproCancerRiskByAge_EndometrialCaRiskNoMut);

                        current_age = score.MMRproCancerRiskByAge_age;
                    }
                }

                label15.Text = MLH1PosLifetimeYearColon;
                label12.Text = MLH1PosFiveYearColon;
                label55.Text = MLH1PosFiveYearEndo;
                label58.Text = MLH1PosLifetimeYearEndo;


                ColonCaRisk_series.DefaultElement.Color       = Color.Black;
                EndometrialCaRisk_series.DefaultElement.Color = Color.Black;

                ColonCaRiskNoMut_series.DefaultElement.Color       = Color.Green;
                EndometrialCaRiskNoMut_series.DefaultElement.Color = Color.Green;

                ColonCaRiskWithMLH1_series.DefaultElement.Color       = Color.Red;
                ColonCaRiskWithMSH2_series.DefaultElement.Color       = Color.Red;
                ColonCaRiskWithMSH6_series.DefaultElement.Color       = Color.Red;
                EndometrialCaRiskWithMLH1_series.DefaultElement.Color = Color.Red;
                EndometrialCaRiskWithMSH2_series.DefaultElement.Color = Color.Red;
                EndometrialCaRiskWithMSH6_series.DefaultElement.Color = Color.Red;


                chart1.SeriesCollection.Add(ColonCaRiskWithMLH1_series);
                chart1.SeriesCollection.Add(ColonCaRiskNoMut_series);
                chart1.SeriesCollection.Add(ColonCaRisk_series);
                chart1.RefreshChart();

                chart2.SeriesCollection.Add(EndometrialCaRiskWithMLH1_series);
                chart2.SeriesCollection.Add(EndometrialCaRiskNoMut_series);
                chart2.SeriesCollection.Add(EndometrialCaRisk_series);
                chart2.RefreshChart();
            }
        }
Exemplo n.º 22
0
 /**************************************************************************************************/
 private void theClinObservationsLoaded(HraListLoadedEventArgs e)
 {
     FillStatusControls();
 }
Exemplo n.º 23
0
 private void TestsLoaded(HraListLoadedEventArgs e)
 {
     this.setupGrouping();
     this.setupPanels();
 }
Exemplo n.º 24
0
 /**************************************************************************************************/
 private void ClinicalObservationListLoaded(HraListLoadedEventArgs e)
 {
     FillControls();
 }
Exemplo n.º 25
0
 private void AllProvidersLoaded(HraListLoadedEventArgs e)
 {
     SetProviderSelectionItems();
 }
Exemplo n.º 26
0
 /**************************************************************************************************/
 private void GeneticTestListLoaded(HraListLoadedEventArgs e)
 {
     FillControls();
 }