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