Advertisement
raven145

Untitled

Nov 27th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. public void viewwaitinglist() throws ERException {
  2. ArrayList<Patient> a = Waitlist.getPatientsCategorizedByUrgency().get("URGENT");
  3. ArrayList<Patient> b = Waitlist.getPatientsCategorizedByUrgency().get("LESS URGENT");
  4. ArrayList<Patient> c = Waitlist.getPatientsCategorizedByUrgency().get("NON URGENT");
  5. String s = "URGENT\n";
  6. for (int i = 0; i < a.size(); i++) {
  7. s = s + a.get(i).getFullName()+ ", " + a.get(i).getDateOfBirth() + ", " + a.get(i).getHealthcardNumber() + "\n";
  8. }
  9. s = s + "LESS URGENT\n";
  10. for (int i = 0; i < b.size(); i++) {
  11. s = s + b.get(i).getFullName()+ ", " + b.get(i).getDateOfBirth() + ", " + b.get(i).getHealthcardNumber() + "\n";
  12. }
  13. s = s + "NON URGENT\n";
  14. for (int i = 0; i < c.size(); i++) {
  15. s = s + c.get(i).getFullName()+ ", " + c.get(i).getDateOfBirth() + ", " + c.get(i).getHealthcardNumber() + "\n";
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement