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
67
68
69
70
71
72
73
74 @SuppressWarnings("unused")
75 public class IAM extends AbstractSegment {
76
77
78
79
80 public IAM(Group parent, ModelClassFactory factory) {
81 super(parent, factory);
82 init(factory);
83 }
84
85 private void init(ModelClassFactory factory) {
86 try {
87 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - IAM");
88 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Allergen Type Code");
89 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Allergen Code/Mnemonic/Description");
90 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Allergy Severity Code");
91 this.add(ST.class, false, 0, 15, new Object[]{ getMessage() }, "Allergy Reaction Code");
92 this.add(CNE.class, true, 1, 250, new Object[]{ getMessage() }, "Allergy Action Code");
93 this.add(EI.class, false, 1, 427, new Object[]{ getMessage() }, "Allergy Unique Identifier");
94 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Action Reason");
95 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Sensitivity to Causative Agent Code");
96 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Allergen Group Code/Mnemonic/Description");
97 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Onset Date");
98 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Onset Date Text");
99 this.add(TS.class, false, 1, 8, new Object[]{ getMessage() }, "Reported Date/Time");
100 this.add(XPN.class, false, 1, 250, new Object[]{ getMessage() }, "Reported By");
101 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Relationship to Patient Code");
102 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Alert Device Code");
103 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Allergy Clinical Status Code");
104 this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "Statused by Person");
105 this.add(XON.class, false, 1, 250, new Object[]{ getMessage() }, "Statused by Organization");
106 this.add(TS.class, false, 1, 8, new Object[]{ getMessage() }, "Statused at Date/Time");
107 } catch(HL7Exception e) {
108 log.error("Unexpected error creating IAM - this is probably a bug in the source code generator.", e);
109 }
110 }
111
112
113
114
115
116
117
118 public SI getSetIDIAM() {
119 SI retVal = this.getTypedField(1, 0);
120 return retVal;
121 }
122
123
124
125
126
127 public SI getIam1_SetIDIAM() {
128 SI retVal = this.getTypedField(1, 0);
129 return retVal;
130 }
131
132
133
134
135
136
137
138 public CE getAllergenTypeCode() {
139 CE retVal = this.getTypedField(2, 0);
140 return retVal;
141 }
142
143
144
145
146
147 public CE getIam2_AllergenTypeCode() {
148 CE retVal = this.getTypedField(2, 0);
149 return retVal;
150 }
151
152
153
154
155
156
157
158 public CE getAllergenCodeMnemonicDescription() {
159 CE retVal = this.getTypedField(3, 0);
160 return retVal;
161 }
162
163
164
165
166
167 public CE getIam3_AllergenCodeMnemonicDescription() {
168 CE retVal = this.getTypedField(3, 0);
169 return retVal;
170 }
171
172
173
174
175
176
177
178 public CE getAllergySeverityCode() {
179 CE retVal = this.getTypedField(4, 0);
180 return retVal;
181 }
182
183
184
185
186
187 public CE getIam4_AllergySeverityCode() {
188 CE retVal = this.getTypedField(4, 0);
189 return retVal;
190 }
191
192
193
194
195
196 public ST[] getAllergyReactionCode() {
197 ST[] retVal = this.getTypedField(5, new ST[0]);
198 return retVal;
199 }
200
201
202
203
204
205 public ST[] getIam5_AllergyReactionCode() {
206 ST[] retVal = this.getTypedField(5, new ST[0]);
207 return retVal;
208 }
209
210
211
212
213
214
215
216 public int getAllergyReactionCodeReps() {
217 return this.getReps(5);
218 }
219
220
221
222
223
224
225
226
227 public ST getAllergyReactionCode(int rep) {
228 ST retVal = this.getTypedField(5, rep);
229 return retVal;
230 }
231
232
233
234
235
236
237
238 public ST getIam5_AllergyReactionCode(int rep) {
239 ST retVal = this.getTypedField(5, rep);
240 return retVal;
241 }
242
243
244
245
246
247
248 public int getIam5_AllergyReactionCodeReps() {
249 return this.getReps(5);
250 }
251
252
253
254
255
256
257
258
259
260 public ST insertAllergyReactionCode(int rep) throws HL7Exception {
261 return (ST) super.insertRepetition(5, rep);
262 }
263
264
265
266
267
268
269
270
271
272 public ST insertIam5_AllergyReactionCode(int rep) throws HL7Exception {
273 return (ST) super.insertRepetition(5, rep);
274 }
275
276
277
278
279
280
281
282
283
284 public ST removeAllergyReactionCode(int rep) throws HL7Exception {
285 return (ST) super.removeRepetition(5, rep);
286 }
287
288
289
290
291
292
293
294
295
296 public ST removeIam5_AllergyReactionCode(int rep) throws HL7Exception {
297 return (ST) super.removeRepetition(5, rep);
298 }
299
300
301
302
303
304
305
306
307 public CNE getAllergyActionCode() {
308 CNE retVal = this.getTypedField(6, 0);
309 return retVal;
310 }
311
312
313
314
315
316 public CNE getIam6_AllergyActionCode() {
317 CNE retVal = this.getTypedField(6, 0);
318 return retVal;
319 }
320
321
322
323
324
325
326
327 public EI getAllergyUniqueIdentifier() {
328 EI retVal = this.getTypedField(7, 0);
329 return retVal;
330 }
331
332
333
334
335
336 public EI getIam7_AllergyUniqueIdentifier() {
337 EI retVal = this.getTypedField(7, 0);
338 return retVal;
339 }
340
341
342
343
344
345
346
347 public ST getActionReason() {
348 ST retVal = this.getTypedField(8, 0);
349 return retVal;
350 }
351
352
353
354
355
356 public ST getIam8_ActionReason() {
357 ST retVal = this.getTypedField(8, 0);
358 return retVal;
359 }
360
361
362
363
364
365
366
367 public CE getSensitivityToCausativeAgentCode() {
368 CE retVal = this.getTypedField(9, 0);
369 return retVal;
370 }
371
372
373
374
375
376 public CE getIam9_SensitivityToCausativeAgentCode() {
377 CE retVal = this.getTypedField(9, 0);
378 return retVal;
379 }
380
381
382
383
384
385
386
387 public CE getAllergenGroupCodeMnemonicDescription() {
388 CE retVal = this.getTypedField(10, 0);
389 return retVal;
390 }
391
392
393
394
395
396 public CE getIam10_AllergenGroupCodeMnemonicDescription() {
397 CE retVal = this.getTypedField(10, 0);
398 return retVal;
399 }
400
401
402
403
404
405
406
407 public DT getOnsetDate() {
408 DT retVal = this.getTypedField(11, 0);
409 return retVal;
410 }
411
412
413
414
415
416 public DT getIam11_OnsetDate() {
417 DT retVal = this.getTypedField(11, 0);
418 return retVal;
419 }
420
421
422
423
424
425
426
427 public ST getOnsetDateText() {
428 ST retVal = this.getTypedField(12, 0);
429 return retVal;
430 }
431
432
433
434
435
436 public ST getIam12_OnsetDateText() {
437 ST retVal = this.getTypedField(12, 0);
438 return retVal;
439 }
440
441
442
443
444
445
446
447 public TS getReportedDateTime() {
448 TS retVal = this.getTypedField(13, 0);
449 return retVal;
450 }
451
452
453
454
455
456 public TS getIam13_ReportedDateTime() {
457 TS retVal = this.getTypedField(13, 0);
458 return retVal;
459 }
460
461
462
463
464
465
466
467 public XPN getReportedBy() {
468 XPN retVal = this.getTypedField(14, 0);
469 return retVal;
470 }
471
472
473
474
475
476 public XPN getIam14_ReportedBy() {
477 XPN retVal = this.getTypedField(14, 0);
478 return retVal;
479 }
480
481
482
483
484
485
486
487 public CE getRelationshipToPatientCode() {
488 CE retVal = this.getTypedField(15, 0);
489 return retVal;
490 }
491
492
493
494
495
496 public CE getIam15_RelationshipToPatientCode() {
497 CE retVal = this.getTypedField(15, 0);
498 return retVal;
499 }
500
501
502
503
504
505
506
507 public CE getAlertDeviceCode() {
508 CE retVal = this.getTypedField(16, 0);
509 return retVal;
510 }
511
512
513
514
515
516 public CE getIam16_AlertDeviceCode() {
517 CE retVal = this.getTypedField(16, 0);
518 return retVal;
519 }
520
521
522
523
524
525
526
527 public CE getAllergyClinicalStatusCode() {
528 CE retVal = this.getTypedField(17, 0);
529 return retVal;
530 }
531
532
533
534
535
536 public CE getIam17_AllergyClinicalStatusCode() {
537 CE retVal = this.getTypedField(17, 0);
538 return retVal;
539 }
540
541
542
543
544
545
546
547 public XCN getStatusedByPerson() {
548 XCN retVal = this.getTypedField(18, 0);
549 return retVal;
550 }
551
552
553
554
555
556 public XCN getIam18_StatusedByPerson() {
557 XCN retVal = this.getTypedField(18, 0);
558 return retVal;
559 }
560
561
562
563
564
565
566
567 public XON getStatusedByOrganization() {
568 XON retVal = this.getTypedField(19, 0);
569 return retVal;
570 }
571
572
573
574
575
576 public XON getIam19_StatusedByOrganization() {
577 XON retVal = this.getTypedField(19, 0);
578 return retVal;
579 }
580
581
582
583
584
585
586
587 public TS getStatusedAtDateTime() {
588 TS retVal = this.getTypedField(20, 0);
589 return retVal;
590 }
591
592
593
594
595
596 public TS getIam20_StatusedAtDateTime() {
597 TS retVal = this.getTypedField(20, 0);
598 return retVal;
599 }
600
601
602
603
604
605
606 protected Type createNewTypeWithoutReflection(int field) {
607 switch (field) {
608 case 0: return new SI(getMessage());
609 case 1: return new CE(getMessage());
610 case 2: return new CE(getMessage());
611 case 3: return new CE(getMessage());
612 case 4: return new ST(getMessage());
613 case 5: return new CNE(getMessage());
614 case 6: return new EI(getMessage());
615 case 7: return new ST(getMessage());
616 case 8: return new CE(getMessage());
617 case 9: return new CE(getMessage());
618 case 10: return new DT(getMessage());
619 case 11: return new ST(getMessage());
620 case 12: return new TS(getMessage());
621 case 13: return new XPN(getMessage());
622 case 14: return new CE(getMessage());
623 case 15: return new CE(getMessage());
624 case 16: return new CE(getMessage());
625 case 17: return new XCN(getMessage());
626 case 18: return new XON(getMessage());
627 case 19: return new TS(getMessage());
628 default: return null;
629 }
630 }
631
632
633 }
634