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.v28.segment;
35
36
37 import ca.uhn.hl7v2.model.v28.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 @SuppressWarnings("unused")
77 public class RXV extends AbstractSegment {
78
79
80
81
82 public RXV(Group parent, ModelClassFactory factory) {
83 super(parent, factory);
84 init(factory);
85 }
86
87 private void init(ModelClassFactory factory) {
88 try {
89 this.add(SI.class, false, 1, 0, new Object[]{ getMessage() }, "Set ID - RXV");
90 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(917) }, "Bolus Type");
91 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Bolus Dose Amount");
92 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Bolus Dose Amount Units");
93 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Bolus Dose Volume");
94 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Bolus Dose Volume Units");
95 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(918) }, "PCA Type");
96 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "PCA Dose Amount");
97 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "PCA Dose Amount Units");
98 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "PCA Dose Amount Volume");
99 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "PCA Dose Amount Volume Units");
100 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Max Dose Amount");
101 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Max Dose Amount Units");
102 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Max Dose Amount Volume");
103 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Max Dose Amount Volume Units");
104 this.add(CQ.class, true, 1, 0, new Object[]{ getMessage() }, "Max Dose per Time");
105 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Lockout Interval");
106 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Syringe Manufacturer");
107 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Syringe Model Number");
108 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "Syringe Size");
109 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Syringe Size Units");
110 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(206) }, "Action Code");
111 } catch(HL7Exception e) {
112 log.error("Unexpected error creating RXV - this is probably a bug in the source code generator.", e);
113 }
114 }
115
116
117
118
119
120
121
122 public SI getSetIDRXV() {
123 SI retVal = this.getTypedField(1, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public SI getRxv1_SetIDRXV() {
132 SI retVal = this.getTypedField(1, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public ID getBolusType() {
143 ID retVal = this.getTypedField(2, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public ID getRxv2_BolusType() {
152 ID retVal = this.getTypedField(2, 0);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public NM getBolusDoseAmount() {
163 NM retVal = this.getTypedField(3, 0);
164 return retVal;
165 }
166
167
168
169
170
171 public NM getRxv3_BolusDoseAmount() {
172 NM retVal = this.getTypedField(3, 0);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public CWE getBolusDoseAmountUnits() {
183 CWE retVal = this.getTypedField(4, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public CWE getRxv4_BolusDoseAmountUnits() {
192 CWE retVal = this.getTypedField(4, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public NM getBolusDoseVolume() {
203 NM retVal = this.getTypedField(5, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public NM getRxv5_BolusDoseVolume() {
212 NM retVal = this.getTypedField(5, 0);
213 return retVal;
214 }
215
216
217
218
219
220
221
222 public CWE getBolusDoseVolumeUnits() {
223 CWE retVal = this.getTypedField(6, 0);
224 return retVal;
225 }
226
227
228
229
230
231 public CWE getRxv6_BolusDoseVolumeUnits() {
232 CWE retVal = this.getTypedField(6, 0);
233 return retVal;
234 }
235
236
237
238
239
240
241
242 public ID getPCAType() {
243 ID retVal = this.getTypedField(7, 0);
244 return retVal;
245 }
246
247
248
249
250
251 public ID getRxv7_PCAType() {
252 ID retVal = this.getTypedField(7, 0);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public NM getPCADoseAmount() {
263 NM retVal = this.getTypedField(8, 0);
264 return retVal;
265 }
266
267
268
269
270
271 public NM getRxv8_PCADoseAmount() {
272 NM retVal = this.getTypedField(8, 0);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public CWE getPCADoseAmountUnits() {
283 CWE retVal = this.getTypedField(9, 0);
284 return retVal;
285 }
286
287
288
289
290
291 public CWE getRxv9_PCADoseAmountUnits() {
292 CWE retVal = this.getTypedField(9, 0);
293 return retVal;
294 }
295
296
297
298
299
300
301
302 public NM getPCADoseAmountVolume() {
303 NM retVal = this.getTypedField(10, 0);
304 return retVal;
305 }
306
307
308
309
310
311 public NM getRxv10_PCADoseAmountVolume() {
312 NM retVal = this.getTypedField(10, 0);
313 return retVal;
314 }
315
316
317
318
319
320
321
322 public CWE getPCADoseAmountVolumeUnits() {
323 CWE retVal = this.getTypedField(11, 0);
324 return retVal;
325 }
326
327
328
329
330
331 public CWE getRxv11_PCADoseAmountVolumeUnits() {
332 CWE retVal = this.getTypedField(11, 0);
333 return retVal;
334 }
335
336
337
338
339
340
341
342 public NM getMaxDoseAmount() {
343 NM retVal = this.getTypedField(12, 0);
344 return retVal;
345 }
346
347
348
349
350
351 public NM getRxv12_MaxDoseAmount() {
352 NM retVal = this.getTypedField(12, 0);
353 return retVal;
354 }
355
356
357
358
359
360
361
362 public CWE getMaxDoseAmountUnits() {
363 CWE retVal = this.getTypedField(13, 0);
364 return retVal;
365 }
366
367
368
369
370
371 public CWE getRxv13_MaxDoseAmountUnits() {
372 CWE retVal = this.getTypedField(13, 0);
373 return retVal;
374 }
375
376
377
378
379
380
381
382 public NM getMaxDoseAmountVolume() {
383 NM retVal = this.getTypedField(14, 0);
384 return retVal;
385 }
386
387
388
389
390
391 public NM getRxv14_MaxDoseAmountVolume() {
392 NM retVal = this.getTypedField(14, 0);
393 return retVal;
394 }
395
396
397
398
399
400
401
402 public CWE getMaxDoseAmountVolumeUnits() {
403 CWE retVal = this.getTypedField(15, 0);
404 return retVal;
405 }
406
407
408
409
410
411 public CWE getRxv15_MaxDoseAmountVolumeUnits() {
412 CWE retVal = this.getTypedField(15, 0);
413 return retVal;
414 }
415
416
417
418
419
420
421
422 public CQ getMaxDosePerTime() {
423 CQ retVal = this.getTypedField(16, 0);
424 return retVal;
425 }
426
427
428
429
430
431 public CQ getRxv16_MaxDosePerTime() {
432 CQ retVal = this.getTypedField(16, 0);
433 return retVal;
434 }
435
436
437
438
439
440
441
442 public CQ getLockoutInterval() {
443 CQ retVal = this.getTypedField(17, 0);
444 return retVal;
445 }
446
447
448
449
450
451 public CQ getRxv17_LockoutInterval() {
452 CQ retVal = this.getTypedField(17, 0);
453 return retVal;
454 }
455
456
457
458
459
460
461
462 public CWE getSyringeManufacturer() {
463 CWE retVal = this.getTypedField(18, 0);
464 return retVal;
465 }
466
467
468
469
470
471 public CWE getRxv18_SyringeManufacturer() {
472 CWE retVal = this.getTypedField(18, 0);
473 return retVal;
474 }
475
476
477
478
479
480
481
482 public CWE getSyringeModelNumber() {
483 CWE retVal = this.getTypedField(19, 0);
484 return retVal;
485 }
486
487
488
489
490
491 public CWE getRxv19_SyringeModelNumber() {
492 CWE retVal = this.getTypedField(19, 0);
493 return retVal;
494 }
495
496
497
498
499
500
501
502 public NM getSyringeSize() {
503 NM retVal = this.getTypedField(20, 0);
504 return retVal;
505 }
506
507
508
509
510
511 public NM getRxv20_SyringeSize() {
512 NM retVal = this.getTypedField(20, 0);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public CWE getSyringeSizeUnits() {
523 CWE retVal = this.getTypedField(21, 0);
524 return retVal;
525 }
526
527
528
529
530
531 public CWE getRxv21_SyringeSizeUnits() {
532 CWE retVal = this.getTypedField(21, 0);
533 return retVal;
534 }
535
536
537
538
539
540
541
542 public ID getActionCode() {
543 ID retVal = this.getTypedField(22, 0);
544 return retVal;
545 }
546
547
548
549
550
551 public ID getRxv22_ActionCode() {
552 ID retVal = this.getTypedField(22, 0);
553 return retVal;
554 }
555
556
557
558
559
560
561 protected Type createNewTypeWithoutReflection(int field) {
562 switch (field) {
563 case 0: return new SI(getMessage());
564 case 1: return new ID(getMessage(), new Integer( 917 ));
565 case 2: return new NM(getMessage());
566 case 3: return new CWE(getMessage());
567 case 4: return new NM(getMessage());
568 case 5: return new CWE(getMessage());
569 case 6: return new ID(getMessage(), new Integer( 918 ));
570 case 7: return new NM(getMessage());
571 case 8: return new CWE(getMessage());
572 case 9: return new NM(getMessage());
573 case 10: return new CWE(getMessage());
574 case 11: return new NM(getMessage());
575 case 12: return new CWE(getMessage());
576 case 13: return new NM(getMessage());
577 case 14: return new CWE(getMessage());
578 case 15: return new CQ(getMessage());
579 case 16: return new CQ(getMessage());
580 case 17: return new CWE(getMessage());
581 case 18: return new CWE(getMessage());
582 case 19: return new NM(getMessage());
583 case 20: return new CWE(getMessage());
584 case 21: return new ID(getMessage(), new Integer( 206 ));
585 default: return null;
586 }
587 }
588
589
590 }
591