private void button1_Click(object sender, EventArgs e) { if (study != null) { if (study is BreastImagingStudy) { BreastImagingStudy bis = (BreastImagingStudy)study; bis.date = dateTimePicker1.Value; bis.normal = comboBox1.Text; bis.status = comboBox5.Text; bis.side = comboBox2.Text; bis.leftBirads = comboBox4.Text; bis.rightBirads = comboBox3.Text; bis.report = richTextBox1.Text; } } if (proband != null) { BreastImagingStudy imagingStudy = study as BreastImagingStudy; if (imagingStudy != null) { BreastImagingStudy bis = imagingStudy; proband.breastImagingHx.AddToList(bis, new Model.HraModelChangedEventArgs(null)); } } this.DialogResult = DialogResult.OK; this.Close(); }
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(); } } }
/**************************************************************************************************/ 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; } } }
public MammographySummary(BreastImagingStudy bis) { theStudy = bis; InitializeComponent(); comboBox1.Text = bis.BreastImaging_side; comboBox2.Text = bis.BreastImaging_leftBirads; comboBox3.Text = bis.BreastImaging_rightBirads; }
private void mammographyToolStripMenuItem_Click(object sender, EventArgs e) { BreastImagingStudy bis = new BreastImagingStudy(); bis.unitnum = proband.unitnum; bis.type = "MammographyHxView"; bis.date = DateTime.Today; bis.imagingType = "MammographyHxView"; HraModelChangedEventArgs args = new HraModelChangedEventArgs(this); proband.breastImagingHx.AddToList(bis, args); }
private void AddImagingForm_Load(object sender, EventArgs e) { if (study != null) { if (study is BreastImagingStudy) { BreastImagingStudy bis = (BreastImagingStudy)study; dateTimePicker1.Value = bis.date; comboBox1.Text = bis.normal; comboBox5.Text = bis.status; comboBox2.Text = bis.side; comboBox4.Text = bis.leftBirads; comboBox3.Text = bis.rightBirads; richTextBox1.Text = bis.report; } } }
/**************************************************************************************************/ 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; } } }
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; } } }
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); } } }