/**
  * Main method used to find the hospitals and all specified personnel within range
  *
  * @param distance The maximum distance that a hospital must be within range in order for it to
  *     return
  * @param specialty The specialty that the user is interested in
  * @param patientZip Zipcode entered by the patient
  * @param zipRange The range to search hospitals for. The amount of zipcode digits to match,
  *     starting with the first digit.
  * @return A relationship between hospitals within the defined proximity and the specified experts
  *     at the hospital.
  */
 public HashMap<HospitalBean, List<PersonnelBean>> findHospitalsBySpecialty(
     String specialty, String patientZip, int zipRange) {
   HashMap<HospitalBean, List<PersonnelBean>> experts = null;
   try {
     // Grab all hospitals and filter them based on distance
     List<HospitalBean> hospitals =
         filterHospitals(hospitalsDAO.getAllHospitals(), patientZip, zipRange);
     // Find experts in hospitals
     experts = findExperts(hospitals, specialty);
   } catch (DBException e) {
     //
   }
   return experts;
 }
 public List<HospitalBean> findHospitalsAssignedToHCP(long pid) throws SQLException {
   return hospitalsDAO.getHospitalsAssignedToPhysician(pid);
 }