Exemple #1
0
 public LabRow(LabResult lab)
 {
     result = lab;
     InitializeComponent();
     if (result != null)
     {
         if (string.IsNullOrEmpty(result.unitnum) == false)
         {
             dateTimePicker1.Value = result.date;
             comboBox1.Text = result.TestShort;
             textBox1.Text = result.Res;
             textBox5.Text = result.RU;
             if (string.IsNullOrEmpty(result.AbnFlg))
                 checkBox1.Checked = true;
             else
                 checkBox1.Checked = false;
             comboBox2.Text = result.CDRTestClass;
             textBox6.Text = result.RRR;
             textBox2.Text = result.TOXRNG;
             textBox3.Text = result.SpecMID;
             textBox4.Text = result.Loinc;
             textBox7.Text = result.Com;
         }
     }
 }
Exemple #2
0
        public LabSummary(LabResult lr)
        {
            theStudy = lr;

            InitializeComponent();
            textBox1.Text = theStudy.LabResult_Res;
            comboBox2.Text = theStudy.LabResult_RU;
        }
Exemple #3
0
 private void cA125ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     LabResult lr = new LabResult();
     lr.unitnum = proband.unitnum;
     lr.date = DateTime.Today;
     lr.TestDesc = "CA125";
     HraModelChangedEventArgs args = new HraModelChangedEventArgs(this);
     proband.labsHx.AddToList(lr, args);
 }
Exemple #4
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;
                }
            }
        }
Exemple #5
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;
                }
            }
        }
Exemple #6
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);
                }
            }
        }