-
Notifications
You must be signed in to change notification settings - Fork 0
/
Agenda.java
52 lines (41 loc) · 1.09 KB
/
Agenda.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package bbtrial.nl.logicgate.ace;
import java.util.List;
/**
* Gets the lists of new patients
* Has a localAgenda object which connects to the hospital Agenda
* @author skmedlock
*
*/
public class Agenda {
private AgendaI localAgenda;
private List<Patient> newPatients;
private List<Patient> noShows;
public Agenda(AgendaI localAgenda, Doctors doctors){
this.localAgenda = localAgenda;
newPatients = null;
noShows = null;
fillPatients(doctors);
}
/**
* @return the newPatients
*/
public List<Patient> getNewPatients() {
return newPatients;
}
/**
* @return the noShows
*/
public List<Patient> getNoShows() {
return noShows;
}
private void fillPatients(Doctors doctors){
newPatients = localAgenda.getNewPatients(doctors);
//newPatients are those added since BriefBot last ran.
//it's OK if this duplicates some patients from the last run.
noShows = localAgenda.getNoShows(doctors);
//noShows are patients who did not show up for their appointment
}
public void close() {
localAgenda.close();
}
}