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