Пример #1
0
 private void AllProvidersListChanged(HraListChangedEventArgs e)
 {
     if (this._allProviders.IsLoaded)
     {
         this.SetProviderSelectionItems();
     }
 }
Пример #2
0
        /**************************************************************************************************/
        private void theBreastImagingHxChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                BreastImagingStudy theStudy = (BreastImagingStudy)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    if (theStudy.BreastImaging_imagingType == "MammographyHxView")
                    {
                        MammoLKV.AddDiagnostic(theStudy);
                    }
                    else if (theStudy.BreastImaging_imagingType == "MRI")
                    {
                        MRILKV.AddDiagnostic(theStudy);
                    }
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    if (theStudy.BreastImaging_imagingType == "MammographyHxView")
                    {
                        MammoLKV.RemoveDiagnostic(theStudy);
                    }
                    else if (theStudy.BreastImaging_imagingType == "MRI")
                    {
                        MRILKV.RemoveDiagnostic(theStudy);
                    }
                    break;
                }
            }
        }
Пример #3
0
 /**************************************************************************************************/
 private void ClinicalObservationListChanged(HraListChangedEventArgs e)
 {
     if (e.hraOperand != null && relative != null)
     {
         ClincalObservation co = (ClincalObservation)e.hraOperand;
     }
 }
Пример #4
0
 /**************************************************************************************************/
 private void FollowupListChanged(HraListChangedEventArgs e)
 {
     if (e.hraOperand != null)
     {
         PtFollowup theFollowup = (PtFollowup)e.hraOperand;
     }
 }
Пример #5
0
        /**************************************************************************************************/
        private void TaskListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                Task t = (Task)e.hraOperand;

                switch (e.hraListChangeType)
                {
                    case HraListChangedEventArgs.HraListChangeType.ADD:
                        PendingTaskSummaryRow ptsr = new PendingTaskSummaryRow(t);
                        ptsr.Width = flowLayoutPanel1.Width - 10;
                        flowLayoutPanel1.Controls.Add(ptsr);
                        break;
                    case HraListChangedEventArgs.HraListChangeType.DELETE:
                        Control doomedptsr = null;
                        foreach (Control c in flowLayoutPanel1.Controls)
                        {
                            if (((PendingTaskSummaryRow)c).GetTask() == t)
                            {
                                doomedptsr = c;
                            }
                        }
                        if (doomedptsr != null)
                            flowLayoutPanel1.Controls.Remove(doomedptsr);
                        break;
                }
            }
        }
Пример #6
0
 /**************************************************************************************************/
 private void ClinicalObservationListChanged(HraListChangedEventArgs e)
 {
     if (e.hraOperand != null)
     {
         ClincalObservation col = (ClincalObservation)(e.hraOperand);
         SetNewRelativePMH(listView1, col.owningPMH);
     }
 }
Пример #7
0
        /**************************************************************************************************/
        private void ClinicalObservationListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null && selectedRelative != null)
            {
                ClincalObservation co = (ClincalObservation)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    PMHRow pmhRow = new PMHRow(co, this);
                    pmhRow.disease.Text = co.disease;
                    flowLayoutPanel1.Controls.Add(pmhRow);
                    pmhRow.disease.Focus();     // drive focus to the first input control jdg 11/16/12

                    //setup grouping
                    int    selectedGroupID = 1;
                    String groupName       = diseaseGroupComboBox.Text;
                    if (!String.IsNullOrEmpty(groupName))
                    {
                        selectedGroupID = this.diseases
                                          .Where(t => ((DiseaseObject)t).groupingName.Equals(groupName))
                                          .Select(t => ((DiseaseObject)t).groupingID)
                                          .Distinct()
                                          .SingleOrDefault();
                    }
                    pmhRow.setGroupID(selectedGroupID);
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:

                    Control doomed = null;

                    foreach (Control c in flowLayoutPanel1.Controls.OfType <PMHRow>())
                    {
                        PMHRow targetRow = (PMHRow)c;
                        if (targetRow.GetCO() == co)
                        {
                            doomed = c;
                        }
                    }
                    if (doomed != null)
                    {
                        flowLayoutPanel1.Controls.Remove(doomed);
                    }

                    if (pmh.Observations.Count == 0)
                    {
                        noLabel.Visible = true;
                    }

                    break;
                }
            }
        }
