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 @SuppressWarnings("unused")
79 public class OM7 extends AbstractSegment {
80
81
82
83
84 public OM7(Group parent, ModelClassFactory factory) {
85 super(parent, factory);
86 init(factory);
87 }
88
89 private void init(ModelClassFactory factory) {
90 try {
91 this.add(NM.class, true, 1, 0, new Object[]{ getMessage() }, "Sequence Number - Test/Observation Master File");
92 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Universal Service Identifier");
93 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Category Identifier");
94 this.add(TX.class, false, 1, 0, new Object[]{ getMessage() }, "Category Description");
95 this.add(ST.class, false, 0, 0, new Object[]{ getMessage() }, "Category Synonym");
96 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Test/Service Start Date/Time");
97 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Test/Service End Date/Time");
98 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Test/Service Default Duration Quantity");
99 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Test/Service Default Duration Units");
100 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Test/Service Default Frequency");
101 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Consent Indicator");
102 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Identifier");
103 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Effective Start Date/Time");
104 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Effective End Date/Time");
105 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Interval Quantity");
106 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Interval Units");
107 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Waiting Period Quantity");
108 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Consent Waiting Period Units");
109 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Date/Time of Change");
110 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Entered By");
111 this.add(PL.class, false, 0, 0, new Object[]{ getMessage() }, "Orderable-at Location");
112 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Formulary Status");
113 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Special Order Indicator");
114 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Primary Key Value - CDM");
115 } catch(HL7Exception e) {
116 log.error("Unexpected error creating OM7 - this is probably a bug in the source code generator.", e);
117 }
118 }
119
120
121
122
123
124
125
126 public NM getSequenceNumberTestObservationMasterFile() {
127 NM retVal = this.getTypedField(1, 0);
128 return retVal;
129 }
130
131
132
133
134
135 public NM getOm71_SequenceNumberTestObservationMasterFile() {
136 NM retVal = this.getTypedField(1, 0);
137 return retVal;
138 }
139
140
141
142
143
144
145
146 public CWE getUniversalServiceIdentifier() {
147 CWE retVal = this.getTypedField(2, 0);
148 return retVal;
149 }
150
151
152
153
154
155 public CWE getOm72_UniversalServiceIdentifier() {
156 CWE retVal = this.getTypedField(2, 0);
157 return retVal;
158 }
159
160
161
162
163
164 public CWE[] getCategoryIdentifier() {
165 CWE[] retVal = this.getTypedField(3, new CWE[0]);
166 return retVal;
167 }
168
169
170
171
172
173 public CWE[] getOm73_CategoryIdentifier() {
174 CWE[] retVal = this.getTypedField(3, new CWE[0]);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public int getCategoryIdentifierReps() {
185 return this.getReps(3);
186 }
187
188
189
190
191
192
193
194
195 public CWE getCategoryIdentifier(int rep) {
196 CWE retVal = this.getTypedField(3, rep);
197 return retVal;
198 }
199
200
201
202
203
204
205
206 public CWE getOm73_CategoryIdentifier(int rep) {
207 CWE retVal = this.getTypedField(3, rep);
208 return retVal;
209 }
210
211
212
213
214
215
216 public int getOm73_CategoryIdentifierReps() {
217 return this.getReps(3);
218 }
219
220
221
222
223
224
225
226
227
228 public CWE insertCategoryIdentifier(int rep) throws HL7Exception {
229 return (CWE) super.insertRepetition(3, rep);
230 }
231
232
233
234
235
236
237
238
239
240 public CWE insertOm73_CategoryIdentifier(int rep) throws HL7Exception {
241 return (CWE) super.insertRepetition(3, rep);
242 }
243
244
245
246
247
248
249
250
251
252 public CWE removeCategoryIdentifier(int rep) throws HL7Exception {
253 return (CWE) super.removeRepetition(3, rep);
254 }
255
256
257
258
259
260
261
262
263
264 public CWE removeOm73_CategoryIdentifier(int rep) throws HL7Exception {
265 return (CWE) super.removeRepetition(3, rep);
266 }
267
268
269
270
271
272
273
274
275 public TX getCategoryDescription() {
276 TX retVal = this.getTypedField(4, 0);
277 return retVal;
278 }
279
280
281
282
283
284 public TX getOm74_CategoryDescription() {
285 TX retVal = this.getTypedField(4, 0);
286 return retVal;
287 }
288
289
290
291
292
293 public ST[] getCategorySynonym() {
294 ST[] retVal = this.getTypedField(5, new ST[0]);
295 return retVal;
296 }
297
298
299
300
301
302 public ST[] getOm75_CategorySynonym() {
303 ST[] retVal = this.getTypedField(5, new ST[0]);
304 return retVal;
305 }
306
307
308
309
310
311
312
313 public int getCategorySynonymReps() {
314 return this.getReps(5);
315 }
316
317
318
319
320
321
322
323
324 public ST getCategorySynonym(int rep) {
325 ST retVal = this.getTypedField(5, rep);
326 return retVal;
327 }
328
329
330
331
332
333
334
335 public ST getOm75_CategorySynonym(int rep) {
336 ST retVal = this.getTypedField(5, rep);
337 return retVal;
338 }
339
340
341
342
343
344
345 public int getOm75_CategorySynonymReps() {
346 return this.getReps(5);
347 }
348
349
350
351
352
353
354
355
356
357 public ST insertCategorySynonym(int rep) throws HL7Exception {
358 return (ST) super.insertRepetition(5, rep);
359 }
360
361
362
363
364
365
366
367
368
369 public ST insertOm75_CategorySynonym(int rep) throws HL7Exception {
370 return (ST) super.insertRepetition(5, rep);
371 }
372
373
374
375
376
377
378
379
380
381 public ST removeCategorySynonym(int rep) throws HL7Exception {
382 return (ST) super.removeRepetition(5, rep);
383 }
384
385
386
387
388
389
390
391
392
393 public ST removeOm75_CategorySynonym(int rep) throws HL7Exception {
394 return (ST) super.removeRepetition(5, rep);
395 }
396
397
398
399
400
401
402
403
404 public DTM getEffectiveTestServiceStartDateTime() {
405 DTM retVal = this.getTypedField(6, 0);
406 return retVal;
407 }
408
409
410
411
412
413 public DTM getOm76_EffectiveTestServiceStartDateTime() {
414 DTM retVal = this.getTypedField(6, 0);
415 return retVal;
416 }
417
418
419
420
421
422
423
424 public DTM getEffectiveTestServiceEndDateTime() {
425 DTM retVal = this.getTypedField(7, 0);
426 return retVal;
427 }
428
429
430
431
432
433 public DTM getOm77_EffectiveTestServiceEndDateTime() {
434 DTM retVal = this.getTypedField(7, 0);
435 return retVal;
436 }
437
438
439
440
441
442
443
444 public NM getTestServiceDefaultDurationQuantity() {
445 NM retVal = this.getTypedField(8, 0);
446 return retVal;
447 }
448
449
450
451
452
453 public NM getOm78_TestServiceDefaultDurationQuantity() {
454 NM retVal = this.getTypedField(8, 0);
455 return retVal;
456 }
457
458
459
460
461
462
463
464 public CWE getTestServiceDefaultDurationUnits() {
465 CWE retVal = this.getTypedField(9, 0);
466 return retVal;
467 }
468
469
470
471
472
473 public CWE getOm79_TestServiceDefaultDurationUnits() {
474 CWE retVal = this.getTypedField(9, 0);
475 return retVal;
476 }
477
478
479
480
481
482
483
484 public CWE getTestServiceDefaultFrequency() {
485 CWE retVal = this.getTypedField(10, 0);
486 return retVal;
487 }
488
489
490
491
492
493 public CWE getOm710_TestServiceDefaultFrequency() {
494 CWE retVal = this.getTypedField(10, 0);
495 return retVal;
496 }
497
498
499
500
501
502
503
504 public ID getConsentIndicator() {
505 ID retVal = this.getTypedField(11, 0);
506 return retVal;
507 }
508
509
510
511
512
513 public ID getOm711_ConsentIndicator() {
514 ID retVal = this.getTypedField(11, 0);
515 return retVal;
516 }
517
518
519
520
521
522
523
524 public CWE getConsentIdentifier() {
525 CWE retVal = this.getTypedField(12, 0);
526 return retVal;
527 }
528
529
530
531
532
533 public CWE getOm712_ConsentIdentifier() {
534 CWE retVal = this.getTypedField(12, 0);
535 return retVal;
536 }
537
538
539
540
541
542
543
544 public DTM getConsentEffectiveStartDateTime() {
545 DTM retVal = this.getTypedField(13, 0);
546 return retVal;
547 }
548
549
550
551
552
553 public DTM getOm713_ConsentEffectiveStartDateTime() {
554 DTM retVal = this.getTypedField(13, 0);
555 return retVal;
556 }
557
558
559
560
561
562
563
564 public DTM getConsentEffectiveEndDateTime() {
565 DTM retVal = this.getTypedField(14, 0);
566 return retVal;
567 }
568
569
570
571
572
573 public DTM getOm714_ConsentEffectiveEndDateTime() {
574 DTM retVal = this.getTypedField(14, 0);
575 return retVal;
576 }
577
578
579
580
581
582
583
584 public NM getConsentIntervalQuantity() {
585 NM retVal = this.getTypedField(15, 0);
586 return retVal;
587 }
588
589
590
591
592
593 public NM getOm715_ConsentIntervalQuantity() {
594 NM retVal = this.getTypedField(15, 0);
595 return retVal;
596 }
597
598
599
600
601
602
603
604 public CWE getConsentIntervalUnits() {
605 CWE retVal = this.getTypedField(16, 0);
606 return retVal;
607 }
608
609
610
611
612
613 public CWE getOm716_ConsentIntervalUnits() {
614 CWE retVal = this.getTypedField(16, 0);
615 return retVal;
616 }
617
618
619
620
621
622
623
624 public NM getConsentWaitingPeriodQuantity() {
625 NM retVal = this.getTypedField(17, 0);
626 return retVal;
627 }
628
629
630
631
632
633 public NM getOm717_ConsentWaitingPeriodQuantity() {
634 NM retVal = this.getTypedField(17, 0);
635 return retVal;
636 }
637
638
639
640
641
642
643
644 public CWE getConsentWaitingPeriodUnits() {
645 CWE retVal = this.getTypedField(18, 0);
646 return retVal;
647 }
648
649
650
651
652
653 public CWE getOm718_ConsentWaitingPeriodUnits() {
654 CWE retVal = this.getTypedField(18, 0);
655 return retVal;
656 }
657
658
659
660
661
662
663
664 public DTM getEffectiveDateTimeOfChange() {
665 DTM retVal = this.getTypedField(19, 0);
666 return retVal;
667 }
668
669
670
671
672
673 public DTM getOm719_EffectiveDateTimeOfChange() {
674 DTM retVal = this.getTypedField(19, 0);
675 return retVal;
676 }
677
678
679
680
681
682
683
684 public XCN getEnteredBy() {
685 XCN retVal = this.getTypedField(20, 0);
686 return retVal;
687 }
688
689
690
691
692
693 public XCN getOm720_EnteredBy() {
694 XCN retVal = this.getTypedField(20, 0);
695 return retVal;
696 }
697
698
699
700
701
702 public PL[] getOrderableAtLocation() {
703 PL[] retVal = this.getTypedField(21, new PL[0]);
704 return retVal;
705 }
706
707
708
709
710
711 public PL[] getOm721_OrderableAtLocation() {
712 PL[] retVal = this.getTypedField(21, new PL[0]);
713 return retVal;
714 }
715
716
717
718
719
720
721
722 public int getOrderableAtLocationReps() {
723 return this.getReps(21);
724 }
725
726
727
728
729
730
731
732
733 public PL getOrderableAtLocation(int rep) {
734 PL retVal = this.getTypedField(21, rep);
735 return retVal;
736 }
737
738
739
740
741
742
743
744 public PL getOm721_OrderableAtLocation(int rep) {
745 PL retVal = this.getTypedField(21, rep);
746 return retVal;
747 }
748
749
750
751
752
753
754 public int getOm721_OrderableAtLocationReps() {
755 return this.getReps(21);
756 }
757
758
759
760
761
762
763
764
765
766 public PL insertOrderableAtLocation(int rep) throws HL7Exception {
767 return (PL) super.insertRepetition(21, rep);
768 }
769
770
771
772
773
774
775
776
777
778 public PL insertOm721_OrderableAtLocation(int rep) throws HL7Exception {
779 return (PL) super.insertRepetition(21, rep);
780 }
781
782
783
784
785
786
787
788
789
790 public PL removeOrderableAtLocation(int rep) throws HL7Exception {
791 return (PL) super.removeRepetition(21, rep);
792 }
793
794
795
796
797
798
799
800
801
802 public PL removeOm721_OrderableAtLocation(int rep) throws HL7Exception {
803 return (PL) super.removeRepetition(21, rep);
804 }
805
806
807
808
809
810
811
812
813 public CWE getFormularyStatus() {
814 CWE retVal = this.getTypedField(22, 0);
815 return retVal;
816 }
817
818
819
820
821
822 public CWE getOm722_FormularyStatus() {
823 CWE retVal = this.getTypedField(22, 0);
824 return retVal;
825 }
826
827
828
829
830
831
832
833 public ID getSpecialOrderIndicator() {
834 ID retVal = this.getTypedField(23, 0);
835 return retVal;
836 }
837
838
839
840
841
842 public ID getOm723_SpecialOrderIndicator() {
843 ID retVal = this.getTypedField(23, 0);
844 return retVal;
845 }
846
847
848
849
850
851 public CWE[] getPrimaryKeyValueCDM() {
852 CWE[] retVal = this.getTypedField(24, new CWE[0]);
853 return retVal;
854 }
855
856
857
858
859
860 public CWE[] getOm724_PrimaryKeyValueCDM() {
861 CWE[] retVal = this.getTypedField(24, new CWE[0]);
862 return retVal;
863 }
864
865
866
867
868
869
870
871 public int getPrimaryKeyValueCDMReps() {
872 return this.getReps(24);
873 }
874
875
876
877
878
879
880
881
882 public CWE getPrimaryKeyValueCDM(int rep) {
883 CWE retVal = this.getTypedField(24, rep);
884 return retVal;
885 }
886
887
888
889
890
891
892
893 public CWE getOm724_PrimaryKeyValueCDM(int rep) {
894 CWE retVal = this.getTypedField(24, rep);
895 return retVal;
896 }
897
898
899
900
901
902
903 public int getOm724_PrimaryKeyValueCDMReps() {
904 return this.getReps(24);
905 }
906
907
908
909
910
911
912
913
914
915 public CWE insertPrimaryKeyValueCDM(int rep) throws HL7Exception {
916 return (CWE) super.insertRepetition(24, rep);
917 }
918
919
920
921
922
923
924
925
926
927 public CWE insertOm724_PrimaryKeyValueCDM(int rep) throws HL7Exception {
928 return (CWE) super.insertRepetition(24, rep);
929 }
930
931
932
933
934
935
936
937
938
939 public CWE removePrimaryKeyValueCDM(int rep) throws HL7Exception {
940 return (CWE) super.removeRepetition(24, rep);
941 }
942
943
944
945
946
947
948
949
950
951 public CWE removeOm724_PrimaryKeyValueCDM(int rep) throws HL7Exception {
952 return (CWE) super.removeRepetition(24, rep);
953 }
954
955
956
957
958
959
960
961 protected Type createNewTypeWithoutReflection(int field) {
962 switch (field) {
963 case 0: return new NM(getMessage());
964 case 1: return new CWE(getMessage());
965 case 2: return new CWE(getMessage());
966 case 3: return new TX(getMessage());
967 case 4: return new ST(getMessage());
968 case 5: return new DTM(getMessage());
969 case 6: return new DTM(getMessage());
970 case 7: return new NM(getMessage());
971 case 8: return new CWE(getMessage());
972 case 9: return new CWE(getMessage());
973 case 10: return new ID(getMessage(), new Integer( 136 ));
974 case 11: return new CWE(getMessage());
975 case 12: return new DTM(getMessage());
976 case 13: return new DTM(getMessage());
977 case 14: return new NM(getMessage());
978 case 15: return new CWE(getMessage());
979 case 16: return new NM(getMessage());
980 case 17: return new CWE(getMessage());
981 case 18: return new DTM(getMessage());
982 case 19: return new XCN(getMessage());
983 case 20: return new PL(getMessage());
984 case 21: return new CWE(getMessage());
985 case 22: return new ID(getMessage(), new Integer( 136 ));
986 case 23: return new CWE(getMessage());
987 default: return null;
988 }
989 }
990
991
992 }
993