-
Notifications
You must be signed in to change notification settings - Fork 0
/
Letters.java
46 lines (37 loc) · 1.04 KB
/
Letters.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
package bbtrial.nl.logicgate.ace;
import java.util.List;
/**
* Letters gets information about patient localLetters
* @author skmedlock
*
*/
public class Letters {
private LettersI localLetters;
public Letters(LettersI localLetters){
this.localLetters = localLetters;
}
/**
* Finds the most recent letter dated BEFOREs the patient's visit
* date.
* @param newPatients
* @param doctors
*/
public List<Patient> findLetters(List<Patient> newPatients, Doctors doctors) {
newPatients = localLetters.findLetters(newPatients, doctors);
return newPatients;
}
/**
* Checks a list of patients for new letters.
* If a new letter is found, it adds to the patient to the list
* of Finished patients, which is returned.
* @param patients
* @param doctors
* @return finished patients
*/
public List<Patient> checkForNewLetters(List<Patient> patients, Doctors doctors) {
return localLetters.checkForNewLetters(patients, doctors);
}
public void close() {
localLetters.close();
}
}