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
85
86
87 @SuppressWarnings("unused")
88 public class ITM extends AbstractSegment {
89
90
91
92
93 public ITM(Group parent, ModelClassFactory factory) {
94 super(parent, factory);
95 init(factory);
96 }
97
98 private void init(ModelClassFactory factory) {
99 try {
100 this.add(EI.class, true, 1, 0, new Object[]{ getMessage() }, "Item Identifier");
101 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Item Description");
102 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Status");
103 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Type");
104 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Category");
105 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Subject to Expiration Indicator");
106 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Manufacturer Identifier");
107 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Manufacturer Name");
108 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Manufacturer Catalog Number");
109 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Manufacturer Labeler Identification Code");
110 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Patient Chargeable Indicator");
111 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Transaction Code");
112 this.add(CP.class, false, 1, 0, new Object[]{ getMessage() }, "Transaction amount - unit");
113 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Stocked Item Indicator");
114 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Supply Risk Codes");
115 this.add(XON.class, false, 0, 0, new Object[]{ getMessage() }, "Approving Regulatory Agency");
116 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Latex Indicator");
117 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Ruling Act");
118 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Natural Account Code");
119 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Approved To Buy Quantity");
120 this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Approved To Buy Price");
121 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Taxable Item Indicator");
122 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Freight Charge Indicator");
123 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Item Set Indicator");
124 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Item Set Identifier");
125 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Track Department Usage Indicator");
126 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Procedure Code");
127 this.add(CNE.class, false, 0, 0, new Object[]{ getMessage() }, "Procedure Code Modifier");
128 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Special Handling Code");
129 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Hazardous Indicator");
130 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Sterile Indicator");
131 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Material Data Safety Sheet Number");
132 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "United Nations Standard Products and Services Code (UNSPSC)");
133 } catch(HL7Exception e) {
134 log.error("Unexpected error creating ITM - this is probably a bug in the source code generator.", e);
135 }
136 }
137
138
139
140
141
142
143
144 public EI getItemIdentifier() {
145 EI retVal = this.getTypedField(1, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public EI getItm1_ItemIdentifier() {
154 EI retVal = this.getTypedField(1, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public ST getItemDescription() {
165 ST retVal = this.getTypedField(2, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public ST getItm2_ItemDescription() {
174 ST retVal = this.getTypedField(2, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public CWE getItemStatus() {
185 CWE retVal = this.getTypedField(3, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public CWE getItm3_ItemStatus() {
194 CWE retVal = this.getTypedField(3, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public CWE getItemType() {
205 CWE retVal = this.getTypedField(4, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public CWE getItm4_ItemType() {
214 CWE retVal = this.getTypedField(4, 0);
215 return retVal;
216 }
217
218
219
220
221
222
223
224 public CWE getItemCategory() {
225 CWE retVal = this.getTypedField(5, 0);
226 return retVal;
227 }
228
229
230
231
232
233 public CWE getItm5_ItemCategory() {
234 CWE retVal = this.getTypedField(5, 0);
235 return retVal;
236 }
237
238
239
240
241
242
243
244 public CNE getSubjectToExpirationIndicator() {
245 CNE retVal = this.getTypedField(6, 0);
246 return retVal;
247 }
248
249
250
251
252
253 public CNE getItm6_SubjectToExpirationIndicator() {
254 CNE retVal = this.getTypedField(6, 0);
255 return retVal;
256 }
257
258
259
260
261
262
263
264 public EI getManufacturerIdentifier() {
265 EI retVal = this.getTypedField(7, 0);
266 return retVal;
267 }
268
269
270
271
272
273 public EI getItm7_ManufacturerIdentifier() {
274 EI retVal = this.getTypedField(7, 0);
275 return retVal;
276 }
277
278
279
280
281
282
283
284 public ST getManufacturerName() {
285 ST retVal = this.getTypedField(8, 0);
286 return retVal;
287 }
288
289
290
291
292
293 public ST getItm8_ManufacturerName() {
294 ST retVal = this.getTypedField(8, 0);
295 return retVal;
296 }
297
298
299
300
301
302
303
304 public ST getManufacturerCatalogNumber() {
305 ST retVal = this.getTypedField(9, 0);
306 return retVal;
307 }
308
309
310
311
312
313 public ST getItm9_ManufacturerCatalogNumber() {
314 ST retVal = this.getTypedField(9, 0);
315 return retVal;
316 }
317
318
319
320
321
322
323
324 public CWE getManufacturerLabelerIdentificationCode() {
325 CWE retVal = this.getTypedField(10, 0);
326 return retVal;
327 }
328
329
330
331
332
333 public CWE getItm10_ManufacturerLabelerIdentificationCode() {
334 CWE retVal = this.getTypedField(10, 0);
335 return retVal;
336 }
337
338
339
340
341
342
343
344 public CNE getPatientChargeableIndicator() {
345 CNE retVal = this.getTypedField(11, 0);
346 return retVal;
347 }
348
349
350
351
352
353 public CNE getItm11_PatientChargeableIndicator() {
354 CNE retVal = this.getTypedField(11, 0);
355 return retVal;
356 }
357
358
359
360
361
362
363
364 public CWE getTransactionCode() {
365 CWE retVal = this.getTypedField(12, 0);
366 return retVal;
367 }
368
369
370
371
372
373 public CWE getItm12_TransactionCode() {
374 CWE retVal = this.getTypedField(12, 0);
375 return retVal;
376 }
377
378
379
380
381
382
383
384 public CP getTransactionAmountUnit() {
385 CP retVal = this.getTypedField(13, 0);
386 return retVal;
387 }
388
389
390
391
392
393 public CP getItm13_TransactionAmountUnit() {
394 CP retVal = this.getTypedField(13, 0);
395 return retVal;
396 }
397
398
399
400
401
402
403
404 public CNE getStockedItemIndicator() {
405 CNE retVal = this.getTypedField(14, 0);
406 return retVal;
407 }
408
409
410
411
412
413 public CNE getItm14_StockedItemIndicator() {
414 CNE retVal = this.getTypedField(14, 0);
415 return retVal;
416 }
417
418
419
420
421
422
423
424 public CWE getSupplyRiskCodes() {
425 CWE retVal = this.getTypedField(15, 0);
426 return retVal;
427 }
428
429
430
431
432
433 public CWE getItm15_SupplyRiskCodes() {
434 CWE retVal = this.getTypedField(15, 0);
435 return retVal;
436 }
437
438
439
440
441
442 public XON[] getApprovingRegulatoryAgency() {
443 XON[] retVal = this.getTypedField(16, new XON[0]);
444 return retVal;
445 }
446
447
448
449
450
451 public XON[] getItm16_ApprovingRegulatoryAgency() {
452 XON[] retVal = this.getTypedField(16, new XON[0]);
453 return retVal;
454 }
455
456
457
458
459
460
461
462 public int getApprovingRegulatoryAgencyReps() {
463 return this.getReps(16);
464 }
465
466
467
468
469
470
471
472
473 public XON getApprovingRegulatoryAgency(int rep) {
474 XON retVal = this.getTypedField(16, rep);
475 return retVal;
476 }
477
478
479
480
481
482
483
484 public XON getItm16_ApprovingRegulatoryAgency(int rep) {
485 XON retVal = this.getTypedField(16, rep);
486 return retVal;
487 }
488
489
490
491
492
493
494 public int getItm16_ApprovingRegulatoryAgencyReps() {
495 return this.getReps(16);
496 }
497
498
499
500
501
502
503
504
505
506 public XON insertApprovingRegulatoryAgency(int rep) throws HL7Exception {
507 return (XON) super.insertRepetition(16, rep);
508 }
509
510
511
512
513
514
515
516
517
518 public XON insertItm16_ApprovingRegulatoryAgency(int rep) throws HL7Exception {
519 return (XON) super.insertRepetition(16, rep);
520 }
521
522
523
524
525
526
527
528
529
530 public XON removeApprovingRegulatoryAgency(int rep) throws HL7Exception {
531 return (XON) super.removeRepetition(16, rep);
532 }
533
534
535
536
537
538
539
540
541
542 public XON removeItm16_ApprovingRegulatoryAgency(int rep) throws HL7Exception {
543 return (XON) super.removeRepetition(16, rep);
544 }
545
546
547
548
549
550
551
552
553 public CNE getLatexIndicator() {
554 CNE retVal = this.getTypedField(17, 0);
555 return retVal;
556 }
557
558
559
560
561
562 public CNE getItm17_LatexIndicator() {
563 CNE retVal = this.getTypedField(17, 0);
564 return retVal;
565 }
566
567
568
569
570
571 public CWE[] getRulingAct() {
572 CWE[] retVal = this.getTypedField(18, new CWE[0]);
573 return retVal;
574 }
575
576
577
578
579
580 public CWE[] getItm18_RulingAct() {
581 CWE[] retVal = this.getTypedField(18, new CWE[0]);
582 return retVal;
583 }
584
585
586
587
588
589
590
591 public int getRulingActReps() {
592 return this.getReps(18);
593 }
594
595
596
597
598
599
600
601
602 public CWE getRulingAct(int rep) {
603 CWE retVal = this.getTypedField(18, rep);
604 return retVal;
605 }
606
607
608
609
610
611
612
613 public CWE getItm18_RulingAct(int rep) {
614 CWE retVal = this.getTypedField(18, rep);
615 return retVal;
616 }
617
618
619
620
621
622
623 public int getItm18_RulingActReps() {
624 return this.getReps(18);
625 }
626
627
628
629
630
631
632
633
634
635 public CWE insertRulingAct(int rep) throws HL7Exception {
636 return (CWE) super.insertRepetition(18, rep);
637 }
638
639
640
641
642
643
644
645
646
647 public CWE insertItm18_RulingAct(int rep) throws HL7Exception {
648 return (CWE) super.insertRepetition(18, rep);
649 }
650
651
652
653
654
655
656
657
658
659 public CWE removeRulingAct(int rep) throws HL7Exception {
660 return (CWE) super.removeRepetition(18, rep);
661 }
662
663
664
665
666
667
668
669
670
671 public CWE removeItm18_RulingAct(int rep) throws HL7Exception {
672 return (CWE) super.removeRepetition(18, rep);
673 }
674
675
676
677
678
679
680
681
682 public CWE getItemNaturalAccountCode() {
683 CWE retVal = this.getTypedField(19, 0);
684 return retVal;
685 }
686
687
688
689
690
691 public CWE getItm19_ItemNaturalAccountCode() {
692 CWE retVal = this.getTypedField(19, 0);
693 return retVal;
694 }
695
696
697
698
699
700
701
702 public NM getApprovedToBuyQuantity() {
703 NM retVal = this.getTypedField(20, 0);
704 return retVal;
705 }
706
707
708
709
710
711 public NM getItm20_ApprovedToBuyQuantity() {
712 NM retVal = this.getTypedField(20, 0);
713 return retVal;
714 }
715
716
717
718
719
720
721
722 public MO getApprovedToBuyPrice() {
723 MO retVal = this.getTypedField(21, 0);
724 return retVal;
725 }
726
727
728
729
730
731 public MO getItm21_ApprovedToBuyPrice() {
732 MO retVal = this.getTypedField(21, 0);
733 return retVal;
734 }
735
736
737
738
739
740
741
742 public CNE getTaxableItemIndicator() {
743 CNE retVal = this.getTypedField(22, 0);
744 return retVal;
745 }
746
747
748
749
750
751 public CNE getItm22_TaxableItemIndicator() {
752 CNE retVal = this.getTypedField(22, 0);
753 return retVal;
754 }
755
756
757
758
759
760
761
762 public CNE getFreightChargeIndicator() {
763 CNE retVal = this.getTypedField(23, 0);
764 return retVal;
765 }
766
767
768
769
770
771 public CNE getItm23_FreightChargeIndicator() {
772 CNE retVal = this.getTypedField(23, 0);
773 return retVal;
774 }
775
776
777
778
779
780
781
782 public CNE getItemSetIndicator() {
783 CNE retVal = this.getTypedField(24, 0);
784 return retVal;
785 }
786
787
788
789
790
791 public CNE getItm24_ItemSetIndicator() {
792 CNE retVal = this.getTypedField(24, 0);
793 return retVal;
794 }
795
796
797
798
799
800
801
802 public EI getItemSetIdentifier() {
803 EI retVal = this.getTypedField(25, 0);
804 return retVal;
805 }
806
807
808
809
810
811 public EI getItm25_ItemSetIdentifier() {
812 EI retVal = this.getTypedField(25, 0);
813 return retVal;
814 }
815
816
817
818
819
820
821
822 public CNE getTrackDepartmentUsageIndicator() {
823 CNE retVal = this.getTypedField(26, 0);
824 return retVal;
825 }
826
827
828
829
830
831 public CNE getItm26_TrackDepartmentUsageIndicator() {
832 CNE retVal = this.getTypedField(26, 0);
833 return retVal;
834 }
835
836
837
838
839
840
841
842 public CNE getProcedureCode() {
843 CNE retVal = this.getTypedField(27, 0);
844 return retVal;
845 }
846
847
848
849
850
851 public CNE getItm27_ProcedureCode() {
852 CNE retVal = this.getTypedField(27, 0);
853 return retVal;
854 }
855
856
857
858
859
860 public CNE[] getProcedureCodeModifier() {
861 CNE[] retVal = this.getTypedField(28, new CNE[0]);
862 return retVal;
863 }
864
865
866
867
868
869 public CNE[] getItm28_ProcedureCodeModifier() {
870 CNE[] retVal = this.getTypedField(28, new CNE[0]);
871 return retVal;
872 }
873
874
875
876
877
878
879
880 public int getProcedureCodeModifierReps() {
881 return this.getReps(28);
882 }
883
884
885
886
887
888
889
890
891 public CNE getProcedureCodeModifier(int rep) {
892 CNE retVal = this.getTypedField(28, rep);
893 return retVal;
894 }
895
896
897
898
899
900
901
902 public CNE getItm28_ProcedureCodeModifier(int rep) {
903 CNE retVal = this.getTypedField(28, rep);
904 return retVal;
905 }
906
907
908
909
910
911
912 public int getItm28_ProcedureCodeModifierReps() {
913 return this.getReps(28);
914 }
915
916
917
918
919
920
921
922
923
924 public CNE insertProcedureCodeModifier(int rep) throws HL7Exception {
925 return (CNE) super.insertRepetition(28, rep);
926 }
927
928
929
930
931
932
933
934
935
936 public CNE insertItm28_ProcedureCodeModifier(int rep) throws HL7Exception {
937 return (CNE) super.insertRepetition(28, rep);
938 }
939
940
941
942
943
944
945
946
947
948 public CNE removeProcedureCodeModifier(int rep) throws HL7Exception {
949 return (CNE) super.removeRepetition(28, rep);
950 }
951
952
953
954
955
956
957
958
959
960 public CNE removeItm28_ProcedureCodeModifier(int rep) throws HL7Exception {
961 return (CNE) super.removeRepetition(28, rep);
962 }
963
964
965
966
967
968
969
970
971 public CWE getSpecialHandlingCode() {
972 CWE retVal = this.getTypedField(29, 0);
973 return retVal;
974 }
975
976
977
978
979
980 public CWE getItm29_SpecialHandlingCode() {
981 CWE retVal = this.getTypedField(29, 0);
982 return retVal;
983 }
984
985
986
987
988
989
990
991 public CNE getHazardousIndicator() {
992 CNE retVal = this.getTypedField(30, 0);
993 return retVal;
994 }
995
996
997
998
999
1000 public CNE getItm30_HazardousIndicator() {
1001 CNE retVal = this.getTypedField(30, 0);
1002 return retVal;
1003 }
1004
1005
1006
1007
1008
1009
1010
1011 public CNE getSterileIndicator() {
1012 CNE retVal = this.getTypedField(31, 0);
1013 return retVal;
1014 }
1015
1016
1017
1018
1019
1020 public CNE getItm31_SterileIndicator() {
1021 CNE retVal = this.getTypedField(31, 0);
1022 return retVal;
1023 }
1024
1025
1026
1027
1028
1029
1030
1031 public EI getMaterialDataSafetySheetNumber() {
1032 EI retVal = this.getTypedField(32, 0);
1033 return retVal;
1034 }
1035
1036
1037
1038
1039
1040 public EI getItm32_MaterialDataSafetySheetNumber() {
1041 EI retVal = this.getTypedField(32, 0);
1042 return retVal;
1043 }
1044
1045
1046
1047
1048
1049
1050
1051 public CWE getUnitedNationsStandardProductsAndServicesCodeUNSPSC() {
1052 CWE retVal = this.getTypedField(33, 0);
1053 return retVal;
1054 }
1055
1056
1057
1058
1059
1060 public CWE getItm33_UnitedNationsStandardProductsAndServicesCodeUNSPSC() {
1061 CWE retVal = this.getTypedField(33, 0);
1062 return retVal;
1063 }
1064
1065
1066
1067
1068
1069
1070 protected Type createNewTypeWithoutReflection(int field) {
1071 switch (field) {
1072 case 0: return new EI(getMessage());
1073 case 1: return new ST(getMessage());
1074 case 2: return new CWE(getMessage());
1075 case 3: return new CWE(getMessage());
1076 case 4: return new CWE(getMessage());
1077 case 5: return new CNE(getMessage());
1078 case 6: return new EI(getMessage());
1079 case 7: return new ST(getMessage());
1080 case 8: return new ST(getMessage());
1081 case 9: return new CWE(getMessage());
1082 case 10: return new CNE(getMessage());
1083 case 11: return new CWE(getMessage());
1084 case 12: return new CP(getMessage());
1085 case 13: return new CNE(getMessage());
1086 case 14: return new CWE(getMessage());
1087 case 15: return new XON(getMessage());
1088 case 16: return new CNE(getMessage());
1089 case 17: return new CWE(getMessage());
1090 case 18: return new CWE(getMessage());
1091 case 19: return new NM(getMessage());
1092 case 20: return new MO(getMessage());
1093 case 21: return new CNE(getMessage());
1094 case 22: return new CNE(getMessage());
1095 case 23: return new CNE(getMessage());
1096 case 24: return new EI(getMessage());
1097 case 25: return new CNE(getMessage());
1098 case 26: return new CNE(getMessage());
1099 case 27: return new CNE(getMessage());
1100 case 28: return new CWE(getMessage());
1101 case 29: return new CNE(getMessage());
1102 case 30: return new CNE(getMessage());
1103 case 31: return new EI(getMessage());
1104 case 32: return new CWE(getMessage());
1105 default: return null;
1106 }
1107 }
1108
1109
1110 }
1111