Exemplo n.º 1
0
        private void tVSToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TransvaginalImagingStudy tvs = new TransvaginalImagingStudy();

            tvs.unitnum     = proband.unitnum;
            tvs.type        = "TVS";
            tvs.date        = DateTime.Today;
            tvs.imagingType = "TVS";
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(this);

            proband.transvaginalImagingHx.AddToList(tvs, args);
        }
Exemplo n.º 2
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;
                }
            }
        }
Exemplo n.º 3
0
        /**************************************************************************************************/
        private void theTransvaginalImagingHxChanged(HraListChangedEventArgs e)
        {
            if (e.hraOperand != null)
            {
                TransvaginalImagingStudy theStudy = (TransvaginalImagingStudy)e.hraOperand;

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

                case HraListChangedEventArgs.HraListChangeType.DELETE:
                    RemoveDxFromList(theStudy);
                    break;
                }
            }
        }
Exemplo n.º 4
0
        void OrderRow_Finalized(object sender, OrdersView.FinalizedEventArgs e)
        {
            //Finalize has been clicked
            if (order.Order_finalized == 0)
            {
                order.Order_finalized = 1;
                Patient proband = SessionManager.Instance.GetActivePatient();
                HraModelChangedEventArgs args = new HraModelChangedEventArgs(this.owningView);

                int panelID = SessionManager.Instance.MetaData.GeneticTests.GetPanelIDFromName(order.Order_orderDesc);
                if (panelID > 0)  // a genetic test has been ordered
                {
                    //add the pending gen test to the model
                    PastMedicalHistory pmh = proband.PMH;


                    //GeneticTest geneticTest = (GeneticTest)(pmh.GeneticTests.SingleOrDefault(v => ((GeneticTest)v).panelID == panelID && ((GeneticTest)v).status == "Pending"
                    //    && ((GeneticTest)v).GeneticTest_testYear == (order.Order_orderDate.Year).ToString()
                    //    && ((GeneticTest)v).GeneticTest_testMonth == (order.Order_orderDate.Month).ToString()
                    //    && ((GeneticTest)v).GeneticTest_testDay == (order.Order_orderDate.Day).ToString()));
                    //if (geneticTest == null)
                    //{

                    //duplicate pending tests are allowed, so ignore commented check above
                    //also, no difference between all "Familial Known Genetic Test"s, regardless of group
                    GeneticTest geneticTest = new GeneticTest(pmh);
                    geneticTest.GeneticTest_status    = "Pending";
                    geneticTest.GeneticTest_panelID   = panelID;
                    geneticTest.GeneticTest_testYear  = (order.Order_orderDate.Year).ToString();
                    geneticTest.GeneticTest_testMonth = (order.Order_orderDate.Month).ToString();
                    geneticTest.GeneticTest_testDay   = (order.Order_orderDate.Day).ToString();

                    pmh.GeneticTests.AddToList(geneticTest, args);
                    //}
                    //else
                    //{
                    //    geneticTest.SignalModelChanged(args);
                    //}
                }

                else if (order.Order_orderDesc.Contains("mammo"))
                {
                    BreastImagingStudy bis = new BreastImagingStudy();
                    bis.unitnum     = proband.unitnum;
                    bis.type        = "MammographyHxView";
                    bis.date        = DateTime.Today;
                    bis.imagingType = "MammographyHxView";
                    bis.status      = "Ordered";
                    proband.breastImagingHx.AddToList(bis, args);
                }
                else if (order.Order_orderDesc.Contains("MRI"))
                {
                    BreastImagingStudy bis = new BreastImagingStudy();
                    bis.unitnum     = proband.unitnum;
                    bis.type        = "MRI";
                    bis.date        = DateTime.Today;
                    bis.imagingType = "MRI";
                    bis.status      = "Ordered";
                    bis.side        = "Bilateral";
                    proband.breastImagingHx.AddToList(bis, args);
                }
                else if (order.Order_orderDesc.Contains("Transvaginal Sonography"))
                {
                    TransvaginalImagingStudy tvs = new TransvaginalImagingStudy();
                    tvs.unitnum     = proband.unitnum;
                    tvs.type        = "TVS";
                    tvs.date        = DateTime.Today;
                    tvs.imagingType = "TVS";
                    tvs.status      = "Ordered";
                    proband.transvaginalImagingHx.AddToList(tvs, args);
                }
                else if (order.Order_orderDesc.Contains("CA-125"))
                {
                    LabResult lr = new LabResult();
                    lr.unitnum  = proband.unitnum;
                    lr.date     = DateTime.Today;
                    lr.TestDesc = "CA125";
                    lr.status   = "Ordered";
                    proband.labsHx.AddToList(lr, args);
                }
            }
        }
Exemplo n.º 5
0
 public TvsSummary(TransvaginalImagingStudy tvs)
 {
     theStudy = tvs;
     InitializeComponent();
     comboBox1.Text = theStudy.Tvs_impression;
 }