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 @SuppressWarnings("unused")
81 public class IVT extends AbstractSegment {
82
83
84
85
86 public IVT(Group parent, ModelClassFactory factory) {
87 super(parent, factory);
88 init(factory);
89 }
90
91 private void init(ModelClassFactory factory) {
92 try {
93 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set Id - IVT");
94 this.add(EI.class, true, 1, 0, new Object[]{ getMessage() }, "Inventory Location Identifier");
95 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Inventory Location Name");
96 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Source Location Identifier");
97 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Source Location Name");
98 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Status");
99 this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "Bin Location Identifier");
100 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Order Packaging");
101 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Issue Packaging");
102 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Default Inventory Asset Account");
103 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Patient Chargeable Indicator");
104 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Transaction Code");
105 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Transaction amount - unit");
106 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Importance Code");
107 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Stocked Item Indicator");
108 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Consignment Item Indicator");
109 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Reusable Item Indicator");
110 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Reusable Cost");
111 this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "Substitute Item Identifier");
112 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Latex-Free Substitute Item Identifier");
113 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Recommended Reorder Theory");
114 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Recommended Safety Stock Days");
115 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Recommended Maximum Days Inventory");
116 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Recommended Order Point");
117 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Recommended Order Amount");
118 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Operating Room Par Level Indicator");
119 } catch(HL7Exception e) {
120 log.error("Unexpected error creating IVT - this is probably a bug in the source code generator.", e);
121 }
122 }
123
124
125
126
127
128
129
130 public SI getSetIdIVT() {
131 SI retVal = this.getTypedField(1, 0);
132 return retVal;
133 }
134
135
136
137
138
139 public SI getIvt1_SetIdIVT() {
140 SI retVal = this.getTypedField(1, 0);
141 return retVal;
142 }
143
144
145
146
147
148
149
150 public EI getInventoryLocationIdentifier() {
151 EI retVal = this.getTypedField(2, 0);
152 return retVal;
153 }
154
155
156
157
158
159 public EI getIvt2_InventoryLocationIdentifier() {
160 EI retVal = this.getTypedField(2, 0);
161 return retVal;
162 }
163
164
165
166
167
168
169
170 public ST getInventoryLocationName() {
171 ST retVal = this.getTypedField(3, 0);
172 return retVal;
173 }
174
175
176
177
178
179 public ST getIvt3_InventoryLocationName() {
180 ST retVal = this.getTypedField(3, 0);
181 return retVal;
182 }
183
184
185
186
187
188
189
190 public EI getSourceLocationIdentifier() {
191 EI retVal = this.getTypedField(4, 0);
192 return retVal;
193 }
194
195
196
197
198
199 public EI getIvt4_SourceLocationIdentifier() {
200 EI retVal = this.getTypedField(4, 0);
201 return retVal;
202 }
203
204
205
206
207
208
209
210 public ST getSourceLocationName() {
211 ST retVal = this.getTypedField(5, 0);
212 return retVal;
213 }
214
215
216
217
218
219 public ST getIvt5_SourceLocationName() {
220 ST retVal = this.getTypedField(5, 0);
221 return retVal;
222 }
223
224
225
226
227
228
229
230 public CWE getItemStatus() {
231 CWE retVal = this.getTypedField(6, 0);
232 return retVal;
233 }
234
235
236
237
238
239 public CWE getIvt6_ItemStatus() {
240 CWE retVal = this.getTypedField(6, 0);
241 return retVal;
242 }
243
244
245
246
247
248 public EI[] getBinLocationIdentifier() {
249 EI[] retVal = this.getTypedField(7, new EI[0]);
250 return retVal;
251 }
252
253
254
255
256
257 public EI[] getIvt7_BinLocationIdentifier() {
258 EI[] retVal = this.getTypedField(7, new EI[0]);
259 return retVal;
260 }
261
262
263
264
265
266
267
268 public int getBinLocationIdentifierReps() {
269 return this.getReps(7);
270 }
271
272
273
274
275
276
277
278
279 public EI getBinLocationIdentifier(int rep) {
280 EI retVal = this.getTypedField(7, rep);
281 return retVal;
282 }
283
284
285
286
287
288
289
290 public EI getIvt7_BinLocationIdentifier(int rep) {
291 EI retVal = this.getTypedField(7, rep);
292 return retVal;
293 }
294
295
296
297
298
299
300 public int getIvt7_BinLocationIdentifierReps() {
301 return this.getReps(7);
302 }
303
304
305
306
307
308
309
310
311
312 public EI insertBinLocationIdentifier(int rep) throws HL7Exception {
313 return (EI) super.insertRepetition(7, rep);
314 }
315
316
317
318
319
320
321
322
323
324 public EI insertIvt7_BinLocationIdentifier(int rep) throws HL7Exception {
325 return (EI) super.insertRepetition(7, rep);
326 }
327
328
329
330
331
332
333
334
335
336 public EI removeBinLocationIdentifier(int rep) throws HL7Exception {
337 return (EI) super.removeRepetition(7, rep);
338 }
339
340
341
342
343
344
345
346
347
348 public EI removeIvt7_BinLocationIdentifier(int rep) throws HL7Exception {
349 return (EI) super.removeRepetition(7, rep);
350 }
351
352
353
354
355
356
357
358
359 public CWE getOrderPackaging() {
360 CWE retVal = this.getTypedField(8, 0);
361 return retVal;
362 }
363
364
365
366
367
368 public CWE getIvt8_OrderPackaging() {
369 CWE retVal = this.getTypedField(8, 0);
370 return retVal;
371 }
372
373
374
375
376
377
378
379 public CWE getIssuePackaging() {
380 CWE retVal = this.getTypedField(9, 0);
381 return retVal;
382 }
383
384
385
386
387
388 public CWE getIvt9_IssuePackaging() {
389 CWE retVal = this.getTypedField(9, 0);
390 return retVal;
391 }
392
393
394
395
396
397
398
399 public EI getDefaultInventoryAssetAccount() {
400 EI retVal = this.getTypedField(10, 0);
401 return retVal;
402 }
403
404
405
406
407
408 public EI getIvt10_DefaultInventoryAssetAccount() {
409 EI retVal = this.getTypedField(10, 0);
410 return retVal;
411 }
412
413
414
415
416
417
418
419 public CNE getPatientChargeableIndicator() {
420 CNE retVal = this.getTypedField(11, 0);
421 return retVal;
422 }
423
424
425
426
427
428 public CNE getIvt11_PatientChargeableIndicator() {
429 CNE retVal = this.getTypedField(11, 0);
430 return retVal;
431 }
432
433
434
435
436
437
438
439 public CWE getTransactionCode() {
440 CWE retVal = this.getTypedField(12, 0);
441 return retVal;
442 }
443
444
445
446
447
448 public CWE getIvt12_TransactionCode() {
449 CWE retVal = this.getTypedField(12, 0);
450 return retVal;
451 }
452
453
454
455
456
457
458
459 public CP getTransactionAmountUnit() {
460 CP retVal = this.getTypedField(13, 0);
461 return retVal;
462 }
463
464
465
466
467
468 public CP getIvt13_TransactionAmountUnit() {
469 CP retVal = this.getTypedField(13, 0);
470 return retVal;
471 }
472
473
474
475
476
477
478
479 public CWE getItemImportanceCode() {
480 CWE retVal = this.getTypedField(14, 0);
481 return retVal;
482 }
483
484
485
486
487
488 public CWE getIvt14_ItemImportanceCode() {
489 CWE retVal = this.getTypedField(14, 0);
490 return retVal;
491 }
492
493
494
495
496
497
498
499 public CNE getStockedItemIndicator() {
500 CNE retVal = this.getTypedField(15, 0);
501 return retVal;
502 }
503
504
505
506
507
508 public CNE getIvt15_StockedItemIndicator() {
509 CNE retVal = this.getTypedField(15, 0);
510 return retVal;
511 }
512
513
514
515
516
517
518
519 public CNE getConsignmentItemIndicator() {
520 CNE retVal = this.getTypedField(16, 0);
521 return retVal;
522 }
523
524
525
526
527
528 public CNE getIvt16_ConsignmentItemIndicator() {
529 CNE retVal = this.getTypedField(16, 0);
530 return retVal;
531 }
532
533
534
535
536
537
538
539 public CNE getReusableItemIndicator() {
540 CNE retVal = this.getTypedField(17, 0);
541 return retVal;
542 }
543
544
545
546
547
548 public CNE getIvt17_ReusableItemIndicator() {
549 CNE retVal = this.getTypedField(17, 0);
550 return retVal;
551 }
552
553
554
555
556
557
558
559 public CP getReusableCost() {
560 CP retVal = this.getTypedField(18, 0);
561 return retVal;
562 }
563
564
565
566
567
568 public CP getIvt18_ReusableCost() {
569 CP retVal = this.getTypedField(18, 0);
570 return retVal;
571 }
572
573
574
575
576
577 public EI[] getSubstituteItemIdentifier() {
578 EI[] retVal = this.getTypedField(19, new EI[0]);
579 return retVal;
580 }
581
582
583
584
585
586 public EI[] getIvt19_SubstituteItemIdentifier() {
587 EI[] retVal = this.getTypedField(19, new EI[0]);
588 return retVal;
589 }
590
591
592
593
594
595
596
597 public int getSubstituteItemIdentifierReps() {
598 return this.getReps(19);
599 }
600
601
602
603
604
605
606
607
608 public EI getSubstituteItemIdentifier(int rep) {
609 EI retVal = this.getTypedField(19, rep);
610 return retVal;
611 }
612
613
614
615
616
617
618
619 public EI getIvt19_SubstituteItemIdentifier(int rep) {
620 EI retVal = this.getTypedField(19, rep);
621 return retVal;
622 }
623
624
625
626
627
628
629 public int getIvt19_SubstituteItemIdentifierReps() {
630 return this.getReps(19);
631 }
632
633
634
635
636
637
638
639
640
641 public EI insertSubstituteItemIdentifier(int rep) throws HL7Exception {
642 return (EI) super.insertRepetition(19, rep);
643 }
644
645
646
647
648
649
650
651
652
653 public EI insertIvt19_SubstituteItemIdentifier(int rep) throws HL7Exception {
654 return (EI) super.insertRepetition(19, rep);
655 }
656
657
658
659
660
661
662
663
664
665 public EI removeSubstituteItemIdentifier(int rep) throws HL7Exception {
666 return (EI) super.removeRepetition(19, rep);
667 }
668
669
670
671
672
673
674
675
676
677 public EI removeIvt19_SubstituteItemIdentifier(int rep) throws HL7Exception {
678 return (EI) super.removeRepetition(19, rep);
679 }
680
681
682
683
684
685
686
687
688 public EI getLatexFreeSubstituteItemIdentifier() {
689 EI retVal = this.getTypedField(20, 0);
690 return retVal;
691 }
692
693
694
695
696
697 public EI getIvt20_LatexFreeSubstituteItemIdentifier() {
698 EI retVal = this.getTypedField(20, 0);
699 return retVal;
700 }
701
702
703
704
705
706
707
708 public CWE getRecommendedReorderTheory() {
709 CWE retVal = this.getTypedField(21, 0);
710 return retVal;
711 }
712
713
714
715
716
717 public CWE getIvt21_RecommendedReorderTheory() {
718 CWE retVal = this.getTypedField(21, 0);
719 return retVal;
720 }
721
722
723
724
725
726
727
728 public NM getRecommendedSafetyStockDays() {
729 NM retVal = this.getTypedField(22, 0);
730 return retVal;
731 }
732
733
734
735
736
737 public NM getIvt22_RecommendedSafetyStockDays() {
738 NM retVal = this.getTypedField(22, 0);
739 return retVal;
740 }
741
742
743
744
745
746
747
748 public NM getRecommendedMaximumDaysInventory() {
749 NM retVal = this.getTypedField(23, 0);
750 return retVal;
751 }
752
753
754
755
756
757 public NM getIvt23_RecommendedMaximumDaysInventory() {
758 NM retVal = this.getTypedField(23, 0);
759 return retVal;
760 }
761
762
763
764
765
766
767
768 public NM getRecommendedOrderPoint() {
769 NM retVal = this.getTypedField(24, 0);
770 return retVal;
771 }
772
773
774
775
776
777 public NM getIvt24_RecommendedOrderPoint() {
778 NM retVal = this.getTypedField(24, 0);
779 return retVal;
780 }
781
782
783
784
785
786
787
788 public NM getRecommendedOrderAmount() {
789 NM retVal = this.getTypedField(25, 0);
790 return retVal;
791 }
792
793
794
795
796
797 public NM getIvt25_RecommendedOrderAmount() {
798 NM retVal = this.getTypedField(25, 0);
799 return retVal;
800 }
801
802
803
804
805
806
807
808 public CNE getOperatingRoomParLevelIndicator() {
809 CNE retVal = this.getTypedField(26, 0);
810 return retVal;
811 }
812
813
814
815
816
817 public CNE getIvt26_OperatingRoomParLevelIndicator() {
818 CNE retVal = this.getTypedField(26, 0);
819 return retVal;
820 }
821
822
823
824
825
826
827 protected Type createNewTypeWithoutReflection(int field) {
828 switch (field) {
829 case 0: return new SI(getMessage());
830 case 1: return new EI(getMessage());
831 case 2: return new ST(getMessage());
832 case 3: return new EI(getMessage());
833 case 4: return new ST(getMessage());
834 case 5: return new CWE(getMessage());
835 case 6: return new EI(getMessage());
836 case 7: return new CWE(getMessage());
837 case 8: return new CWE(getMessage());
838 case 9: return new EI(getMessage());
839 case 10: return new CNE(getMessage());
840 case 11: return new CWE(getMessage());
841 case 12: return new CP(getMessage());
842 case 13: return new CWE(getMessage());
843 case 14: return new CNE(getMessage());
844 case 15: return new CNE(getMessage());
845 case 16: return new CNE(getMessage());
846 case 17: return new CP(getMessage());
847 case 18: return new EI(getMessage());
848 case 19: return new EI(getMessage());
849 case 20: return new CWE(getMessage());
850 case 21: return new NM(getMessage());
851 case 22: return new NM(getMessage());
852 case 23: return new NM(getMessage());
853 case 24: return new NM(getMessage());
854 case 25: return new CNE(getMessage());
855 default: return null;
856 }
857 }
858
859
860 }
861