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.v28.segment;
35
36
37 import ca.uhn.hl7v2.model.v28.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 PRC extends AbstractSegment {
74
75
76
77
78 public PRC(Group parent, ModelClassFactory factory) {
79 super(parent, factory);
80 init(factory);
81 }
82
83 private void init(ModelClassFactory factory) {
84 try {
85 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Primary Key Value - PRC");
86 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Facility ID - PRC");
87 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Department");
88 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Valid Patient Classes");
89 this.add(CP.class, false, 0, 0, new Object[]{ getMessage() }, "Price");
90 this.add(ST.class, false, 0, 0, new Object[]{ getMessage() }, "Formula");
91 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Minimum Quantity");
92 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Maximum Quantity");
93 this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Minimum Price");
94 this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Maximum Price");
95 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Start Date");
96 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective End Date");
97 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Price Override Flag");
98 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Billing Category");
99 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Chargeable Flag");
100 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(183) }, "Active/Inactive Flag");
101 this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Cost");
102 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Charge on Indicator");
103 } catch(HL7Exception e) {
104 log.error("Unexpected error creating PRC - this is probably a bug in the source code generator.", e);
105 }
106 }
107
108
109
110
111
112
113
114 public CWE getPrimaryKeyValuePRC() {
115 CWE retVal = this.getTypedField(1, 0);
116 return retVal;
117 }
118
119
120
121
122
123 public CWE getPrc1_PrimaryKeyValuePRC() {
124 CWE retVal = this.getTypedField(1, 0);
125 return retVal;
126 }
127
128
129
130
131
132 public CWE[] getFacilityIDPRC() {
133 CWE[] retVal = this.getTypedField(2, new CWE[0]);
134 return retVal;
135 }
136
137
138
139
140
141 public CWE[] getPrc2_FacilityIDPRC() {
142 CWE[] retVal = this.getTypedField(2, new CWE[0]);
143 return retVal;
144 }
145
146
147
148
149
150
151
152 public int getFacilityIDPRCReps() {
153 return this.getReps(2);
154 }
155
156
157
158
159
160
161
162
163 public CWE getFacilityIDPRC(int rep) {
164 CWE retVal = this.getTypedField(2, rep);
165 return retVal;
166 }
167
168
169
170
171
172
173
174 public CWE getPrc2_FacilityIDPRC(int rep) {
175 CWE retVal = this.getTypedField(2, rep);
176 return retVal;
177 }
178
179
180
181
182
183
184 public int getPrc2_FacilityIDPRCReps() {
185 return this.getReps(2);
186 }
187
188
189
190
191
192
193
194
195
196 public CWE insertFacilityIDPRC(int rep) throws HL7Exception {
197 return (CWE) super.insertRepetition(2, rep);
198 }
199
200
201
202
203
204
205
206
207
208 public CWE insertPrc2_FacilityIDPRC(int rep) throws HL7Exception {
209 return (CWE) super.insertRepetition(2, rep);
210 }
211
212
213
214
215
216
217
218
219
220 public CWE removeFacilityIDPRC(int rep) throws HL7Exception {
221 return (CWE) super.removeRepetition(2, rep);
222 }
223
224
225
226
227
228
229
230
231
232 public CWE removePrc2_FacilityIDPRC(int rep) throws HL7Exception {
233 return (CWE) super.removeRepetition(2, rep);
234 }
235
236
237
238
239
240
241 public CWE[] getDepartment() {
242 CWE[] retVal = this.getTypedField(3, new CWE[0]);
243 return retVal;
244 }
245
246
247
248
249
250 public CWE[] getPrc3_Department() {
251 CWE[] retVal = this.getTypedField(3, new CWE[0]);
252 return retVal;
253 }
254
255
256
257
258
259
260
261 public int getDepartmentReps() {
262 return this.getReps(3);
263 }
264
265
266
267
268
269
270
271
272 public CWE getDepartment(int rep) {
273 CWE retVal = this.getTypedField(3, rep);
274 return retVal;
275 }
276
277
278
279
280
281
282
283 public CWE getPrc3_Department(int rep) {
284 CWE retVal = this.getTypedField(3, rep);
285 return retVal;
286 }
287
288
289
290
291
292
293 public int getPrc3_DepartmentReps() {
294 return this.getReps(3);
295 }
296
297
298
299
300
301
302
303
304
305 public CWE insertDepartment(int rep) throws HL7Exception {
306 return (CWE) super.insertRepetition(3, rep);
307 }
308
309
310
311
312
313
314
315
316
317 public CWE insertPrc3_Department(int rep) throws HL7Exception {
318 return (CWE) super.insertRepetition(3, rep);
319 }
320
321
322
323
324
325
326
327
328
329 public CWE removeDepartment(int rep) throws HL7Exception {
330 return (CWE) super.removeRepetition(3, rep);
331 }
332
333
334
335
336
337
338
339
340
341 public CWE removePrc3_Department(int rep) throws HL7Exception {
342 return (CWE) super.removeRepetition(3, rep);
343 }
344
345
346
347
348
349
350 public CWE[] getValidPatientClasses() {
351 CWE[] retVal = this.getTypedField(4, new CWE[0]);
352 return retVal;
353 }
354
355
356
357
358
359 public CWE[] getPrc4_ValidPatientClasses() {
360 CWE[] retVal = this.getTypedField(4, new CWE[0]);
361 return retVal;
362 }
363
364
365
366
367
368
369
370 public int getValidPatientClassesReps() {
371 return this.getReps(4);
372 }
373
374
375
376
377
378
379
380
381 public CWE getValidPatientClasses(int rep) {
382 CWE retVal = this.getTypedField(4, rep);
383 return retVal;
384 }
385
386
387
388
389
390
391
392 public CWE getPrc4_ValidPatientClasses(int rep) {
393 CWE retVal = this.getTypedField(4, rep);
394 return retVal;
395 }
396
397
398
399
400
401
402 public int getPrc4_ValidPatientClassesReps() {
403 return this.getReps(4);
404 }
405
406
407
408
409
410
411
412
413
414 public CWE insertValidPatientClasses(int rep) throws HL7Exception {
415 return (CWE) super.insertRepetition(4, rep);
416 }
417
418
419
420
421
422
423
424
425
426 public CWE insertPrc4_ValidPatientClasses(int rep) throws HL7Exception {
427 return (CWE) super.insertRepetition(4, rep);
428 }
429
430
431
432
433
434
435
436
437
438 public CWE removeValidPatientClasses(int rep) throws HL7Exception {
439 return (CWE) super.removeRepetition(4, rep);
440 }
441
442
443
444
445
446
447
448
449
450 public CWE removePrc4_ValidPatientClasses(int rep) throws HL7Exception {
451 return (CWE) super.removeRepetition(4, rep);
452 }
453
454
455
456
457
458
459 public CP[] getPrice() {
460 CP[] retVal = this.getTypedField(5, new CP[0]);
461 return retVal;
462 }
463
464
465
466
467
468 public CP[] getPrc5_Price() {
469 CP[] retVal = this.getTypedField(5, new CP[0]);
470 return retVal;
471 }
472
473
474
475
476
477
478
479 public int getPriceReps() {
480 return this.getReps(5);
481 }
482
483
484
485
486
487
488
489
490 public CP getPrice(int rep) {
491 CP retVal = this.getTypedField(5, rep);
492 return retVal;
493 }
494
495
496
497
498
499
500
501 public CP getPrc5_Price(int rep) {
502 CP retVal = this.getTypedField(5, rep);
503 return retVal;
504 }
505
506
507
508
509
510
511 public int getPrc5_PriceReps() {
512 return this.getReps(5);
513 }
514
515
516
517
518
519
520
521
522
523 public CP insertPrice(int rep) throws HL7Exception {
524 return (CP) super.insertRepetition(5, rep);
525 }
526
527
528
529
530
531
532
533
534
535 public CP insertPrc5_Price(int rep) throws HL7Exception {
536 return (CP) super.insertRepetition(5, rep);
537 }
538
539
540
541
542
543
544
545
546
547 public CP removePrice(int rep) throws HL7Exception {
548 return (CP) super.removeRepetition(5, rep);
549 }
550
551
552
553
554
555
556
557
558
559 public CP removePrc5_Price(int rep) throws HL7Exception {
560 return (CP) super.removeRepetition(5, rep);
561 }
562
563
564
565
566
567
568 public ST[] getFormula() {
569 ST[] retVal = this.getTypedField(6, new ST[0]);
570 return retVal;
571 }
572
573
574
575
576
577 public ST[] getPrc6_Formula() {
578 ST[] retVal = this.getTypedField(6, new ST[0]);
579 return retVal;
580 }
581
582
583
584
585
586
587
588 public int getFormulaReps() {
589 return this.getReps(6);
590 }
591
592
593
594
595
596
597
598
599 public ST getFormula(int rep) {
600 ST retVal = this.getTypedField(6, rep);
601 return retVal;
602 }
603
604
605
606
607
608
609
610 public ST getPrc6_Formula(int rep) {
611 ST retVal = this.getTypedField(6, rep);
612 return retVal;
613 }
614
615
616
617
618
619
620 public int getPrc6_FormulaReps() {
621 return this.getReps(6);
622 }
623
624
625
626
627
628
629
630
631
632 public ST insertFormula(int rep) throws HL7Exception {
633 return (ST) super.insertRepetition(6, rep);
634 }
635
636
637
638
639
640
641
642
643
644 public ST insertPrc6_Formula(int rep) throws HL7Exception {
645 return (ST) super.insertRepetition(6, rep);
646 }
647
648
649
650
651
652
653
654
655
656 public ST removeFormula(int rep) throws HL7Exception {
657 return (ST) super.removeRepetition(6, rep);
658 }
659
660
661
662
663
664
665
666
667
668 public ST removePrc6_Formula(int rep) throws HL7Exception {
669 return (ST) super.removeRepetition(6, rep);
670 }
671
672
673
674
675
676
677
678
679 public NM getMinimumQuantity() {
680 NM retVal = this.getTypedField(7, 0);
681 return retVal;
682 }
683
684
685
686
687
688 public NM getPrc7_MinimumQuantity() {
689 NM retVal = this.getTypedField(7, 0);
690 return retVal;
691 }
692
693
694
695
696
697
698
699 public NM getMaximumQuantity() {
700 NM retVal = this.getTypedField(8, 0);
701 return retVal;
702 }
703
704
705
706
707
708 public NM getPrc8_MaximumQuantity() {
709 NM retVal = this.getTypedField(8, 0);
710 return retVal;
711 }
712
713
714
715
716
717
718
719 public MO getMinimumPrice() {
720 MO retVal = this.getTypedField(9, 0);
721 return retVal;
722 }
723
724
725
726
727
728 public MO getPrc9_MinimumPrice() {
729 MO retVal = this.getTypedField(9, 0);
730 return retVal;
731 }
732
733
734
735
736
737
738
739 public MO getMaximumPrice() {
740 MO retVal = this.getTypedField(10, 0);
741 return retVal;
742 }
743
744
745
746
747
748 public MO getPrc10_MaximumPrice() {
749 MO retVal = this.getTypedField(10, 0);
750 return retVal;
751 }
752
753
754
755
756
757
758
759 public DTM getEffectiveStartDate() {
760 DTM retVal = this.getTypedField(11, 0);
761 return retVal;
762 }
763
764
765
766
767
768 public DTM getPrc11_EffectiveStartDate() {
769 DTM retVal = this.getTypedField(11, 0);
770 return retVal;
771 }
772
773
774
775
776
777
778
779 public DTM getEffectiveEndDate() {
780 DTM retVal = this.getTypedField(12, 0);
781 return retVal;
782 }
783
784
785
786
787
788 public DTM getPrc12_EffectiveEndDate() {
789 DTM retVal = this.getTypedField(12, 0);
790 return retVal;
791 }
792
793
794
795
796
797
798
799 public CWE getPriceOverrideFlag() {
800 CWE retVal = this.getTypedField(13, 0);
801 return retVal;
802 }
803
804
805
806
807
808 public CWE getPrc13_PriceOverrideFlag() {
809 CWE retVal = this.getTypedField(13, 0);
810 return retVal;
811 }
812
813
814
815
816
817 public CWE[] getBillingCategory() {
818 CWE[] retVal = this.getTypedField(14, new CWE[0]);
819 return retVal;
820 }
821
822
823
824
825
826 public CWE[] getPrc14_BillingCategory() {
827 CWE[] retVal = this.getTypedField(14, new CWE[0]);
828 return retVal;
829 }
830
831
832
833
834
835
836
837 public int getBillingCategoryReps() {
838 return this.getReps(14);
839 }
840
841
842
843
844
845
846
847
848 public CWE getBillingCategory(int rep) {
849 CWE retVal = this.getTypedField(14, rep);
850 return retVal;
851 }
852
853
854
855
856
857
858
859 public CWE getPrc14_BillingCategory(int rep) {
860 CWE retVal = this.getTypedField(14, rep);
861 return retVal;
862 }
863
864
865
866
867
868
869 public int getPrc14_BillingCategoryReps() {
870 return this.getReps(14);
871 }
872
873
874
875
876
877
878
879
880
881 public CWE insertBillingCategory(int rep) throws HL7Exception {
882 return (CWE) super.insertRepetition(14, rep);
883 }
884
885
886
887
888
889
890
891
892
893 public CWE insertPrc14_BillingCategory(int rep) throws HL7Exception {
894 return (CWE) super.insertRepetition(14, rep);
895 }
896
897
898
899
900
901
902
903
904
905 public CWE removeBillingCategory(int rep) throws HL7Exception {
906 return (CWE) super.removeRepetition(14, rep);
907 }
908
909
910
911
912
913
914
915
916
917 public CWE removePrc14_BillingCategory(int rep) throws HL7Exception {
918 return (CWE) super.removeRepetition(14, rep);
919 }
920
921
922
923
924
925
926
927
928 public ID getChargeableFlag() {
929 ID retVal = this.getTypedField(15, 0);
930 return retVal;
931 }
932
933
934
935
936
937 public ID getPrc15_ChargeableFlag() {
938 ID retVal = this.getTypedField(15, 0);
939 return retVal;
940 }
941
942
943
944
945
946
947
948 public ID getActiveInactiveFlag() {
949 ID retVal = this.getTypedField(16, 0);
950 return retVal;
951 }
952
953
954
955
956
957 public ID getPrc16_ActiveInactiveFlag() {
958 ID retVal = this.getTypedField(16, 0);
959 return retVal;
960 }
961
962
963
964
965
966
967
968 public MO getCost() {
969 MO retVal = this.getTypedField(17, 0);
970 return retVal;
971 }
972
973
974
975
976
977 public MO getPrc17_Cost() {
978 MO retVal = this.getTypedField(17, 0);
979 return retVal;
980 }
981
982
983
984
985
986
987
988 public CWE getChargeOnIndicator() {
989 CWE retVal = this.getTypedField(18, 0);
990 return retVal;
991 }
992
993
994
995
996
997 public CWE getPrc18_ChargeOnIndicator() {
998 CWE retVal = this.getTypedField(18, 0);
999 return retVal;
1000 }
1001
1002
1003
1004
1005
1006
1007 protected Type createNewTypeWithoutReflection(int field) {
1008 switch (field) {
1009 case 0: return new CWE(getMessage());
1010 case 1: return new CWE(getMessage());
1011 case 2: return new CWE(getMessage());
1012 case 3: return new CWE(getMessage());
1013 case 4: return new CP(getMessage());
1014 case 5: return new ST(getMessage());
1015 case 6: return new NM(getMessage());
1016 case 7: return new NM(getMessage());
1017 case 8: return new MO(getMessage());
1018 case 9: return new MO(getMessage());
1019 case 10: return new DTM(getMessage());
1020 case 11: return new DTM(getMessage());
1021 case 12: return new CWE(getMessage());
1022 case 13: return new CWE(getMessage());
1023 case 14: return new ID(getMessage(), new Integer( 136 ));
1024 case 15: return new ID(getMessage(), new Integer( 183 ));
1025 case 16: return new MO(getMessage());
1026 case 17: return new CWE(getMessage());
1027 default: return null;
1028 }
1029 }
1030
1031
1032 }
1033