Newer
Older
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
package edu.ncsu.csc.itrust.beans;
/**
* A reason code is like "Aspirin". A reason code is not associated with an
* office visit; that's a reason associated with a "prescription". See {@link PrescriptionBean}
*
*/
public class OverrideReasonBean {
private long id;
private long presID;
private String reasonCode;
private String description;
public OverrideReasonBean() {
description = null;
reasonCode = "";
}
public OverrideReasonBean(String code) {
reasonCode = code;
}
public OverrideReasonBean(String code, String description) {
reasonCode = code;
this.description = description;
}
public long getPresID() {
return presID;
}
public void setPresID(long id) {
this.presID = id;
}
public long getID() {
return id;
}
public void setID(long id) {
this.id = id;
}
/**
* Gets the reason Code for this procedure
*
* @return The reason Code for this procedure
*/
public String getORCode() {
return reasonCode;
}
public void setORCode(String code) {
reasonCode = code;
}
/**
* Gets the reason Description for this procedure
*
* @return The reason Description for this procedure
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public int hashCode() {
return 42; // any arbitrary constant will do
}
@Override
public boolean equals(Object other) {
if ((other == null) || !this.getClass().equals(other.getClass()))
return false;
OverrideReasonBean orb = (OverrideReasonBean)other;
return (orb.description.equals(description)
&& orb.reasonCode.equals(reasonCode)
&& orb.presID == presID
&& orb.id == id);
}
}