Пример #8
0
        /**************************************************************************************************/

        private void GeneticTestListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                GeneticTest geneticTest = (GeneticTest)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:

                    GeneticTestingRowExpandable newRow = new GeneticTestingRowExpandable(this, geneticTest);
                    flowLayoutPanel1.Controls.Add(newRow);

                    //setup grouping
                    int    selectedGroupID = 1;
                    String groupName       = testGroupComboBox.Text;
                    if (!String.IsNullOrEmpty(groupName))
                    {
                        selectedGroupID = this.testList
                                          .Where(t => ((GeneticTestObject)t).groupingName.Equals(groupName))
                                          .Select(t => ((GeneticTestObject)t).groupingID)
                                          .Distinct()
                                          .SingleOrDefault();
                    }
                    newRow.setGroupID(selectedGroupID);
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    Control doomed = null;
                    foreach (Control c in flowLayoutPanel1.Controls)
                    {
                        GeneticTestingRowExpandable targetRow = (GeneticTestingRowExpandable)c;
                        if (targetRow.GetGeneticTest() == geneticTest)
                        {
                            doomed = c;
                        }
                    }
                    if (doomed != null)
                    {
                        flowLayoutPanel1.Controls.Remove(doomed);
                    }

                    if (pmh.GeneticTests.Count == 0)
                    {
                        noLabel.Visible = true;
                    }

                    break;
                }
            }
        }
Пример #9
0
        /**************************************************************************************************/
        private void theLabsChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                RiskApps3.Model.PatientRecord.Labs.LabResult theStudy = (RiskApps3.Model.PatientRecord.Labs.LabResult)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    break;
                }
            }
        }
Пример #10
0
        /**************************************************************************************************/
        private void theTransvaginalImagingHxChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                TransvaginalImagingStudy theStudy = (TransvaginalImagingStudy)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    break;
                }
            }
        }
        /**************************************************************************************************/
        private void NotYetInformedGenTestListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                NotYetInformedGeneticTest theGenTest = (NotYetInformedGeneticTest)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    break;
                }
            }
        }
Пример #12
0
        /**************************************************************************************************/
        private void PendingGenTestListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                PendingGeneticTest theGenTest = (PendingGeneticTest)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    break;
                }
            }
        }
Пример #13
0
        /**************************************************************************************************/
        private void TaskListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                Task t = (Task)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    break;
                }
            }
        }        /**************************************************************************************************/
Пример #14
0
        /**************************************************************************************************/

        private void TaskListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                Task theTask = (Task)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    CommunicationEntry ce = new CommunicationEntry();
                    ce.title  = theTask.Task_Type;
                    ce.Tag    = theTask;
                    ce.author = theTask.Task_AssignedBy;
                    ce.date   = theTask.Task_Date;
                    objectListView1.AddObject(ce);
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    object doomed = null;
                    ;
                    foreach (object o in objectListView1.Objects)
                    {
                        CommunicationEntry doomed_ce = (CommunicationEntry)o;
                        if (doomed_ce.Tag == theTask)
                        {
                            doomed = o;
                        }
                    }
                    if (doomed != null)
                    {
                        if (splitContainer1.Panel2.Controls.Contains(taskViewUC))
                        {
                            if (taskViewUC.Task == theTask)
                            {
                                taskViewUC.Release();
                                splitContainer1.Panel2.Controls.Remove(taskViewUC);
                            }
                        }
                        objectListView1.RemoveObject(doomed);
                    }
                    break;
                }
            }
        }
