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