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.v24.segment;
35
36
37 import ca.uhn.hl7v2.model.v24.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 PR1 extends AbstractSegment {
74
75
76
77
78 public PR1(Group parent, ModelClassFactory factory) {
79 super(parent, factory);
80 init(factory);
81 }
82
83 private void init(ModelClassFactory factory) {
84 try {
85 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - PR1");
86 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(89) }, "Procedure Coding Method");
87 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Procedure Code");
88 this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "Procedure Description");
89 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Procedure Date/Time");
90 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(230) }, "Procedure Functional Type");
91 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Procedure Minutes");
92 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Anesthesiologist");
93 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(19) }, "Anesthesia Code");
94 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Anesthesia Minutes");
95 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Surgeon");
96 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Practitioner");
97 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Consent Code");
98 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(418) }, "Procedure Priority");
99 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Associated Diagnosis Code");
100 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Procedure Code Modifier");
101 this.add(IS.class, false, 1, 20, new Object[]{ getMessage(), new Integer(416) }, "Procedure DRG Type");
102 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Tissue Type Code");
103 } catch(HL7Exception e) {
104 log.error("Unexpected error creating PR1 - this is probably a bug in the source code generator.", e);
105 }
106 }
107
108
109
110
111
112
113
114 public SI getSetIDPR1() {
115 SI retVal = this.getTypedField(1, 0);
116 return retVal;
117 }
118
119
120
121
122
123 public SI getPr11_SetIDPR1() {
124 SI retVal = this.getTypedField(1, 0);
125 return retVal;
126 }
127
128
129
130
131
132
133
134 public IS getProcedureCodingMethod() {
135 IS retVal = this.getTypedField(2, 0);
136 return retVal;
137 }
138
139
140
141
142
143 public IS getPr12_ProcedureCodingMethod() {
144 IS retVal = this.getTypedField(2, 0);
145 return retVal;
146 }
147
148
149
150
151
152
153
154 public CE getProcedureCode() {
155 CE retVal = this.getTypedField(3, 0);
156 return retVal;
157 }
158
159
160
161
162
163 public CE getPr13_ProcedureCode() {
164 CE retVal = this.getTypedField(3, 0);
165 return retVal;
166 }
167
168
169
170
171
172
173
174 public ST getProcedureDescription() {
175 ST retVal = this.getTypedField(4, 0);
176 return retVal;
177 }
178
179
180
181
182
183 public ST getPr14_ProcedureDescription() {
184 ST retVal = this.getTypedField(4, 0);
185 return retVal;
186 }
187
188
189
190
191
192
193
194 public TS getProcedureDateTime() {
195 TS retVal = this.getTypedField(5, 0);
196 return retVal;
197 }
198
199
200
201
202
203 public TS getPr15_ProcedureDateTime() {
204 TS retVal = this.getTypedField(5, 0);
205 return retVal;
206 }
207
208
209
210
211
212
213
214 public IS getProcedureFunctionalType() {
215 IS retVal = this.getTypedField(6, 0);
216 return retVal;
217 }
218
219
220
221
222
223 public IS getPr16_ProcedureFunctionalType() {
224 IS retVal = this.getTypedField(6, 0);
225 return retVal;
226 }
227
228
229
230
231
232
233
234 public NM getProcedureMinutes() {
235 NM retVal = this.getTypedField(7, 0);
236 return retVal;
237 }
238
239
240
241
242
243 public NM getPr17_ProcedureMinutes() {
244 NM retVal = this.getTypedField(7, 0);
245 return retVal;
246 }
247
248
249
250
251
252 public XCN[] getAnesthesiologist() {
253 XCN[] retVal = this.getTypedField(8, new XCN[0]);
254 return retVal;
255 }
256
257
258
259
260
261 public XCN[] getPr18_Anesthesiologist() {
262 XCN[] retVal = this.getTypedField(8, new XCN[0]);
263 return retVal;
264 }
265
266
267
268
269
270
271
272 public int getAnesthesiologistReps() {
273 return this.getReps(8);
274 }
275
276
277
278
279
280
281
282
283 public XCN getAnesthesiologist(int rep) {
284 XCN retVal = this.getTypedField(8, rep);
285 return retVal;
286 }
287
288
289
290
291
292
293
294 public XCN getPr18_Anesthesiologist(int rep) {
295 XCN retVal = this.getTypedField(8, rep);
296 return retVal;
297 }
298
299
300
301
302
303
304 public int getPr18_AnesthesiologistReps() {
305 return this.getReps(8);
306 }
307
308
309
310
311
312
313
314
315
316 public XCN insertAnesthesiologist(int rep) throws HL7Exception {
317 return (XCN) super.insertRepetition(8, rep);
318 }
319
320
321
322
323
324
325
326
327
328 public XCN insertPr18_Anesthesiologist(int rep) throws HL7Exception {
329 return (XCN) super.insertRepetition(8, rep);
330 }
331
332
333
334
335
336
337
338
339
340 public XCN removeAnesthesiologist(int rep) throws HL7Exception {
341 return (XCN) super.removeRepetition(8, rep);
342 }
343
344
345
346
347
348
349
350
351
352 public XCN removePr18_Anesthesiologist(int rep) throws HL7Exception {
353 return (XCN) super.removeRepetition(8, rep);
354 }
355
356
357
358
359
360
361
362
363 public IS getAnesthesiaCode() {
364 IS retVal = this.getTypedField(9, 0);
365 return retVal;
366 }
367
368
369
370
371
372 public IS getPr19_AnesthesiaCode() {
373 IS retVal = this.getTypedField(9, 0);
374 return retVal;
375 }
376
377
378
379
380
381
382
383 public NM getAnesthesiaMinutes() {
384 NM retVal = this.getTypedField(10, 0);
385 return retVal;
386 }
387
388
389
390
391
392 public NM getPr110_AnesthesiaMinutes() {
393 NM retVal = this.getTypedField(10, 0);
394 return retVal;
395 }
396
397
398
399
400
401 public XCN[] getSurgeon() {
402 XCN[] retVal = this.getTypedField(11, new XCN[0]);
403 return retVal;
404 }
405
406
407
408
409
410 public XCN[] getPr111_Surgeon() {
411 XCN[] retVal = this.getTypedField(11, new XCN[0]);
412 return retVal;
413 }
414
415
416
417
418
419
420
421 public int getSurgeonReps() {
422 return this.getReps(11);
423 }
424
425
426
427
428
429
430
431
432 public XCN getSurgeon(int rep) {
433 XCN retVal = this.getTypedField(11, rep);
434 return retVal;
435 }
436
437
438
439
440
441
442
443 public XCN getPr111_Surgeon(int rep) {
444 XCN retVal = this.getTypedField(11, rep);
445 return retVal;
446 }
447
448
449
450
451
452
453 public int getPr111_SurgeonReps() {
454 return this.getReps(11);
455 }
456
457
458
459
460
461
462
463
464
465 public XCN insertSurgeon(int rep) throws HL7Exception {
466 return (XCN) super.insertRepetition(11, rep);
467 }
468
469
470
471
472
473
474
475
476
477 public XCN insertPr111_Surgeon(int rep) throws HL7Exception {
478 return (XCN) super.insertRepetition(11, rep);
479 }
480
481
482
483
484
485
486
487
488
489 public XCN removeSurgeon(int rep) throws HL7Exception {
490 return (XCN) super.removeRepetition(11, rep);
491 }
492
493
494
495
496
497
498
499
500
501 public XCN removePr111_Surgeon(int rep) throws HL7Exception {
502 return (XCN) super.removeRepetition(11, rep);
503 }
504
505
506
507
508
509
510 public XCN[] getProcedurePractitioner() {
511 XCN[] retVal = this.getTypedField(12, new XCN[0]);
512 return retVal;
513 }
514
515
516
517
518
519 public XCN[] getPr112_ProcedurePractitioner() {
520 XCN[] retVal = this.getTypedField(12, new XCN[0]);
521 return retVal;
522 }
523
524
525
526
527
528
529
530 public int getProcedurePractitionerReps() {
531 return this.getReps(12);
532 }
533
534
535
536
537
538
539
540
541 public XCN getProcedurePractitioner(int rep) {
542 XCN retVal = this.getTypedField(12, rep);
543 return retVal;
544 }
545
546
547
548
549
550
551
552 public XCN getPr112_ProcedurePractitioner(int rep) {
553 XCN retVal = this.getTypedField(12, rep);
554 return retVal;
555 }
556
557
558
559
560
561
562 public int getPr112_ProcedurePractitionerReps() {
563 return this.getReps(12);
564 }
565
566
567
568
569
570
571
572
573
574 public XCN insertProcedurePractitioner(int rep) throws HL7Exception {
575 return (XCN) super.insertRepetition(12, rep);
576 }
577
578
579
580
581
582
583
584
585
586 public XCN insertPr112_ProcedurePractitioner(int rep) throws HL7Exception {
587 return (XCN) super.insertRepetition(12, rep);
588 }
589
590
591
592
593
594
595
596
597
598 public XCN removeProcedurePractitioner(int rep) throws HL7Exception {
599 return (XCN) super.removeRepetition(12, rep);
600 }
601
602
603
604
605
606
607
608
609
610 public XCN removePr112_ProcedurePractitioner(int rep) throws HL7Exception {
611 return (XCN) super.removeRepetition(12, rep);
612 }
613
614
615
616
617
618
619
620
621 public CE getConsentCode() {
622 CE retVal = this.getTypedField(13, 0);
623 return retVal;
624 }
625
626
627
628
629
630 public CE getPr113_ConsentCode() {
631 CE retVal = this.getTypedField(13, 0);
632 return retVal;
633 }
634
635
636
637
638
639
640
641 public ID getProcedurePriority() {
642 ID retVal = this.getTypedField(14, 0);
643 return retVal;
644 }
645
646
647
648
649
650 public ID getPr114_ProcedurePriority() {
651 ID retVal = this.getTypedField(14, 0);
652 return retVal;
653 }
654
655
656
657
658
659
660
661 public CE getAssociatedDiagnosisCode() {
662 CE retVal = this.getTypedField(15, 0);
663 return retVal;
664 }
665
666
667
668
669
670 public CE getPr115_AssociatedDiagnosisCode() {
671 CE retVal = this.getTypedField(15, 0);
672 return retVal;
673 }
674
675
676
677
678
679 public CE[] getProcedureCodeModifier() {
680 CE[] retVal = this.getTypedField(16, new CE[0]);
681 return retVal;
682 }
683
684
685
686
687
688 public CE[] getPr116_ProcedureCodeModifier() {
689 CE[] retVal = this.getTypedField(16, new CE[0]);
690 return retVal;
691 }
692
693
694
695
696
697
698
699 public int getProcedureCodeModifierReps() {
700 return this.getReps(16);
701 }
702
703
704
705
706
707
708
709
710 public CE getProcedureCodeModifier(int rep) {
711 CE retVal = this.getTypedField(16, rep);
712 return retVal;
713 }
714
715
716
717
718
719
720
721 public CE getPr116_ProcedureCodeModifier(int rep) {
722 CE retVal = this.getTypedField(16, rep);
723 return retVal;
724 }
725
726
727
728
729
730
731 public int getPr116_ProcedureCodeModifierReps() {
732 return this.getReps(16);
733 }
734
735
736
737
738
739
740
741
742
743 public CE insertProcedureCodeModifier(int rep) throws HL7Exception {
744 return (CE) super.insertRepetition(16, rep);
745 }
746
747
748
749
750
751
752
753
754
755 public CE insertPr116_ProcedureCodeModifier(int rep) throws HL7Exception {
756 return (CE) super.insertRepetition(16, rep);
757 }
758
759
760
761
762
763
764
765
766
767 public CE removeProcedureCodeModifier(int rep) throws HL7Exception {
768 return (CE) super.removeRepetition(16, rep);
769 }
770
771
772
773
774
775
776
777
778
779 public CE removePr116_ProcedureCodeModifier(int rep) throws HL7Exception {
780 return (CE) super.removeRepetition(16, rep);
781 }
782
783
784
785
786
787
788
789
790 public IS getProcedureDRGType() {
791 IS retVal = this.getTypedField(17, 0);
792 return retVal;
793 }
794
795
796
797
798
799 public IS getPr117_ProcedureDRGType() {
800 IS retVal = this.getTypedField(17, 0);
801 return retVal;
802 }
803
804
805
806
807
808 public CE[] getTissueTypeCode() {
809 CE[] retVal = this.getTypedField(18, new CE[0]);
810 return retVal;
811 }
812
813
814
815
816
817 public CE[] getPr118_TissueTypeCode() {
818 CE[] retVal = this.getTypedField(18, new CE[0]);
819 return retVal;
820 }
821
822
823
824
825
826
827
828 public int getTissueTypeCodeReps() {
829 return this.getReps(18);
830 }
831
832
833
834
835
836
837
838
839 public CE getTissueTypeCode(int rep) {
840 CE retVal = this.getTypedField(18, rep);
841 return retVal;
842 }
843
844
845
846
847
848
849
850 public CE getPr118_TissueTypeCode(int rep) {
851 CE retVal = this.getTypedField(18, rep);
852 return retVal;
853 }
854
855
856
857
858
859
860 public int getPr118_TissueTypeCodeReps() {
861 return this.getReps(18);
862 }
863
864
865
866
867
868
869
870
871
872 public CE insertTissueTypeCode(int rep) throws HL7Exception {
873 return (CE) super.insertRepetition(18, rep);
874 }
875
876
877
878
879
880
881
882
883
884 public CE insertPr118_TissueTypeCode(int rep) throws HL7Exception {
885 return (CE) super.insertRepetition(18, rep);
886 }
887
888
889
890
891
892
893
894
895
896 public CE removeTissueTypeCode(int rep) throws HL7Exception {
897 return (CE) super.removeRepetition(18, rep);
898 }
899
900
901
902
903
904
905
906
907
908 public CE removePr118_TissueTypeCode(int rep) throws HL7Exception {
909 return (CE) super.removeRepetition(18, rep);
910 }
911
912
913
914
915
916
917
918 protected Type createNewTypeWithoutReflection(int field) {
919 switch (field) {
920 case 0: return new SI(getMessage());
921 case 1: return new IS(getMessage(), new Integer( 89 ));
922 case 2: return new CE(getMessage());
923 case 3: return new ST(getMessage());
924 case 4: return new TS(getMessage());
925 case 5: return new IS(getMessage(), new Integer( 230 ));
926 case 6: return new NM(getMessage());
927 case 7: return new XCN(getMessage());
928 case 8: return new IS(getMessage(), new Integer( 19 ));
929 case 9: return new NM(getMessage());
930 case 10: return new XCN(getMessage());
931 case 11: return new XCN(getMessage());
932 case 12: return new CE(getMessage());
933 case 13: return new ID(getMessage(), new Integer( 418 ));
934 case 14: return new CE(getMessage());
935 case 15: return new CE(getMessage());
936 case 16: return new IS(getMessage(), new Integer( 416 ));
937 case 17: return new CE(getMessage());
938 default: return null;
939 }
940 }
941
942
943 }
944