Exemple #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     Task t = new Task(proband, "Task", "Pending", SessionManager.Instance.ActiveUser.ToString(), DateTime.Now);
     HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
     args.Persist = true;
     proband.Tasks.AddToList(t, args);
 }
Exemple #2
0
 public static Tasks FromRATTasks(this RAT.Task app)
 {
     return(new Tasks()
     {
         taskID = app.taskID
     });
 }
        public PendingTaskSummaryRow(Task t)
        {
            this.task = t;
            InitializeComponent();

            FillControls();
        }
Exemple #4
0
        private void TaskListLoadedForPopup(HraListLoadedEventArgs e)
        {
            RiskApps3.Model.PatientRecord.Patient p = SessionManager.Instance.GetActivePatient();
            if (p != null)
            {

                Task t = new Task(p, "Task", "Pending", SessionManager.Instance.ActiveUser.ToString(), DateTime.Now);
                HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
                args.Persist = true;
                p.Tasks.AddToList(t, args);

                TaskView tv = new TaskView(t);
                tv.ShowDialog();
                p.Tasks.ReleaseListeners(this);
                RefreshQueue();
            }
        }
Exemple #5
0
        private void AddTab(Task task)
        {
            TaskViewUC tabContent = new TaskViewUC();
            tabContent.Task = task;
            tabContent.Enabled = false;

            TabPage tabPage = new TabPage();
            tabPage.Text = task.ToString();
            tabPage.Tag = task.taskID;
            tabPage.Controls.Add(tabContent);

            Control c = (Control)tabContent;
            c.Dock = DockStyle.Fill;

            this.tabControl.Controls.Add(tabPage);
        }
 private void TaskListLoaded(HraListLoadedEventArgs e)
 {
     RiskApps3.Model.PatientRecord.Patient p = SessionManager.Instance.GetActivePatient();
     if (p != null)
     {
         string assignedBy = "";
         if (SessionManager.Instance.ActiveUser != null)
         {
             if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
             {
                 assignedBy = SessionManager.Instance.ActiveUser.ToString();
             }
         }
         Task t = new Task(p, "Task", "Pending", assignedBy, DateTime.Now);
         HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
         args.Persist = true;
         p.Tasks.AddToList(t, args);
         TaskView tv = new TaskView(t);
         tv.ShowDialog();
         p.Tasks.ReleaseListeners(this);
         RefreshQueue();
     }
 }
Exemple #7
0
 public TaskViewUC(Task t)
 {
     task = t;
     InitializeComponent();
 }
Exemple #8
0
 public void SetTask(Task task)
 {
     this.task = task;
 }
Exemple #9
0
 public TaskView(Task t)
 {
     InitializeComponent();
     this.Task = t;
 }
Exemple #10
0
        public void DeleteTasks(int _institutionId, string unitnum, int apptid)
        {
            //SetUserSession();
            string assignedBy = "";
            if (SessionManager.Instance.ActiveUser != null)
            {
                if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
                {
                    assignedBy = SessionManager.Instance.ActiveUser.ToString();
                }
            }
            SessionManager.Instance.SetActivePatient(unitnum, apptid);
            RiskApps3.Model.PatientRecord.Patient p = SessionManager.Instance.GetActivePatient();
            //Creating task object
            RiskApps3.Model.PatientRecord.Communication.Task t = new RiskApps3.Model.PatientRecord.Communication.Task(p, "Task", null, assignedBy, DateTime.Now);
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            TaskList tList = new TaskList(p);
            tList.LoadFullList();

            AppointmentList apt = new AppointmentList();
            apt.LoadFullList();

            foreach (RiskApps3.Model.PatientRecord.Communication.Task task in tList)
            {
                PtFollowupList fList = new PtFollowupList(task);
                fList.LoadFullList();
                HraModelChangedEventArgs args1 = new HraModelChangedEventArgs(null);
                args1.Delete = true;
                foreach (PtFollowup followup in fList)
                {
                    followup.BackgroundPersistWork(args1);
                }
                task.BackgroundPersistWork(args1);
            }
            //Creating folowup object
        }
Exemple #11
0
        public void AddTasks(int _institutionId, string unitnum, int apptid)
        {
            //SetUserSession();

            /* code written by nilesh  */
            string assignedBy = "";
            if (SessionManager.Instance.ActiveUser != null)
            {
                if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
                {
                    assignedBy = SessionManager.Instance.ActiveUser.ToString();
                }
            }
            SessionManager.Instance.SetActivePatient(unitnum, apptid);
            RiskApps3.Model.PatientRecord.Patient p = SessionManager.Instance.GetActivePatient();    // TODO:  Check this!!
            RiskApps3.Model.PatientRecord.Communication.Task t = new RiskApps3.Model.PatientRecord.Communication.Task(p, "Task", null, assignedBy, DateTime.Now);
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);

            t.BackgroundPersistWork(args);

            RiskApps3.Model.PatientRecord.Communication.PtFollowup newFollowup = new RiskApps3.Model.PatientRecord.Communication.PtFollowup(t);
            newFollowup.FollowupDisposition = "Omit From List";
            newFollowup.TypeOfFollowup = "Phone Call";
            newFollowup.Comment = "Do Not Call";
            newFollowup.Who = assignedBy;
            newFollowup.Date = DateTime.Now;
            args = new HraModelChangedEventArgs(null);
            t.FollowUps.Add(newFollowup);
            newFollowup.BackgroundPersistWork(args);

            /* End code written by nilesh  */
        }
Exemple #12
0
        private void NewPatientFollowup_Click(object sender, EventArgs e)
        {
            string assignedBy = "";
            if (SessionManager.Instance.ActiveUser != null)
            {
                if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
                {
                    assignedBy = SessionManager.Instance.ActiveUser.ToString();
                }
            }

            Task t = new Task(proband, "Patient Followup", null, assignedBy, DateTime.Now);
            HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
            args.Persist = true;
            proband.Tasks.AddToList(t, args);
        }
Exemple #13
0
        private void bitmapButton5_Click(object sender, EventArgs e)
        {
            Patient p = SessionManager.Instance.GetActivePatient();
            if (p != null)
            {
                string assignedBy = "";
                if (SessionManager.Instance.ActiveUser != null)
                {
                    if (string.IsNullOrEmpty(SessionManager.Instance.ActiveUser.ToString()) == false)
                    {
                        assignedBy = SessionManager.Instance.ActiveUser.ToString();
                    }
                }
                Task t = new Task(p, "Patient Followup", null, assignedBy, DateTime.Now);
                HraModelChangedEventArgs args = new HraModelChangedEventArgs(null);
                args.Persist = true;
                p.Tasks.AddToList(t, args);

                //TaskView tv = new TaskView(t);
                //tv.ShowDialog();

                QueueNotesView qnv = new QueueNotesView();
                qnv.InitialTask = t;
                qnv.ShowDialog();
            }
        }
Exemple #14
0
 public PtFollowup(Task parent)
 {
     owningTask = parent;
     FollowupWho = parent.Task_AssignedBy;
 }
Exemple #15
0
 public PtFollowupList(Task parent)
 {
     OwningTask = parent;
     constructor_args = new object[] { OwningTask };
 }
 internal void SetTask(Task task)
 {
     FillControls();
 }