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