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.v27.segment;
35
36
37 import ca.uhn.hl7v2.model.v27.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
63
64
65
66 @SuppressWarnings("unused")
67 public class AUT extends AbstractSegment {
68
69
70
71
72 public AUT(Group parent, ModelClassFactory factory) {
73 super(parent, factory);
74 init(factory);
75 }
76
77 private void init(ModelClassFactory factory) {
78 try {
79 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Plan ID");
80 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Company ID");
81 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Authorizing Payor, Company Name");
82 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Effective Date");
83 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Expiration Date");
84 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Authorization Identifier");
85 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Reimbursement Limit");
86 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Requested Number of Treatments");
87 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Number of Treatments");
88 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Process Date");
89 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Requested Discipline(s)");
90 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Authorized Discipline(s)");
91 } catch(HL7Exception e) {
92 log.error("Unexpected error creating AUT - this is probably a bug in the source code generator.", e);
93 }
94 }
95
96
97
98
99
100
101
102 public CWE getAuthorizingPayorPlanID() {
103 CWE retVal = this.getTypedField(1, 0);
104 return retVal;
105 }
106
107
108
109
110
111 public CWE getAut1_AuthorizingPayorPlanID() {
112 CWE retVal = this.getTypedField(1, 0);
113 return retVal;
114 }
115
116
117
118
119
120
121
122 public CWE getAuthorizingPayorCompanyID() {
123 CWE retVal = this.getTypedField(2, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public CWE getAut2_AuthorizingPayorCompanyID() {
132 CWE retVal = this.getTypedField(2, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public ST getAuthorizingPayorCompanyName() {
143 ST retVal = this.getTypedField(3, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public ST getAut3_AuthorizingPayorCompanyName() {
152 ST retVal = this.getTypedField(3, 0);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public DTM getAuthorizationEffectiveDate() {
163 DTM retVal = this.getTypedField(4, 0);
164 return retVal;
165 }
166
167
168
169
170
171 public DTM getAut4_AuthorizationEffectiveDate() {
172 DTM retVal = this.getTypedField(4, 0);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public DTM getAuthorizationExpirationDate() {
183 DTM retVal = this.getTypedField(5, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public DTM getAut5_AuthorizationExpirationDate() {
192 DTM retVal = this.getTypedField(5, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public EI getAuthorizationIdentifier() {
203 EI retVal = this.getTypedField(6, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public EI getAut6_AuthorizationIdentifier() {
212 EI retVal = this.getTypedField(6, 0);
213 return retVal;
214 }
215
216
217
218
219
220
221
222 public CP getReimbursementLimit() {
223 CP retVal = this.getTypedField(7, 0);
224 return retVal;
225 }
226
227
228
229
230
231 public CP getAut7_ReimbursementLimit() {
232 CP retVal = this.getTypedField(7, 0);
233 return retVal;
234 }
235
236
237
238
239
240
241
242 public CQ getRequestedNumberOfTreatments() {
243 CQ retVal = this.getTypedField(8, 0);
244 return retVal;
245 }
246
247
248
249
250
251 public CQ getAut8_RequestedNumberOfTreatments() {
252 CQ retVal = this.getTypedField(8, 0);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public CQ getAuthorizedNumberOfTreatments() {
263 CQ retVal = this.getTypedField(9, 0);
264 return retVal;
265 }
266
267
268
269
270
271 public CQ getAut9_AuthorizedNumberOfTreatments() {
272 CQ retVal = this.getTypedField(9, 0);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public DTM getProcessDate() {
283 DTM retVal = this.getTypedField(10, 0);
284 return retVal;
285 }
286
287
288
289
290
291 public DTM getAut10_ProcessDate() {
292 DTM retVal = this.getTypedField(10, 0);
293 return retVal;
294 }
295
296
297
298
299
300 public CWE[] getRequestedDisciplineS() {
301 CWE[] retVal = this.getTypedField(11, new CWE[0]);
302 return retVal;
303 }
304
305
306
307
308
309 public CWE[] getAut11_RequestedDisciplineS() {
310 CWE[] retVal = this.getTypedField(11, new CWE[0]);
311 return retVal;
312 }
313
314
315
316
317
318
319
320 public int getRequestedDisciplineSReps() {
321 return this.getReps(11);
322 }
323
324
325
326
327
328
329
330
331 public CWE getRequestedDisciplineS(int rep) {
332 CWE retVal = this.getTypedField(11, rep);
333 return retVal;
334 }
335
336
337
338
339
340
341
342 public CWE getAut11_RequestedDisciplineS(int rep) {
343 CWE retVal = this.getTypedField(11, rep);
344 return retVal;
345 }
346
347
348
349
350
351
352 public int getAut11_RequestedDisciplineSReps() {
353 return this.getReps(11);
354 }
355
356
357
358
359
360
361
362
363
364 public CWE insertRequestedDisciplineS(int rep) throws HL7Exception {
365 return (CWE) super.insertRepetition(11, rep);
366 }
367
368
369
370
371
372
373
374
375
376 public CWE insertAut11_RequestedDisciplineS(int rep) throws HL7Exception {
377 return (CWE) super.insertRepetition(11, rep);
378 }
379
380
381
382
383
384
385
386
387
388 public CWE removeRequestedDisciplineS(int rep) throws HL7Exception {
389 return (CWE) super.removeRepetition(11, rep);
390 }
391
392
393
394
395
396
397
398
399
400 public CWE removeAut11_RequestedDisciplineS(int rep) throws HL7Exception {
401 return (CWE) super.removeRepetition(11, rep);
402 }
403
404
405
406
407
408
409 public CWE[] getAuthorizedDisciplineS() {
410 CWE[] retVal = this.getTypedField(12, new CWE[0]);
411 return retVal;
412 }
413
414
415
416
417
418 public CWE[] getAut12_AuthorizedDisciplineS() {
419 CWE[] retVal = this.getTypedField(12, new CWE[0]);
420 return retVal;
421 }
422
423
424
425
426
427
428
429 public int getAuthorizedDisciplineSReps() {
430 return this.getReps(12);
431 }
432
433
434
435
436
437
438
439
440 public CWE getAuthorizedDisciplineS(int rep) {
441 CWE retVal = this.getTypedField(12, rep);
442 return retVal;
443 }
444
445
446
447
448
449
450
451 public CWE getAut12_AuthorizedDisciplineS(int rep) {
452 CWE retVal = this.getTypedField(12, rep);
453 return retVal;
454 }
455
456
457
458
459
460
461 public int getAut12_AuthorizedDisciplineSReps() {
462 return this.getReps(12);
463 }
464
465
466
467
468
469
470
471
472
473 public CWE insertAuthorizedDisciplineS(int rep) throws HL7Exception {
474 return (CWE) super.insertRepetition(12, rep);
475 }
476
477
478
479
480
481
482
483
484
485 public CWE insertAut12_AuthorizedDisciplineS(int rep) throws HL7Exception {
486 return (CWE) super.insertRepetition(12, rep);
487 }
488
489
490
491
492
493
494
495
496
497 public CWE removeAuthorizedDisciplineS(int rep) throws HL7Exception {
498 return (CWE) super.removeRepetition(12, rep);
499 }
500
501
502
503
504
505
506
507
508
509 public CWE removeAut12_AuthorizedDisciplineS(int rep) throws HL7Exception {
510 return (CWE) super.removeRepetition(12, rep);
511 }
512
513
514
515
516
517
518
519 protected Type createNewTypeWithoutReflection(int field) {
520 switch (field) {
521 case 0: return new CWE(getMessage());
522 case 1: return new CWE(getMessage());
523 case 2: return new ST(getMessage());
524 case 3: return new DTM(getMessage());
525 case 4: return new DTM(getMessage());
526 case 5: return new EI(getMessage());
527 case 6: return new CP(getMessage());
528 case 7: return new CQ(getMessage());
529 case 8: return new CQ(getMessage());
530 case 9: return new DTM(getMessage());
531 case 10: return new CWE(getMessage());
532 case 11: return new CWE(getMessage());
533 default: return null;
534 }
535 }
536
537
538 }
539