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.v27.segment;
35
36
37 import ca.uhn.hl7v2.model.v27.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 RF1 extends AbstractSegment {
68
69
70
71
72 public RF1(Group parent, ModelClassFactory factory) {
73 super(parent, factory);
74 init(factory);
75 }
76
77 private void init(ModelClassFactory factory) {
78 try {
79 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Status");
80 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Priority");
81 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Type");
82 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Referral Disposition");
83 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Category");
84 this.add(EI.class, true, 1, 0, new Object[]{ getMessage() }, "Originating Referral Identifier");
85 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Date");
86 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Expiration Date");
87 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Process Date");
88 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Referral Reason");
89 this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "External Referral Identifier");
90 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Documentation Completion Status");
91 } catch(HL7Exception e) {
92 log.error("Unexpected error creating RF1 - this is probably a bug in the source code generator.", e);
93 }
94 }
95
96
97
98
99
100
101
102 public CWE getReferralStatus() {
103 CWE retVal = this.getTypedField(1, 0);
104 return retVal;
105 }
106
107
108
109
110
111 public CWE getRf11_ReferralStatus() {
112 CWE retVal = this.getTypedField(1, 0);
113 return retVal;
114 }
115
116
117
118
119
120
121
122 public CWE getReferralPriority() {
123 CWE retVal = this.getTypedField(2, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public CWE getRf12_ReferralPriority() {
132 CWE retVal = this.getTypedField(2, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public CWE getReferralType() {
143 CWE retVal = this.getTypedField(3, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public CWE getRf13_ReferralType() {
152 CWE retVal = this.getTypedField(3, 0);
153 return retVal;
154 }
155
156
157
158
159
160 public CWE[] getReferralDisposition() {
161 CWE[] retVal = this.getTypedField(4, new CWE[0]);
162 return retVal;
163 }
164
165
166
167
168
169 public CWE[] getRf14_ReferralDisposition() {
170 CWE[] retVal = this.getTypedField(4, new CWE[0]);
171 return retVal;
172 }
173
174
175
176
177
178
179
180 public int getReferralDispositionReps() {
181 return this.getReps(4);
182 }
183
184
185
186
187
188
189
190
191 public CWE getReferralDisposition(int rep) {
192 CWE retVal = this.getTypedField(4, rep);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public CWE getRf14_ReferralDisposition(int rep) {
203 CWE retVal = this.getTypedField(4, rep);
204 return retVal;
205 }
206
207
208
209
210
211
212 public int getRf14_ReferralDispositionReps() {
213 return this.getReps(4);
214 }
215
216
217
218
219
220
221
222
223
224 public CWE insertReferralDisposition(int rep) throws HL7Exception {
225 return (CWE) super.insertRepetition(4, rep);
226 }
227
228
229
230
231
232
233
234
235
236 public CWE insertRf14_ReferralDisposition(int rep) throws HL7Exception {
237 return (CWE) super.insertRepetition(4, rep);
238 }
239
240
241
242
243
244
245
246
247
248 public CWE removeReferralDisposition(int rep) throws HL7Exception {
249 return (CWE) super.removeRepetition(4, rep);
250 }
251
252
253
254
255
256
257
258
259
260 public CWE removeRf14_ReferralDisposition(int rep) throws HL7Exception {
261 return (CWE) super.removeRepetition(4, rep);
262 }
263
264
265
266
267
268
269
270
271 public CWE getReferralCategory() {
272 CWE retVal = this.getTypedField(5, 0);
273 return retVal;
274 }
275
276
277
278
279
280 public CWE getRf15_ReferralCategory() {
281 CWE retVal = this.getTypedField(5, 0);
282 return retVal;
283 }
284
285
286
287
288
289
290
291 public EI getOriginatingReferralIdentifier() {
292 EI retVal = this.getTypedField(6, 0);
293 return retVal;
294 }
295
296
297
298
299
300 public EI getRf16_OriginatingReferralIdentifier() {
301 EI retVal = this.getTypedField(6, 0);
302 return retVal;
303 }
304
305
306
307
308
309
310
311 public DTM getEffectiveDate() {
312 DTM retVal = this.getTypedField(7, 0);
313 return retVal;
314 }
315
316
317
318
319
320 public DTM getRf17_EffectiveDate() {
321 DTM retVal = this.getTypedField(7, 0);
322 return retVal;
323 }
324
325
326
327
328
329
330
331 public DTM getExpirationDate() {
332 DTM retVal = this.getTypedField(8, 0);
333 return retVal;
334 }
335
336
337
338
339
340 public DTM getRf18_ExpirationDate() {
341 DTM retVal = this.getTypedField(8, 0);
342 return retVal;
343 }
344
345
346
347
348
349
350
351 public DTM getProcessDate() {
352 DTM retVal = this.getTypedField(9, 0);
353 return retVal;
354 }
355
356
357
358
359
360 public DTM getRf19_ProcessDate() {
361 DTM retVal = this.getTypedField(9, 0);
362 return retVal;
363 }
364
365
366
367
368
369 public CWE[] getReferralReason() {
370 CWE[] retVal = this.getTypedField(10, new CWE[0]);
371 return retVal;
372 }
373
374
375
376
377
378 public CWE[] getRf110_ReferralReason() {
379 CWE[] retVal = this.getTypedField(10, new CWE[0]);
380 return retVal;
381 }
382
383
384
385
386
387
388
389 public int getReferralReasonReps() {
390 return this.getReps(10);
391 }
392
393
394
395
396
397
398
399
400 public CWE getReferralReason(int rep) {
401 CWE retVal = this.getTypedField(10, rep);
402 return retVal;
403 }
404
405
406
407
408
409
410
411 public CWE getRf110_ReferralReason(int rep) {
412 CWE retVal = this.getTypedField(10, rep);
413 return retVal;
414 }
415
416
417
418
419
420
421 public int getRf110_ReferralReasonReps() {
422 return this.getReps(10);
423 }
424
425
426
427
428
429
430
431
432
433 public CWE insertReferralReason(int rep) throws HL7Exception {
434 return (CWE) super.insertRepetition(10, rep);
435 }
436
437
438
439
440
441
442
443
444
445 public CWE insertRf110_ReferralReason(int rep) throws HL7Exception {
446 return (CWE) super.insertRepetition(10, rep);
447 }
448
449
450
451
452
453
454
455
456
457 public CWE removeReferralReason(int rep) throws HL7Exception {
458 return (CWE) super.removeRepetition(10, rep);
459 }
460
461
462
463
464
465
466
467
468
469 public CWE removeRf110_ReferralReason(int rep) throws HL7Exception {
470 return (CWE) super.removeRepetition(10, rep);
471 }
472
473
474
475
476
477
478 public EI[] getExternalReferralIdentifier() {
479 EI[] retVal = this.getTypedField(11, new EI[0]);
480 return retVal;
481 }
482
483
484
485
486
487 public EI[] getRf111_ExternalReferralIdentifier() {
488 EI[] retVal = this.getTypedField(11, new EI[0]);
489 return retVal;
490 }
491
492
493
494
495
496
497
498 public int getExternalReferralIdentifierReps() {
499 return this.getReps(11);
500 }
501
502
503
504
505
506
507
508
509 public EI getExternalReferralIdentifier(int rep) {
510 EI retVal = this.getTypedField(11, rep);
511 return retVal;
512 }
513
514
515
516
517
518
519
520 public EI getRf111_ExternalReferralIdentifier(int rep) {
521 EI retVal = this.getTypedField(11, rep);
522 return retVal;
523 }
524
525
526
527
528
529
530 public int getRf111_ExternalReferralIdentifierReps() {
531 return this.getReps(11);
532 }
533
534
535
536
537
538
539
540
541
542 public EI insertExternalReferralIdentifier(int rep) throws HL7Exception {
543 return (EI) super.insertRepetition(11, rep);
544 }
545
546
547
548
549
550
551
552
553
554 public EI insertRf111_ExternalReferralIdentifier(int rep) throws HL7Exception {
555 return (EI) super.insertRepetition(11, rep);
556 }
557
558
559
560
561
562
563
564
565
566 public EI removeExternalReferralIdentifier(int rep) throws HL7Exception {
567 return (EI) super.removeRepetition(11, rep);
568 }
569
570
571
572
573
574
575
576
577
578 public EI removeRf111_ExternalReferralIdentifier(int rep) throws HL7Exception {
579 return (EI) super.removeRepetition(11, rep);
580 }
581
582
583
584
585
586
587
588
589 public CWE getReferralDocumentationCompletionStatus() {
590 CWE retVal = this.getTypedField(12, 0);
591 return retVal;
592 }
593
594
595
596
597
598 public CWE getRf112_ReferralDocumentationCompletionStatus() {
599 CWE retVal = this.getTypedField(12, 0);
600 return retVal;
601 }
602
603
604
605
606
607
608 protected Type createNewTypeWithoutReflection(int field) {
609 switch (field) {
610 case 0: return new CWE(getMessage());
611 case 1: return new CWE(getMessage());
612 case 2: return new CWE(getMessage());
613 case 3: return new CWE(getMessage());
614 case 4: return new CWE(getMessage());
615 case 5: return new EI(getMessage());
616 case 6: return new DTM(getMessage());
617 case 7: return new DTM(getMessage());
618 case 8: return new DTM(getMessage());
619 case 9: return new CWE(getMessage());
620 case 10: return new EI(getMessage());
621 case 11: return new CWE(getMessage());
622 default: return null;
623 }
624 }
625
626
627 }
628