public billingGrid(bool summary) { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; int costSum = 0; int insPaidSum = 0; int paidSum = 0; int owedSum = 0; if (!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem.Enabled = false; } foreach (PIMSController.BillingLineItem item in patient.billing.items) { int owed = item.cost - item.insPaid - item.paid; owedSum += owed; costSum += item.cost; insPaidSum += item.insPaid; paidSum += item.paid; } DGV.Rows.Add("Totals", null, Math.Round(((float)costSum / 100.0), 2), Math.Round(((float)insPaidSum / 100.0), 2), Math.Round(((float)paidSum / 100.0), 2), Math.Round(((float)owedSum / 100.0), 2)); }
public visitorsGrid() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; foreach (PIMSController.Visitor visitor in patient.directory.visitors) { dgv.Rows.Add(null, visitor.name); } if (user is PIMSController.Volunteer) { treatmentToolStripMenuItem.Enabled = false; billingToolStripMenuItem.Enabled = false; directoryToolStripMenuItem.Enabled = false; button1.Visible = false; button2.Visible = false; nameBox.Visible = false; } else { volunteerGridToolStripMenuItem.Enabled = false; } if (user is PIMSController.OfficeStaff) { treatmentToolStripMenuItem.Enabled = false; } if (user is PIMSController.Doctor || user is PIMSController.MedStaff) { button1.Visible = false; button2.Visible = false; nameBox.Visible = false; } }
public insuranceForm() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; button1.Hide(); foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl.Name != "textBox1") { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; } } ProviderBox.Text = patient.billing.insurance.provider; binBox.Text = patient.billing.insurance.bin; pcnBox.Text = patient.billing.insurance.pcn; groupBox.Text = patient.billing.insurance.groupNum; idBox.Text = patient.billing.insurance.id; if (!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem1.Enabled = false; } }
public locationForm() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; floorBox.Text = patient.directory.location.floor; unitBox.Text = patient.directory.location.unit; bedBox.Text = patient.directory.location.bedNum; roomBox.Text = patient.directory.location.roomNum; foreach (Control ctrl in this.Controls) { if(ctrl is TextBox && ctrl.Name != "searchBox") { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; } } if(!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem1.Enabled = false; } }
public insuranceForm() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; button1.Hide(); foreach(Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl.Name != "textBox1") { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; } } ProviderBox.Text = patient.billing.insurance.provider; binBox.Text = patient.billing.insurance.bin; pcnBox.Text = patient.billing.insurance.pcn; groupBox.Text = patient.billing.insurance.groupNum; idBox.Text = patient.billing.insurance.id; if(!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem1.Enabled = false; } }
public locationForm() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; floorBox.Text = patient.directory.location.floor; unitBox.Text = patient.directory.location.unit; bedBox.Text = patient.directory.location.bedNum; roomBox.Text = patient.directory.location.roomNum; foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl.Name != "searchBox") { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; } } if (!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem1.Enabled = false; } }
public patientForm() { InitializeComponent(); this.ControlBox = false; curUser = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; if (curUser is PIMSController.Doctor || curUser is PIMSController.MedStaff) { editToolStripMenuItem.Enabled = false; treatmentToolStripMenuItem.Enabled = true; billingToolStripMenuItem.Enabled = true; button1.Visible = false; } else if(curUser is PIMSController.OfficeStaff) { editToolStripMenuItem.Enabled = true; treatmentToolStripMenuItem.Enabled = false; billingToolStripMenuItem.Enabled = true; } else { // Shouldn't ever happen, but just in case MessageBox.Show("Invalid User! Closing Program", "Invalid User", MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); } // currentPatient = patient; // currentPatient = PimsMain.Program.currentPatient; foreach(Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl != queryBar) { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; } } this.lastNameTextBox.Text = patient.directory.lName; this.firstNameTextBox.Text = patient.directory.fName; this.middleNameTextBox.Text = patient.directory.mName; this.dobTextBox.Text = patient.directory.DOB.ToString(@"MM\/dd\/yyyy"); if (patient.directory.gender) this.genderTextBox.Text = "M"; else this.genderTextBox.Text = "F"; this.addressTextBox.Text = patient.directory.strAddress; this.cityTextBox.Text = patient.directory.city; this.stateTextBox.Text = patient.directory.state; this.zipTextBox.Text = patient.directory.zip; this.primaryPhoneTextBox.Text = patient.directory.phoneNum1; this.secondaryPhoneTextBox.Text = patient.directory.phoneNum2; this.contactName1TextBox.Text = patient.directory.emerContact1.name; this.contactPhone1TextBox.Text = patient.directory.emerContact1.phoneNum; this.contactName2TextBox.Text = patient.directory.emerContact2.name; this.contactPhone2TextBox.Text = patient.directory.emerContact2.phoneNum; }
public AddProcedureForm() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; }
public patientForm(bool isNew) { InitializeComponent(); this.ControlBox = false; curUser = PimsMain.Program.currentUser; patient = new PIMSController.Patient(); PimsMain.Program.currentPatient = patient; }
public prescriptionGrid() { InitializeComponent(); this.ControlBox = false; user = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; foreach (PIMSController.PrescDrug drug in patient.treatment.prescriptions.prescriptions) { DGV.Rows.Add(drug.id, drug.name, drug.ndc, drug.cost, drug.dateFilled.ToString(@"MM\/dd\/yyyy")); } }
public prescriptionGrid() { InitializeComponent(); this.ControlBox = false; user = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; foreach(PIMSController.PrescDrug drug in patient.treatment.prescriptions.prescriptions) { DGV.Rows.Add(drug.id, drug.name, drug.ndc, drug.cost, drug.dateFilled.ToString(@"MM\/dd\/yyyy")); } }
public SchedProcForm() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; foreach (PIMSController.MedProcedure proc in patient.treatment.procedures) { dataGridView1.Rows.Add(proc.what, proc.when.ToString("f"), proc.who, proc.where); } }
public mainGrid(String lastNameQuery) { InitializeComponent(); this.ControlBox = false; user = PimsMain.Program.currentUser; fileToolStripMenuItem1.Enabled = false; treatmentToolStripMenuItem.Enabled = false; billingToolStripMenuItem.Enabled = false; directoryToolStripMenuItem.Enabled = false; patients = PIMSController.SQLcommands.getPatientList(); fillDGV(lastNameQuery); }
public nurseNotes() { InitializeComponent(); this.ControlBox = false; user = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; updateStatDisplay(); allergiesTextBox.Text = patient.treatment.medStaffNotes.allergies; notesTextBox.Text = patient.treatment.medStaffNotes.nurseNotes; if (user is PIMSController.MedStaff) { foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl != searchBox) { ((TextBox)ctrl).ReadOnly = false; ((TextBox)ctrl).BackColor = SystemColors.Window; } if (ctrl is Button) { ((Button)ctrl).Visible = false; } } } else { foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl != searchBox) { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; button2.Enabled = false; updateAllergiesButton.Enabled = false; updateNurseNotesButton.Enabled = false; button2.Visible = false; updateNurseNotesButton.Visible = false; updateAllergiesButton.Visible = false; } } } }
public nurseNotes() { InitializeComponent(); this.ControlBox = false; user = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; updateStatDisplay(); allergiesTextBox.Text = patient.treatment.medStaffNotes.allergies; notesTextBox.Text = patient.treatment.medStaffNotes.nurseNotes; if(user is PIMSController.MedStaff) { foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl != searchBox) { ((TextBox)ctrl).ReadOnly = false; ((TextBox)ctrl).BackColor = SystemColors.Window; } if(ctrl is Button) { ((Button)ctrl).Visible = false; } } } else { foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl != searchBox) { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; button2.Enabled = false; updateAllergiesButton.Enabled = false; updateNurseNotesButton.Enabled = false; button2.Visible = false; updateNurseNotesButton.Visible = false; updateAllergiesButton.Visible = false; } } } }
public doctorNotesForm() { InitializeComponent(); this.ControlBox = false; user = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; if (user is PIMSController.Doctor) { docNotesTextBox.ReadOnly = false; } else { docNotesTextBox.ReadOnly = true; } docNotesTextBox.Text = patient.treatment.docNotes; }
PIMSController.PrintInfo document = new PIMSController.PrintInfo(); //instantiate new printInfo object to print page public billingGrid() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; int costSum = 0; int insPaidSum= 0; int paidSum = 0; int owedSum = 0; Console.WriteLine("billing grid constructer!"); if(!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem.Enabled = false; } int i = 0; foreach(PIMSController.BillingLineItem item in patient.billing.items) { Console.WriteLine(i++); int owed = item.cost - item.insPaid - item.paid; owedSum += owed; costSum += item.cost; insPaidSum += item.insPaid; paidSum += item.paid; DGV.Rows.Add(item.item, item.dueDate.ToString(@"MM\/dd\/yyyy"), Math.Round(((float)item.cost/ 100.0),2), Math.Round(((float)item.insPaid / 100.0),2), Math.Round(((float)item.paid / 100.0),2), Math.Round(((float)owed / 100.0),2)); } DGV.Rows.Add("Totals", null, Math.Round(((float)costSum / 100.0), 2), Math.Round(((float)insPaidSum / 100.0), 2), Math.Round(((float)paidSum / 100.0), 2), Math.Round(((float)owedSum / 100.0), 2)); }
PIMSController.PrintInfo document = new PIMSController.PrintInfo(); //instantiate new printInfo object to print page public billingGrid() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; int costSum = 0; int insPaidSum = 0; int paidSum = 0; int owedSum = 0; Console.WriteLine("billing grid constructer!"); if (!(user is PIMSController.OfficeStaff)) { fileToolStripMenuItem.Enabled = false; } int i = 0; foreach (PIMSController.BillingLineItem item in patient.billing.items) { Console.WriteLine(i++); int owed = item.cost - item.insPaid - item.paid; owedSum += owed; costSum += item.cost; insPaidSum += item.insPaid; paidSum += item.paid; DGV.Rows.Add(item.item, item.dueDate.ToString(@"MM\/dd\/yyyy"), Math.Round(((float)item.cost / 100.0), 2), Math.Round(((float)item.insPaid / 100.0), 2), Math.Round(((float)item.paid / 100.0), 2), Math.Round(((float)owed / 100.0), 2)); } DGV.Rows.Add("Totals", null, Math.Round(((float)costSum / 100.0), 2), Math.Round(((float)insPaidSum / 100.0), 2), Math.Round(((float)paidSum / 100.0), 2), Math.Round(((float)owedSum / 100.0), 2)); }
public visitorsGrid() { InitializeComponent(); this.ControlBox = false; patient = PimsMain.Program.currentPatient; user = PimsMain.Program.currentUser; foreach (PIMSController.Visitor visitor in patient.directory.visitors) { dgv.Rows.Add(null, visitor.name); } if (user is PIMSController.Volunteer) { treatmentToolStripMenuItem.Enabled = false; billingToolStripMenuItem.Enabled = false; directoryToolStripMenuItem.Enabled = false; button1.Visible = false; button2.Visible = false; nameBox.Visible = false; } else { volunteerGridToolStripMenuItem.Enabled = false; } if(user is PIMSController.OfficeStaff) { treatmentToolStripMenuItem.Enabled = false; } if(user is PIMSController.Doctor || user is PIMSController.MedStaff) { button1.Visible = false; button2.Visible = false; nameBox.Visible = false; } }
public patientForm() { InitializeComponent(); this.ControlBox = false; curUser = PimsMain.Program.currentUser; patient = PimsMain.Program.currentPatient; if (curUser is PIMSController.Doctor || curUser is PIMSController.MedStaff) { editToolStripMenuItem.Enabled = false; treatmentToolStripMenuItem.Enabled = true; billingToolStripMenuItem.Enabled = true; button1.Visible = false; } else if (curUser is PIMSController.OfficeStaff) { editToolStripMenuItem.Enabled = true; treatmentToolStripMenuItem.Enabled = false; billingToolStripMenuItem.Enabled = true; } else { // Shouldn't ever happen, but just in case MessageBox.Show("Invalid User! Closing Program", "Invalid User", MessageBoxButtons.OK, MessageBoxIcon.Error); Application.Exit(); } // currentPatient = patient; // currentPatient = PimsMain.Program.currentPatient; foreach (Control ctrl in this.Controls) { if (ctrl is TextBox && ctrl != queryBar) { ((TextBox)ctrl).ReadOnly = true; ((TextBox)ctrl).BackColor = SystemColors.Control; } } this.lastNameTextBox.Text = patient.directory.lName; this.firstNameTextBox.Text = patient.directory.fName; this.middleNameTextBox.Text = patient.directory.mName; this.dobTextBox.Text = patient.directory.DOB.ToString(@"MM\/dd\/yyyy"); if (patient.directory.gender) { this.genderTextBox.Text = "M"; } else { this.genderTextBox.Text = "F"; } this.addressTextBox.Text = patient.directory.strAddress; this.cityTextBox.Text = patient.directory.city; this.stateTextBox.Text = patient.directory.state; this.zipTextBox.Text = patient.directory.zip; this.primaryPhoneTextBox.Text = patient.directory.phoneNum1; this.secondaryPhoneTextBox.Text = patient.directory.phoneNum2; this.contactName1TextBox.Text = patient.directory.emerContact1.name; this.contactPhone1TextBox.Text = patient.directory.emerContact1.phoneNum; this.contactName2TextBox.Text = patient.directory.emerContact2.name; this.contactPhone2TextBox.Text = patient.directory.emerContact2.phoneNum; }