Пример #15
0
        /**************************************************************************************************/
        private void EthnicityListChanged(HraListChangedEventArgs e)
        {
            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                checkedListBox1.SetItemChecked(i, false);
            }

            foreach (Race r in selectedRelative.Ethnicity)
            {
                for (int i = 0; i < checkedListBox1.Items.Count; i++)
                {
                    if (string.Compare(checkedListBox1.Items[i].ToString(), r.race, true) == 0)
                    {
                        checkedListBox1.SetItemChecked(i, true);
                        break;
                    }
                }
            }
        }
Пример #16
0
        /**************************************************************************************************/
        private void theLabsChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                RiskApps3.Model.PatientRecord.Labs.LabResult theStudy = (RiskApps3.Model.PatientRecord.Labs.LabResult)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    fastDataListView1.AddObject(theStudy);
                    fastDataListView1.SelectedObject = theStudy;
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    RemoveDxFromList(theStudy);
                    break;
                }
            }
        }
Пример #17
0
        /**************************************************************************************************/
        private void theBreastImagingHxChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                BreastImagingStudy theStudy = (BreastImagingStudy)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    fastDataListView1.AddObject(theStudy);
                    fastDataListView1.SelectedObject = theStudy;
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    RemoveDxFromList(theStudy);
                    break;
                }
            }
        }
Пример #18
0
        private void ActivePatientTaskListChanged(HraListChangedEventArgs e)
        {
            Task t = (Task)e.hraOperand;

            switch (e.hraListChangeType)
            {
            case HraListChangedEventArgs.HraListChangeType.ADD:
                if (t.Task_Type == "Task" && t.Task_Status == "Pending")
                {
                    AddTab(t);
                }
                break;

            case HraListChangedEventArgs.HraListChangeType.DELETE:

                RemoveTabPage(t.taskID);

                break;
            }
        }
Пример #19
0
        }        /**************************************************************************************************/

        private void FollowupListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                Task t = (Task)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    foreach (PtFollowup f in t.FollowUps)
                    {
                        timelineData.Add(f);
                    }
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    break;
                }
            }
        }
Пример #20
0
        /**************************************************************************************************/
        private void RaceEthnicityChanged(HraListChangedEventArgs e)
        {
            for (int i = 0; i < checkedListBox1.Items.Count; i++)
            {
                checkedListBox1.SetItemChecked(i, false);
            }

            foreach (Race r in proband.Ethnicity)
            {
                for (int i = 0; i < checkedListBox1.Items.Count; i++)
                {
                    if (string.Compare(checkedListBox1.Items[i].ToString(), r.race, true) == 0)
                    {
                        checkedListBox1.SetItemChecked(i, true);
                        break;
                    }
                }
            }

            FillRaceEthnicityControls();
        }
Пример #21
0
        private void listChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                Person target = (Person)e.hraOperand;
                FamilyHistoryRelativeRow fhrr = null;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    Application.DoEvents();
                    fhrr = new FamilyHistoryRelativeRow(target);
                    flowLayoutPanel1.Controls.Add(fhrr);
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    Control toRemove = null;
                    foreach (Control c in flowLayoutPanel1.Controls)
                    {
                        fhrr = (FamilyHistoryRelativeRow)c;
                        if (fhrr.GetRelative().relativeID == target.relativeID)
                        {
                            toRemove = fhrr;
                            break;
                        }
                    }
                    if (toRemove != null)
                    {
                        flowLayoutPanel1.Controls.Remove(toRemove);
                    }
                    break;
                }

                foreach (Control c in flowLayoutPanel1.Controls)
                {
                    fhrr = (FamilyHistoryRelativeRow)c;
                    fhrr.SetDeleteButton();
                }
            }
        }
