public ResultSet checkPatient(String patient_info) {

		try {
			// checking whether the user enters health care no or patient name

			if (Helper.isInteger(patient_info)) {
				String selectPatientByNoQuery = "SELECT * FROM PATIENT WHERE health_care_no = "
						+ Integer.parseInt(patient_info);
				rs = stmt.executeQuery(selectPatientByNoQuery);
			} else {
				String selectPatientByNameQuery = "SELECT * FROM PATIENT WHERE UPPER(name) = UPPER('"
						+ patient_info + "')";
				rs = stmt.executeQuery(selectPatientByNameQuery);
			}

		} catch (SQLException e) {
			System.out.println("Could not find the patient.");
		}
		return rs;
	}