private void savePatientBtn_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(fullNameTextBox.Text))
            {
                MessageBox.Show("Please enter full name");
                return;
            }

            if (string.IsNullOrEmpty(emailTextBox.Text))
            {
                MessageBox.Show("Please enter email");
                return;
            }

            if (genderComboBox.SelectedIndex == 0)
            {
                MessageBox.Show("Please select gender");
                return;
            }

            if (string.IsNullOrEmpty(nricTextBox.Text))
            {
                MessageBox.Show("Please enter nric");
                return;
            }

            if (string.IsNullOrEmpty(addressTextBox.Text))
            {
                MessageBox.Show("Please enter address");
                return;
            }

            if (string.IsNullOrEmpty(phoneTextBox.Text))
            {
                MessageBox.Show("Please enter phone");
                return;
            }

            if (string.IsNullOrEmpty(ageTextBox.Text))
            {
                MessageBox.Show("Please enter age");
                return;
            }

            Patient newPatient = new Patient();

            newPatient.FullName     = fullNameTextBox.Text;
            newPatient.IdentityCard = long.Parse(nricTextBox.Text);
            newPatient.Address      = addressTextBox.Text;
            newPatient.Email        = emailTextBox.Text;
            newPatient.Gender       = genderComboBox.SelectedItem.ToString();
            newPatient.Phone        = int.Parse(phoneTextBox.Text);
            newPatient.Age          = int.Parse(ageTextBox.Text);
            newPatient.BedsideId    = 0;

            DBConnector dBconn = new DBConnector();

            dBconn.connect();
            PatientHandler patientHandler = new PatientHandler();
            int            addResult      = patientHandler.addNewPatient(dBconn.getConn(), newPatient);

            if (addResult == 1)
            {
                MessageBox.Show("New Patient Record is inserted");
                fullNameTextBox.Text         = "";
                nricTextBox.Text             = "";
                addressTextBox.Text          = "";
                emailTextBox.Text            = "";
                genderComboBox.SelectedIndex = 0;
                phoneTextBox.Text            = "";
                ageTextBox.Text       = "";
                patientIdTextBox.Text = patientHandler.getLastRecordID(dBconn.getConn());
            }
        }