Esempio n. 1
0
 public BreastImagingRow(BreastImagingStudy bis)
 {
     study = bis;
     InitializeComponent();
     dateTimePicker1.Value = study.date;
     if (string.IsNullOrEmpty(study.report) == false)
     {
         richTextBox1.Text = study.report;
     }
     if (string.IsNullOrEmpty(study.imagingType) == false)
     {
         comboBox1.Text = study.imagingType;
     }
     if (string.IsNullOrEmpty(study.leftBirads) == false)
     {
         comboBox2.Text = study.leftBirads;
     }
     if (string.IsNullOrEmpty(study.rightBirads) == false)
     {
         comboBox3.Text = study.rightBirads;
     }
     if (string.IsNullOrEmpty(study.BIRADS) == false)
     {
         comboBox4.Text = study.BIRADS;
     }
     if (string.IsNullOrEmpty(study.normal) == false)
     {
         if (study.normal.ToLower() == "yes")
             checkBox1.Checked = true;
         else
             checkBox1.Checked = false;
     }
 }
Esempio n. 2
0
        public MammographySummary(BreastImagingStudy bis)
        {
            theStudy = bis;
            InitializeComponent();

            comboBox1.Text = bis.BreastImaging_side;
            comboBox2.Text = bis.BreastImaging_leftBirads;
            comboBox3.Text = bis.BreastImaging_rightBirads;
        }
Esempio n. 3
0
 private void mRIToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BreastImagingStudy bis = new BreastImagingStudy();
     bis.unitnum = proband.unitnum;
     bis.type = "MRI";
     bis.date = DateTime.Today;
     bis.imagingType = "MRI";
     bis.side = "Bilateral";
     HraModelChangedEventArgs args = new HraModelChangedEventArgs(this);
     proband.breastImagingHx.AddToList(bis, args);
 }
Esempio n. 4
0
        private void addMRIExamToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RiskApps3.Model.PatientRecord.Patient proband = SessionManager.Instance.GetActivePatient();
            if (proband != null)
            {
                BreastImagingStudy bis = new BreastImagingStudy();
                bis.unitnum = proband.unitnum;
                bis.type = "MRI";
                bis.date = DateTime.Today;
                bis.imagingType = "MRI";
                bis.side = "Bilateral";

                AddImagingForm aif = new AddImagingForm();
                aif.Text = "Add new MRI Study";
                aif.study = bis;
                aif.proband = proband;

                if (aif.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    int a = SessionManager.Instance.GetActivePatient().apptid;
                    string u = SessionManager.Instance.GetActivePatient().unitnum;
                    FinalizeRecordForm frm = new FinalizeRecordForm(a, u);
                    frm.ShowDialog();

                    RefreshQueue();

                }
            }
        }
Esempio n. 5
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);
                }
            }
        }