Beispiel #1
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(PatientCommunicationView).ToString())
            {
                pcv = new PatientCommunicationView();
                pcv.PatientHeaderVisible = false;
                pcv.InitialTask = InitialTask;
                //pcv.SplitterDistance = 0;
                return pcv;
            }

            else if (persistString == typeof(PedigreeForm).ToString())
            {
                pf = new PedigreeForm();
                return pf;
            }

            else if (persistString == typeof(NewToDoView).ToString())
            {
                ntdv = new NewToDoView();
                return ntdv;
            }
            else
                return null;
        }
Beispiel #2
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(PedigreeForm).ToString())
            {
                pf = new PedigreeForm();
                pf.SetMode("MANUAL");
                //pf.Register(sessionManager);
                return pf;
            }
            else if (persistString == typeof(RelativeDetailsView).ToString())
            {
                rdv = new RelativeDetailsView();
               //rdv.Register(sessionManager);
                return rdv;
            }
            else if (persistString == typeof(PatientCommunicationView).ToString())
            {
                pcv = new PatientCommunicationView();
                //pcv.Register(sessionManager);
                return pcv;
            }

            return null;
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
 /**************************************************************************************************/
 public void Register(PedigreeForm.CloseFormCallbackType CloseFormDelegate, PedigreeForm.PedigreeModelLoadedCallbackType PedigreeModelLoadedDelegate, PedigreeForm.SelectedIndividualCallbackType SelectedIndividualDelegate)
 {
     CloseFormCallback = CloseFormDelegate;
     PedigreeModelLoadedCallback = PedigreeModelLoadedDelegate;
     SelectedIndividualCallback = SelectedIndividualDelegate;
 }
 private void button3_Click(object sender, EventArgs e)
 {
     PedigreeForm pf = new PedigreeForm();
     pf.WindowState = FormWindowState.Maximized;
     pf.ShowDialog();
     if (SessionManager.Instance.GetActivePatient() != null)
         QueueData.UpdateBigQueueByMrn(SessionManager.Instance.GetActivePatient().unitnum);
 }
Beispiel #7
0
        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();
        }
Beispiel #8
0
        private void PatientContactView_Load(object sender, EventArgs e)
        {
            string configFile = SessionManager.SelectDockConfig("PatientContactView.config");

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            else
            {

                pf = new PedigreeForm();
                pf.SetMode("MANUAL");
                //pf.Register(sessionManager);
                pf.Show(theDockPanel);
                pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;

                rdv = new RelativeDetailsView();
                //rdv.Register(sessionManager);
                rdv.Show(theDockPanel);
                rdv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;

                pcv = new PatientCommunicationView();
                //pcv.Register(sessionManager);
                pcv.Show(theDockPanel);
                pcv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
            }
        }
 private IDockContent GetContentFromPersistString(string persistString)
 {
     if (persistString == typeof(PedigreeForm).ToString())
     {
         pf = new PedigreeForm();
         //pf.SetMode("SELF_ORGANIZING");
         return pf;
     }
     if (persistString == typeof(FamilyHistoryView).ToString())
     {
         fhv = new FamilyHistoryView();
         return fhv;
     }
     else if (persistString == typeof(RelativeDetailsView).ToString())
     {
         rdv = new RelativeDetailsView();
         return rdv;
     }
     else if (persistString == typeof(DocumentUploadView).ToString())
     {
         duv = new DocumentUploadView();
         return duv;
     }
     else if (persistString == typeof(PastMedicalHistoryView).ToString())
     {
         pmhv = new PastMedicalHistoryView();
         return pmhv;
     }
     else if (persistString == typeof(GeneticTestingView).ToString())
     {
         gtv = new GeneticTestingView();
         return gtv;
     }
     else
         throw new NullDockingConfigException();
 }
        private void RiskClinicFamilyHistoryView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

                configFile = SessionManager.SelectDockConfig("RiskClinicFamilyHistoryViewDockPanel.config");
                DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                if (File.Exists(configFile))
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
                else
                {
                    pf = new PedigreeForm();
                    //pf.SetMode("SELF_ORGANIZING");
                    pf.Show(theDockPanel);
                    pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    fhv = new FamilyHistoryView();
                    fhv.Show(theDockPanel);
                    fhv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    rdv = new RelativeDetailsView();
                    rdv.Show(theDockPanel);
                    rdv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;

                    duv = new DocumentUploadView();
                    duv.Show(rdv.Pane, rdv);

                    pmhv = new PastMedicalHistoryView();
                    pmhv.Show(theDockPanel);
                    pmhv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;

                    gtv = new GeneticTestingView();
                    gtv.Show(theDockPanel);
                    gtv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
                }
            }
        }
Beispiel #11
0
 private void bitmapButton7_Click(object sender, EventArgs e)
 {
     PedigreeForm pf = new PedigreeForm();
     pf.WindowState = FormWindowState.Maximized;
     pf.ShowDialog();
 }
Beispiel #12
0
        private void QueueNotesView_Load(object sender, EventArgs e)
        {
            theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

            string configFile = SessionManager.SelectDockConfig("QueueNotesViewDockPanel.config");
            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
            {
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);

            }
            else
            {
                pf = new PedigreeForm();
                pf.Show(theDockPanel);
                pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                pcv = new PatientCommunicationView();
                pcv.PatientHeaderVisible = false;
                pcv.InitialTask = InitialTask;
                //pcv.SplitterDistance = 0;
                pcv.Show(theDockPanel);
                pcv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                ntdv = new NewToDoView();
                ntdv.Show(theDockPanel);
                ntdv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
            }

            patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient());
        }