Beispiel #1
0
 public void savedata(
     String first,
     String last,
     String hospital,
     String Qualification,
     String mobile1,
     String mobile2,
     int id,
     ArrayList<Integer> MID) {
   doctorDAInstance.UpdateDoctorInfo(
       first, last, hospital, Qualification, mobile1, mobile2, id, MID);
 }
Beispiel #2
0
 public String getpassword(int id) {
   String pass;
   pass = doctorDAInstance.getDoctorPassword(id);
   return pass;
 }
Beispiel #3
0
 public ArrayList<String> getList(DoctorDataAccessManager testp, int id) {
   ArrayList<String> list;
   list = testp.availabity(id);
   return list;
 }
Beispiel #4
0
/** @author Prashan */
public class Doctor extends User {

  private DoctorDataAccessManager doctorDAInstance = DoctorDataAccessManager.getInstance();
  private String date;
  private String first;
  private String last;
  private String hospital;
  private String qualification;
  private String spec;

  public String getHospital() {
    return hospital;
  }

  public String getQualification() {
    return qualification;
  }

  public Doctor(String name, int id, String paswrd, DoctorDataAccessManager testp) {
    super(name, id, paswrd);
    this.doctorDAInstance = testp;
  }

  public Doctor(String fname, String lname) {
    super(fname, lname, "");
  }

  public Doctor(int id, DoctorDataAccessManager testp, String date) {
    super(id);
    this.doctorDAInstance = testp;
    this.date = date;
  }

  public Doctor(int id) {
    super(id);
  }

  public Doctor() {}

  public Doctor(DoctorDataAccessManager testp, String date) {
    this.doctorDAInstance = testp;
    this.date = date;
    //  getList(testp,date);
  }

  public Doctor(String first, String last, String hos, String quali, String spc) {
    this.first = first;
    this.last = last;
    this.hospital = hos;
    this.qualification = quali;
    this.spec = spc;
  }

  public Doctor(int pId, DoctorDataAccessManager testp) {
    super(pId);
    this.doctorDAInstance = testp;
  }

  public Doctor(String name, String paswrd, DoctorDataAccessManager testp) {
    super(name, paswrd);
    this.doctorDAInstance = testp;
  }

  public Doctor(String name, DoctorDataAccessManager testp) {
    super(name);
    this.doctorDAInstance = testp;
  }

  public void savedata(
      String first,
      String last,
      String hospital,
      String Qualification,
      String mobile1,
      String mobile2,
      int id,
      ArrayList<Integer> MID) {
    doctorDAInstance.UpdateDoctorInfo(
        first, last, hospital, Qualification, mobile1, mobile2, id, MID);
  }

  public ArrayList<String> getList(DoctorDataAccessManager testp, int id) {
    ArrayList<String> list;
    list = testp.availabity(id);
    return list;
  }

  public String getpassword(int id) {
    String pass;
    pass = doctorDAInstance.getDoctorPassword(id);
    return pass;
  }

  public ArrayList<String> getpatientlastappoinmentdetails(
      DoctorDataAccessManager testp, int pid, int did) {
    ArrayList<String> details;
    details = testp.lastappointment(pid, did);
    return details;
  }

  public int getavailablecount(DoctorDataAccessManager testp, int id) {
    int count = -1;
    count = testp.availabitycount(id);
    return count;
  }

  public ArrayList<String> getNaturalJoinList(PatientDataAccessManager testp, String date) {
    ArrayList<String> list;
    list = testp.getNaturalJoinList(date);
    return list;
  }

  public ArrayList<String> getupdatedList(PatientDataAccessManager testp, String date, int did) {
    ArrayList<String> list;
    list = testp.getupdatedPrescription(date, did);
    return list;
  }

  public void deleteChannel(int pId, PatientDataAccessManager testp, String date) {

    testp.deleteChannel(pId, date);
  }

  public ArrayList<String> getAllData(PatientDataAccessManager testp, int pId) {
    ArrayList<String> list;
    list = testp.getAllData(pId);
    return list;
  }

  public boolean checkChannel(PatientDataAccessManager testp, int pId, String Sdate) {
    boolean status = true;
    status = testp.checktheChannel(pId, Sdate);
    return status;
  }

  public int getselecteddoctorid(String first, String last) {
    int id = -2;
    id = doctorDAInstance.getDoctorId(first, last);
    return id;
  }

  public void savedata() {
    doctorDAInstance.registerDoctorInfo(first, last, getHospital(), getQualification(), spec);
  }

  public ArrayList<String> getTodayDoctorList(String day) {
    ArrayList<String> list;
    list = doctorDAInstance.getTodaylist(day);
    return list;
  }

  public ArrayList<String> fillPatientTable(int did, String date) {
    ArrayList<String> list;
    list = doctorDAInstance.getTodaypatientlist(did, date);
    return list;
  }
}
Beispiel #5
0
 public ArrayList<String> fillPatientTable(int did, String date) {
   ArrayList<String> list;
   list = doctorDAInstance.getTodaypatientlist(did, date);
   return list;
 }
Beispiel #6
0
 public ArrayList<String> getTodayDoctorList(String day) {
   ArrayList<String> list;
   list = doctorDAInstance.getTodaylist(day);
   return list;
 }
Beispiel #7
0
 public void savedata() {
   doctorDAInstance.registerDoctorInfo(first, last, getHospital(), getQualification(), spec);
 }
Beispiel #8
0
 public int getselecteddoctorid(String first, String last) {
   int id = -2;
   id = doctorDAInstance.getDoctorId(first, last);
   return id;
 }
Beispiel #9
0
 public int getavailablecount(DoctorDataAccessManager testp, int id) {
   int count = -1;
   count = testp.availabitycount(id);
   return count;
 }
Beispiel #10
0
 public ArrayList<String> getpatientlastappoinmentdetails(
     DoctorDataAccessManager testp, int pid, int did) {
   ArrayList<String> details;
   details = testp.lastappointment(pid, did);
   return details;
 }