-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
DrugReferenceMap.java
266 lines (223 loc) · 5.6 KB
/
DrugReferenceMap.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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
/**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*
* Copyright (C) OpenMRS, LLC. All Rights Reserved.
*/
package org.openmrs;
import org.simpleframework.xml.Attribute;
import java.io.Serializable;
import java.util.Date;
/**
* The DrugReferenceMap map object represents a mapping between a drug and alternative drug terminologies.
*
* @since 1.10
*/
public class DrugReferenceMap extends BaseOpenmrsObject implements Auditable, Retireable, Serializable {
public static final long serialVersionUID = 1L;
private Integer drugReferenceMapId;
private Drug drug;
private ConceptReferenceTerm conceptReferenceTerm;
private ConceptMapType conceptMapType;
private User creator;
private Date dateCreated;
private Boolean retired = false;
private User retiredBy;
private Date dateRetired;
private User changedBy;
private Date dateChanged;
private String retireReason;
/**
* @return Returns the drugReferenceMapId.
*/
public Integer getDrugReferenceMapId() {
return drugReferenceMapId;
}
/**
* @param drugReferenceMapId The drugReferenceMapId to set.
*/
public void setDrugReferenceMapId(Integer drugReferenceMapId) {
this.drugReferenceMapId = drugReferenceMapId;
}
/**
* @return Returns the drug.
*/
public Drug getDrug() {
return drug;
}
/**
* @param drug The drug to set.
*/
public void setDrug(Drug drug) {
this.drug = drug;
}
/**
* @return Returns the conceptReferenceTerm.
*/
public ConceptReferenceTerm getConceptReferenceTerm() {
return conceptReferenceTerm;
}
/**
* @param conceptReferenceTerm The conceptReferenceTerm to set.
*/
public void setConceptReferenceTerm(ConceptReferenceTerm conceptReferenceTerm) {
this.conceptReferenceTerm = conceptReferenceTerm;
}
/**
* @return Returns the conceptMapType.
*/
public ConceptMapType getConceptMapType() {
return conceptMapType;
}
/**
* @param conceptMapType The conceptMapType to set.
*/
public void setConceptMapType(ConceptMapType conceptMapType) {
this.conceptMapType = conceptMapType;
}
/**
* @return id - The unique Identifier for the object
*/
@Override
public Integer getId() {
return getDrugReferenceMapId();
}
/**
* @param id - The unique Identifier for the object
*/
@Override
public void setId(Integer id) {
setDrugReferenceMapId(id);
}
/**
* @return User - the user who created the object
*/
@Override
public User getCreator() {
return this.creator;
}
/**
* @param creator - the user who created the object
*/
@Override
public void setCreator(User creator) {
this.creator = creator;
}
/**
* @return Date - the date the object was created
*/
@Override
public Date getDateCreated() {
return dateCreated;
}
/**
* @param dateCreated - the date the object was created
*/
@Override
public void setDateCreated(Date dateCreated) {
this.dateCreated = dateCreated;
}
/**
* @return User - the user who last changed the object
*/
@Override
public User getChangedBy() {
return this.changedBy;
}
/**
* @param changedBy - the user who last changed the object
*/
@Override
public void setChangedBy(User changedBy) {
this.changedBy = changedBy;
}
/**
* @return Date - the date the object was last changed
*/
@Override
public Date getDateChanged() {
return this.dateChanged;
}
/**
* @param dateChanged - the date the object was last changed
*/
@Override
public void setDateChanged(Date dateChanged) {
this.dateChanged = dateChanged;
}
/**
* @return Boolean - whether of not this object is retired
*/
@Override
public Boolean isRetired() {
return this.retired;
}
/**
* This method exists to satisfy spring and hibernates slightly bung use of Boolean object
* getters and setters.
*
* @see org.openmrs.Concept#isRetired()
* @deprecated Use the "proper" isRetired method.
*/
@Deprecated
@Attribute
public Boolean getRetired() {
return isRetired();
}
/**
* @param retired - whether of not this object is retired
*/
@Override
public void setRetired(Boolean retired) {
this.retired = retired;
}
/**
* @return User - the user who retired the object
*/
@Override
public User getRetiredBy() {
return this.retiredBy;
}
/**
* @param retiredBy - the user who retired the object
*/
@Override
public void setRetiredBy(User retiredBy) {
this.retiredBy = retiredBy;
}
/**
* @return Date - the date the object was retired
*/
@Override
public Date getDateRetired() {
return dateRetired;
}
/**
* @param dateRetired - the date the object was retired
*/
@Override
public void setDateRetired(Date dateRetired) {
this.dateRetired = dateRetired;
}
/**
* @return String - the reason the object was retired
*/
@Override
public String getRetireReason() {
return this.retireReason;
}
/**
* @param retireReason - the reason the object was retired
*/
@Override
public void setRetireReason(String retireReason) {
this.retireReason = retireReason;
}
}