@SuppressWarnings("resource")
	public int getPatientNo(DataSource ds) {
		while (true) {
			System.out
					.print("Back = 0. Enter health care no or patient name: ");
			Scanner s = new Scanner(System.in);
			String patient_info = s.nextLine();
			try {
				int option = Integer.parseInt(patient_info);
				if (option == 0) {
					return 0;
				}
			} catch (Exception e) {
			}
			ResultSet rs = ds.checkPatient(patient_info);
			Vector<Patient> patients = ds.getPatientList(rs);
			int isExist = patients.size();
			if (isExist == 0) {
				System.out.println("Patient: " + patient_info
						+ " does not exist.");
				continue;
			} else {
				Helper.printPatients(patients);
				if (isExist > 1) {
					return getPatientNo(ds);
				} else {
					return patients.listIterator(0).next().getHealth_care_no();
				}
			}
		}
	}