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.v24.segment;
35
36
37 import ca.uhn.hl7v2.model.v24.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 @SuppressWarnings("unused")
73 public class INV extends AbstractSegment {
74
75
76
77
78 public INV(Group parent, ModelClassFactory factory) {
79 super(parent, factory);
80 init(factory);
81 }
82
83 private void init(ModelClassFactory factory) {
84 try {
85 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Substance Identifier");
86 this.add(CE.class, true, 0, 250, new Object[]{ getMessage() }, "Substance Status");
87 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Substance Type");
88 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Inventory Container Identifier");
89 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Container Carrier Identifier");
90 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Position on Carrier");
91 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Initial Quantity");
92 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Current Quantity");
93 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Available Quantity");
94 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Consumption Quantity");
95 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Quantity Units");
96 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expiration Date/Time");
97 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "First Used Date/Time");
98 this.add(TQ.class, false, 1, 200, new Object[]{ getMessage() }, "On Board Stability Duration");
99 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Test/Fluid Identifier(s)");
100 this.add(ST.class, false, 1, 200, new Object[]{ getMessage() }, "Manufacturer Lot Number");
101 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Manufacturer Identifier");
102 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Supplier Identifier");
103 } catch(HL7Exception e) {
104 log.error("Unexpected error creating INV - this is probably a bug in the source code generator.", e);
105 }
106 }
107
108
109
110
111
112
113
114 public CE getSubstanceIdentifier() {
115 CE retVal = this.getTypedField(1, 0);
116 return retVal;
117 }
118
119
120
121
122
123 public CE getInv1_SubstanceIdentifier() {
124 CE retVal = this.getTypedField(1, 0);
125 return retVal;
126 }
127
128
129
130
131
132 public CE[] getSubstanceStatus() {
133 CE[] retVal = this.getTypedField(2, new CE[0]);
134 return retVal;
135 }
136
137
138
139
140
141 public CE[] getInv2_SubstanceStatus() {
142 CE[] retVal = this.getTypedField(2, new CE[0]);
143 return retVal;
144 }
145
146
147
148
149
150
151
152 public int getSubstanceStatusReps() {
153 return this.getReps(2);
154 }
155
156
157
158
159
160
161
162
163 public CE getSubstanceStatus(int rep) {
164 CE retVal = this.getTypedField(2, rep);
165 return retVal;
166 }
167
168
169
170
171
172
173
174 public CE getInv2_SubstanceStatus(int rep) {
175 CE retVal = this.getTypedField(2, rep);
176 return retVal;
177 }
178
179
180
181
182
183
184 public int getInv2_SubstanceStatusReps() {
185 return this.getReps(2);
186 }
187
188
189
190
191
192
193
194
195
196 public CE insertSubstanceStatus(int rep) throws HL7Exception {
197 return (CE) super.insertRepetition(2, rep);
198 }
199
200
201
202
203
204
205
206
207
208 public CE insertInv2_SubstanceStatus(int rep) throws HL7Exception {
209 return (CE) super.insertRepetition(2, rep);
210 }
211
212
213
214
215
216
217
218
219
220 public CE removeSubstanceStatus(int rep) throws HL7Exception {
221 return (CE) super.removeRepetition(2, rep);
222 }
223
224
225
226
227
228
229
230
231
232 public CE removeInv2_SubstanceStatus(int rep) throws HL7Exception {
233 return (CE) super.removeRepetition(2, rep);
234 }
235
236
237
238
239
240
241
242
243 public CE getSubstanceType() {
244 CE retVal = this.getTypedField(3, 0);
245 return retVal;
246 }
247
248
249
250
251
252 public CE getInv3_SubstanceType() {
253 CE retVal = this.getTypedField(3, 0);
254 return retVal;
255 }
256
257
258
259
260
261
262
263 public CE getInventoryContainerIdentifier() {
264 CE retVal = this.getTypedField(4, 0);
265 return retVal;
266 }
267
268
269
270
271
272 public CE getInv4_InventoryContainerIdentifier() {
273 CE retVal = this.getTypedField(4, 0);
274 return retVal;
275 }
276
277
278
279
280
281
282
283 public CE getContainerCarrierIdentifier() {
284 CE retVal = this.getTypedField(5, 0);
285 return retVal;
286 }
287
288
289
290
291
292 public CE getInv5_ContainerCarrierIdentifier() {
293 CE retVal = this.getTypedField(5, 0);
294 return retVal;
295 }
296
297
298
299
300
301
302
303 public CE getPositionOnCarrier() {
304 CE retVal = this.getTypedField(6, 0);
305 return retVal;
306 }
307
308
309
310
311
312 public CE getInv6_PositionOnCarrier() {
313 CE retVal = this.getTypedField(6, 0);
314 return retVal;
315 }
316
317
318
319
320
321
322
323 public NM getInitialQuantity() {
324 NM retVal = this.getTypedField(7, 0);
325 return retVal;
326 }
327
328
329
330
331
332 public NM getInv7_InitialQuantity() {
333 NM retVal = this.getTypedField(7, 0);
334 return retVal;
335 }
336
337
338
339
340
341
342
343 public NM getCurrentQuantity() {
344 NM retVal = this.getTypedField(8, 0);
345 return retVal;
346 }
347
348
349
350
351
352 public NM getInv8_CurrentQuantity() {
353 NM retVal = this.getTypedField(8, 0);
354 return retVal;
355 }
356
357
358
359
360
361
362
363 public NM getAvailableQuantity() {
364 NM retVal = this.getTypedField(9, 0);
365 return retVal;
366 }
367
368
369
370
371
372 public NM getInv9_AvailableQuantity() {
373 NM retVal = this.getTypedField(9, 0);
374 return retVal;
375 }
376
377
378
379
380
381
382
383 public NM getConsumptionQuantity() {
384 NM retVal = this.getTypedField(10, 0);
385 return retVal;
386 }
387
388
389
390
391
392 public NM getInv10_ConsumptionQuantity() {
393 NM retVal = this.getTypedField(10, 0);
394 return retVal;
395 }
396
397
398
399
400
401
402
403 public CE getQuantityUnits() {
404 CE retVal = this.getTypedField(11, 0);
405 return retVal;
406 }
407
408
409
410
411
412 public CE getInv11_QuantityUnits() {
413 CE retVal = this.getTypedField(11, 0);
414 return retVal;
415 }
416
417
418
419
420
421
422
423 public TS getExpirationDateTime() {
424 TS retVal = this.getTypedField(12, 0);
425 return retVal;
426 }
427
428
429
430
431
432 public TS getInv12_ExpirationDateTime() {
433 TS retVal = this.getTypedField(12, 0);
434 return retVal;
435 }
436
437
438
439
440
441
442
443 public TS getFirstUsedDateTime() {
444 TS retVal = this.getTypedField(13, 0);
445 return retVal;
446 }
447
448
449
450
451
452 public TS getInv13_FirstUsedDateTime() {
453 TS retVal = this.getTypedField(13, 0);
454 return retVal;
455 }
456
457
458
459
460
461
462
463 public TQ getOnBoardStabilityDuration() {
464 TQ retVal = this.getTypedField(14, 0);
465 return retVal;
466 }
467
468
469
470
471
472 public TQ getInv14_OnBoardStabilityDuration() {
473 TQ retVal = this.getTypedField(14, 0);
474 return retVal;
475 }
476
477
478
479
480
481 public CE[] getTestFluidIdentifierS() {
482 CE[] retVal = this.getTypedField(15, new CE[0]);
483 return retVal;
484 }
485
486
487
488
489
490 public CE[] getInv15_TestFluidIdentifierS() {
491 CE[] retVal = this.getTypedField(15, new CE[0]);
492 return retVal;
493 }
494
495
496
497
498
499
500
501 public int getTestFluidIdentifierSReps() {
502 return this.getReps(15);
503 }
504
505
506
507
508
509
510
511
512 public CE getTestFluidIdentifierS(int rep) {
513 CE retVal = this.getTypedField(15, rep);
514 return retVal;
515 }
516
517
518
519
520
521
522
523 public CE getInv15_TestFluidIdentifierS(int rep) {
524 CE retVal = this.getTypedField(15, rep);
525 return retVal;
526 }
527
528
529
530
531
532
533 public int getInv15_TestFluidIdentifierSReps() {
534 return this.getReps(15);
535 }
536
537
538
539
540
541
542
543
544
545 public CE insertTestFluidIdentifierS(int rep) throws HL7Exception {
546 return (CE) super.insertRepetition(15, rep);
547 }
548
549
550
551
552
553
554
555
556
557 public CE insertInv15_TestFluidIdentifierS(int rep) throws HL7Exception {
558 return (CE) super.insertRepetition(15, rep);
559 }
560
561
562
563
564
565
566
567
568
569 public CE removeTestFluidIdentifierS(int rep) throws HL7Exception {
570 return (CE) super.removeRepetition(15, rep);
571 }
572
573
574
575
576
577
578
579
580
581 public CE removeInv15_TestFluidIdentifierS(int rep) throws HL7Exception {
582 return (CE) super.removeRepetition(15, rep);
583 }
584
585
586
587
588
589
590
591
592 public ST getManufacturerLotNumber() {
593 ST retVal = this.getTypedField(16, 0);
594 return retVal;
595 }
596
597
598
599
600
601 public ST getInv16_ManufacturerLotNumber() {
602 ST retVal = this.getTypedField(16, 0);
603 return retVal;
604 }
605
606
607
608
609
610
611
612 public CE getManufacturerIdentifier() {
613 CE retVal = this.getTypedField(17, 0);
614 return retVal;
615 }
616
617
618
619
620
621 public CE getInv17_ManufacturerIdentifier() {
622 CE retVal = this.getTypedField(17, 0);
623 return retVal;
624 }
625
626
627
628
629
630
631
632 public CE getSupplierIdentifier() {
633 CE retVal = this.getTypedField(18, 0);
634 return retVal;
635 }
636
637
638
639
640
641 public CE getInv18_SupplierIdentifier() {
642 CE retVal = this.getTypedField(18, 0);
643 return retVal;
644 }
645
646
647
648
649
650
651 protected Type createNewTypeWithoutReflection(int field) {
652 switch (field) {
653 case 0: return new CE(getMessage());
654 case 1: return new CE(getMessage());
655 case 2: return new CE(getMessage());
656 case 3: return new CE(getMessage());
657 case 4: return new CE(getMessage());
658 case 5: return new CE(getMessage());
659 case 6: return new NM(getMessage());
660 case 7: return new NM(getMessage());
661 case 8: return new NM(getMessage());
662 case 9: return new NM(getMessage());
663 case 10: return new CE(getMessage());
664 case 11: return new TS(getMessage());
665 case 12: return new TS(getMessage());
666 case 13: return new TQ(getMessage());
667 case 14: return new CE(getMessage());
668 case 15: return new ST(getMessage());
669 case 16: return new CE(getMessage());
670 case 17: return new CE(getMessage());
671 default: return null;
672 }
673 }
674
675
676 }
677