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