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.v23.segment;
35
36
37 import ca.uhn.hl7v2.model.v23.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 @SuppressWarnings("unused")
74 public class ORC extends AbstractSegment {
75
76
77
78
79 public ORC(Group parent, ModelClassFactory factory) {
80 super(parent, factory);
81 init(factory);
82 }
83
84 private void init(ModelClassFactory factory) {
85 try {
86 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(119) }, "Order Control");
87 this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Placer Order Number");
88 this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number");
89 this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Group Number");
90 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(38) }, "Order Status");
91 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(121) }, "Response Flag");
92 this.add(TQ.class, true, 1, 200, new Object[]{ getMessage() }, "Quantity/Timing");
93 this.add(CM_EIP.class, false, 1, 200, new Object[]{ getMessage() }, "Parent Order");
94 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of Transaction");
95 this.add(XCN.class, false, 1, 120, new Object[]{ getMessage() }, "Entered By");
96 this.add(XCN.class, false, 1, 120, new Object[]{ getMessage() }, "Verified By");
97 this.add(XCN.class, false, 0, 120, new Object[]{ getMessage() }, "Ordering Provider");
98 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Enterer's Location");
99 this.add(XTN.class, false, 2, 40, new Object[]{ getMessage() }, "Call Back Phone Number");
100 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Order Effective Date/Time");
101 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Order Control Code Reason");
102 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Entering Organization");
103 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Entering Device");
104 this.add(XCN.class, false, 1, 120, new Object[]{ getMessage() }, "Action By");
105 } catch(HL7Exception e) {
106 log.error("Unexpected error creating ORC - this is probably a bug in the source code generator.", e);
107 }
108 }
109
110
111
112
113
114
115
116 public ID getOrderControl() {
117 ID retVal = this.getTypedField(1, 0);
118 return retVal;
119 }
120
121
122
123
124
125 public ID getOrc1_OrderControl() {
126 ID retVal = this.getTypedField(1, 0);
127 return retVal;
128 }
129
130
131
132
133
134 public EI[] getPlacerOrderNumber() {
135 EI[] retVal = this.getTypedField(2, new EI[0]);
136 return retVal;
137 }
138
139
140
141
142
143 public EI[] getOrc2_PlacerOrderNumber() {
144 EI[] retVal = this.getTypedField(2, new EI[0]);
145 return retVal;
146 }
147
148
149
150
151
152
153
154 public int getPlacerOrderNumberReps() {
155 return this.getReps(2);
156 }
157
158
159
160
161
162
163
164
165 public EI getPlacerOrderNumber(int rep) {
166 EI retVal = this.getTypedField(2, rep);
167 return retVal;
168 }
169
170
171
172
173
174
175
176 public EI getOrc2_PlacerOrderNumber(int rep) {
177 EI retVal = this.getTypedField(2, rep);
178 return retVal;
179 }
180
181
182
183
184
185
186 public int getOrc2_PlacerOrderNumberReps() {
187 return this.getReps(2);
188 }
189
190
191
192
193
194
195
196
197
198 public EI insertPlacerOrderNumber(int rep) throws HL7Exception {
199 return (EI) super.insertRepetition(2, rep);
200 }
201
202
203
204
205
206
207
208
209
210 public EI insertOrc2_PlacerOrderNumber(int rep) throws HL7Exception {
211 return (EI) super.insertRepetition(2, rep);
212 }
213
214
215
216
217
218
219
220
221
222 public EI removePlacerOrderNumber(int rep) throws HL7Exception {
223 return (EI) super.removeRepetition(2, rep);
224 }
225
226
227
228
229
230
231
232
233
234 public EI removeOrc2_PlacerOrderNumber(int rep) throws HL7Exception {
235 return (EI) super.removeRepetition(2, rep);
236 }
237
238
239
240
241
242
243
244
245 public EI getFillerOrderNumber() {
246 EI retVal = this.getTypedField(3, 0);
247 return retVal;
248 }
249
250
251
252
253
254 public EI getOrc3_FillerOrderNumber() {
255 EI retVal = this.getTypedField(3, 0);
256 return retVal;
257 }
258
259
260
261
262
263
264
265 public EI getPlacerGroupNumber() {
266 EI retVal = this.getTypedField(4, 0);
267 return retVal;
268 }
269
270
271
272
273
274 public EI getOrc4_PlacerGroupNumber() {
275 EI retVal = this.getTypedField(4, 0);
276 return retVal;
277 }
278
279
280
281
282
283
284
285 public ID getOrderStatus() {
286 ID retVal = this.getTypedField(5, 0);
287 return retVal;
288 }
289
290
291
292
293
294 public ID getOrc5_OrderStatus() {
295 ID retVal = this.getTypedField(5, 0);
296 return retVal;
297 }
298
299
300
301
302
303
304
305 public ID getResponseFlag() {
306 ID retVal = this.getTypedField(6, 0);
307 return retVal;
308 }
309
310
311
312
313
314 public ID getOrc6_ResponseFlag() {
315 ID retVal = this.getTypedField(6, 0);
316 return retVal;
317 }
318
319
320
321
322
323
324
325 public TQ getQuantityTiming() {
326 TQ retVal = this.getTypedField(7, 0);
327 return retVal;
328 }
329
330
331
332
333
334 public TQ getOrc7_QuantityTiming() {
335 TQ retVal = this.getTypedField(7, 0);
336 return retVal;
337 }
338
339
340
341
342
343
344
345 public CM_EIP getParentOrder() {
346 CM_EIP retVal = this.getTypedField(8, 0);
347 return retVal;
348 }
349
350
351
352
353
354 public CM_EIP getOrc8_ParentOrder() {
355 CM_EIP retVal = this.getTypedField(8, 0);
356 return retVal;
357 }
358
359
360
361
362
363
364
365 public TS getDateTimeOfTransaction() {
366 TS retVal = this.getTypedField(9, 0);
367 return retVal;
368 }
369
370
371
372
373
374 public TS getOrc9_DateTimeOfTransaction() {
375 TS retVal = this.getTypedField(9, 0);
376 return retVal;
377 }
378
379
380
381
382
383
384
385 public XCN getEnteredBy() {
386 XCN retVal = this.getTypedField(10, 0);
387 return retVal;
388 }
389
390
391
392
393
394 public XCN getOrc10_EnteredBy() {
395 XCN retVal = this.getTypedField(10, 0);
396 return retVal;
397 }
398
399
400
401
402
403
404
405 public XCN getVerifiedBy() {
406 XCN retVal = this.getTypedField(11, 0);
407 return retVal;
408 }
409
410
411
412
413
414 public XCN getOrc11_VerifiedBy() {
415 XCN retVal = this.getTypedField(11, 0);
416 return retVal;
417 }
418
419
420
421
422
423 public XCN[] getOrderingProvider() {
424 XCN[] retVal = this.getTypedField(12, new XCN[0]);
425 return retVal;
426 }
427
428
429
430
431
432 public XCN[] getOrc12_OrderingProvider() {
433 XCN[] retVal = this.getTypedField(12, new XCN[0]);
434 return retVal;
435 }
436
437
438
439
440
441
442
443 public int getOrderingProviderReps() {
444 return this.getReps(12);
445 }
446
447
448
449
450
451
452
453
454 public XCN getOrderingProvider(int rep) {
455 XCN retVal = this.getTypedField(12, rep);
456 return retVal;
457 }
458
459
460
461
462
463
464
465 public XCN getOrc12_OrderingProvider(int rep) {
466 XCN retVal = this.getTypedField(12, rep);
467 return retVal;
468 }
469
470
471
472
473
474
475 public int getOrc12_OrderingProviderReps() {
476 return this.getReps(12);
477 }
478
479
480
481
482
483
484
485
486
487 public XCN insertOrderingProvider(int rep) throws HL7Exception {
488 return (XCN) super.insertRepetition(12, rep);
489 }
490
491
492
493
494
495
496
497
498
499 public XCN insertOrc12_OrderingProvider(int rep) throws HL7Exception {
500 return (XCN) super.insertRepetition(12, rep);
501 }
502
503
504
505
506
507
508
509
510
511 public XCN removeOrderingProvider(int rep) throws HL7Exception {
512 return (XCN) super.removeRepetition(12, rep);
513 }
514
515
516
517
518
519
520
521
522
523 public XCN removeOrc12_OrderingProvider(int rep) throws HL7Exception {
524 return (XCN) super.removeRepetition(12, rep);
525 }
526
527
528
529
530
531
532
533
534 public PL getEntererSLocation() {
535 PL retVal = this.getTypedField(13, 0);
536 return retVal;
537 }
538
539
540
541
542
543 public PL getOrc13_EntererSLocation() {
544 PL retVal = this.getTypedField(13, 0);
545 return retVal;
546 }
547
548
549
550
551
552 public XTN[] getCallBackPhoneNumber() {
553 XTN[] retVal = this.getTypedField(14, new XTN[0]);
554 return retVal;
555 }
556
557
558
559
560
561 public XTN[] getOrc14_CallBackPhoneNumber() {
562 XTN[] retVal = this.getTypedField(14, new XTN[0]);
563 return retVal;
564 }
565
566
567
568
569
570
571
572 public int getCallBackPhoneNumberReps() {
573 return this.getReps(14);
574 }
575
576
577
578
579
580
581
582
583 public XTN getCallBackPhoneNumber(int rep) {
584 XTN retVal = this.getTypedField(14, rep);
585 return retVal;
586 }
587
588
589
590
591
592
593
594 public XTN getOrc14_CallBackPhoneNumber(int rep) {
595 XTN retVal = this.getTypedField(14, rep);
596 return retVal;
597 }
598
599
600
601
602
603
604 public int getOrc14_CallBackPhoneNumberReps() {
605 return this.getReps(14);
606 }
607
608
609
610
611
612
613
614
615
616 public XTN insertCallBackPhoneNumber(int rep) throws HL7Exception {
617 return (XTN) super.insertRepetition(14, rep);
618 }
619
620
621
622
623
624
625
626
627
628 public XTN insertOrc14_CallBackPhoneNumber(int rep) throws HL7Exception {
629 return (XTN) super.insertRepetition(14, rep);
630 }
631
632
633
634
635
636
637
638
639
640 public XTN removeCallBackPhoneNumber(int rep) throws HL7Exception {
641 return (XTN) super.removeRepetition(14, rep);
642 }
643
644
645
646
647
648
649
650
651
652 public XTN removeOrc14_CallBackPhoneNumber(int rep) throws HL7Exception {
653 return (XTN) super.removeRepetition(14, rep);
654 }
655
656
657
658
659
660
661
662
663 public TS getOrderEffectiveDateTime() {
664 TS retVal = this.getTypedField(15, 0);
665 return retVal;
666 }
667
668
669
670
671
672 public TS getOrc15_OrderEffectiveDateTime() {
673 TS retVal = this.getTypedField(15, 0);
674 return retVal;
675 }
676
677
678
679
680
681
682
683 public CE getOrderControlCodeReason() {
684 CE retVal = this.getTypedField(16, 0);
685 return retVal;
686 }
687
688
689
690
691
692 public CE getOrc16_OrderControlCodeReason() {
693 CE retVal = this.getTypedField(16, 0);
694 return retVal;
695 }
696
697
698
699
700
701
702
703 public CE getEnteringOrganization() {
704 CE retVal = this.getTypedField(17, 0);
705 return retVal;
706 }
707
708
709
710
711
712 public CE getOrc17_EnteringOrganization() {
713 CE retVal = this.getTypedField(17, 0);
714 return retVal;
715 }
716
717
718
719
720
721
722
723 public CE getEnteringDevice() {
724 CE retVal = this.getTypedField(18, 0);
725 return retVal;
726 }
727
728
729
730
731
732 public CE getOrc18_EnteringDevice() {
733 CE retVal = this.getTypedField(18, 0);
734 return retVal;
735 }
736
737
738
739
740
741
742
743 public XCN getActionBy() {
744 XCN retVal = this.getTypedField(19, 0);
745 return retVal;
746 }
747
748
749
750
751
752 public XCN getOrc19_ActionBy() {
753 XCN retVal = this.getTypedField(19, 0);
754 return retVal;
755 }
756
757
758
759
760
761
762 protected Type createNewTypeWithoutReflection(int field) {
763 switch (field) {
764 case 0: return new ID(getMessage(), new Integer( 119 ));
765 case 1: return new EI(getMessage());
766 case 2: return new EI(getMessage());
767 case 3: return new EI(getMessage());
768 case 4: return new ID(getMessage(), new Integer( 38 ));
769 case 5: return new ID(getMessage(), new Integer( 121 ));
770 case 6: return new TQ(getMessage());
771 case 7: return new CM_EIP(getMessage());
772 case 8: return new TS(getMessage());
773 case 9: return new XCN(getMessage());
774 case 10: return new XCN(getMessage());
775 case 11: return new XCN(getMessage());
776 case 12: return new PL(getMessage());
777 case 13: return new XTN(getMessage());
778 case 14: return new TS(getMessage());
779 case 15: return new CE(getMessage());
780 case 16: return new CE(getMessage());
781 case 17: return new CE(getMessage());
782 case 18: return new XCN(getMessage());
783 default: return null;
784 }
785 }
786
787
788 }
789