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.v21.segment;
35
36
37 import ca.uhn.hl7v2.model.v21.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 @SuppressWarnings("unused")
67 public class QRD extends AbstractSegment {
68
69
70
71
72 public QRD(Group parent, ModelClassFactory factory) {
73 super(parent, factory);
74 init(factory);
75 }
76
77 private void init(ModelClassFactory factory) {
78 try {
79 this.add(TS.class, true, 1, 19, new Object[]{ getMessage() }, "QUERY DATE/TIME");
80 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(106) }, "QUERY FORMAT CODE");
81 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(91) }, "QUERY PRIORITY");
82 this.add(ST.class, true, 1, 10, new Object[]{ getMessage() }, "QUERY ID");
83 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(107) }, "DEFERRED RESPONSE TYPE");
84 this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "DEFERRED RESPONSE DATE/TIME");
85 this.add(CQ.class, true, 1, 5, new Object[]{ getMessage() }, "QUANTITY LIMITED REQUEST");
86 this.add(ST.class, true, 0, 20, new Object[]{ getMessage() }, "WHO SUBJECT FILTER");
87 this.add(ID.class, true, 0, 3, new Object[]{ getMessage(), new Integer(48) }, "WHAT SUBJECT FILTER");
88 this.add(ST.class, true, 0, 20, new Object[]{ getMessage() }, "WHAT DEPARTMENT DATA CODE");
89 this.add(ST.class, false, 0, 20, new Object[]{ getMessage() }, "WHAT DATA CODE VALUE QUAL.");
90 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(108) }, "QUERY RESULTS LEVEL");
91 } catch(HL7Exception e) {
92 log.error("Unexpected error creating QRD - this is probably a bug in the source code generator.", e);
93 }
94 }
95
96
97
98
99
100
101
102 public TS getQUERYDATETIME() {
103 TS retVal = this.getTypedField(1, 0);
104 return retVal;
105 }
106
107
108
109
110
111 public TS getQrd1_QUERYDATETIME() {
112 TS retVal = this.getTypedField(1, 0);
113 return retVal;
114 }
115
116
117
118
119
120
121
122 public ID getQUERYFORMATCODE() {
123 ID retVal = this.getTypedField(2, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public ID getQrd2_QUERYFORMATCODE() {
132 ID retVal = this.getTypedField(2, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public ID getQUERYPRIORITY() {
143 ID retVal = this.getTypedField(3, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public ID getQrd3_QUERYPRIORITY() {
152 ID retVal = this.getTypedField(3, 0);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public ST getQUERYID() {
163 ST retVal = this.getTypedField(4, 0);
164 return retVal;
165 }
166
167
168
169
170
171 public ST getQrd4_QUERYID() {
172 ST retVal = this.getTypedField(4, 0);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public ID getDEFERREDRESPONSETYPE() {
183 ID retVal = this.getTypedField(5, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public ID getQrd5_DEFERREDRESPONSETYPE() {
192 ID retVal = this.getTypedField(5, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public TS getDEFERREDRESPONSEDATETIME() {
203 TS retVal = this.getTypedField(6, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public TS getQrd6_DEFERREDRESPONSEDATETIME() {
212 TS retVal = this.getTypedField(6, 0);
213 return retVal;
214 }
215
216
217
218
219
220
221
222 public CQ getQUANTITYLIMITEDREQUEST() {
223 CQ retVal = this.getTypedField(7, 0);
224 return retVal;
225 }
226
227
228
229
230
231 public CQ getQrd7_QUANTITYLIMITEDREQUEST() {
232 CQ retVal = this.getTypedField(7, 0);
233 return retVal;
234 }
235
236
237
238
239
240 public ST[] getWHOSUBJECTFILTER() {
241 ST[] retVal = this.getTypedField(8, new ST[0]);
242 return retVal;
243 }
244
245
246
247
248
249 public ST[] getQrd8_WHOSUBJECTFILTER() {
250 ST[] retVal = this.getTypedField(8, new ST[0]);
251 return retVal;
252 }
253
254
255
256
257
258
259
260 public int getWHOSUBJECTFILTERReps() {
261 return this.getReps(8);
262 }
263
264
265
266
267
268
269
270
271 public ST getWHOSUBJECTFILTER(int rep) {
272 ST retVal = this.getTypedField(8, rep);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public ST getQrd8_WHOSUBJECTFILTER(int rep) {
283 ST retVal = this.getTypedField(8, rep);
284 return retVal;
285 }
286
287
288
289
290
291
292 public int getQrd8_WHOSUBJECTFILTERReps() {
293 return this.getReps(8);
294 }
295
296
297
298
299
300
301
302
303
304 public ST insertWHOSUBJECTFILTER(int rep) throws HL7Exception {
305 return (ST) super.insertRepetition(8, rep);
306 }
307
308
309
310
311
312
313
314
315
316 public ST insertQrd8_WHOSUBJECTFILTER(int rep) throws HL7Exception {
317 return (ST) super.insertRepetition(8, rep);
318 }
319
320
321
322
323
324
325
326
327
328 public ST removeWHOSUBJECTFILTER(int rep) throws HL7Exception {
329 return (ST) super.removeRepetition(8, rep);
330 }
331
332
333
334
335
336
337
338
339
340 public ST removeQrd8_WHOSUBJECTFILTER(int rep) throws HL7Exception {
341 return (ST) super.removeRepetition(8, rep);
342 }
343
344
345
346
347
348
349 public ID[] getWHATSUBJECTFILTER() {
350 ID[] retVal = this.getTypedField(9, new ID[0]);
351 return retVal;
352 }
353
354
355
356
357
358 public ID[] getQrd9_WHATSUBJECTFILTER() {
359 ID[] retVal = this.getTypedField(9, new ID[0]);
360 return retVal;
361 }
362
363
364
365
366
367
368
369 public int getWHATSUBJECTFILTERReps() {
370 return this.getReps(9);
371 }
372
373
374
375
376
377
378
379
380 public ID getWHATSUBJECTFILTER(int rep) {
381 ID retVal = this.getTypedField(9, rep);
382 return retVal;
383 }
384
385
386
387
388
389
390
391 public ID getQrd9_WHATSUBJECTFILTER(int rep) {
392 ID retVal = this.getTypedField(9, rep);
393 return retVal;
394 }
395
396
397
398
399
400
401 public int getQrd9_WHATSUBJECTFILTERReps() {
402 return this.getReps(9);
403 }
404
405
406
407
408
409
410
411
412
413 public ID insertWHATSUBJECTFILTER(int rep) throws HL7Exception {
414 return (ID) super.insertRepetition(9, rep);
415 }
416
417
418
419
420
421
422
423
424
425 public ID insertQrd9_WHATSUBJECTFILTER(int rep) throws HL7Exception {
426 return (ID) super.insertRepetition(9, rep);
427 }
428
429
430
431
432
433
434
435
436
437 public ID removeWHATSUBJECTFILTER(int rep) throws HL7Exception {
438 return (ID) super.removeRepetition(9, rep);
439 }
440
441
442
443
444
445
446
447
448
449 public ID removeQrd9_WHATSUBJECTFILTER(int rep) throws HL7Exception {
450 return (ID) super.removeRepetition(9, rep);
451 }
452
453
454
455
456
457
458 public ST[] getWHATDEPARTMENTDATACODE() {
459 ST[] retVal = this.getTypedField(10, new ST[0]);
460 return retVal;
461 }
462
463
464
465
466
467 public ST[] getQrd10_WHATDEPARTMENTDATACODE() {
468 ST[] retVal = this.getTypedField(10, new ST[0]);
469 return retVal;
470 }
471
472
473
474
475
476
477
478 public int getWHATDEPARTMENTDATACODEReps() {
479 return this.getReps(10);
480 }
481
482
483
484
485
486
487
488
489 public ST getWHATDEPARTMENTDATACODE(int rep) {
490 ST retVal = this.getTypedField(10, rep);
491 return retVal;
492 }
493
494
495
496
497
498
499
500 public ST getQrd10_WHATDEPARTMENTDATACODE(int rep) {
501 ST retVal = this.getTypedField(10, rep);
502 return retVal;
503 }
504
505
506
507
508
509
510 public int getQrd10_WHATDEPARTMENTDATACODEReps() {
511 return this.getReps(10);
512 }
513
514
515
516
517
518
519
520
521
522 public ST insertWHATDEPARTMENTDATACODE(int rep) throws HL7Exception {
523 return (ST) super.insertRepetition(10, rep);
524 }
525
526
527
528
529
530
531
532
533
534 public ST insertQrd10_WHATDEPARTMENTDATACODE(int rep) throws HL7Exception {
535 return (ST) super.insertRepetition(10, rep);
536 }
537
538
539
540
541
542
543
544
545
546 public ST removeWHATDEPARTMENTDATACODE(int rep) throws HL7Exception {
547 return (ST) super.removeRepetition(10, rep);
548 }
549
550
551
552
553
554
555
556
557
558 public ST removeQrd10_WHATDEPARTMENTDATACODE(int rep) throws HL7Exception {
559 return (ST) super.removeRepetition(10, rep);
560 }
561
562
563
564
565
566
567 public ST[] getWHATDATACODEVALUEQUAL() {
568 ST[] retVal = this.getTypedField(11, new ST[0]);
569 return retVal;
570 }
571
572
573
574
575
576 public ST[] getQrd11_WHATDATACODEVALUEQUAL() {
577 ST[] retVal = this.getTypedField(11, new ST[0]);
578 return retVal;
579 }
580
581
582
583
584
585
586
587 public int getWHATDATACODEVALUEQUALReps() {
588 return this.getReps(11);
589 }
590
591
592
593
594
595
596
597
598 public ST getWHATDATACODEVALUEQUAL(int rep) {
599 ST retVal = this.getTypedField(11, rep);
600 return retVal;
601 }
602
603
604
605
606
607
608
609 public ST getQrd11_WHATDATACODEVALUEQUAL(int rep) {
610 ST retVal = this.getTypedField(11, rep);
611 return retVal;
612 }
613
614
615
616
617
618
619 public int getQrd11_WHATDATACODEVALUEQUALReps() {
620 return this.getReps(11);
621 }
622
623
624
625
626
627
628
629
630
631 public ST insertWHATDATACODEVALUEQUAL(int rep) throws HL7Exception {
632 return (ST) super.insertRepetition(11, rep);
633 }
634
635
636
637
638
639
640
641
642
643 public ST insertQrd11_WHATDATACODEVALUEQUAL(int rep) throws HL7Exception {
644 return (ST) super.insertRepetition(11, rep);
645 }
646
647
648
649
650
651
652
653
654
655 public ST removeWHATDATACODEVALUEQUAL(int rep) throws HL7Exception {
656 return (ST) super.removeRepetition(11, rep);
657 }
658
659
660
661
662
663
664
665
666
667 public ST removeQrd11_WHATDATACODEVALUEQUAL(int rep) throws HL7Exception {
668 return (ST) super.removeRepetition(11, rep);
669 }
670
671
672
673
674
675
676
677
678 public ID getQUERYRESULTSLEVEL() {
679 ID retVal = this.getTypedField(12, 0);
680 return retVal;
681 }
682
683
684
685
686
687 public ID getQrd12_QUERYRESULTSLEVEL() {
688 ID retVal = this.getTypedField(12, 0);
689 return retVal;
690 }
691
692
693
694
695
696
697 protected Type createNewTypeWithoutReflection(int field) {
698 switch (field) {
699 case 0: return new TS(getMessage());
700 case 1: return new ID(getMessage(), new Integer( 106 ));
701 case 2: return new ID(getMessage(), new Integer( 91 ));
702 case 3: return new ST(getMessage());
703 case 4: return new ID(getMessage(), new Integer( 107 ));
704 case 5: return new TS(getMessage());
705 case 6: return new CQ(getMessage());
706 case 7: return new ST(getMessage());
707 case 8: return new ID(getMessage(), new Integer( 48 ));
708 case 9: return new ST(getMessage());
709 case 10: return new ST(getMessage());
710 case 11: return new ID(getMessage(), new Integer( 108 ));
711 default: return null;
712 }
713 }
714
715
716 }
717