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
74
75
76
77 @SuppressWarnings("unused")
78 public class PCR extends AbstractSegment {
79
80
81
82
83 public PCR(Group parent, ModelClassFactory factory) {
84 super(parent, factory);
85 init(factory);
86 }
87
88 private void init(ModelClassFactory factory) {
89 try {
90 this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Implicated Product");
91 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(249) }, "Generic Product");
92 this.add(CE.class, false, 1, 30, new Object[]{ getMessage() }, "Product Class");
93 this.add(CQ.class, false, 1, 8, new Object[]{ getMessage() }, "Total Duration Of Therapy");
94 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Product Manufacture Date");
95 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Product Expiration Date");
96 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Product Implantation Date");
97 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Product Explantation Date");
98 this.add(IS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(244) }, "Single Use Device");
99 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Indication For Product Use");
100 this.add(IS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(245) }, "Product Problem");
101 this.add(ST.class, false, 3, 30, new Object[]{ getMessage() }, "Product Serial/Lot Number");
102 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(246) }, "Product Available For Inspection");
103 this.add(CE.class, false, 1, 8, new Object[]{ getMessage() }, "Product Evaluation Performed");
104 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Product Evaluation Status");
105 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Product Evaluation Results");
106 this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(248) }, "Evaluated Product Source");
107 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date Product Returned To Manufacturer");
108 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Device Operator Qualifications");
109 this.add(ID.class, false, 1, 8, new Object[]{ getMessage(), new Integer(250) }, "Relatedness Assessment");
110 this.add(ID.class, false, 6, 2, new Object[]{ getMessage(), new Integer(251) }, "Action Taken In Response To The Event");
111 this.add(ID.class, false, 6, 2, new Object[]{ getMessage(), new Integer(232) }, "Event Causality Observations");
112 this.add(ID.class, false, 3, 2, new Object[]{ getMessage(), new Integer(253) }, "Indirect Exposure Mechanism");
113 } catch(HL7Exception e) {
114 log.error("Unexpected error creating PCR - this is probably a bug in the source code generator.", e);
115 }
116 }
117
118
119
120
121
122
123
124 public CE getImplicatedProduct() {
125 CE retVal = this.getTypedField(1, 0);
126 return retVal;
127 }
128
129
130
131
132
133 public CE getPcr1_ImplicatedProduct() {
134 CE retVal = this.getTypedField(1, 0);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public IS getGenericProduct() {
145 IS retVal = this.getTypedField(2, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public IS getPcr2_GenericProduct() {
154 IS retVal = this.getTypedField(2, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public CE getProductClass() {
165 CE retVal = this.getTypedField(3, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public CE getPcr3_ProductClass() {
174 CE retVal = this.getTypedField(3, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public CQ getTotalDurationOfTherapy() {
185 CQ retVal = this.getTypedField(4, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public CQ getPcr4_TotalDurationOfTherapy() {
194 CQ retVal = this.getTypedField(4, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public TS getProductManufactureDate() {
205 TS retVal = this.getTypedField(5, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public TS getPcr5_ProductManufactureDate() {
214 TS retVal = this.getTypedField(5, 0);
215 return retVal;
216 }
217
218
219
220
221
222
223
224 public TS getProductExpirationDate() {
225 TS retVal = this.getTypedField(6, 0);
226 return retVal;
227 }
228
229
230
231
232
233 public TS getPcr6_ProductExpirationDate() {
234 TS retVal = this.getTypedField(6, 0);
235 return retVal;
236 }
237
238
239
240
241
242
243
244 public TS getProductImplantationDate() {
245 TS retVal = this.getTypedField(7, 0);
246 return retVal;
247 }
248
249
250
251
252
253 public TS getPcr7_ProductImplantationDate() {
254 TS retVal = this.getTypedField(7, 0);
255 return retVal;
256 }
257
258
259
260
261
262
263
264 public TS getProductExplantationDate() {
265 TS retVal = this.getTypedField(8, 0);
266 return retVal;
267 }
268
269
270
271
272
273 public TS getPcr8_ProductExplantationDate() {
274 TS retVal = this.getTypedField(8, 0);
275 return retVal;
276 }
277
278
279
280
281
282
283
284 public IS getSingleUseDevice() {
285 IS retVal = this.getTypedField(9, 0);
286 return retVal;
287 }
288
289
290
291
292
293 public IS getPcr9_SingleUseDevice() {
294 IS retVal = this.getTypedField(9, 0);
295 return retVal;
296 }
297
298
299
300
301
302
303
304 public CE getIndicationForProductUse() {
305 CE retVal = this.getTypedField(10, 0);
306 return retVal;
307 }
308
309
310
311
312
313 public CE getPcr10_IndicationForProductUse() {
314 CE retVal = this.getTypedField(10, 0);
315 return retVal;
316 }
317
318
319
320
321
322
323
324 public IS getProductProblem() {
325 IS retVal = this.getTypedField(11, 0);
326 return retVal;
327 }
328
329
330
331
332
333 public IS getPcr11_ProductProblem() {
334 IS retVal = this.getTypedField(11, 0);
335 return retVal;
336 }
337
338
339
340
341
342 public ST[] getProductSerialLotNumber() {
343 ST[] retVal = this.getTypedField(12, new ST[0]);
344 return retVal;
345 }
346
347
348
349
350
351 public ST[] getPcr12_ProductSerialLotNumber() {
352 ST[] retVal = this.getTypedField(12, new ST[0]);
353 return retVal;
354 }
355
356
357
358
359
360
361
362 public int getProductSerialLotNumberReps() {
363 return this.getReps(12);
364 }
365
366
367
368
369
370
371
372
373 public ST getProductSerialLotNumber(int rep) {
374 ST retVal = this.getTypedField(12, rep);
375 return retVal;
376 }
377
378
379
380
381
382
383
384 public ST getPcr12_ProductSerialLotNumber(int rep) {
385 ST retVal = this.getTypedField(12, rep);
386 return retVal;
387 }
388
389
390
391
392
393
394 public int getPcr12_ProductSerialLotNumberReps() {
395 return this.getReps(12);
396 }
397
398
399
400
401
402
403
404
405
406 public ST insertProductSerialLotNumber(int rep) throws HL7Exception {
407 return (ST) super.insertRepetition(12, rep);
408 }
409
410
411
412
413
414
415
416
417
418 public ST insertPcr12_ProductSerialLotNumber(int rep) throws HL7Exception {
419 return (ST) super.insertRepetition(12, rep);
420 }
421
422
423
424
425
426
427
428
429
430 public ST removeProductSerialLotNumber(int rep) throws HL7Exception {
431 return (ST) super.removeRepetition(12, rep);
432 }
433
434
435
436
437
438
439
440
441
442 public ST removePcr12_ProductSerialLotNumber(int rep) throws HL7Exception {
443 return (ST) super.removeRepetition(12, rep);
444 }
445
446
447
448
449
450
451
452
453 public IS getProductAvailableForInspection() {
454 IS retVal = this.getTypedField(13, 0);
455 return retVal;
456 }
457
458
459
460
461
462 public IS getPcr13_ProductAvailableForInspection() {
463 IS retVal = this.getTypedField(13, 0);
464 return retVal;
465 }
466
467
468
469
470
471
472
473 public CE getProductEvaluationPerformed() {
474 CE retVal = this.getTypedField(14, 0);
475 return retVal;
476 }
477
478
479
480
481
482 public CE getPcr14_ProductEvaluationPerformed() {
483 CE retVal = this.getTypedField(14, 0);
484 return retVal;
485 }
486
487
488
489
490
491
492
493 public CE getProductEvaluationStatus() {
494 CE retVal = this.getTypedField(15, 0);
495 return retVal;
496 }
497
498
499
500
501
502 public CE getPcr15_ProductEvaluationStatus() {
503 CE retVal = this.getTypedField(15, 0);
504 return retVal;
505 }
506
507
508
509
510
511
512
513 public CE getProductEvaluationResults() {
514 CE retVal = this.getTypedField(16, 0);
515 return retVal;
516 }
517
518
519
520
521
522 public CE getPcr16_ProductEvaluationResults() {
523 CE retVal = this.getTypedField(16, 0);
524 return retVal;
525 }
526
527
528
529
530
531
532
533 public ID getEvaluatedProductSource() {
534 ID retVal = this.getTypedField(17, 0);
535 return retVal;
536 }
537
538
539
540
541
542 public ID getPcr17_EvaluatedProductSource() {
543 ID retVal = this.getTypedField(17, 0);
544 return retVal;
545 }
546
547
548
549
550
551
552
553 public TS getDateProductReturnedToManufacturer() {
554 TS retVal = this.getTypedField(18, 0);
555 return retVal;
556 }
557
558
559
560
561
562 public TS getPcr18_DateProductReturnedToManufacturer() {
563 TS retVal = this.getTypedField(18, 0);
564 return retVal;
565 }
566
567
568
569
570
571
572
573 public ID getDeviceOperatorQualifications() {
574 ID retVal = this.getTypedField(19, 0);
575 return retVal;
576 }
577
578
579
580
581
582 public ID getPcr19_DeviceOperatorQualifications() {
583 ID retVal = this.getTypedField(19, 0);
584 return retVal;
585 }
586
587
588
589
590
591
592
593 public ID getRelatednessAssessment() {
594 ID retVal = this.getTypedField(20, 0);
595 return retVal;
596 }
597
598
599
600
601
602 public ID getPcr20_RelatednessAssessment() {
603 ID retVal = this.getTypedField(20, 0);
604 return retVal;
605 }
606
607
608
609
610
611 public ID[] getActionTakenInResponseToTheEvent() {
612 ID[] retVal = this.getTypedField(21, new ID[0]);
613 return retVal;
614 }
615
616
617
618
619
620 public ID[] getPcr21_ActionTakenInResponseToTheEvent() {
621 ID[] retVal = this.getTypedField(21, new ID[0]);
622 return retVal;
623 }
624
625
626
627
628
629
630
631 public int getActionTakenInResponseToTheEventReps() {
632 return this.getReps(21);
633 }
634
635
636
637
638
639
640
641
642 public ID getActionTakenInResponseToTheEvent(int rep) {
643 ID retVal = this.getTypedField(21, rep);
644 return retVal;
645 }
646
647
648
649
650
651
652
653 public ID getPcr21_ActionTakenInResponseToTheEvent(int rep) {
654 ID retVal = this.getTypedField(21, rep);
655 return retVal;
656 }
657
658
659
660
661
662
663 public int getPcr21_ActionTakenInResponseToTheEventReps() {
664 return this.getReps(21);
665 }
666
667
668
669
670
671
672
673
674
675 public ID insertActionTakenInResponseToTheEvent(int rep) throws HL7Exception {
676 return (ID) super.insertRepetition(21, rep);
677 }
678
679
680
681
682
683
684
685
686
687 public ID insertPcr21_ActionTakenInResponseToTheEvent(int rep) throws HL7Exception {
688 return (ID) super.insertRepetition(21, rep);
689 }
690
691
692
693
694
695
696
697
698
699 public ID removeActionTakenInResponseToTheEvent(int rep) throws HL7Exception {
700 return (ID) super.removeRepetition(21, rep);
701 }
702
703
704
705
706
707
708
709
710
711 public ID removePcr21_ActionTakenInResponseToTheEvent(int rep) throws HL7Exception {
712 return (ID) super.removeRepetition(21, rep);
713 }
714
715
716
717
718
719
720 public ID[] getEventCausalityObservations() {
721 ID[] retVal = this.getTypedField(22, new ID[0]);
722 return retVal;
723 }
724
725
726
727
728
729 public ID[] getPcr22_EventCausalityObservations() {
730 ID[] retVal = this.getTypedField(22, new ID[0]);
731 return retVal;
732 }
733
734
735
736
737
738
739
740 public int getEventCausalityObservationsReps() {
741 return this.getReps(22);
742 }
743
744
745
746
747
748
749
750
751 public ID getEventCausalityObservations(int rep) {
752 ID retVal = this.getTypedField(22, rep);
753 return retVal;
754 }
755
756
757
758
759
760
761
762 public ID getPcr22_EventCausalityObservations(int rep) {
763 ID retVal = this.getTypedField(22, rep);
764 return retVal;
765 }
766
767
768
769
770
771
772 public int getPcr22_EventCausalityObservationsReps() {
773 return this.getReps(22);
774 }
775
776
777
778
779
780
781
782
783
784 public ID insertEventCausalityObservations(int rep) throws HL7Exception {
785 return (ID) super.insertRepetition(22, rep);
786 }
787
788
789
790
791
792
793
794
795
796 public ID insertPcr22_EventCausalityObservations(int rep) throws HL7Exception {
797 return (ID) super.insertRepetition(22, rep);
798 }
799
800
801
802
803
804
805
806
807
808 public ID removeEventCausalityObservations(int rep) throws HL7Exception {
809 return (ID) super.removeRepetition(22, rep);
810 }
811
812
813
814
815
816
817
818
819
820 public ID removePcr22_EventCausalityObservations(int rep) throws HL7Exception {
821 return (ID) super.removeRepetition(22, rep);
822 }
823
824
825
826
827
828
829 public ID[] getIndirectExposureMechanism() {
830 ID[] retVal = this.getTypedField(23, new ID[0]);
831 return retVal;
832 }
833
834
835
836
837
838 public ID[] getPcr23_IndirectExposureMechanism() {
839 ID[] retVal = this.getTypedField(23, new ID[0]);
840 return retVal;
841 }
842
843
844
845
846
847
848
849 public int getIndirectExposureMechanismReps() {
850 return this.getReps(23);
851 }
852
853
854
855
856
857
858
859
860 public ID getIndirectExposureMechanism(int rep) {
861 ID retVal = this.getTypedField(23, rep);
862 return retVal;
863 }
864
865
866
867
868
869
870
871 public ID getPcr23_IndirectExposureMechanism(int rep) {
872 ID retVal = this.getTypedField(23, rep);
873 return retVal;
874 }
875
876
877
878
879
880
881 public int getPcr23_IndirectExposureMechanismReps() {
882 return this.getReps(23);
883 }
884
885
886
887
888
889
890
891
892
893 public ID insertIndirectExposureMechanism(int rep) throws HL7Exception {
894 return (ID) super.insertRepetition(23, rep);
895 }
896
897
898
899
900
901
902
903
904
905 public ID insertPcr23_IndirectExposureMechanism(int rep) throws HL7Exception {
906 return (ID) super.insertRepetition(23, rep);
907 }
908
909
910
911
912
913
914
915
916
917 public ID removeIndirectExposureMechanism(int rep) throws HL7Exception {
918 return (ID) super.removeRepetition(23, rep);
919 }
920
921
922
923
924
925
926
927
928
929 public ID removePcr23_IndirectExposureMechanism(int rep) throws HL7Exception {
930 return (ID) super.removeRepetition(23, rep);
931 }
932
933
934
935
936
937
938
939 protected Type createNewTypeWithoutReflection(int field) {
940 switch (field) {
941 case 0: return new CE(getMessage());
942 case 1: return new IS(getMessage(), new Integer( 249 ));
943 case 2: return new CE(getMessage());
944 case 3: return new CQ(getMessage());
945 case 4: return new TS(getMessage());
946 case 5: return new TS(getMessage());
947 case 6: return new TS(getMessage());
948 case 7: return new TS(getMessage());
949 case 8: return new IS(getMessage(), new Integer( 244 ));
950 case 9: return new CE(getMessage());
951 case 10: return new IS(getMessage(), new Integer( 245 ));
952 case 11: return new ST(getMessage());
953 case 12: return new IS(getMessage(), new Integer( 246 ));
954 case 13: return new CE(getMessage());
955 case 14: return new CE(getMessage());
956 case 15: return new CE(getMessage());
957 case 16: return new ID(getMessage(), new Integer( 248 ));
958 case 17: return new TS(getMessage());
959 case 18: return new ID(getMessage(), new Integer( 242 ));
960 case 19: return new ID(getMessage(), new Integer( 250 ));
961 case 20: return new ID(getMessage(), new Integer( 251 ));
962 case 21: return new ID(getMessage(), new Integer( 232 ));
963 case 22: return new ID(getMessage(), new Integer( 253 ));
964 default: return null;
965 }
966 }
967
968
969 }
970