public RegisterPatientTab() { InitializeComponent(); gatherID = endorseID = 0; patient = new Patient(); client = new Client(); fsheet = new FaceSheet(); cost = new CostTable(); server = "localhost"; user = "******"; database = "hhc-db"; password = "******"; string connString = "SERVER=" + server + ";" + "DATABASE=" + database + ";" + "UID=" + user + ";" + "PASSWORD="******";"; conn = new MySqlConnection(connString); if (OpenConnection()) { int hvnum = 0, cmnum = 0; //INITIALIZE CHECK BOX LISTS WITH ITEMS FROM DATABASE. string query = "SELECT DESCRIPTION FROM CASE_MGMT_REF;"; cmd = new MySqlCommand(query, conn); read = cmd.ExecuteReader(); while (read.Read()) { cmnum++; caseMgmtBox.Items.Add(read.GetString(0)); } read.Close(); query = "SELECT DESCRIPTION FROM HVAC_REF;"; cmd.CommandText = query; read = cmd.ExecuteReader(); while (read.Read()) { hvnum++; hvacCoB.Items.Add(read.GetString(0)); } read.Close(); //INTITIALIZE FACE SHEET Console.WriteLine("Number of CM Items: {0}", cmnum); Console.WriteLine("Number of HV Items: {0}", hvnum); CloseConnection(); fsheet = new FaceSheet(cmnum, hvnum); } }
public void setFS(Physician phy, Client cli, Patient pat, bool[] cm, bool[] hv, bool ct, bool aw, bool sr) { physician = phy; client = cli; patient = pat; casMan = cm; homVac = hv; carTra = ct; ambWel = aw; senRes = sr; }
public FaceSheet() { physician = new Physician(); client = new Client(); patient = new Patient(); casMan = new bool[4]; homVac = new bool[4]; carTra = new bool(); ambWel = new bool(); senRes = new bool(); }
public CGA() { patient = new Patient(); physician = new Physician(); ph = new PersonalHistory(); fh = new FamilyHistory(); se = new SocialEnvironment(); mh = new MedicalHistory(); ml = new MedicationList(); im = new Immunization(); fs = new FunctionalStatus(); gd = new GDScales(); me = new MentalExam(); nu = new Nutrition(); ca = new CGiverAssess(); }
public RegisterPatientTab() { InitializeComponent(); this.tabPage1.Text = "Register Patient"; this.tabPage2.Text = "Register Client"; this.tabPage3.Text = "Requirements"; this.tabPage4.Text = "Details"; patient = new Patient(); client = new Client(); fsheet = new FaceSheet(); server = "localhost"; user = "******"; database = "hhc-db"; password = "******"; string connString = "SERVER=" + server + ";" + "DATABASE=" + database + ";" + "UID=" + user + ";" + "PASSWORD="******";"; conn = new MySqlConnection(connString); }
public void setPat(Patient pat) { patient = pat; }
private void displayStuff(Patient p) { Console.WriteLine("Name: "+patient.getName().getFullName()); Console.WriteLine("Birthdate: "+patient.getBDay().ToShortDateString()); Console.WriteLine("Gender: "+patient.getGender()); Console.WriteLine("Nationality: "+patient.getNationality()); Console.WriteLine("Religion: "+patient.getReligion()); Console.WriteLine("Civil Status: "+patient.getCivilStatus()); Console.WriteLine("Educational Attainment: "+patient.getEducAttainment()); }