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
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
package edu.ncsu.csc.itrust.beans;
import java.sql.Date;
/**
* A bean for storing data about a procedure.
*
* A bean's purpose is to store data. Period. Little or no functionality is to be added to a bean
* (with the exception of minor formatting such as concatenating phone numbers together).
* A bean must only have Getters and Setters (Eclipse Hint: Use Source > Generate Getters and Setters
* to create these easily)
*/
public class ProcedureBean {
private long visitID;
private long ovProcedureID = 0L;
private String CPTCode;
private String description;
private String attribute;
private Date date;
private String hcpid;
public ProcedureBean() {
}
public ProcedureBean(String code) {
CPTCode = code;
}
public ProcedureBean(String code, String description) {
CPTCode = code;
this.description = description;
}
public ProcedureBean(String code, String description, String attribute) {
CPTCode = code;
this.description = description;
this.attribute = attribute;
}
public ProcedureBean(String code, String description, String attribute, String hcpid) {
CPTCode = code;
this.description = description;
this.attribute = attribute;
this.hcpid = hcpid;
}
public long getID() {
return ovProcedureID;
}
public void setID(long id) {
this.ovProcedureID = id;
}
/**
* Gets the CPT Code for this procedure
*
* @return The CPT Code for this procedure
*/
public String getCPTCode() {
return CPTCode;
}
public void setCPTCode(String code) {
CPTCode = code;
}
public long getVisitID() {
return visitID;
}
public void setVisitID(long visitID) {
this.visitID = visitID;
}
/**
* Gets the CPT Description for this procedure
*
* @return The CPT Description for this procedure
*/
public String getDescription() {
return description;
}
/**
* setDescription
* @param description description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* Gets the HCP ID of the HCP administering the immunization
* @return String
*/
public String getHcpid() {
return hcpid;
}
/**
* setHcpid
* @param hcpid hcpid
*/
public void setHcpid(String hcpid) {
this.hcpid = hcpid;
}
/**
* Gets the CPT attribute, used to determine if this is an immunization
* @return String
*/
public String getAttribute() {
return attribute;
}
/**
* Sets the CPT attribute, used to determine if this is an immunization
* @param attrib attrib
*/
public void setAttribute(String attrib) {
attribute = attrib;
}
/**
* getOvProcedureID
* @return ovProcedureID
*/
public long getOvProcedureID() {
return ovProcedureID;
}
/**
* setOvProcedureID
* @param ovProcedureID ovProcedureID
*/
public void setOvProcedureID(long ovProcedureID) {
this.ovProcedureID = ovProcedureID;
}
/**
* getDate
* @return date
*/
public Date getDate() {
return (Date) date.clone();
}
/**
* setDate
* @param d date
*/
public void setDate(Date d) {
date = (Date) d.clone();
}
}