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 @SuppressWarnings("unused")
67 public class AIS extends AbstractSegment {
68
69
70
71
72 public AIS(Group parent, ModelClassFactory factory) {
73 super(parent, factory);
74 init(factory);
75 }
76
77 private void init(ModelClassFactory factory) {
78 try {
79 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - AIS");
80 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(206) }, "Segment Action Code");
81 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Universal Service Identifier");
82 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Start Date/Time");
83 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Start Date/Time Offset");
84 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Start Date/Time Offset Units");
85 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Duration");
86 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Duration Units");
87 this.add(IS.class, false, 1, 10, new Object[]{ getMessage(), new Integer(279) }, "Allow Substitution Code");
88 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Filler Status Code");
89 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Placer Supplemental Service Information");
90 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Filler Supplemental Service Information");
91 } catch(HL7Exception e) {
92 log.error("Unexpected error creating AIS - this is probably a bug in the source code generator.", e);
93 }
94 }
95
96
97
98
99
100
101
102 public SI getSetIDAIS() {
103 SI retVal = this.getTypedField(1, 0);
104 return retVal;
105 }
106
107
108
109
110
111 public SI getAis1_SetIDAIS() {
112 SI retVal = this.getTypedField(1, 0);
113 return retVal;
114 }
115
116
117
118
119
120
121
122 public ID getSegmentActionCode() {
123 ID retVal = this.getTypedField(2, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public ID getAis2_SegmentActionCode() {
132 ID retVal = this.getTypedField(2, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public CE getUniversalServiceIdentifier() {
143 CE retVal = this.getTypedField(3, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public CE getAis3_UniversalServiceIdentifier() {
152 CE retVal = this.getTypedField(3, 0);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public TS getStartDateTime() {
163 TS retVal = this.getTypedField(4, 0);
164 return retVal;
165 }
166
167
168
169
170
171 public TS getAis4_StartDateTime() {
172 TS retVal = this.getTypedField(4, 0);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public NM getStartDateTimeOffset() {
183 NM retVal = this.getTypedField(5, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public NM getAis5_StartDateTimeOffset() {
192 NM retVal = this.getTypedField(5, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public CE getStartDateTimeOffsetUnits() {
203 CE retVal = this.getTypedField(6, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public CE getAis6_StartDateTimeOffsetUnits() {
212 CE retVal = this.getTypedField(6, 0);
213 return retVal;
214 }
215
216
217
218
219
220
221
222 public NM getDuration() {
223 NM retVal = this.getTypedField(7, 0);
224 return retVal;
225 }
226
227
228
229
230
231 public NM getAis7_Duration() {
232 NM retVal = this.getTypedField(7, 0);
233 return retVal;
234 }
235
236
237
238
239
240
241
242 public CE getDurationUnits() {
243 CE retVal = this.getTypedField(8, 0);
244 return retVal;
245 }
246
247
248
249
250
251 public CE getAis8_DurationUnits() {
252 CE retVal = this.getTypedField(8, 0);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public IS getAllowSubstitutionCode() {
263 IS retVal = this.getTypedField(9, 0);
264 return retVal;
265 }
266
267
268
269
270
271 public IS getAis9_AllowSubstitutionCode() {
272 IS retVal = this.getTypedField(9, 0);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public CE getFillerStatusCode() {
283 CE retVal = this.getTypedField(10, 0);
284 return retVal;
285 }
286
287
288
289
290
291 public CE getAis10_FillerStatusCode() {
292 CE retVal = this.getTypedField(10, 0);
293 return retVal;
294 }
295
296
297
298
299
300 public CE[] getPlacerSupplementalServiceInformation() {
301 CE[] retVal = this.getTypedField(11, new CE[0]);
302 return retVal;
303 }
304
305
306
307
308
309 public CE[] getAis11_PlacerSupplementalServiceInformation() {
310 CE[] retVal = this.getTypedField(11, new CE[0]);
311 return retVal;
312 }
313
314
315
316
317
318
319
320 public int getPlacerSupplementalServiceInformationReps() {
321 return this.getReps(11);
322 }
323
324
325
326
327
328
329
330
331 public CE getPlacerSupplementalServiceInformation(int rep) {
332 CE retVal = this.getTypedField(11, rep);
333 return retVal;
334 }
335
336
337
338
339
340
341
342 public CE getAis11_PlacerSupplementalServiceInformation(int rep) {
343 CE retVal = this.getTypedField(11, rep);
344 return retVal;
345 }
346
347
348
349
350
351
352 public int getAis11_PlacerSupplementalServiceInformationReps() {
353 return this.getReps(11);
354 }
355
356
357
358
359
360
361
362
363
364 public CE insertPlacerSupplementalServiceInformation(int rep) throws HL7Exception {
365 return (CE) super.insertRepetition(11, rep);
366 }
367
368
369
370
371
372
373
374
375
376 public CE insertAis11_PlacerSupplementalServiceInformation(int rep) throws HL7Exception {
377 return (CE) super.insertRepetition(11, rep);
378 }
379
380
381
382
383
384
385
386
387
388 public CE removePlacerSupplementalServiceInformation(int rep) throws HL7Exception {
389 return (CE) super.removeRepetition(11, rep);
390 }
391
392
393
394
395
396
397
398
399
400 public CE removeAis11_PlacerSupplementalServiceInformation(int rep) throws HL7Exception {
401 return (CE) super.removeRepetition(11, rep);
402 }
403
404
405
406
407
408
409 public CE[] getFillerSupplementalServiceInformation() {
410 CE[] retVal = this.getTypedField(12, new CE[0]);
411 return retVal;
412 }
413
414
415
416
417
418 public CE[] getAis12_FillerSupplementalServiceInformation() {
419 CE[] retVal = this.getTypedField(12, new CE[0]);
420 return retVal;
421 }
422
423
424
425
426
427
428
429 public int getFillerSupplementalServiceInformationReps() {
430 return this.getReps(12);
431 }
432
433
434
435
436
437
438
439
440 public CE getFillerSupplementalServiceInformation(int rep) {
441 CE retVal = this.getTypedField(12, rep);
442 return retVal;
443 }
444
445
446
447
448
449
450
451 public CE getAis12_FillerSupplementalServiceInformation(int rep) {
452 CE retVal = this.getTypedField(12, rep);
453 return retVal;
454 }
455
456
457
458
459
460
461 public int getAis12_FillerSupplementalServiceInformationReps() {
462 return this.getReps(12);
463 }
464
465
466
467
468
469
470
471
472
473 public CE insertFillerSupplementalServiceInformation(int rep) throws HL7Exception {
474 return (CE) super.insertRepetition(12, rep);
475 }
476
477
478
479
480
481
482
483
484
485 public CE insertAis12_FillerSupplementalServiceInformation(int rep) throws HL7Exception {
486 return (CE) super.insertRepetition(12, rep);
487 }
488
489
490
491
492
493
494
495
496
497 public CE removeFillerSupplementalServiceInformation(int rep) throws HL7Exception {
498 return (CE) super.removeRepetition(12, rep);
499 }
500
501
502
503
504
505
506
507
508
509 public CE removeAis12_FillerSupplementalServiceInformation(int rep) throws HL7Exception {
510 return (CE) super.removeRepetition(12, rep);
511 }
512
513
514
515
516
517
518
519 protected Type createNewTypeWithoutReflection(int field) {
520 switch (field) {
521 case 0: return new SI(getMessage());
522 case 1: return new ID(getMessage(), new Integer( 206 ));
523 case 2: return new CE(getMessage());
524 case 3: return new TS(getMessage());
525 case 4: return new NM(getMessage());
526 case 5: return new CE(getMessage());
527 case 6: return new NM(getMessage());
528 case 7: return new CE(getMessage());
529 case 8: return new IS(getMessage(), new Integer( 279 ));
530 case 9: return new CE(getMessage());
531 case 10: return new CE(getMessage());
532 case 11: return new CE(getMessage());
533 default: return null;
534 }
535 }
536
537
538 }
539