public void setUpAnAppointment() {
        String locationPicked = (String) scheduleAppointment_locationComboBox.getSelectedItem();
        String firstName = scheduleAppointment_firstName.getText();
        String lastName = scheduleAppointment_lastName.getText();
        String emailAddress = scheduleAppointment_emailAddress.getText();
        String address = scheduleAppointment_address.getText();
        String city = scheduleAppointment_city.getText();
        String state = (String) scheduleAppointment_stateComboBox.getSelectedItem();
        String basicReason = scheduleAppointment_reason.getText();
        String fullReason = scheduleAppointment_reasonMessage.getText();
        Department department = new Department((String) scheduleAppointment_departmentComboBox.getSelectedItem());
        String docName = (String) scheduleAppointment_doctorComboBox.getSelectedItem();

        // This lines adds a a relation between a doctor and a patient with the middling happening with the Appointment.
        Doctor docWithAppointment = (Doctor) hospital.getAllStaff().get(docName);
        Patient currentUser = (Patient) hospital.getAllUsers().get(userNameOfCurrentUser);
        Patient_Doctor newPatientDoctorRelation = new Patient_Doctor(docWithAppointment, currentUser);
        currentUser.getPersonDoctor().add(newPatientDoctorRelation);
        docWithAppointment.getPersonDoctor().add(newPatientDoctorRelation);
        Room room = hospital.getAllRooms().pop();
        Appointment newAppointment = new Appointment(docWithAppointment, currentUser, department, basicReason, fullReason, room);
        docWithAppointment.getAppointment().add(newAppointment);
        currentUser.getAppointment().add(newAppointment);

        // TODO: ADD A SUCCESS ALERT THAT THE USER SUCCESSFULLY ADDED AN APPOINTMENT.
        updateViewWithNewUserInfoInEmailToDoctorTab();
        updateViewInPatientHistoryTables();
        System.out.println("You have set an appointment.");

    }