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.v251.segment;
35
36
37 import ca.uhn.hl7v2.model.v251.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 AIL extends AbstractSegment {
68
69
70
71
72 public AIL(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 - AIL");
80 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(206) }, "Segment Action Code");
81 this.add(PL.class, false, 0, 80, new Object[]{ getMessage() }, "Location Resource ID");
82 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Location Type-AIL");
83 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Location Group");
84 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Start Date/Time");
85 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Start Date/Time Offset");
86 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Start Date/Time Offset Units");
87 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Duration");
88 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Duration Units");
89 this.add(IS.class, false, 1, 10, new Object[]{ getMessage(), new Integer(279) }, "Allow Substitution Code");
90 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Filler Status Code");
91 } catch(HL7Exception e) {
92 log.error("Unexpected error creating AIL - this is probably a bug in the source code generator.", e);
93 }
94 }
95
96
97
98
99
100
101
102 public SI getSetIDAIL() {
103 SI retVal = this.getTypedField(1, 0);
104 return retVal;
105 }
106
107
108
109
110
111 public SI getAil1_SetIDAIL() {
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 getAil2_SegmentActionCode() {
132 ID retVal = this.getTypedField(2, 0);
133 return retVal;
134 }
135
136
137
138
139
140 public PL[] getLocationResourceID() {
141 PL[] retVal = this.getTypedField(3, new PL[0]);
142 return retVal;
143 }
144
145
146
147
148
149 public PL[] getAil3_LocationResourceID() {
150 PL[] retVal = this.getTypedField(3, new PL[0]);
151 return retVal;
152 }
153
154
155
156
157
158
159
160 public int getLocationResourceIDReps() {
161 return this.getReps(3);
162 }
163
164
165
166
167
168
169
170
171 public PL getLocationResourceID(int rep) {
172 PL retVal = this.getTypedField(3, rep);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public PL getAil3_LocationResourceID(int rep) {
183 PL retVal = this.getTypedField(3, rep);
184 return retVal;
185 }
186
187
188
189
190
191
192 public int getAil3_LocationResourceIDReps() {
193 return this.getReps(3);
194 }
195
196
197
198
199
200
201
202
203
204 public PL insertLocationResourceID(int rep) throws HL7Exception {
205 return (PL) super.insertRepetition(3, rep);
206 }
207
208
209
210
211
212
213
214
215
216 public PL insertAil3_LocationResourceID(int rep) throws HL7Exception {
217 return (PL) super.insertRepetition(3, rep);
218 }
219
220
221
222
223
224
225
226
227
228 public PL removeLocationResourceID(int rep) throws HL7Exception {
229 return (PL) super.removeRepetition(3, rep);
230 }
231
232
233
234
235
236
237
238
239
240 public PL removeAil3_LocationResourceID(int rep) throws HL7Exception {
241 return (PL) super.removeRepetition(3, rep);
242 }
243
244
245
246
247
248
249
250
251 public CE getLocationTypeAIL() {
252 CE retVal = this.getTypedField(4, 0);
253 return retVal;
254 }
255
256
257
258
259
260 public CE getAil4_LocationTypeAIL() {
261 CE retVal = this.getTypedField(4, 0);
262 return retVal;
263 }
264
265
266
267
268
269
270
271 public CE getLocationGroup() {
272 CE retVal = this.getTypedField(5, 0);
273 return retVal;
274 }
275
276
277
278
279
280 public CE getAil5_LocationGroup() {
281 CE retVal = this.getTypedField(5, 0);
282 return retVal;
283 }
284
285
286
287
288
289
290
291 public TS getStartDateTime() {
292 TS retVal = this.getTypedField(6, 0);
293 return retVal;
294 }
295
296
297
298
299
300 public TS getAil6_StartDateTime() {
301 TS retVal = this.getTypedField(6, 0);
302 return retVal;
303 }
304
305
306
307
308
309
310
311 public NM getStartDateTimeOffset() {
312 NM retVal = this.getTypedField(7, 0);
313 return retVal;
314 }
315
316
317
318
319
320 public NM getAil7_StartDateTimeOffset() {
321 NM retVal = this.getTypedField(7, 0);
322 return retVal;
323 }
324
325
326
327
328
329
330
331 public CE getStartDateTimeOffsetUnits() {
332 CE retVal = this.getTypedField(8, 0);
333 return retVal;
334 }
335
336
337
338
339
340 public CE getAil8_StartDateTimeOffsetUnits() {
341 CE retVal = this.getTypedField(8, 0);
342 return retVal;
343 }
344
345
346
347
348
349
350
351 public NM getDuration() {
352 NM retVal = this.getTypedField(9, 0);
353 return retVal;
354 }
355
356
357
358
359
360 public NM getAil9_Duration() {
361 NM retVal = this.getTypedField(9, 0);
362 return retVal;
363 }
364
365
366
367
368
369
370
371 public CE getDurationUnits() {
372 CE retVal = this.getTypedField(10, 0);
373 return retVal;
374 }
375
376
377
378
379
380 public CE getAil10_DurationUnits() {
381 CE retVal = this.getTypedField(10, 0);
382 return retVal;
383 }
384
385
386
387
388
389
390
391 public IS getAllowSubstitutionCode() {
392 IS retVal = this.getTypedField(11, 0);
393 return retVal;
394 }
395
396
397
398
399
400 public IS getAil11_AllowSubstitutionCode() {
401 IS retVal = this.getTypedField(11, 0);
402 return retVal;
403 }
404
405
406
407
408
409
410
411 public CE getFillerStatusCode() {
412 CE retVal = this.getTypedField(12, 0);
413 return retVal;
414 }
415
416
417
418
419
420 public CE getAil12_FillerStatusCode() {
421 CE retVal = this.getTypedField(12, 0);
422 return retVal;
423 }
424
425
426
427
428
429
430 protected Type createNewTypeWithoutReflection(int field) {
431 switch (field) {
432 case 0: return new SI(getMessage());
433 case 1: return new ID(getMessage(), new Integer( 206 ));
434 case 2: return new PL(getMessage());
435 case 3: return new CE(getMessage());
436 case 4: return new CE(getMessage());
437 case 5: return new TS(getMessage());
438 case 6: return new NM(getMessage());
439 case 7: return new CE(getMessage());
440 case 8: return new NM(getMessage());
441 case 9: return new CE(getMessage());
442 case 10: return new IS(getMessage(), new Integer( 279 ));
443 case 11: return new CE(getMessage());
444 default: return null;
445 }
446 }
447
448
449 }
450