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