-
Notifications
You must be signed in to change notification settings - Fork 0
/
Patient.java
176 lines (150 loc) · 3.53 KB
/
Patient.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
package bbtrial.nl.logicgate.ace;
/**
* Patient objects are containers for patient-specific data.
* Each Patient object represents a single patient-visit which may
* require a letter.
* @author skmedlock
*
*/
public class Patient {
private String pid;
private String dept; //string indicating what service the patient was seen by
private String category; //string code indicating what kind of patient this is
private RCalendar visitDate;
private Letter lastLetter; //most recent letter that was BEFORE the visit date
private RCalendar letterDueDate; //should be calculated based on this doctor's preferences for this patient type
private Letter newLetter; //a letter for this visitDate, by definition after the visitDate
private String doctorID; //string code indicating which doctor is responsible for a letter for this visit
private RCalendar firstPossibleReminderDate; //date when reminder is allowed per doctor's preferences
private String dbid;
private String status;
public Patient(String pid){
this.pid = pid;
}
/**
* @return the category
*/
public String getCategory() {
return category;
}
/**
* @param category the category to set
*/
public void setCategory(String category) {
this.category = category;
}
/**
* @return the visitDate
*/
public RCalendar getVisitDate() {
return visitDate;
}
/**
* @param visitDate the visitDate to set
*/
public void setVisitDate(RCalendar visitDate) {
this.visitDate = visitDate;
}
/**
* @return the lastLetter
*/
public Letter getLastLetter() {
return lastLetter;
}
/**
* @param lastLetter the lastLetter to set
*/
public void setLastLetter(Letter lastLetter) {
this.lastLetter = lastLetter;
}
/**
* @return the newLetter
*/
public Letter getNewLetter() {
return newLetter;
}
/**
* @param newLetter the newLetter to set
*/
public void setNewLetter(Letter newLetter) {
this.newLetter = newLetter;
}
/**
* @return the doctorID
*/
public String getDoctorID() {
return doctorID;
}
/**
* @param doctorID the doctorID to set
*/
public void setDoctorID(String doctorID) {
this.doctorID = doctorID;
}
/**
* @return the pid
*/
public String getPID() {
return pid;
}
/**
* @param letterDueDate the letterDueDate to set
*/
public void setLetterDueDate(RCalendar letterDueDate) {
this.letterDueDate = letterDueDate;
}
/**
* @return the letterDueDate
*/
public RCalendar getLetterDueDate() {
return letterDueDate;
}
/**
* @param firstPossibleReminderDate the firstPossibleReminderDate to set
*/
public void setFirstPossibleReminderDate(RCalendar firstPossibleReminderDate) {
this.firstPossibleReminderDate = firstPossibleReminderDate;
}
/**
* @return the firstPossibleReminderDate
*/
public RCalendar getFirstPossibleReminderDate() {
return firstPossibleReminderDate;
}
/**
* @param dbid the dbid to set
*/
public void setDBID(String dbid) {
this.dbid = dbid;
}
/**
* @return the dbid
*/
public String getDBID() {
return dbid;
}
/**
* @param dept the dept to set
*/
public void setDept(String dept) {
this.dept = dept;
}
/**
* @return the dept
*/
public String getDept() {
return dept;
}
/**
* @param status the status to set
*/
public void setStatus(String status) {
this.status = status;
}
/**
* @return the status
*/
public String getStatus() {
return status;
}
}