public PtFollowupRow(PtFollowup ptFollowup) { this.ptFollowup = ptFollowup; InitializeComponent(); foreach (User u in SessionManager.Instance.MetaData.Users) { this.who.Items.Add(u); } UIUtils.fillComboBoxFromLookups(cboFollowupType, "tblFollowup", "FollowupType", true); UIUtils.fillComboBoxFromLookups(cboFollowupDisposition, "tblFollowup", "FollowupDisposition", true); UIUtils.fillComboBoxFromLookups(cboFollowupNoReason, "tblFollowup", "noApptReason", true); FillControls(); }
private void addToDoNotCallListToolStripMenuItem_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(); } } Patient p = SessionManager.Instance.GetActivePatient(); // TODO: Check this!! Task t = new Task(p, "Task", null, assignedBy, DateTime.Now); HraModelChangedEventArgs args = new HraModelChangedEventArgs(null); args.Persist = true; p.Tasks.AddToList(t, args); PtFollowup newFollowup = new PtFollowup(t); newFollowup.Disposition = "Omit From List"; newFollowup.TypeOfFollowup = "Phone Call"; newFollowup.Comment = "Do Not Call"; newFollowup.Who = assignedBy; newFollowup.Date = DateTime.Now; args = new HraModelChangedEventArgs(null); args.Persist = true; t.FollowUps.AddToList(newFollowup, args); }
private void button1_Click(object sender, EventArgs e) { PtFollowup newFollowup = new PtFollowup(task); HraModelChangedEventArgs args = new HraModelChangedEventArgs(null); args.Persist = false; task.FollowUps.AddToList(newFollowup, args); }
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 */ }