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.v281.segment;
35
36
37 import ca.uhn.hl7v2.model.v281.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 @SuppressWarnings("unused")
73 public class OM4 extends AbstractSegment {
74
75
76
77
78 public OM4(Group parent, ModelClassFactory factory) {
79 super(parent, factory);
80 init(factory);
81 }
82
83 private void init(ModelClassFactory factory) {
84 try {
85 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Sequence Number - Test/Observation Master File");
86 this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(170) }, "Derived Specimen");
87 this.add(TX.class, false, 0, 0, new Object[]{ getMessage() }, "Container Description");
88 this.add(NM.class, false, 0, 0, new Object[]{ getMessage() }, "Container Volume");
89 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Container Units");
90 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Specimen");
91 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Additive");
92 this.add(TX.class, false, 1, 0, new Object[]{ getMessage() }, "Preparation");
93 this.add(TX.class, false, 1, 0, new Object[]{ getMessage() }, "Special Handling Requirements");
94 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Normal Collection Volume");
95 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Minimum Collection Volume");
96 this.add(TX.class, false, 1, 0, new Object[]{ getMessage() }, "Specimen Requirements");
97 this.add(ID.class, false, 0, 0, new Object[]{ getMessage(), new Integer(27) }, "Specimen Priorities");
98 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Specimen Retention Time");
99 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Specimen Handling Code");
100 this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(920) }, "Specimen Preference");
101 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Preferred Specimen/Attribture Sequence ID");
102 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Taxonomic Classification Code");
103 } catch(HL7Exception e) {
104 log.error("Unexpected error creating OM4 - this is probably a bug in the source code generator.", e);
105 }
106 }
107
108
109
110
111
112
113
114 public NM getSequenceNumberTestObservationMasterFile() {
115 NM retVal = this.getTypedField(1, 0);
116 return retVal;
117 }
118
119
120
121
122
123 public NM getOm41_SequenceNumberTestObservationMasterFile() {
124 NM retVal = this.getTypedField(1, 0);
125 return retVal;
126 }
127
128
129
130
131
132
133
134 public ID getDerivedSpecimen() {
135 ID retVal = this.getTypedField(2, 0);
136 return retVal;
137 }
138
139
140
141
142
143 public ID getOm42_DerivedSpecimen() {
144 ID retVal = this.getTypedField(2, 0);
145 return retVal;
146 }
147
148
149
150
151
152 public TX[] getContainerDescription() {
153 TX[] retVal = this.getTypedField(3, new TX[0]);
154 return retVal;
155 }
156
157
158
159
160
161 public TX[] getOm43_ContainerDescription() {
162 TX[] retVal = this.getTypedField(3, new TX[0]);
163 return retVal;
164 }
165
166
167
168
169
170
171
172 public int getContainerDescriptionReps() {
173 return this.getReps(3);
174 }
175
176
177
178
179
180
181
182
183 public TX getContainerDescription(int rep) {
184 TX retVal = this.getTypedField(3, rep);
185 return retVal;
186 }
187
188
189
190
191
192
193
194 public TX getOm43_ContainerDescription(int rep) {
195 TX retVal = this.getTypedField(3, rep);
196 return retVal;
197 }
198
199
200
201
202
203
204 public int getOm43_ContainerDescriptionReps() {
205 return this.getReps(3);
206 }
207
208
209
210
211
212
213
214
215
216 public TX insertContainerDescription(int rep) throws HL7Exception {
217 return (TX) super.insertRepetition(3, rep);
218 }
219
220
221
222
223
224
225
226
227
228 public TX insertOm43_ContainerDescription(int rep) throws HL7Exception {
229 return (TX) super.insertRepetition(3, rep);
230 }
231
232
233
234
235
236
237
238
239
240 public TX removeContainerDescription(int rep) throws HL7Exception {
241 return (TX) super.removeRepetition(3, rep);
242 }
243
244
245
246
247
248
249
250
251
252 public TX removeOm43_ContainerDescription(int rep) throws HL7Exception {
253 return (TX) super.removeRepetition(3, rep);
254 }
255
256
257
258
259
260
261 public NM[] getContainerVolume() {
262 NM[] retVal = this.getTypedField(4, new NM[0]);
263 return retVal;
264 }
265
266
267
268
269
270 public NM[] getOm44_ContainerVolume() {
271 NM[] retVal = this.getTypedField(4, new NM[0]);
272 return retVal;
273 }
274
275
276
277
278
279
280
281 public int getContainerVolumeReps() {
282 return this.getReps(4);
283 }
284
285
286
287
288
289
290
291
292 public NM getContainerVolume(int rep) {
293 NM retVal = this.getTypedField(4, rep);
294 return retVal;
295 }
296
297
298
299
300
301
302
303 public NM getOm44_ContainerVolume(int rep) {
304 NM retVal = this.getTypedField(4, rep);
305 return retVal;
306 }
307
308
309
310
311
312
313 public int getOm44_ContainerVolumeReps() {
314 return this.getReps(4);
315 }
316
317
318
319
320
321
322
323
324
325 public NM insertContainerVolume(int rep) throws HL7Exception {
326 return (NM) super.insertRepetition(4, rep);
327 }
328
329
330
331
332
333
334
335
336
337 public NM insertOm44_ContainerVolume(int rep) throws HL7Exception {
338 return (NM) super.insertRepetition(4, rep);
339 }
340
341
342
343
344
345
346
347
348
349 public NM removeContainerVolume(int rep) throws HL7Exception {
350 return (NM) super.removeRepetition(4, rep);
351 }
352
353
354
355
356
357
358
359
360
361 public NM removeOm44_ContainerVolume(int rep) throws HL7Exception {
362 return (NM) super.removeRepetition(4, rep);
363 }
364
365
366
367
368
369
370 public CWE[] getContainerUnits() {
371 CWE[] retVal = this.getTypedField(5, new CWE[0]);
372 return retVal;
373 }
374
375
376
377
378
379 public CWE[] getOm45_ContainerUnits() {
380 CWE[] retVal = this.getTypedField(5, new CWE[0]);
381 return retVal;
382 }
383
384
385
386
387
388
389
390 public int getContainerUnitsReps() {
391 return this.getReps(5);
392 }
393
394
395
396
397
398
399
400
401 public CWE getContainerUnits(int rep) {
402 CWE retVal = this.getTypedField(5, rep);
403 return retVal;
404 }
405
406
407
408
409
410
411
412 public CWE getOm45_ContainerUnits(int rep) {
413 CWE retVal = this.getTypedField(5, rep);
414 return retVal;
415 }
416
417
418
419
420
421
422 public int getOm45_ContainerUnitsReps() {
423 return this.getReps(5);
424 }
425
426
427
428
429
430
431
432
433
434 public CWE insertContainerUnits(int rep) throws HL7Exception {
435 return (CWE) super.insertRepetition(5, rep);
436 }
437
438
439
440
441
442
443
444
445
446 public CWE insertOm45_ContainerUnits(int rep) throws HL7Exception {
447 return (CWE) super.insertRepetition(5, rep);
448 }
449
450
451
452
453
454
455
456
457
458 public CWE removeContainerUnits(int rep) throws HL7Exception {
459 return (CWE) super.removeRepetition(5, rep);
460 }
461
462
463
464
465
466
467
468
469
470 public CWE removeOm45_ContainerUnits(int rep) throws HL7Exception {
471 return (CWE) super.removeRepetition(5, rep);
472 }
473
474
475
476
477
478
479
480
481 public CWE getSpecimen() {
482 CWE retVal = this.getTypedField(6, 0);
483 return retVal;
484 }
485
486
487
488
489
490 public CWE getOm46_Specimen() {
491 CWE retVal = this.getTypedField(6, 0);
492 return retVal;
493 }
494
495
496
497
498
499
500
501 public CWE getAdditive() {
502 CWE retVal = this.getTypedField(7, 0);
503 return retVal;
504 }
505
506
507
508
509
510 public CWE getOm47_Additive() {
511 CWE retVal = this.getTypedField(7, 0);
512 return retVal;
513 }
514
515
516
517
518
519
520
521 public TX getPreparation() {
522 TX retVal = this.getTypedField(8, 0);
523 return retVal;
524 }
525
526
527
528
529
530 public TX getOm48_Preparation() {
531 TX retVal = this.getTypedField(8, 0);
532 return retVal;
533 }
534
535
536
537
538
539
540
541 public TX getSpecialHandlingRequirements() {
542 TX retVal = this.getTypedField(9, 0);
543 return retVal;
544 }
545
546
547
548
549
550 public TX getOm49_SpecialHandlingRequirements() {
551 TX retVal = this.getTypedField(9, 0);
552 return retVal;
553 }
554
555
556
557
558
559
560
561 public CQ getNormalCollectionVolume() {
562 CQ retVal = this.getTypedField(10, 0);
563 return retVal;
564 }
565
566
567
568
569
570 public CQ getOm410_NormalCollectionVolume() {
571 CQ retVal = this.getTypedField(10, 0);
572 return retVal;
573 }
574
575
576
577
578
579
580
581 public CQ getMinimumCollectionVolume() {
582 CQ retVal = this.getTypedField(11, 0);
583 return retVal;
584 }
585
586
587
588
589
590 public CQ getOm411_MinimumCollectionVolume() {
591 CQ retVal = this.getTypedField(11, 0);
592 return retVal;
593 }
594
595
596
597
598
599
600
601 public TX getSpecimenRequirements() {
602 TX retVal = this.getTypedField(12, 0);
603 return retVal;
604 }
605
606
607
608
609
610 public TX getOm412_SpecimenRequirements() {
611 TX retVal = this.getTypedField(12, 0);
612 return retVal;
613 }
614
615
616
617
618
619 public ID[] getSpecimenPriorities() {
620 ID[] retVal = this.getTypedField(13, new ID[0]);
621 return retVal;
622 }
623
624
625
626
627
628 public ID[] getOm413_SpecimenPriorities() {
629 ID[] retVal = this.getTypedField(13, new ID[0]);
630 return retVal;
631 }
632
633
634
635
636
637
638
639 public int getSpecimenPrioritiesReps() {
640 return this.getReps(13);
641 }
642
643
644
645
646
647
648
649
650 public ID getSpecimenPriorities(int rep) {
651 ID retVal = this.getTypedField(13, rep);
652 return retVal;
653 }
654
655
656
657
658
659
660
661 public ID getOm413_SpecimenPriorities(int rep) {
662 ID retVal = this.getTypedField(13, rep);
663 return retVal;
664 }
665
666
667
668
669
670
671 public int getOm413_SpecimenPrioritiesReps() {
672 return this.getReps(13);
673 }
674
675
676
677
678
679
680
681
682
683 public ID insertSpecimenPriorities(int rep) throws HL7Exception {
684 return (ID) super.insertRepetition(13, rep);
685 }
686
687
688
689
690
691
692
693
694
695 public ID insertOm413_SpecimenPriorities(int rep) throws HL7Exception {
696 return (ID) super.insertRepetition(13, rep);
697 }
698
699
700
701
702
703
704
705
706
707 public ID removeSpecimenPriorities(int rep) throws HL7Exception {
708 return (ID) super.removeRepetition(13, rep);
709 }
710
711
712
713
714
715
716
717
718
719 public ID removeOm413_SpecimenPriorities(int rep) throws HL7Exception {
720 return (ID) super.removeRepetition(13, rep);
721 }
722
723
724
725
726
727
728
729
730 public CQ getSpecimenRetentionTime() {
731 CQ retVal = this.getTypedField(14, 0);
732 return retVal;
733 }
734
735
736
737
738
739 public CQ getOm414_SpecimenRetentionTime() {
740 CQ retVal = this.getTypedField(14, 0);
741 return retVal;
742 }
743
744
745
746
747
748 public CWE[] getSpecimenHandlingCode() {
749 CWE[] retVal = this.getTypedField(15, new CWE[0]);
750 return retVal;
751 }
752
753
754
755
756
757 public CWE[] getOm415_SpecimenHandlingCode() {
758 CWE[] retVal = this.getTypedField(15, new CWE[0]);
759 return retVal;
760 }
761
762
763
764
765
766
767
768 public int getSpecimenHandlingCodeReps() {
769 return this.getReps(15);
770 }
771
772
773
774
775
776
777
778
779 public CWE getSpecimenHandlingCode(int rep) {
780 CWE retVal = this.getTypedField(15, rep);
781 return retVal;
782 }
783
784
785
786
787
788
789
790 public CWE getOm415_SpecimenHandlingCode(int rep) {
791 CWE retVal = this.getTypedField(15, rep);
792 return retVal;
793 }
794
795
796
797
798
799
800 public int getOm415_SpecimenHandlingCodeReps() {
801 return this.getReps(15);
802 }
803
804
805
806
807
808
809
810
811
812 public CWE insertSpecimenHandlingCode(int rep) throws HL7Exception {
813 return (CWE) super.insertRepetition(15, rep);
814 }
815
816
817
818
819
820
821
822
823
824 public CWE insertOm415_SpecimenHandlingCode(int rep) throws HL7Exception {
825 return (CWE) super.insertRepetition(15, rep);
826 }
827
828
829
830
831
832
833
834
835
836 public CWE removeSpecimenHandlingCode(int rep) throws HL7Exception {
837 return (CWE) super.removeRepetition(15, rep);
838 }
839
840
841
842
843
844
845
846
847
848 public CWE removeOm415_SpecimenHandlingCode(int rep) throws HL7Exception {
849 return (CWE) super.removeRepetition(15, rep);
850 }
851
852
853
854
855
856
857
858
859 public ID getSpecimenPreference() {
860 ID retVal = this.getTypedField(16, 0);
861 return retVal;
862 }
863
864
865
866
867
868 public ID getOm416_SpecimenPreference() {
869 ID retVal = this.getTypedField(16, 0);
870 return retVal;
871 }
872
873
874
875
876
877
878
879 public NM getPreferredSpecimenAttribtureSequenceID() {
880 NM retVal = this.getTypedField(17, 0);
881 return retVal;
882 }
883
884
885
886
887
888 public NM getOm417_PreferredSpecimenAttribtureSequenceID() {
889 NM retVal = this.getTypedField(17, 0);
890 return retVal;
891 }
892
893
894
895
896
897 public CWE[] getTaxonomicClassificationCode() {
898 CWE[] retVal = this.getTypedField(18, new CWE[0]);
899 return retVal;
900 }
901
902
903
904
905
906 public CWE[] getOm418_TaxonomicClassificationCode() {
907 CWE[] retVal = this.getTypedField(18, new CWE[0]);
908 return retVal;
909 }
910
911
912
913
914
915
916
917 public int getTaxonomicClassificationCodeReps() {
918 return this.getReps(18);
919 }
920
921
922
923
924
925
926
927
928 public CWE getTaxonomicClassificationCode(int rep) {
929 CWE retVal = this.getTypedField(18, rep);
930 return retVal;
931 }
932
933
934
935
936
937
938
939 public CWE getOm418_TaxonomicClassificationCode(int rep) {
940 CWE retVal = this.getTypedField(18, rep);
941 return retVal;
942 }
943
944
945
946
947
948
949 public int getOm418_TaxonomicClassificationCodeReps() {
950 return this.getReps(18);
951 }
952
953
954
955
956
957
958
959
960
961 public CWE insertTaxonomicClassificationCode(int rep) throws HL7Exception {
962 return (CWE) super.insertRepetition(18, rep);
963 }
964
965
966
967
968
969
970
971
972
973 public CWE insertOm418_TaxonomicClassificationCode(int rep) throws HL7Exception {
974 return (CWE) super.insertRepetition(18, rep);
975 }
976
977
978
979
980
981
982
983
984
985 public CWE removeTaxonomicClassificationCode(int rep) throws HL7Exception {
986 return (CWE) super.removeRepetition(18, rep);
987 }
988
989
990
991
992
993
994
995
996
997 public CWE removeOm418_TaxonomicClassificationCode(int rep) throws HL7Exception {
998 return (CWE) super.removeRepetition(18, rep);
999 }
1000
1001
1002
1003
1004
1005
1006
1007 protected Type createNewTypeWithoutReflection(int field) {
1008 switch (field) {
1009 case 0: return new NM(getMessage());
1010 case 1: return new ID(getMessage(), new Integer( 170 ));
1011 case 2: return new TX(getMessage());
1012 case 3: return new NM(getMessage());
1013 case 4: return new CWE(getMessage());
1014 case 5: return new CWE(getMessage());
1015 case 6: return new CWE(getMessage());
1016 case 7: return new TX(getMessage());
1017 case 8: return new TX(getMessage());
1018 case 9: return new CQ(getMessage());
1019 case 10: return new CQ(getMessage());
1020 case 11: return new TX(getMessage());
1021 case 12: return new ID(getMessage(), new Integer( 27 ));
1022 case 13: return new CQ(getMessage());
1023 case 14: return new CWE(getMessage());
1024 case 15: return new ID(getMessage(), new Integer( 920 ));
1025 case 16: return new NM(getMessage());
1026 case 17: return new CWE(getMessage());
1027 default: return null;
1028 }
1029 }
1030
1031
1032 }
1033