private void button1_Click(object sender, EventArgs e) { //if (fastDataListView1.SelectedObject == null) //{ // MessageBox.Show("Please select a patient first.", "WARNING"); // return; //} //RiskClinicMainForm rcmf = new RiskClinicMainForm(); //rcmf.InitialView = typeof(RiskClinicFamilyHistoryView); //rcmf.WindowState = FormWindowState.Maximized; //rcmf.ShowDialog(); //if (SessionManager.Instance.GetActivePatient() != null) // QueueData.UpdateQueueByMrn(SessionManager.Instance.GetActivePatient().unitnum); //GetNewPendingGenTestList(); if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; string unit = SessionManager.Instance.GetActivePatient().unitnum; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid, unit); msapf.ShowDialog(); RiskClinicMainForm rcmf = new RiskClinicMainForm(); rcmf.InitialView = typeof(RiskClinicFamilyHistoryView); PushViewStack(rcmf, WeifenLuo.WinFormsUI.Docking.DockState.Document); }
private void button3_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid); msapf.ShowDialog(); PedigreeForm pf = new PedigreeForm(); PushViewStack(pf, WeifenLuo.WinFormsUI.Docking.DockState.Document); //if (fastDataListView1.SelectedObject == null) //{ // MessageBox.Show("Please select a patient first.", "WARNING"); // return; //} //PedigreeForm pf = new PedigreeForm(); //pf.WindowState = FormWindowState.Maximized; //pf.ShowDialog(); //RefreshQueue(); }
public void EditAppt(int clinicId, Appointment appointment) { MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(appointment.apptID, appointment.unitnum); mark.ShowDialog(); User.setClinicID(clinicId); AddAppointmentView view = new AddAppointmentView(appointment, clinicId, AddAppointmentView.Mode.Edit); view.ShowDialog(); SessionManager.Instance.ClearActivePatient(); }
public void CopyAppt(int clinicId, Appointment toCopy) { User.setClinicID(clinicId); Appointment copiedFromExisting = new Appointment(toCopy, clinicId); MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(copiedFromExisting.apptID, copiedFromExisting.unitnum); mark.ShowDialog(); AddAppointmentView view = new AddAppointmentView( copiedFromExisting, clinicId, AddAppointmentView.Mode.Copy); view.ShowDialog(); }
private void button2_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; string unit = SessionManager.Instance.GetActivePatient().unitnum; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid, unit); msapf.ShowDialog(); PedigreeForm pf = new PedigreeForm(); PushViewStack(pf, WeifenLuo.WinFormsUI.Docking.DockState.Document); }
private void button1_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid); msapf.ShowDialog(); RiskClinicMainForm rcmf = new RiskClinicMainForm(); rcmf.InitialView = typeof(RiskClinicFamilyHistoryView); PushViewStack(rcmf, WeifenLuo.WinFormsUI.Docking.DockState.Document); }
/// <summary> /// User for new appointment. /// </summary> /// <param name="mrn"></param> /// <param name="clinicId">clinic to default to when opening wizard</param> public AddAppointmentView(string mrn, int? clinicId) : this() { this._mode = Mode.Add; InitializeModeConditions(); this._patient = new Patient(mrn); this._patient.Providers.LoadFullList(); SessionManager.Instance.SetActivePatient(this._patient.unitnum, this._patient.apptid); this._appointment = new Appointment (clinicId, mrn) { ClinicList = this._clinics}; this._clinicId = clinicId; MarkStartedAndPullForwardForm mark = new MarkStartedAndPullForwardForm(this._appointment.apptID, this._appointment.unitnum); mark.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } Appointment appt = ((Appointment) (fastDataListView1.SelectedObject)); int apptid = appt.apptID; if (appt.GoldenAppt != appt.apptID) { if (appt.apptdatetime < appt.GoldenApptTime) { //MessageBox.Show("You have selected an older appointment. The most recent record for this patient is from " + appt.GoldenApptTime,"); LegacyApptForm laf = new LegacyApptForm(); laf.selected = appt.apptdatetime; laf.golden = appt.GoldenApptTime; laf.ShowDialog(); if (laf.result == "Continue") { SessionManager.Instance.ClearActivePatient(); SessionManager.Instance.SetActivePatient(appt.Unitnum, apptid); } else { SessionManager.Instance.ClearActivePatient(); SessionManager.Instance.SetActivePatient(appt.Unitnum, appt.GoldenAppt); apptid = appt.GoldenAppt; } } else { SessionManager.Instance.ClearActivePatient(); SessionManager.Instance.SetActivePatient(appt.Unitnum, apptid); } } MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid, appt.Unitnum); msapf.ShowDialog(); PedigreeForm pf = new PedigreeForm(); PushViewStack(pf, DockState.Document); }
private void button3_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; string unit = SessionManager.Instance.GetActivePatient().unitnum; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid, unit); msapf.ShowDialog(); PedigreeForm pf = new PedigreeForm(); PushViewStack(pf, WeifenLuo.WinFormsUI.Docking.DockState.Document); }
private void button1_Click(object sender, EventArgs e) { //if (fastDataListView1.SelectedObject == null) //{ // MessageBox.Show("Please select a patient first.", "WARNING"); // return; //} //RiskClinicMainForm rcmf = new RiskClinicMainForm(); //rcmf.InitialView = typeof(RiskClinicFamilyHistoryView); //rcmf.WindowState = FormWindowState.Maximized; //rcmf.ShowDialog(); //RefreshQueue(); if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; string unit = SessionManager.Instance.GetActivePatient().unitnum; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid, unit); msapf.ShowDialog(); RiskClinicMainForm rcmf = new RiskClinicMainForm(); rcmf.InitialView = typeof(PatientCommunicationView); PushViewStack(rcmf, WeifenLuo.WinFormsUI.Docking.DockState.Document); }
private void button3_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid); msapf.ShowDialog(); PedigreeForm pf = new PedigreeForm(); PushViewStack(pf, WeifenLuo.WinFormsUI.Docking.DockState.Document); //if (fastDataListView1.SelectedObject == null) //{ // MessageBox.Show("Please select a patient first.", "WARNING"); // return; //} //PedigreeForm pf = new PedigreeForm(); //pf.WindowState = FormWindowState.Maximized; //pf.ShowDialog(); //RefreshQueue(); }
private void button1_Click(object sender, EventArgs e) { if (fastDataListView1.SelectedObject == null) { MessageBox.Show("Please select a patient first.", "WARNING"); return; } int apptid = SessionManager.Instance.GetActivePatient().apptid; MarkStartedAndPullForwardForm msapf = new MarkStartedAndPullForwardForm(apptid); msapf.ShowDialog(); RiskClinicMainForm rcmf = new RiskClinicMainForm(); rcmf.InitialView = typeof(RiskClinicFamilyHistoryView); PushViewStack(rcmf, WeifenLuo.WinFormsUI.Docking.DockState.Document); }