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.v231.segment;
35
36
37 import ca.uhn.hl7v2.model.v231.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
78
79 @SuppressWarnings("unused")
80 public class SCH extends AbstractSegment {
81
82
83
84
85 public SCH(Group parent, ModelClassFactory factory) {
86 super(parent, factory);
87 init(factory);
88 }
89
90 private void init(ModelClassFactory factory) {
91 try {
92 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Placer Appointment ID");
93 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Filler Appointment ID");
94 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Occurrence Number");
95 this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Group Number");
96 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Schedule ID");
97 this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Event Reason");
98 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Reason");
99 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Type");
100 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Appointment Duration");
101 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Duration Units");
102 this.add(TQ.class, true, 0, 200, new Object[]{ getMessage() }, "Appointment Timing Quantity");
103 this.add(XCN.class, false, 0, 48, new Object[]{ getMessage() }, "Placer Contact Person");
104 this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Placer Contact Phone Number");
105 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Placer Contact Address");
106 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Placer Contact Location");
107 this.add(XCN.class, true, 0, 38, new Object[]{ getMessage() }, "Filler Contact Person");
108 this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Filler Contact Phone Number");
109 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Filler Contact Address");
110 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Filler Contact Location");
111 this.add(XCN.class, true, 0, 48, new Object[]{ getMessage() }, "Entered by Person");
112 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Entered by Phone Number");
113 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Entered by Location");
114 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Placer Appointment ID");
115 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Filler Appointment ID");
116 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Filler Status Code");
117 } catch(HL7Exception e) {
118 log.error("Unexpected error creating SCH - this is probably a bug in the source code generator.", e);
119 }
120 }
121
122
123
124
125
126
127
128 public EI getPlacerAppointmentID() {
129 EI retVal = this.getTypedField(1, 0);
130 return retVal;
131 }
132
133
134
135
136
137 public EI getSch1_PlacerAppointmentID() {
138 EI retVal = this.getTypedField(1, 0);
139 return retVal;
140 }
141
142
143
144
145
146
147
148 public EI getFillerAppointmentID() {
149 EI retVal = this.getTypedField(2, 0);
150 return retVal;
151 }
152
153
154
155
156
157 public EI getSch2_FillerAppointmentID() {
158 EI retVal = this.getTypedField(2, 0);
159 return retVal;
160 }
161
162
163
164
165
166
167
168 public NM getOccurrenceNumber() {
169 NM retVal = this.getTypedField(3, 0);
170 return retVal;
171 }
172
173
174
175
176
177 public NM getSch3_OccurrenceNumber() {
178 NM retVal = this.getTypedField(3, 0);
179 return retVal;
180 }
181
182
183
184
185
186
187
188 public EI getPlacerGroupNumber() {
189 EI retVal = this.getTypedField(4, 0);
190 return retVal;
191 }
192
193
194
195
196
197 public EI getSch4_PlacerGroupNumber() {
198 EI retVal = this.getTypedField(4, 0);
199 return retVal;
200 }
201
202
203
204
205
206
207
208 public CE getScheduleID() {
209 CE retVal = this.getTypedField(5, 0);
210 return retVal;
211 }
212
213
214
215
216
217 public CE getSch5_ScheduleID() {
218 CE retVal = this.getTypedField(5, 0);
219 return retVal;
220 }
221
222
223
224
225
226
227
228 public CE getEventReason() {
229 CE retVal = this.getTypedField(6, 0);
230 return retVal;
231 }
232
233
234
235
236
237 public CE getSch6_EventReason() {
238 CE retVal = this.getTypedField(6, 0);
239 return retVal;
240 }
241
242
243
244
245
246
247
248 public CE getAppointmentReason() {
249 CE retVal = this.getTypedField(7, 0);
250 return retVal;
251 }
252
253
254
255
256
257 public CE getSch7_AppointmentReason() {
258 CE retVal = this.getTypedField(7, 0);
259 return retVal;
260 }
261
262
263
264
265
266
267
268 public CE getAppointmentType() {
269 CE retVal = this.getTypedField(8, 0);
270 return retVal;
271 }
272
273
274
275
276
277 public CE getSch8_AppointmentType() {
278 CE retVal = this.getTypedField(8, 0);
279 return retVal;
280 }
281
282
283
284
285
286
287
288 public NM getAppointmentDuration() {
289 NM retVal = this.getTypedField(9, 0);
290 return retVal;
291 }
292
293
294
295
296
297 public NM getSch9_AppointmentDuration() {
298 NM retVal = this.getTypedField(9, 0);
299 return retVal;
300 }
301
302
303
304
305
306
307
308 public CE getAppointmentDurationUnits() {
309 CE retVal = this.getTypedField(10, 0);
310 return retVal;
311 }
312
313
314
315
316
317 public CE getSch10_AppointmentDurationUnits() {
318 CE retVal = this.getTypedField(10, 0);
319 return retVal;
320 }
321
322
323
324
325
326 public TQ[] getAppointmentTimingQuantity() {
327 TQ[] retVal = this.getTypedField(11, new TQ[0]);
328 return retVal;
329 }
330
331
332
333
334
335 public TQ[] getSch11_AppointmentTimingQuantity() {
336 TQ[] retVal = this.getTypedField(11, new TQ[0]);
337 return retVal;
338 }
339
340
341
342
343
344
345
346 public int getAppointmentTimingQuantityReps() {
347 return this.getReps(11);
348 }
349
350
351
352
353
354
355
356
357 public TQ getAppointmentTimingQuantity(int rep) {
358 TQ retVal = this.getTypedField(11, rep);
359 return retVal;
360 }
361
362
363
364
365
366
367
368 public TQ getSch11_AppointmentTimingQuantity(int rep) {
369 TQ retVal = this.getTypedField(11, rep);
370 return retVal;
371 }
372
373
374
375
376
377
378 public int getSch11_AppointmentTimingQuantityReps() {
379 return this.getReps(11);
380 }
381
382
383
384
385
386
387
388
389
390 public TQ insertAppointmentTimingQuantity(int rep) throws HL7Exception {
391 return (TQ) super.insertRepetition(11, rep);
392 }
393
394
395
396
397
398
399
400
401
402 public TQ insertSch11_AppointmentTimingQuantity(int rep) throws HL7Exception {
403 return (TQ) super.insertRepetition(11, rep);
404 }
405
406
407
408
409
410
411
412
413
414 public TQ removeAppointmentTimingQuantity(int rep) throws HL7Exception {
415 return (TQ) super.removeRepetition(11, rep);
416 }
417
418
419
420
421
422
423
424
425
426 public TQ removeSch11_AppointmentTimingQuantity(int rep) throws HL7Exception {
427 return (TQ) super.removeRepetition(11, rep);
428 }
429
430
431
432
433
434
435 public XCN[] getPlacerContactPerson() {
436 XCN[] retVal = this.getTypedField(12, new XCN[0]);
437 return retVal;
438 }
439
440
441
442
443
444 public XCN[] getSch12_PlacerContactPerson() {
445 XCN[] retVal = this.getTypedField(12, new XCN[0]);
446 return retVal;
447 }
448
449
450
451
452
453
454
455 public int getPlacerContactPersonReps() {
456 return this.getReps(12);
457 }
458
459
460
461
462
463
464
465
466 public XCN getPlacerContactPerson(int rep) {
467 XCN retVal = this.getTypedField(12, rep);
468 return retVal;
469 }
470
471
472
473
474
475
476
477 public XCN getSch12_PlacerContactPerson(int rep) {
478 XCN retVal = this.getTypedField(12, rep);
479 return retVal;
480 }
481
482
483
484
485
486
487 public int getSch12_PlacerContactPersonReps() {
488 return this.getReps(12);
489 }
490
491
492
493
494
495
496
497
498
499 public XCN insertPlacerContactPerson(int rep) throws HL7Exception {
500 return (XCN) super.insertRepetition(12, rep);
501 }
502
503
504
505
506
507
508
509
510
511 public XCN insertSch12_PlacerContactPerson(int rep) throws HL7Exception {
512 return (XCN) super.insertRepetition(12, rep);
513 }
514
515
516
517
518
519
520
521
522
523 public XCN removePlacerContactPerson(int rep) throws HL7Exception {
524 return (XCN) super.removeRepetition(12, rep);
525 }
526
527
528
529
530
531
532
533
534
535 public XCN removeSch12_PlacerContactPerson(int rep) throws HL7Exception {
536 return (XCN) super.removeRepetition(12, rep);
537 }
538
539
540
541
542
543
544
545
546 public XTN getPlacerContactPhoneNumber() {
547 XTN retVal = this.getTypedField(13, 0);
548 return retVal;
549 }
550
551
552
553
554
555 public XTN getSch13_PlacerContactPhoneNumber() {
556 XTN retVal = this.getTypedField(13, 0);
557 return retVal;
558 }
559
560
561
562
563
564 public XAD[] getPlacerContactAddress() {
565 XAD[] retVal = this.getTypedField(14, new XAD[0]);
566 return retVal;
567 }
568
569
570
571
572
573 public XAD[] getSch14_PlacerContactAddress() {
574 XAD[] retVal = this.getTypedField(14, new XAD[0]);
575 return retVal;
576 }
577
578
579
580
581
582
583
584 public int getPlacerContactAddressReps() {
585 return this.getReps(14);
586 }
587
588
589
590
591
592
593
594
595 public XAD getPlacerContactAddress(int rep) {
596 XAD retVal = this.getTypedField(14, rep);
597 return retVal;
598 }
599
600
601
602
603
604
605
606 public XAD getSch14_PlacerContactAddress(int rep) {
607 XAD retVal = this.getTypedField(14, rep);
608 return retVal;
609 }
610
611
612
613
614
615
616 public int getSch14_PlacerContactAddressReps() {
617 return this.getReps(14);
618 }
619
620
621
622
623
624
625
626
627
628 public XAD insertPlacerContactAddress(int rep) throws HL7Exception {
629 return (XAD) super.insertRepetition(14, rep);
630 }
631
632
633
634
635
636
637
638
639
640 public XAD insertSch14_PlacerContactAddress(int rep) throws HL7Exception {
641 return (XAD) super.insertRepetition(14, rep);
642 }
643
644
645
646
647
648
649
650
651
652 public XAD removePlacerContactAddress(int rep) throws HL7Exception {
653 return (XAD) super.removeRepetition(14, rep);
654 }
655
656
657
658
659
660
661
662
663
664 public XAD removeSch14_PlacerContactAddress(int rep) throws HL7Exception {
665 return (XAD) super.removeRepetition(14, rep);
666 }
667
668
669
670
671
672
673
674
675 public PL getPlacerContactLocation() {
676 PL retVal = this.getTypedField(15, 0);
677 return retVal;
678 }
679
680
681
682
683
684 public PL getSch15_PlacerContactLocation() {
685 PL retVal = this.getTypedField(15, 0);
686 return retVal;
687 }
688
689
690
691
692
693 public XCN[] getFillerContactPerson() {
694 XCN[] retVal = this.getTypedField(16, new XCN[0]);
695 return retVal;
696 }
697
698
699
700
701
702 public XCN[] getSch16_FillerContactPerson() {
703 XCN[] retVal = this.getTypedField(16, new XCN[0]);
704 return retVal;
705 }
706
707
708
709
710
711
712
713 public int getFillerContactPersonReps() {
714 return this.getReps(16);
715 }
716
717
718
719
720
721
722
723
724 public XCN getFillerContactPerson(int rep) {
725 XCN retVal = this.getTypedField(16, rep);
726 return retVal;
727 }
728
729
730
731
732
733
734
735 public XCN getSch16_FillerContactPerson(int rep) {
736 XCN retVal = this.getTypedField(16, rep);
737 return retVal;
738 }
739
740
741
742
743
744
745 public int getSch16_FillerContactPersonReps() {
746 return this.getReps(16);
747 }
748
749
750
751
752
753
754
755
756
757 public XCN insertFillerContactPerson(int rep) throws HL7Exception {
758 return (XCN) super.insertRepetition(16, rep);
759 }
760
761
762
763
764
765
766
767
768
769 public XCN insertSch16_FillerContactPerson(int rep) throws HL7Exception {
770 return (XCN) super.insertRepetition(16, rep);
771 }
772
773
774
775
776
777
778
779
780
781 public XCN removeFillerContactPerson(int rep) throws HL7Exception {
782 return (XCN) super.removeRepetition(16, rep);
783 }
784
785
786
787
788
789
790
791
792
793 public XCN removeSch16_FillerContactPerson(int rep) throws HL7Exception {
794 return (XCN) super.removeRepetition(16, rep);
795 }
796
797
798
799
800
801
802
803
804 public XTN getFillerContactPhoneNumber() {
805 XTN retVal = this.getTypedField(17, 0);
806 return retVal;
807 }
808
809
810
811
812
813 public XTN getSch17_FillerContactPhoneNumber() {
814 XTN retVal = this.getTypedField(17, 0);
815 return retVal;
816 }
817
818
819
820
821
822 public XAD[] getFillerContactAddress() {
823 XAD[] retVal = this.getTypedField(18, new XAD[0]);
824 return retVal;
825 }
826
827
828
829
830
831 public XAD[] getSch18_FillerContactAddress() {
832 XAD[] retVal = this.getTypedField(18, new XAD[0]);
833 return retVal;
834 }
835
836
837
838
839
840
841
842 public int getFillerContactAddressReps() {
843 return this.getReps(18);
844 }
845
846
847
848
849
850
851
852
853 public XAD getFillerContactAddress(int rep) {
854 XAD retVal = this.getTypedField(18, rep);
855 return retVal;
856 }
857
858
859
860
861
862
863
864 public XAD getSch18_FillerContactAddress(int rep) {
865 XAD retVal = this.getTypedField(18, rep);
866 return retVal;
867 }
868
869
870
871
872
873
874 public int getSch18_FillerContactAddressReps() {
875 return this.getReps(18);
876 }
877
878
879
880
881
882
883
884
885
886 public XAD insertFillerContactAddress(int rep) throws HL7Exception {
887 return (XAD) super.insertRepetition(18, rep);
888 }
889
890
891
892
893
894
895
896
897
898 public XAD insertSch18_FillerContactAddress(int rep) throws HL7Exception {
899 return (XAD) super.insertRepetition(18, rep);
900 }
901
902
903
904
905
906
907
908
909
910 public XAD removeFillerContactAddress(int rep) throws HL7Exception {
911 return (XAD) super.removeRepetition(18, rep);
912 }
913
914
915
916
917
918
919
920
921
922 public XAD removeSch18_FillerContactAddress(int rep) throws HL7Exception {
923 return (XAD) super.removeRepetition(18, rep);
924 }
925
926
927
928
929
930
931
932
933 public PL getFillerContactLocation() {
934 PL retVal = this.getTypedField(19, 0);
935 return retVal;
936 }
937
938
939
940
941
942 public PL getSch19_FillerContactLocation() {
943 PL retVal = this.getTypedField(19, 0);
944 return retVal;
945 }
946
947
948
949
950
951 public XCN[] getEnteredByPerson() {
952 XCN[] retVal = this.getTypedField(20, new XCN[0]);
953 return retVal;
954 }
955
956
957
958
959
960 public XCN[] getSch20_EnteredByPerson() {
961 XCN[] retVal = this.getTypedField(20, new XCN[0]);
962 return retVal;
963 }
964
965
966
967
968
969
970
971 public int getEnteredByPersonReps() {
972 return this.getReps(20);
973 }
974
975
976
977
978
979
980
981
982 public XCN getEnteredByPerson(int rep) {
983 XCN retVal = this.getTypedField(20, rep);
984 return retVal;
985 }
986
987
988
989
990
991
992
993 public XCN getSch20_EnteredByPerson(int rep) {
994 XCN retVal = this.getTypedField(20, rep);
995 return retVal;
996 }
997
998
999
1000
1001
1002
1003 public int getSch20_EnteredByPersonReps() {
1004 return this.getReps(20);
1005 }
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015 public XCN insertEnteredByPerson(int rep) throws HL7Exception {
1016 return (XCN) super.insertRepetition(20, rep);
1017 }
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027 public XCN insertSch20_EnteredByPerson(int rep) throws HL7Exception {
1028 return (XCN) super.insertRepetition(20, rep);
1029 }
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039 public XCN removeEnteredByPerson(int rep) throws HL7Exception {
1040 return (XCN) super.removeRepetition(20, rep);
1041 }
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051 public XCN removeSch20_EnteredByPerson(int rep) throws HL7Exception {
1052 return (XCN) super.removeRepetition(20, rep);
1053 }
1054
1055
1056
1057
1058
1059
1060 public XTN[] getEnteredByPhoneNumber() {
1061 XTN[] retVal = this.getTypedField(21, new XTN[0]);
1062 return retVal;
1063 }
1064
1065
1066
1067
1068
1069 public XTN[] getSch21_EnteredByPhoneNumber() {
1070 XTN[] retVal = this.getTypedField(21, new XTN[0]);
1071 return retVal;
1072 }
1073
1074
1075
1076
1077
1078
1079
1080 public int getEnteredByPhoneNumberReps() {
1081 return this.getReps(21);
1082 }
1083
1084
1085
1086
1087
1088
1089
1090
1091 public XTN getEnteredByPhoneNumber(int rep) {
1092 XTN retVal = this.getTypedField(21, rep);
1093 return retVal;
1094 }
1095
1096
1097
1098
1099
1100
1101
1102 public XTN getSch21_EnteredByPhoneNumber(int rep) {
1103 XTN retVal = this.getTypedField(21, rep);
1104 return retVal;
1105 }
1106
1107
1108
1109
1110
1111
1112 public int getSch21_EnteredByPhoneNumberReps() {
1113 return this.getReps(21);
1114 }
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124 public XTN insertEnteredByPhoneNumber(int rep) throws HL7Exception {
1125 return (XTN) super.insertRepetition(21, rep);
1126 }
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136 public XTN insertSch21_EnteredByPhoneNumber(int rep) throws HL7Exception {
1137 return (XTN) super.insertRepetition(21, rep);
1138 }
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148 public XTN removeEnteredByPhoneNumber(int rep) throws HL7Exception {
1149 return (XTN) super.removeRepetition(21, rep);
1150 }
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160 public XTN removeSch21_EnteredByPhoneNumber(int rep) throws HL7Exception {
1161 return (XTN) super.removeRepetition(21, rep);
1162 }
1163
1164
1165
1166
1167
1168
1169
1170
1171 public PL getEnteredByLocation() {
1172 PL retVal = this.getTypedField(22, 0);
1173 return retVal;
1174 }
1175
1176
1177
1178
1179
1180 public PL getSch22_EnteredByLocation() {
1181 PL retVal = this.getTypedField(22, 0);
1182 return retVal;
1183 }
1184
1185
1186
1187
1188
1189
1190
1191 public EI getParentPlacerAppointmentID() {
1192 EI retVal = this.getTypedField(23, 0);
1193 return retVal;
1194 }
1195
1196
1197
1198
1199
1200 public EI getSch23_ParentPlacerAppointmentID() {
1201 EI retVal = this.getTypedField(23, 0);
1202 return retVal;
1203 }
1204
1205
1206
1207
1208
1209
1210
1211 public EI getParentFillerAppointmentID() {
1212 EI retVal = this.getTypedField(24, 0);
1213 return retVal;
1214 }
1215
1216
1217
1218
1219
1220 public EI getSch24_ParentFillerAppointmentID() {
1221 EI retVal = this.getTypedField(24, 0);
1222 return retVal;
1223 }
1224
1225
1226
1227
1228
1229
1230
1231 public CE getFillerStatusCode() {
1232 CE retVal = this.getTypedField(25, 0);
1233 return retVal;
1234 }
1235
1236
1237
1238
1239
1240 public CE getSch25_FillerStatusCode() {
1241 CE retVal = this.getTypedField(25, 0);
1242 return retVal;
1243 }
1244
1245
1246
1247
1248
1249
1250 protected Type createNewTypeWithoutReflection(int field) {
1251 switch (field) {
1252 case 0: return new EI(getMessage());
1253 case 1: return new EI(getMessage());
1254 case 2: return new NM(getMessage());
1255 case 3: return new EI(getMessage());
1256 case 4: return new CE(getMessage());
1257 case 5: return new CE(getMessage());
1258 case 6: return new CE(getMessage());
1259 case 7: return new CE(getMessage());
1260 case 8: return new NM(getMessage());
1261 case 9: return new CE(getMessage());
1262 case 10: return new TQ(getMessage());
1263 case 11: return new XCN(getMessage());
1264 case 12: return new XTN(getMessage());
1265 case 13: return new XAD(getMessage());
1266 case 14: return new PL(getMessage());
1267 case 15: return new XCN(getMessage());
1268 case 16: return new XTN(getMessage());
1269 case 17: return new XAD(getMessage());
1270 case 18: return new PL(getMessage());
1271 case 19: return new XCN(getMessage());
1272 case 20: return new XTN(getMessage());
1273 case 21: return new PL(getMessage());
1274 case 22: return new EI(getMessage());
1275 case 23: return new EI(getMessage());
1276 case 24: return new CE(getMessage());
1277 default: return null;
1278 }
1279 }
1280
1281
1282 }
1283