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