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.v22.segment;
35
36
37 import ca.uhn.hl7v2.model.v22.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 @SuppressWarnings("unused")
69 public class PR1 extends AbstractSegment {
70
71
72
73
74 public PR1(Group parent, ModelClassFactory factory) {
75 super(parent, factory);
76 init(factory);
77 }
78
79 private void init(ModelClassFactory factory) {
80 try {
81 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - procedure");
82 this.add(ID.class, true, 0, 2, new Object[]{ getMessage(), new Integer(89) }, "Procedure coding method");
83 this.add(ID.class, true, 0, 10, new Object[]{ getMessage(), new Integer(88) }, "Procedure code");
84 this.add(ST.class, false, 0, 40, new Object[]{ getMessage() }, "Procedure description");
85 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Procedure date / time");
86 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(90) }, "Procedure type");
87 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Procedure minutes");
88 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Anesthesiologist");
89 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(19) }, "Anesthesia code");
90 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Anesthesia minutes");
91 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "Surgeon");
92 this.add(CM_PRACTITIONER.class, false, 0, 60, new Object[]{ getMessage() }, "Procedure Practitioner");
93 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(59) }, "Consent code");
94 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Procedure priority");
95 } catch(HL7Exception e) {
96 log.error("Unexpected error creating PR1 - this is probably a bug in the source code generator.", e);
97 }
98 }
99
100
101
102
103
104
105
106 public SI getSetIDProcedure() {
107 SI retVal = this.getTypedField(1, 0);
108 return retVal;
109 }
110
111
112
113
114
115 public SI getPr11_SetIDProcedure() {
116 SI retVal = this.getTypedField(1, 0);
117 return retVal;
118 }
119
120
121
122
123
124 public ID[] getProcedureCodingMethod() {
125 ID[] retVal = this.getTypedField(2, new ID[0]);
126 return retVal;
127 }
128
129
130
131
132
133 public ID[] getPr12_ProcedureCodingMethod() {
134 ID[] retVal = this.getTypedField(2, new ID[0]);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public int getProcedureCodingMethodReps() {
145 return this.getReps(2);
146 }
147
148
149
150
151
152
153
154
155 public ID getProcedureCodingMethod(int rep) {
156 ID retVal = this.getTypedField(2, rep);
157 return retVal;
158 }
159
160
161
162
163
164
165
166 public ID getPr12_ProcedureCodingMethod(int rep) {
167 ID retVal = this.getTypedField(2, rep);
168 return retVal;
169 }
170
171
172
173
174
175
176 public int getPr12_ProcedureCodingMethodReps() {
177 return this.getReps(2);
178 }
179
180
181
182
183
184
185
186
187
188 public ID insertProcedureCodingMethod(int rep) throws HL7Exception {
189 return (ID) super.insertRepetition(2, rep);
190 }
191
192
193
194
195
196
197
198
199
200 public ID insertPr12_ProcedureCodingMethod(int rep) throws HL7Exception {
201 return (ID) super.insertRepetition(2, rep);
202 }
203
204
205
206
207
208
209
210
211
212 public ID removeProcedureCodingMethod(int rep) throws HL7Exception {
213 return (ID) super.removeRepetition(2, rep);
214 }
215
216
217
218
219
220
221
222
223
224 public ID removePr12_ProcedureCodingMethod(int rep) throws HL7Exception {
225 return (ID) super.removeRepetition(2, rep);
226 }
227
228
229
230
231
232
233 public ID[] getProcedureCode() {
234 ID[] retVal = this.getTypedField(3, new ID[0]);
235 return retVal;
236 }
237
238
239
240
241
242 public ID[] getPr13_ProcedureCode() {
243 ID[] retVal = this.getTypedField(3, new ID[0]);
244 return retVal;
245 }
246
247
248
249
250
251
252
253 public int getProcedureCodeReps() {
254 return this.getReps(3);
255 }
256
257
258
259
260
261
262
263
264 public ID getProcedureCode(int rep) {
265 ID retVal = this.getTypedField(3, rep);
266 return retVal;
267 }
268
269
270
271
272
273
274
275 public ID getPr13_ProcedureCode(int rep) {
276 ID retVal = this.getTypedField(3, rep);
277 return retVal;
278 }
279
280
281
282
283
284
285 public int getPr13_ProcedureCodeReps() {
286 return this.getReps(3);
287 }
288
289
290
291
292
293
294
295
296
297 public ID insertProcedureCode(int rep) throws HL7Exception {
298 return (ID) super.insertRepetition(3, rep);
299 }
300
301
302
303
304
305
306
307
308
309 public ID insertPr13_ProcedureCode(int rep) throws HL7Exception {
310 return (ID) super.insertRepetition(3, rep);
311 }
312
313
314
315
316
317
318
319
320
321 public ID removeProcedureCode(int rep) throws HL7Exception {
322 return (ID) super.removeRepetition(3, rep);
323 }
324
325
326
327
328
329
330
331
332
333 public ID removePr13_ProcedureCode(int rep) throws HL7Exception {
334 return (ID) super.removeRepetition(3, rep);
335 }
336
337
338
339
340
341
342 public ST[] getProcedureDescription() {
343 ST[] retVal = this.getTypedField(4, new ST[0]);
344 return retVal;
345 }
346
347
348
349
350
351 public ST[] getPr14_ProcedureDescription() {
352 ST[] retVal = this.getTypedField(4, new ST[0]);
353 return retVal;
354 }
355
356
357
358
359
360
361
362 public int getProcedureDescriptionReps() {
363 return this.getReps(4);
364 }
365
366
367
368
369
370
371
372
373 public ST getProcedureDescription(int rep) {
374 ST retVal = this.getTypedField(4, rep);
375 return retVal;
376 }
377
378
379
380
381
382
383
384 public ST getPr14_ProcedureDescription(int rep) {
385 ST retVal = this.getTypedField(4, rep);
386 return retVal;
387 }
388
389
390
391
392
393
394 public int getPr14_ProcedureDescriptionReps() {
395 return this.getReps(4);
396 }
397
398
399
400
401
402
403
404
405
406 public ST insertProcedureDescription(int rep) throws HL7Exception {
407 return (ST) super.insertRepetition(4, rep);
408 }
409
410
411
412
413
414
415
416
417
418 public ST insertPr14_ProcedureDescription(int rep) throws HL7Exception {
419 return (ST) super.insertRepetition(4, rep);
420 }
421
422
423
424
425
426
427
428
429
430 public ST removeProcedureDescription(int rep) throws HL7Exception {
431 return (ST) super.removeRepetition(4, rep);
432 }
433
434
435
436
437
438
439
440
441
442 public ST removePr14_ProcedureDescription(int rep) throws HL7Exception {
443 return (ST) super.removeRepetition(4, rep);
444 }
445
446
447
448
449
450
451
452
453 public TS getProcedureDateTime() {
454 TS retVal = this.getTypedField(5, 0);
455 return retVal;
456 }
457
458
459
460
461
462 public TS getPr15_ProcedureDateTime() {
463 TS retVal = this.getTypedField(5, 0);
464 return retVal;
465 }
466
467
468
469
470
471
472
473 public ID getProcedureType() {
474 ID retVal = this.getTypedField(6, 0);
475 return retVal;
476 }
477
478
479
480
481
482 public ID getPr16_ProcedureType() {
483 ID retVal = this.getTypedField(6, 0);
484 return retVal;
485 }
486
487
488
489
490
491
492
493 public NM getProcedureMinutes() {
494 NM retVal = this.getTypedField(7, 0);
495 return retVal;
496 }
497
498
499
500
501
502 public NM getPr17_ProcedureMinutes() {
503 NM retVal = this.getTypedField(7, 0);
504 return retVal;
505 }
506
507
508
509
510
511
512
513 public CN getAnesthesiologist() {
514 CN retVal = this.getTypedField(8, 0);
515 return retVal;
516 }
517
518
519
520
521
522 public CN getPr18_Anesthesiologist() {
523 CN retVal = this.getTypedField(8, 0);
524 return retVal;
525 }
526
527
528
529
530
531
532
533 public ID getAnesthesiaCode() {
534 ID retVal = this.getTypedField(9, 0);
535 return retVal;
536 }
537
538
539
540
541
542 public ID getPr19_AnesthesiaCode() {
543 ID retVal = this.getTypedField(9, 0);
544 return retVal;
545 }
546
547
548
549
550
551
552
553 public NM getAnesthesiaMinutes() {
554 NM retVal = this.getTypedField(10, 0);
555 return retVal;
556 }
557
558
559
560
561
562 public NM getPr110_AnesthesiaMinutes() {
563 NM retVal = this.getTypedField(10, 0);
564 return retVal;
565 }
566
567
568
569
570
571
572
573 public CN getSurgeon() {
574 CN retVal = this.getTypedField(11, 0);
575 return retVal;
576 }
577
578
579
580
581
582 public CN getPr111_Surgeon() {
583 CN retVal = this.getTypedField(11, 0);
584 return retVal;
585 }
586
587
588
589
590
591 public CM_PRACTITIONER[] getProcedurePractitioner() {
592 CM_PRACTITIONER[] retVal = this.getTypedField(12, new CM_PRACTITIONER[0]);
593 return retVal;
594 }
595
596
597
598
599
600 public CM_PRACTITIONER[] getPr112_ProcedurePractitioner() {
601 CM_PRACTITIONER[] retVal = this.getTypedField(12, new CM_PRACTITIONER[0]);
602 return retVal;
603 }
604
605
606
607
608
609
610
611 public int getProcedurePractitionerReps() {
612 return this.getReps(12);
613 }
614
615
616
617
618
619
620
621
622 public CM_PRACTITIONER getProcedurePractitioner(int rep) {
623 CM_PRACTITIONER retVal = this.getTypedField(12, rep);
624 return retVal;
625 }
626
627
628
629
630
631
632
633 public CM_PRACTITIONER getPr112_ProcedurePractitioner(int rep) {
634 CM_PRACTITIONER retVal = this.getTypedField(12, rep);
635 return retVal;
636 }
637
638
639
640
641
642
643 public int getPr112_ProcedurePractitionerReps() {
644 return this.getReps(12);
645 }
646
647
648
649
650
651
652
653
654
655 public CM_PRACTITIONER insertProcedurePractitioner(int rep) throws HL7Exception {
656 return (CM_PRACTITIONER) super.insertRepetition(12, rep);
657 }
658
659
660
661
662
663
664
665
666
667 public CM_PRACTITIONER insertPr112_ProcedurePractitioner(int rep) throws HL7Exception {
668 return (CM_PRACTITIONER) super.insertRepetition(12, rep);
669 }
670
671
672
673
674
675
676
677
678
679 public CM_PRACTITIONER removeProcedurePractitioner(int rep) throws HL7Exception {
680 return (CM_PRACTITIONER) super.removeRepetition(12, rep);
681 }
682
683
684
685
686
687
688
689
690
691 public CM_PRACTITIONER removePr112_ProcedurePractitioner(int rep) throws HL7Exception {
692 return (CM_PRACTITIONER) super.removeRepetition(12, rep);
693 }
694
695
696
697
698
699
700
701
702 public ID getConsentCode() {
703 ID retVal = this.getTypedField(13, 0);
704 return retVal;
705 }
706
707
708
709
710
711 public ID getPr113_ConsentCode() {
712 ID retVal = this.getTypedField(13, 0);
713 return retVal;
714 }
715
716
717
718
719
720
721
722 public NM getProcedurePriority() {
723 NM retVal = this.getTypedField(14, 0);
724 return retVal;
725 }
726
727
728
729
730
731 public NM getPr114_ProcedurePriority() {
732 NM retVal = this.getTypedField(14, 0);
733 return retVal;
734 }
735
736
737
738
739
740
741 protected Type createNewTypeWithoutReflection(int field) {
742 switch (field) {
743 case 0: return new SI(getMessage());
744 case 1: return new ID(getMessage(), new Integer( 89 ));
745 case 2: return new ID(getMessage(), new Integer( 88 ));
746 case 3: return new ST(getMessage());
747 case 4: return new TS(getMessage());
748 case 5: return new ID(getMessage(), new Integer( 90 ));
749 case 6: return new NM(getMessage());
750 case 7: return new CN(getMessage());
751 case 8: return new ID(getMessage(), new Integer( 19 ));
752 case 9: return new NM(getMessage());
753 case 10: return new CN(getMessage());
754 case 11: return new CM_PRACTITIONER(getMessage());
755 case 12: return new ID(getMessage(), new Integer( 59 ));
756 case 13: return new NM(getMessage());
757 default: return null;
758 }
759 }
760
761
762 }
763