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.v22.segment;
35
36
37 import ca.uhn.hl7v2.model.v22.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
67
68
69
70
71
72
73
74
75 @SuppressWarnings("unused")
76 public class GT1 extends AbstractSegment {
77
78
79
80
81 public GT1(Group parent, ModelClassFactory factory) {
82 super(parent, factory);
83 init(factory);
84 }
85
86 private void init(ModelClassFactory factory) {
87 try {
88 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - guarantor");
89 this.add(CK.class, false, 1, 20, new Object[]{ getMessage() }, "Guarantor number");
90 this.add(PN.class, true, 1, 48, new Object[]{ getMessage() }, "Guarantor name");
91 this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "Guarantor spouse name");
92 this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "Guarantor address");
93 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Guarantor phone number - home");
94 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Guarantor phone number - business");
95 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor date of birth");
96 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Guarantor sex");
97 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(68) }, "Guarantor type");
98 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Guarantor relationship");
99 this.add(ST.class, false, 1, 11, new Object[]{ getMessage() }, "Guarantor social security number");
100 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor date - begin");
101 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor date - end");
102 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Guarantor priority");
103 this.add(ST.class, false, 1, 45, new Object[]{ getMessage() }, "Guarantor employer name");
104 this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "Guarantor employer address");
105 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Guarantor employ phone number");
106 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Guarantor employee ID number");
107 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(66) }, "Guarantor employment status");
108 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Guarantor organization");
109 } catch(HL7Exception e) {
110 log.error("Unexpected error creating GT1 - this is probably a bug in the source code generator.", e);
111 }
112 }
113
114
115
116
117
118
119
120 public SI getSetIDGuarantor() {
121 SI retVal = this.getTypedField(1, 0);
122 return retVal;
123 }
124
125
126
127
128
129 public SI getGt11_SetIDGuarantor() {
130 SI retVal = this.getTypedField(1, 0);
131 return retVal;
132 }
133
134
135
136
137
138
139
140 public CK getGuarantorNumber() {
141 CK retVal = this.getTypedField(2, 0);
142 return retVal;
143 }
144
145
146
147
148
149 public CK getGt12_GuarantorNumber() {
150 CK retVal = this.getTypedField(2, 0);
151 return retVal;
152 }
153
154
155
156
157
158
159
160 public PN getGuarantorName() {
161 PN retVal = this.getTypedField(3, 0);
162 return retVal;
163 }
164
165
166
167
168
169 public PN getGt13_GuarantorName() {
170 PN retVal = this.getTypedField(3, 0);
171 return retVal;
172 }
173
174
175
176
177
178
179
180 public PN getGuarantorSpouseName() {
181 PN retVal = this.getTypedField(4, 0);
182 return retVal;
183 }
184
185
186
187
188
189 public PN getGt14_GuarantorSpouseName() {
190 PN retVal = this.getTypedField(4, 0);
191 return retVal;
192 }
193
194
195
196
197
198
199
200 public AD getGuarantorAddress() {
201 AD retVal = this.getTypedField(5, 0);
202 return retVal;
203 }
204
205
206
207
208
209 public AD getGt15_GuarantorAddress() {
210 AD retVal = this.getTypedField(5, 0);
211 return retVal;
212 }
213
214
215
216
217
218 public TN[] getGuarantorPhoneNumberHome() {
219 TN[] retVal = this.getTypedField(6, new TN[0]);
220 return retVal;
221 }
222
223
224
225
226
227 public TN[] getGt16_GuarantorPhoneNumberHome() {
228 TN[] retVal = this.getTypedField(6, new TN[0]);
229 return retVal;
230 }
231
232
233
234
235
236
237
238 public int getGuarantorPhoneNumberHomeReps() {
239 return this.getReps(6);
240 }
241
242
243
244
245
246
247
248
249 public TN getGuarantorPhoneNumberHome(int rep) {
250 TN retVal = this.getTypedField(6, rep);
251 return retVal;
252 }
253
254
255
256
257
258
259
260 public TN getGt16_GuarantorPhoneNumberHome(int rep) {
261 TN retVal = this.getTypedField(6, rep);
262 return retVal;
263 }
264
265
266
267
268
269
270 public int getGt16_GuarantorPhoneNumberHomeReps() {
271 return this.getReps(6);
272 }
273
274
275
276
277
278
279
280
281
282 public TN insertGuarantorPhoneNumberHome(int rep) throws HL7Exception {
283 return (TN) super.insertRepetition(6, rep);
284 }
285
286
287
288
289
290
291
292
293
294 public TN insertGt16_GuarantorPhoneNumberHome(int rep) throws HL7Exception {
295 return (TN) super.insertRepetition(6, rep);
296 }
297
298
299
300
301
302
303
304
305
306 public TN removeGuarantorPhoneNumberHome(int rep) throws HL7Exception {
307 return (TN) super.removeRepetition(6, rep);
308 }
309
310
311
312
313
314
315
316
317
318 public TN removeGt16_GuarantorPhoneNumberHome(int rep) throws HL7Exception {
319 return (TN) super.removeRepetition(6, rep);
320 }
321
322
323
324
325
326
327 public TN[] getGuarantorPhoneNumberBusiness() {
328 TN[] retVal = this.getTypedField(7, new TN[0]);
329 return retVal;
330 }
331
332
333
334
335
336 public TN[] getGt17_GuarantorPhoneNumberBusiness() {
337 TN[] retVal = this.getTypedField(7, new TN[0]);
338 return retVal;
339 }
340
341
342
343
344
345
346
347 public int getGuarantorPhoneNumberBusinessReps() {
348 return this.getReps(7);
349 }
350
351
352
353
354
355
356
357
358 public TN getGuarantorPhoneNumberBusiness(int rep) {
359 TN retVal = this.getTypedField(7, rep);
360 return retVal;
361 }
362
363
364
365
366
367
368
369 public TN getGt17_GuarantorPhoneNumberBusiness(int rep) {
370 TN retVal = this.getTypedField(7, rep);
371 return retVal;
372 }
373
374
375
376
377
378
379 public int getGt17_GuarantorPhoneNumberBusinessReps() {
380 return this.getReps(7);
381 }
382
383
384
385
386
387
388
389
390
391 public TN insertGuarantorPhoneNumberBusiness(int rep) throws HL7Exception {
392 return (TN) super.insertRepetition(7, rep);
393 }
394
395
396
397
398
399
400
401
402
403 public TN insertGt17_GuarantorPhoneNumberBusiness(int rep) throws HL7Exception {
404 return (TN) super.insertRepetition(7, rep);
405 }
406
407
408
409
410
411
412
413
414
415 public TN removeGuarantorPhoneNumberBusiness(int rep) throws HL7Exception {
416 return (TN) super.removeRepetition(7, rep);
417 }
418
419
420
421
422
423
424
425
426
427 public TN removeGt17_GuarantorPhoneNumberBusiness(int rep) throws HL7Exception {
428 return (TN) super.removeRepetition(7, rep);
429 }
430
431
432
433
434
435
436
437
438 public DT getGuarantorDateOfBirth() {
439 DT retVal = this.getTypedField(8, 0);
440 return retVal;
441 }
442
443
444
445
446
447 public DT getGt18_GuarantorDateOfBirth() {
448 DT retVal = this.getTypedField(8, 0);
449 return retVal;
450 }
451
452
453
454
455
456
457
458 public ID getGuarantorSex() {
459 ID retVal = this.getTypedField(9, 0);
460 return retVal;
461 }
462
463
464
465
466
467 public ID getGt19_GuarantorSex() {
468 ID retVal = this.getTypedField(9, 0);
469 return retVal;
470 }
471
472
473
474
475
476
477
478 public ID getGuarantorType() {
479 ID retVal = this.getTypedField(10, 0);
480 return retVal;
481 }
482
483
484
485
486
487 public ID getGt110_GuarantorType() {
488 ID retVal = this.getTypedField(10, 0);
489 return retVal;
490 }
491
492
493
494
495
496
497
498 public ID getGuarantorRelationship() {
499 ID retVal = this.getTypedField(11, 0);
500 return retVal;
501 }
502
503
504
505
506
507 public ID getGt111_GuarantorRelationship() {
508 ID retVal = this.getTypedField(11, 0);
509 return retVal;
510 }
511
512
513
514
515
516
517
518 public ST getGuarantorSocialSecurityNumber() {
519 ST retVal = this.getTypedField(12, 0);
520 return retVal;
521 }
522
523
524
525
526
527 public ST getGt112_GuarantorSocialSecurityNumber() {
528 ST retVal = this.getTypedField(12, 0);
529 return retVal;
530 }
531
532
533
534
535
536
537
538 public DT getGuarantorDateBegin() {
539 DT retVal = this.getTypedField(13, 0);
540 return retVal;
541 }
542
543
544
545
546
547 public DT getGt113_GuarantorDateBegin() {
548 DT retVal = this.getTypedField(13, 0);
549 return retVal;
550 }
551
552
553
554
555
556
557
558 public DT getGuarantorDateEnd() {
559 DT retVal = this.getTypedField(14, 0);
560 return retVal;
561 }
562
563
564
565
566
567 public DT getGt114_GuarantorDateEnd() {
568 DT retVal = this.getTypedField(14, 0);
569 return retVal;
570 }
571
572
573
574
575
576
577
578 public NM getGuarantorPriority() {
579 NM retVal = this.getTypedField(15, 0);
580 return retVal;
581 }
582
583
584
585
586
587 public NM getGt115_GuarantorPriority() {
588 NM retVal = this.getTypedField(15, 0);
589 return retVal;
590 }
591
592
593
594
595
596
597
598 public ST getGuarantorEmployerName() {
599 ST retVal = this.getTypedField(16, 0);
600 return retVal;
601 }
602
603
604
605
606
607 public ST getGt116_GuarantorEmployerName() {
608 ST retVal = this.getTypedField(16, 0);
609 return retVal;
610 }
611
612
613
614
615
616
617
618 public AD getGuarantorEmployerAddress() {
619 AD retVal = this.getTypedField(17, 0);
620 return retVal;
621 }
622
623
624
625
626
627 public AD getGt117_GuarantorEmployerAddress() {
628 AD retVal = this.getTypedField(17, 0);
629 return retVal;
630 }
631
632
633
634
635
636 public TN[] getGuarantorEmployPhoneNumber() {
637 TN[] retVal = this.getTypedField(18, new TN[0]);
638 return retVal;
639 }
640
641
642
643
644
645 public TN[] getGt118_GuarantorEmployPhoneNumber() {
646 TN[] retVal = this.getTypedField(18, new TN[0]);
647 return retVal;
648 }
649
650
651
652
653
654
655
656 public int getGuarantorEmployPhoneNumberReps() {
657 return this.getReps(18);
658 }
659
660
661
662
663
664
665
666
667 public TN getGuarantorEmployPhoneNumber(int rep) {
668 TN retVal = this.getTypedField(18, rep);
669 return retVal;
670 }
671
672
673
674
675
676
677
678 public TN getGt118_GuarantorEmployPhoneNumber(int rep) {
679 TN retVal = this.getTypedField(18, rep);
680 return retVal;
681 }
682
683
684
685
686
687
688 public int getGt118_GuarantorEmployPhoneNumberReps() {
689 return this.getReps(18);
690 }
691
692
693
694
695
696
697
698
699
700 public TN insertGuarantorEmployPhoneNumber(int rep) throws HL7Exception {
701 return (TN) super.insertRepetition(18, rep);
702 }
703
704
705
706
707
708
709
710
711
712 public TN insertGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception {
713 return (TN) super.insertRepetition(18, rep);
714 }
715
716
717
718
719
720
721
722
723
724 public TN removeGuarantorEmployPhoneNumber(int rep) throws HL7Exception {
725 return (TN) super.removeRepetition(18, rep);
726 }
727
728
729
730
731
732
733
734
735
736 public TN removeGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception {
737 return (TN) super.removeRepetition(18, rep);
738 }
739
740
741
742
743
744
745
746
747 public ST getGuarantorEmployeeIDNumber() {
748 ST retVal = this.getTypedField(19, 0);
749 return retVal;
750 }
751
752
753
754
755
756 public ST getGt119_GuarantorEmployeeIDNumber() {
757 ST retVal = this.getTypedField(19, 0);
758 return retVal;
759 }
760
761
762
763
764
765
766
767 public ID getGuarantorEmploymentStatus() {
768 ID retVal = this.getTypedField(20, 0);
769 return retVal;
770 }
771
772
773
774
775
776 public ID getGt120_GuarantorEmploymentStatus() {
777 ID retVal = this.getTypedField(20, 0);
778 return retVal;
779 }
780
781
782
783
784
785
786
787 public ST getGuarantorOrganization() {
788 ST retVal = this.getTypedField(21, 0);
789 return retVal;
790 }
791
792
793
794
795
796 public ST getGt121_GuarantorOrganization() {
797 ST retVal = this.getTypedField(21, 0);
798 return retVal;
799 }
800
801
802
803
804
805
806 protected Type createNewTypeWithoutReflection(int field) {
807 switch (field) {
808 case 0: return new SI(getMessage());
809 case 1: return new CK(getMessage());
810 case 2: return new PN(getMessage());
811 case 3: return new PN(getMessage());
812 case 4: return new AD(getMessage());
813 case 5: return new TN(getMessage());
814 case 6: return new TN(getMessage());
815 case 7: return new DT(getMessage());
816 case 8: return new ID(getMessage(), new Integer( 1 ));
817 case 9: return new ID(getMessage(), new Integer( 68 ));
818 case 10: return new ID(getMessage(), new Integer( 63 ));
819 case 11: return new ST(getMessage());
820 case 12: return new DT(getMessage());
821 case 13: return new DT(getMessage());
822 case 14: return new NM(getMessage());
823 case 15: return new ST(getMessage());
824 case 16: return new AD(getMessage());
825 case 17: return new TN(getMessage());
826 case 18: return new ST(getMessage());
827 case 19: return new ID(getMessage(), new Integer( 66 ));
828 case 20: return new ST(getMessage());
829 default: return null;
830 }
831 }
832
833
834 }
835