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 @SuppressWarnings("unused")
76 public class BPX extends AbstractSegment {
77
78
79
80
81 public BPX(Group parent, ModelClassFactory factory) {
82 super(parent, factory);
83 init(factory);
84 }
85
86 private void init(ModelClassFactory factory) {
87 try {
88 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - BPX");
89 this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "BP Dispense Status");
90 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(511) }, "BP Status");
91 this.add(DTM.class, true, 1, 0, new Object[]{ getMessage() }, "BP Date/Time of Status");
92 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "BC Donation ID");
93 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "BC Component");
94 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "BC Donation Type / Intended Use");
95 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "CP Commercial Product");
96 this.add(XON.class, false, 1, 0, new Object[]{ getMessage() }, "CP Manufacturer");
97 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "CP Lot Number");
98 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "BP Blood Group");
99 this.add(CNE.class, false, 0, 0, new Object[]{ getMessage() }, "BC Special Testing");
100 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "BP Expiration Date/Time");
101 this.add(NM.class, true, 1, 0, new Object[]{ getMessage() }, "BP Quantity");
102 this.add(NM.class, false, 1, 0, new Object[]{ getMessage() }, "BP Amount");
103 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "BP Units");
104 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "BP Unique ID");
105 this.add(PL.class, false, 1, 0, new Object[]{ getMessage() }, "BP Actual Dispensed To Location");
106 this.add(XAD.class, false, 1, 0, new Object[]{ getMessage() }, "BP Actual Dispensed To Address");
107 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "BP Dispensed to Receiver");
108 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "BP Dispensing Individual");
109 } catch(HL7Exception e) {
110 log.error("Unexpected error creating BPX - this is probably a bug in the source code generator.", e);
111 }
112 }
113
114
115
116
117
118
119
120 public SI getSetIDBPX() {
121 SI retVal = this.getTypedField(1, 0);
122 return retVal;
123 }
124
125
126
127
128
129 public SI getBpx1_SetIDBPX() {
130 SI retVal = this.getTypedField(1, 0);
131 return retVal;
132 }
133
134
135
136
137
138
139
140 public CWE getBPDispenseStatus() {
141 CWE retVal = this.getTypedField(2, 0);
142 return retVal;
143 }
144
145
146
147
148
149 public CWE getBpx2_BPDispenseStatus() {
150 CWE retVal = this.getTypedField(2, 0);
151 return retVal;
152 }
153
154
155
156
157
158
159
160 public ID getBPStatus() {
161 ID retVal = this.getTypedField(3, 0);
162 return retVal;
163 }
164
165
166
167
168
169 public ID getBpx3_BPStatus() {
170 ID retVal = this.getTypedField(3, 0);
171 return retVal;
172 }
173
174
175
176
177
178
179
180 public DTM getBPDateTimeOfStatus() {
181 DTM retVal = this.getTypedField(4, 0);
182 return retVal;
183 }
184
185
186
187
188
189 public DTM getBpx4_BPDateTimeOfStatus() {
190 DTM retVal = this.getTypedField(4, 0);
191 return retVal;
192 }
193
194
195
196
197
198
199
200 public EI getBCDonationID() {
201 EI retVal = this.getTypedField(5, 0);
202 return retVal;
203 }
204
205
206
207
208
209 public EI getBpx5_BCDonationID() {
210 EI retVal = this.getTypedField(5, 0);
211 return retVal;
212 }
213
214
215
216
217
218
219
220 public CNE getBCComponent() {
221 CNE retVal = this.getTypedField(6, 0);
222 return retVal;
223 }
224
225
226
227
228
229 public CNE getBpx6_BCComponent() {
230 CNE retVal = this.getTypedField(6, 0);
231 return retVal;
232 }
233
234
235
236
237
238
239
240 public CNE getBCDonationTypeIntendedUse() {
241 CNE retVal = this.getTypedField(7, 0);
242 return retVal;
243 }
244
245
246
247
248
249 public CNE getBpx7_BCDonationTypeIntendedUse() {
250 CNE retVal = this.getTypedField(7, 0);
251 return retVal;
252 }
253
254
255
256
257
258
259
260 public CWE getCPCommercialProduct() {
261 CWE retVal = this.getTypedField(8, 0);
262 return retVal;
263 }
264
265
266
267
268
269 public CWE getBpx8_CPCommercialProduct() {
270 CWE retVal = this.getTypedField(8, 0);
271 return retVal;
272 }
273
274
275
276
277
278
279
280 public XON getCPManufacturer() {
281 XON retVal = this.getTypedField(9, 0);
282 return retVal;
283 }
284
285
286
287
288
289 public XON getBpx9_CPManufacturer() {
290 XON retVal = this.getTypedField(9, 0);
291 return retVal;
292 }
293
294
295
296
297
298
299
300 public EI getCPLotNumber() {
301 EI retVal = this.getTypedField(10, 0);
302 return retVal;
303 }
304
305
306
307
308
309 public EI getBpx10_CPLotNumber() {
310 EI retVal = this.getTypedField(10, 0);
311 return retVal;
312 }
313
314
315
316
317
318
319
320 public CNE getBPBloodGroup() {
321 CNE retVal = this.getTypedField(11, 0);
322 return retVal;
323 }
324
325
326
327
328
329 public CNE getBpx11_BPBloodGroup() {
330 CNE retVal = this.getTypedField(11, 0);
331 return retVal;
332 }
333
334
335
336
337
338 public CNE[] getBCSpecialTesting() {
339 CNE[] retVal = this.getTypedField(12, new CNE[0]);
340 return retVal;
341 }
342
343
344
345
346
347 public CNE[] getBpx12_BCSpecialTesting() {
348 CNE[] retVal = this.getTypedField(12, new CNE[0]);
349 return retVal;
350 }
351
352
353
354
355
356
357
358 public int getBCSpecialTestingReps() {
359 return this.getReps(12);
360 }
361
362
363
364
365
366
367
368
369 public CNE getBCSpecialTesting(int rep) {
370 CNE retVal = this.getTypedField(12, rep);
371 return retVal;
372 }
373
374
375
376
377
378
379
380 public CNE getBpx12_BCSpecialTesting(int rep) {
381 CNE retVal = this.getTypedField(12, rep);
382 return retVal;
383 }
384
385
386
387
388
389
390 public int getBpx12_BCSpecialTestingReps() {
391 return this.getReps(12);
392 }
393
394
395
396
397
398
399
400
401
402 public CNE insertBCSpecialTesting(int rep) throws HL7Exception {
403 return (CNE) super.insertRepetition(12, rep);
404 }
405
406
407
408
409
410
411
412
413
414 public CNE insertBpx12_BCSpecialTesting(int rep) throws HL7Exception {
415 return (CNE) super.insertRepetition(12, rep);
416 }
417
418
419
420
421
422
423
424
425
426 public CNE removeBCSpecialTesting(int rep) throws HL7Exception {
427 return (CNE) super.removeRepetition(12, rep);
428 }
429
430
431
432
433
434
435
436
437
438 public CNE removeBpx12_BCSpecialTesting(int rep) throws HL7Exception {
439 return (CNE) super.removeRepetition(12, rep);
440 }
441
442
443
444
445
446
447
448
449 public DTM getBPExpirationDateTime() {
450 DTM retVal = this.getTypedField(13, 0);
451 return retVal;
452 }
453
454
455
456
457
458 public DTM getBpx13_BPExpirationDateTime() {
459 DTM retVal = this.getTypedField(13, 0);
460 return retVal;
461 }
462
463
464
465
466
467
468
469 public NM getBPQuantity() {
470 NM retVal = this.getTypedField(14, 0);
471 return retVal;
472 }
473
474
475
476
477
478 public NM getBpx14_BPQuantity() {
479 NM retVal = this.getTypedField(14, 0);
480 return retVal;
481 }
482
483
484
485
486
487
488
489 public NM getBPAmount() {
490 NM retVal = this.getTypedField(15, 0);
491 return retVal;
492 }
493
494
495
496
497
498 public NM getBpx15_BPAmount() {
499 NM retVal = this.getTypedField(15, 0);
500 return retVal;
501 }
502
503
504
505
506
507
508
509 public CWE getBPUnits() {
510 CWE retVal = this.getTypedField(16, 0);
511 return retVal;
512 }
513
514
515
516
517
518 public CWE getBpx16_BPUnits() {
519 CWE retVal = this.getTypedField(16, 0);
520 return retVal;
521 }
522
523
524
525
526
527
528
529 public EI getBPUniqueID() {
530 EI retVal = this.getTypedField(17, 0);
531 return retVal;
532 }
533
534
535
536
537
538 public EI getBpx17_BPUniqueID() {
539 EI retVal = this.getTypedField(17, 0);
540 return retVal;
541 }
542
543
544
545
546
547
548
549 public PL getBPActualDispensedToLocation() {
550 PL retVal = this.getTypedField(18, 0);
551 return retVal;
552 }
553
554
555
556
557
558 public PL getBpx18_BPActualDispensedToLocation() {
559 PL retVal = this.getTypedField(18, 0);
560 return retVal;
561 }
562
563
564
565
566
567
568
569 public XAD getBPActualDispensedToAddress() {
570 XAD retVal = this.getTypedField(19, 0);
571 return retVal;
572 }
573
574
575
576
577
578 public XAD getBpx19_BPActualDispensedToAddress() {
579 XAD retVal = this.getTypedField(19, 0);
580 return retVal;
581 }
582
583
584
585
586
587
588
589 public XCN getBPDispensedToReceiver() {
590 XCN retVal = this.getTypedField(20, 0);
591 return retVal;
592 }
593
594
595
596
597
598 public XCN getBpx20_BPDispensedToReceiver() {
599 XCN retVal = this.getTypedField(20, 0);
600 return retVal;
601 }
602
603
604
605
606
607
608
609 public XCN getBPDispensingIndividual() {
610 XCN retVal = this.getTypedField(21, 0);
611 return retVal;
612 }
613
614
615
616
617
618 public XCN getBpx21_BPDispensingIndividual() {
619 XCN retVal = this.getTypedField(21, 0);
620 return retVal;
621 }
622
623
624
625
626
627
628 protected Type createNewTypeWithoutReflection(int field) {
629 switch (field) {
630 case 0: return new SI(getMessage());
631 case 1: return new CWE(getMessage());
632 case 2: return new ID(getMessage(), new Integer( 511 ));
633 case 3: return new DTM(getMessage());
634 case 4: return new EI(getMessage());
635 case 5: return new CNE(getMessage());
636 case 6: return new CNE(getMessage());
637 case 7: return new CWE(getMessage());
638 case 8: return new XON(getMessage());
639 case 9: return new EI(getMessage());
640 case 10: return new CNE(getMessage());
641 case 11: return new CNE(getMessage());
642 case 12: return new DTM(getMessage());
643 case 13: return new NM(getMessage());
644 case 14: return new NM(getMessage());
645 case 15: return new CWE(getMessage());
646 case 16: return new EI(getMessage());
647 case 17: return new PL(getMessage());
648 case 18: return new XAD(getMessage());
649 case 19: return new XCN(getMessage());
650 case 20: return new XCN(getMessage());
651 default: return null;
652 }
653 }
654
655
656 }
657