Пример #22
0
        /**************************************************************************************************/

        private void FollowupListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                PtFollowup theFollowup = (PtFollowup)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    PtFollowupRow ptr = new PtFollowupRow(theFollowup);
                    ptr.Width = FollowupFlowPanel.Width - 30;
                    FollowupFlowPanel.Controls.Add(ptr);
                    FollowupFlowPanel.Controls.SetChildIndex(ptr, 0);
                    //SetSplitterDist(ptr.Height + ptr.Margin.Top);

                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    Control doomed = null;
                    foreach (Control row in FollowupFlowPanel.Controls)
                    {
                        PtFollowupRow r = (PtFollowupRow)row;
                        if (r.GetFollowup() == theFollowup)
                        {
                            doomed = row;
                        }
                    }
                    if (doomed != null)
                    {
                        FollowupFlowPanel.Controls.Remove(doomed);
                        splitContainer1.SplitterDistance -= doomed.Height;
                    }
                    break;
                }
            }
        }
Пример #23
0
 /**************************************************************************************************/
 private void PediatricCDSChanged(HraListChangedEventArgs e)
 {
 }
Пример #24
0
 /**************************************************************************************************/
 private void CCRATCancerRiskChanged(HraListChangedEventArgs e)
 {
 }
Пример #25
0
 /**************************************************************************************************/
 private void MMRproCancerRiskChanged(HraListChangedEventArgs e)
 {
 }
Пример #26
0
 /**************************************************************************************************/
 private void theClinObservationsChanged(HraListChangedEventArgs e)
 {
     FillStatusControls();
 }
Пример #27
0
 /**************************************************************************************************/
 private void NCCNChanged(HraListChangedEventArgs e)
 {
 }
Пример #28
0
 /**************************************************************************************************/
 private void NationalityChanged(HraListChangedEventArgs e)
 {
 }
Пример #29
0
        private void OrdersListChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                Order order = (Order)e.hraOperand;

                switch (e.hraListChangeType)
                {
                case HraListChangedEventArgs.HraListChangeType.ADD:
                    OrderRow newRow = new OrderRow(order, this);

                    if (order.Order_finalized == 0)
                    {
                        ////if there aren't too many existing orders, use animation to add a new row
                        //noExistingOrdersLabel.Visible = false;
                        //if (((countOfOrderRows() + 1) * (newRow.Margin.Top + newRow.Margin.Bottom + newRow.Height)) < flowLayoutPanel1.Height)
                        //{
                        //    int origNewRowMarginTop = newRow.Margin.Top;
                        //    newRow.MarginTop = flowLayoutPanel1.Height - ((countOfOrderRows() + 1) * (newRow.Margin.Top + newRow.Margin.Bottom + newRow.Height));
                        //    flowLayoutPanel1.Controls.Add(newRow);

                        //    Transition t = new Transition(new TransitionType_Acceleration(100));
                        //    t.add(newRow, "MarginTop", origNewRowMarginTop);
                        //    t.run();
                        //}
                        //else
                        //{
                        flowLayoutPanel1.Controls.Add(newRow);
                        setNoOrdersLabels();
                        //}
                    }
                    else
                    {
                        newRow.hideDeleteButton();
                        flowLayoutPanel2.Controls.Add(newRow);
                    }
                    break;

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    Control doomed = null;
                    foreach (Control c in flowLayoutPanel1.Controls)
                    {
                        if (c is OrderRow)
                        {
                            OrderRow targetRow = (OrderRow)c;
                            if (targetRow.getOrder() == order)
                            {
                                doomed = c;
                                break;      //presumes only one deleted
                            }
                        }
                    }
                    if (doomed != null)
                    {
                        flowLayoutPanel1.Controls.Remove(doomed);
                        break;
                    }

                    foreach (Control c in flowLayoutPanel2.Controls)
                    {
                        if (c is OrderRow)
                        {
                            OrderRow targetRow = (OrderRow)c;
                            if (targetRow.getOrder() == order)
                            {
                                doomed = c;
                                break;      //presumes only one deleted
                            }
                        }
                    }
                    if (doomed != null)
                    {
                        flowLayoutPanel2.Controls.Remove(doomed);
                    }
                    break;
                }

                setNoOrdersLabels();
            }
        }
Пример #30
0
 private void FHChanged(HraListChangedEventArgs e)
 {
     //TODO not sure
 }