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 package ca.uhn.hl7v2.model.v25.segment;
35
36
37 import ca.uhn.hl7v2.model.v25.datatype.*;
38 import ca.uhn.hl7v2.HL7Exception;
39 import ca.uhn.hl7v2.parser.ModelClassFactory;
40 import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
41 import ca.uhn.hl7v2.model.AbstractMessage;
42 import ca.uhn.hl7v2.model.Group;
43 import ca.uhn.hl7v2.model.Type;
44 import ca.uhn.hl7v2.model.AbstractSegment;
45 import ca.uhn.hl7v2.model.Varies;
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62 @SuppressWarnings("unused")
63 public class DB1 extends AbstractSegment {
64
65
66
67
68 public DB1(Group parent, ModelClassFactory factory) {
69 super(parent, factory);
70 init(factory);
71 }
72
73 private void init(ModelClassFactory factory) {
74 try {
75 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - DB1");
76 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(334) }, "Disabled Person Code");
77 this.add(CX.class, false, 0, 250, new Object[]{ getMessage() }, "Disabled Person Identifier");
78 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Disabled Indicator");
79 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Disability Start Date");
80 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Disability End Date");
81 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Disability Return to Work Date");
82 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Disability Unable to Work Date");
83 } catch(HL7Exception e) {
84 log.error("Unexpected error creating DB1 - this is probably a bug in the source code generator.", e);
85 }
86 }
87
88
89
90
91
92
93
94 public SI getSetIDDB1() {
95 SI retVal = this.getTypedField(1, 0);
96 return retVal;
97 }
98
99
100
101
102
103 public SI getDb11_SetIDDB1() {
104 SI retVal = this.getTypedField(1, 0);
105 return retVal;
106 }
107
108
109
110
111
112
113
114 public IS getDisabledPersonCode() {
115 IS retVal = this.getTypedField(2, 0);
116 return retVal;
117 }
118
119
120
121
122
123 public IS getDb12_DisabledPersonCode() {
124 IS retVal = this.getTypedField(2, 0);
125 return retVal;
126 }
127
128
129
130
131
132 public CX[] getDisabledPersonIdentifier() {
133 CX[] retVal = this.getTypedField(3, new CX[0]);
134 return retVal;
135 }
136
137
138
139
140
141 public CX[] getDb13_DisabledPersonIdentifier() {
142 CX[] retVal = this.getTypedField(3, new CX[0]);
143 return retVal;
144 }
145
146
147
148
149
150
151
152 public int getDisabledPersonIdentifierReps() {
153 return this.getReps(3);
154 }
155
156
157
158
159
160
161
162
163 public CX getDisabledPersonIdentifier(int rep) {
164 CX retVal = this.getTypedField(3, rep);
165 return retVal;
166 }
167
168
169
170
171
172
173
174 public CX getDb13_DisabledPersonIdentifier(int rep) {
175 CX retVal = this.getTypedField(3, rep);
176 return retVal;
177 }
178
179
180
181
182
183
184 public int getDb13_DisabledPersonIdentifierReps() {
185 return this.getReps(3);
186 }
187
188
189
190
191
192
193
194
195
196 public CX insertDisabledPersonIdentifier(int rep) throws HL7Exception {
197 return (CX) super.insertRepetition(3, rep);
198 }
199
200
201
202
203
204
205
206
207
208 public CX insertDb13_DisabledPersonIdentifier(int rep) throws HL7Exception {
209 return (CX) super.insertRepetition(3, rep);
210 }
211
212
213
214
215
216
217
218
219
220 public CX removeDisabledPersonIdentifier(int rep) throws HL7Exception {
221 return (CX) super.removeRepetition(3, rep);
222 }
223
224
225
226
227
228
229
230
231
232 public CX removeDb13_DisabledPersonIdentifier(int rep) throws HL7Exception {
233 return (CX) super.removeRepetition(3, rep);
234 }
235
236
237
238
239
240
241
242
243 public ID getDisabledIndicator() {
244 ID retVal = this.getTypedField(4, 0);
245 return retVal;
246 }
247
248
249
250
251
252 public ID getDb14_DisabledIndicator() {
253 ID retVal = this.getTypedField(4, 0);
254 return retVal;
255 }
256
257
258
259
260
261
262
263 public DT getDisabilityStartDate() {
264 DT retVal = this.getTypedField(5, 0);
265 return retVal;
266 }
267
268
269
270
271
272 public DT getDb15_DisabilityStartDate() {
273 DT retVal = this.getTypedField(5, 0);
274 return retVal;
275 }
276
277
278
279
280
281
282
283 public DT getDisabilityEndDate() {
284 DT retVal = this.getTypedField(6, 0);
285 return retVal;
286 }
287
288
289
290
291
292 public DT getDb16_DisabilityEndDate() {
293 DT retVal = this.getTypedField(6, 0);
294 return retVal;
295 }
296
297
298
299
300
301
302
303 public DT getDisabilityReturnToWorkDate() {
304 DT retVal = this.getTypedField(7, 0);
305 return retVal;
306 }
307
308
309
310
311
312 public DT getDb17_DisabilityReturnToWorkDate() {
313 DT retVal = this.getTypedField(7, 0);
314 return retVal;
315 }
316
317
318
319
320
321
322
323 public DT getDisabilityUnableToWorkDate() {
324 DT retVal = this.getTypedField(8, 0);
325 return retVal;
326 }
327
328
329
330
331
332 public DT getDb18_DisabilityUnableToWorkDate() {
333 DT retVal = this.getTypedField(8, 0);
334 return retVal;
335 }
336
337
338
339
340
341
342 protected Type createNewTypeWithoutReflection(int field) {
343 switch (field) {
344 case 0: return new SI(getMessage());
345 case 1: return new IS(getMessage(), new Integer( 334 ));
346 case 2: return new CX(getMessage());
347 case 3: return new ID(getMessage(), new Integer( 136 ));
348 case 4: return new DT(getMessage());
349 case 5: return new DT(getMessage());
350 case 6: return new DT(getMessage());
351 case 7: return new DT(getMessage());
352 default: return null;
353 }
354 }
355
356
357 }
358