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.v28.segment;
35
36
37 import ca.uhn.hl7v2.model.v28.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
76
77
78
79
80
81
82
83
84 @SuppressWarnings("unused")
85 public class IVC extends AbstractSegment {
86
87
88
89
90 public IVC(Group parent, ModelClassFactory factory) {
91 super(parent, factory);
92 init(factory);
93 }
94
95 private void init(ModelClassFactory factory) {
96 try {
97 this.add(EI.class, true, 1, 0, new Object[]{ getMessage() }, "Provider Invoice Number");
98 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Payer Invoice Number");
99 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Contract/Agreement Number");
100 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Invoice Control");
101 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Invoice Reason");
102 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Invoice Type");
103 this.add(DTM.class, true, 1, 0, new Object[]{ getMessage() }, "Invoice Date/Time");
104 this.add(CP.class, true, 1, 0, new Object[]{ getMessage() }, "Invoice Amount");
105 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Payment Terms");
106 this.add(XON.class, true, 1, 0, new Object[]{ getMessage() }, "Provider Organization");
107 this.add(XON.class, true, 1, 0, new Object[]{ getMessage() }, "Payer Organization");
108 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Attention");
109 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Last Invoice Indicator");
110 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Invoice Booking Period");
111 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Origin");
112 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Invoice Fixed Amount");
113 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Special Costs");
114 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Amount for Doctors Treatment");
115 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Responsible Physician");
116 this.add(CX.class, false, 1, 0, new Object[]{ getMessage() }, "Cost Center");
117 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Invoice Prepaid Amount");
118 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Total Invoice Amount without Prepaid Amount");
119 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Total-Amount of VAT");
120 this.add(NM.class, false, 0, 0, new Object[]{ getMessage() }, "VAT-Rates applied");
121 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Benefit Group");
122 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Provider Tax ID");
123 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Payer Tax ID");
124 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Provider Tax Status");
125 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Payer Tax Status");
126 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Sales Tax ID");
127 } catch(HL7Exception e) {
128 log.error("Unexpected error creating IVC - this is probably a bug in the source code generator.", e);
129 }
130 }
131
132
133
134
135
136
137
138 public EI getProviderInvoiceNumber() {
139 EI retVal = this.getTypedField(1, 0);
140 return retVal;
141 }
142
143
144
145
146
147 public EI getIvc1_ProviderInvoiceNumber() {
148 EI retVal = this.getTypedField(1, 0);
149 return retVal;
150 }
151
152
153
154
155
156
157
158 public EI getPayerInvoiceNumber() {
159 EI retVal = this.getTypedField(2, 0);
160 return retVal;
161 }
162
163
164
165
166
167 public EI getIvc2_PayerInvoiceNumber() {
168 EI retVal = this.getTypedField(2, 0);
169 return retVal;
170 }
171
172
173
174
175
176
177
178 public EI getContractAgreementNumber() {
179 EI retVal = this.getTypedField(3, 0);
180 return retVal;
181 }
182
183
184
185
186
187 public EI getIvc3_ContractAgreementNumber() {
188 EI retVal = this.getTypedField(3, 0);
189 return retVal;
190 }
191
192
193
194
195
196
197
198 public CWE getInvoiceControl() {
199 CWE retVal = this.getTypedField(4, 0);
200 return retVal;
201 }
202
203
204
205
206
207 public CWE getIvc4_InvoiceControl() {
208 CWE retVal = this.getTypedField(4, 0);
209 return retVal;
210 }
211
212
213
214
215
216
217
218 public CWE getInvoiceReason() {
219 CWE retVal = this.getTypedField(5, 0);
220 return retVal;
221 }
222
223
224
225
226
227 public CWE getIvc5_InvoiceReason() {
228 CWE retVal = this.getTypedField(5, 0);
229 return retVal;
230 }
231
232
233
234
235
236
237
238 public CWE getInvoiceType() {
239 CWE retVal = this.getTypedField(6, 0);
240 return retVal;
241 }
242
243
244
245
246
247 public CWE getIvc6_InvoiceType() {
248 CWE retVal = this.getTypedField(6, 0);
249 return retVal;
250 }
251
252
253
254
255
256
257
258 public DTM getInvoiceDateTime() {
259 DTM retVal = this.getTypedField(7, 0);
260 return retVal;
261 }
262
263
264
265
266
267 public DTM getIvc7_InvoiceDateTime() {
268 DTM retVal = this.getTypedField(7, 0);
269 return retVal;
270 }
271
272
273
274
275
276
277
278 public CP getInvoiceAmount() {
279 CP retVal = this.getTypedField(8, 0);
280 return retVal;
281 }
282
283
284
285
286
287 public CP getIvc8_InvoiceAmount() {
288 CP retVal = this.getTypedField(8, 0);
289 return retVal;
290 }
291
292
293
294
295
296
297
298 public ST getPaymentTerms() {
299 ST retVal = this.getTypedField(9, 0);
300 return retVal;
301 }
302
303
304
305
306
307 public ST getIvc9_PaymentTerms() {
308 ST retVal = this.getTypedField(9, 0);
309 return retVal;
310 }
311
312
313
314
315
316
317
318 public XON getProviderOrganization() {
319 XON retVal = this.getTypedField(10, 0);
320 return retVal;
321 }
322
323
324
325
326
327 public XON getIvc10_ProviderOrganization() {
328 XON retVal = this.getTypedField(10, 0);
329 return retVal;
330 }
331
332
333
334
335
336
337
338 public XON getPayerOrganization() {
339 XON retVal = this.getTypedField(11, 0);
340 return retVal;
341 }
342
343
344
345
346
347 public XON getIvc11_PayerOrganization() {
348 XON retVal = this.getTypedField(11, 0);
349 return retVal;
350 }
351
352
353
354
355
356
357
358 public XCN getAttention() {
359 XCN retVal = this.getTypedField(12, 0);
360 return retVal;
361 }
362
363
364
365
366
367 public XCN getIvc12_Attention() {
368 XCN retVal = this.getTypedField(12, 0);
369 return retVal;
370 }
371
372
373
374
375
376
377
378 public ID getLastInvoiceIndicator() {
379 ID retVal = this.getTypedField(13, 0);
380 return retVal;
381 }
382
383
384
385
386
387 public ID getIvc13_LastInvoiceIndicator() {
388 ID retVal = this.getTypedField(13, 0);
389 return retVal;
390 }
391
392
393
394
395
396
397
398 public DTM getInvoiceBookingPeriod() {
399 DTM retVal = this.getTypedField(14, 0);
400 return retVal;
401 }
402
403
404
405
406
407 public DTM getIvc14_InvoiceBookingPeriod() {
408 DTM retVal = this.getTypedField(14, 0);
409 return retVal;
410 }
411
412
413
414
415
416
417
418 public ST getOrigin() {
419 ST retVal = this.getTypedField(15, 0);
420 return retVal;
421 }
422
423
424
425
426
427 public ST getIvc15_Origin() {
428 ST retVal = this.getTypedField(15, 0);
429 return retVal;
430 }
431
432
433
434
435
436
437
438 public CP getInvoiceFixedAmount() {
439 CP retVal = this.getTypedField(16, 0);
440 return retVal;
441 }
442
443
444
445
446
447 public CP getIvc16_InvoiceFixedAmount() {
448 CP retVal = this.getTypedField(16, 0);
449 return retVal;
450 }
451
452
453
454
455
456
457
458 public CP getSpecialCosts() {
459 CP retVal = this.getTypedField(17, 0);
460 return retVal;
461 }
462
463
464
465
466
467 public CP getIvc17_SpecialCosts() {
468 CP retVal = this.getTypedField(17, 0);
469 return retVal;
470 }
471
472
473
474
475
476
477
478 public CP getAmountForDoctorsTreatment() {
479 CP retVal = this.getTypedField(18, 0);
480 return retVal;
481 }
482
483
484
485
486
487 public CP getIvc18_AmountForDoctorsTreatment() {
488 CP retVal = this.getTypedField(18, 0);
489 return retVal;
490 }
491
492
493
494
495
496
497
498 public XCN getResponsiblePhysician() {
499 XCN retVal = this.getTypedField(19, 0);
500 return retVal;
501 }
502
503
504
505
506
507 public XCN getIvc19_ResponsiblePhysician() {
508 XCN retVal = this.getTypedField(19, 0);
509 return retVal;
510 }
511
512
513
514
515
516
517
518 public CX getCostCenter() {
519 CX retVal = this.getTypedField(20, 0);
520 return retVal;
521 }
522
523
524
525
526
527 public CX getIvc20_CostCenter() {
528 CX retVal = this.getTypedField(20, 0);
529 return retVal;
530 }
531
532
533
534
535
536
537
538 public CP getInvoicePrepaidAmount() {
539 CP retVal = this.getTypedField(21, 0);
540 return retVal;
541 }
542
543
544
545
546
547 public CP getIvc21_InvoicePrepaidAmount() {
548 CP retVal = this.getTypedField(21, 0);
549 return retVal;
550 }
551
552
553
554
555
556
557
558 public CP getTotalInvoiceAmountWithoutPrepaidAmount() {
559 CP retVal = this.getTypedField(22, 0);
560 return retVal;
561 }
562
563
564
565
566
567 public CP getIvc22_TotalInvoiceAmountWithoutPrepaidAmount() {
568 CP retVal = this.getTypedField(22, 0);
569 return retVal;
570 }
571
572
573
574
575
576
577
578 public CP getTotalAmountOfVAT() {
579 CP retVal = this.getTypedField(23, 0);
580 return retVal;
581 }
582
583
584
585
586
587 public CP getIvc23_TotalAmountOfVAT() {
588 CP retVal = this.getTypedField(23, 0);
589 return retVal;
590 }
591
592
593
594
595
596 public NM[] getVATRatesApplied() {
597 NM[] retVal = this.getTypedField(24, new NM[0]);
598 return retVal;
599 }
600
601
602
603
604
605 public NM[] getIvc24_VATRatesApplied() {
606 NM[] retVal = this.getTypedField(24, new NM[0]);
607 return retVal;
608 }
609
610
611
612
613
614
615
616 public int getVATRatesAppliedReps() {
617 return this.getReps(24);
618 }
619
620
621
622
623
624
625
626
627 public NM getVATRatesApplied(int rep) {
628 NM retVal = this.getTypedField(24, rep);
629 return retVal;
630 }
631
632
633
634
635
636
637
638 public NM getIvc24_VATRatesApplied(int rep) {
639 NM retVal = this.getTypedField(24, rep);
640 return retVal;
641 }
642
643
644
645
646
647
648 public int getIvc24_VATRatesAppliedReps() {
649 return this.getReps(24);
650 }
651
652
653
654
655
656
657
658
659
660 public NM insertVATRatesApplied(int rep) throws HL7Exception {
661 return (NM) super.insertRepetition(24, rep);
662 }
663
664
665
666
667
668
669
670
671
672 public NM insertIvc24_VATRatesApplied(int rep) throws HL7Exception {
673 return (NM) super.insertRepetition(24, rep);
674 }
675
676
677
678
679
680
681
682
683
684 public NM removeVATRatesApplied(int rep) throws HL7Exception {
685 return (NM) super.removeRepetition(24, rep);
686 }
687
688
689
690
691
692
693
694
695
696 public NM removeIvc24_VATRatesApplied(int rep) throws HL7Exception {
697 return (NM) super.removeRepetition(24, rep);
698 }
699
700
701
702
703
704
705
706
707 public CWE getBenefitGroup() {
708 CWE retVal = this.getTypedField(25, 0);
709 return retVal;
710 }
711
712
713
714
715
716 public CWE getIvc25_BenefitGroup() {
717 CWE retVal = this.getTypedField(25, 0);
718 return retVal;
719 }
720
721
722
723
724
725
726
727 public ST getProviderTaxID() {
728 ST retVal = this.getTypedField(26, 0);
729 return retVal;
730 }
731
732
733
734
735
736 public ST getIvc26_ProviderTaxID() {
737 ST retVal = this.getTypedField(26, 0);
738 return retVal;
739 }
740
741
742
743
744
745
746
747 public ST getPayerTaxID() {
748 ST retVal = this.getTypedField(27, 0);
749 return retVal;
750 }
751
752
753
754
755
756 public ST getIvc27_PayerTaxID() {
757 ST retVal = this.getTypedField(27, 0);
758 return retVal;
759 }
760
761
762
763
764
765
766
767 public CWE getProviderTaxStatus() {
768 CWE retVal = this.getTypedField(28, 0);
769 return retVal;
770 }
771
772
773
774
775
776 public CWE getIvc28_ProviderTaxStatus() {
777 CWE retVal = this.getTypedField(28, 0);
778 return retVal;
779 }
780
781
782
783
784
785
786
787 public CWE getPayerTaxStatus() {
788 CWE retVal = this.getTypedField(29, 0);
789 return retVal;
790 }
791
792
793
794
795
796 public CWE getIvc29_PayerTaxStatus() {
797 CWE retVal = this.getTypedField(29, 0);
798 return retVal;
799 }
800
801
802
803
804
805
806
807 public ST getSalesTaxID() {
808 ST retVal = this.getTypedField(30, 0);
809 return retVal;
810 }
811
812
813
814
815
816 public ST getIvc30_SalesTaxID() {
817 ST retVal = this.getTypedField(30, 0);
818 return retVal;
819 }
820
821
822
823
824
825
826 protected Type createNewTypeWithoutReflection(int field) {
827 switch (field) {
828 case 0: return new EI(getMessage());
829 case 1: return new EI(getMessage());
830 case 2: return new EI(getMessage());
831 case 3: return new CWE(getMessage());
832 case 4: return new CWE(getMessage());
833 case 5: return new CWE(getMessage());
834 case 6: return new DTM(getMessage());
835 case 7: return new CP(getMessage());
836 case 8: return new ST(getMessage());
837 case 9: return new XON(getMessage());
838 case 10: return new XON(getMessage());
839 case 11: return new XCN(getMessage());
840 case 12: return new ID(getMessage(), new Integer( 136 ));
841 case 13: return new DTM(getMessage());
842 case 14: return new ST(getMessage());
843 case 15: return new CP(getMessage());
844 case 16: return new CP(getMessage());
845 case 17: return new CP(getMessage());
846 case 18: return new XCN(getMessage());
847 case 19: return new CX(getMessage());
848 case 20: return new CP(getMessage());
849 case 21: return new CP(getMessage());
850 case 22: return new CP(getMessage());
851 case 23: return new NM(getMessage());
852 case 24: return new CWE(getMessage());
853 case 25: return new ST(getMessage());
854 case 26: return new ST(getMessage());
855 case 27: return new CWE(getMessage());
856 case 28: return new CWE(getMessage());
857 case 29: return new ST(getMessage());
858 default: return null;
859 }
860 }
861
862
863 }
864