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.v251.segment;
35
36
37 import ca.uhn.hl7v2.model.v251.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
74
75 @SuppressWarnings("unused")
76 public class GOL extends AbstractSegment {
77
78
79
80
81 public GOL(Group parent, ModelClassFactory factory) {
82 super(parent, factory);
83 init(factory);
84 }
85
86 private void init(ModelClassFactory factory) {
87 try {
88 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(287) }, "Action Code");
89 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Action Date/Time");
90 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Goal ID");
91 this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Goal Instance ID");
92 this.add(EI.class, false, 1, 60, new Object[]{ getMessage() }, "Episode of Care ID");
93 this.add(NM.class, false, 1, 60, new Object[]{ getMessage() }, "Goal List Priority");
94 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Goal Established Date/Time");
95 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Expected Goal Achieve Date/Time");
96 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Goal Classification");
97 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Goal Management Discipline");
98 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Current Goal Review Status");
99 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Current Goal Review Date/Time");
100 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Next Goal Review Date/Time");
101 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Previous Goal Review Date/Time");
102 this.add(TQ.class, false, 1, 200, new Object[]{ getMessage() }, "Goal Review Interval");
103 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Goal Evaluation");
104 this.add(ST.class, false, 0, 300, new Object[]{ getMessage() }, "Goal Evaluation Comment");
105 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Goal Life Cycle Status");
106 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Goal Life Cycle Status Date/Time");
107 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Goal Target Type");
108 this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Goal Target Name");
109 } catch(HL7Exception e) {
110 log.error("Unexpected error creating GOL - this is probably a bug in the source code generator.", e);
111 }
112 }
113
114
115
116
117
118
119
120 public ID getActionCode() {
121 ID retVal = this.getTypedField(1, 0);
122 return retVal;
123 }
124
125
126
127
128
129 public ID getGol1_ActionCode() {
130 ID retVal = this.getTypedField(1, 0);
131 return retVal;
132 }
133
134
135
136
137
138
139
140 public TS getActionDateTime() {
141 TS retVal = this.getTypedField(2, 0);
142 return retVal;
143 }
144
145
146
147
148
149 public TS getGol2_ActionDateTime() {
150 TS retVal = this.getTypedField(2, 0);
151 return retVal;
152 }
153
154
155
156
157
158
159
160 public CE getGoalID() {
161 CE retVal = this.getTypedField(3, 0);
162 return retVal;
163 }
164
165
166
167
168
169 public CE getGol3_GoalID() {
170 CE retVal = this.getTypedField(3, 0);
171 return retVal;
172 }
173
174
175
176
177
178
179
180 public EI getGoalInstanceID() {
181 EI retVal = this.getTypedField(4, 0);
182 return retVal;
183 }
184
185
186
187
188
189 public EI getGol4_GoalInstanceID() {
190 EI retVal = this.getTypedField(4, 0);
191 return retVal;
192 }
193
194
195
196
197
198
199
200 public EI getEpisodeOfCareID() {
201 EI retVal = this.getTypedField(5, 0);
202 return retVal;
203 }
204
205
206
207
208
209 public EI getGol5_EpisodeOfCareID() {
210 EI retVal = this.getTypedField(5, 0);
211 return retVal;
212 }
213
214
215
216
217
218
219
220 public NM getGoalListPriority() {
221 NM retVal = this.getTypedField(6, 0);
222 return retVal;
223 }
224
225
226
227
228
229 public NM getGol6_GoalListPriority() {
230 NM retVal = this.getTypedField(6, 0);
231 return retVal;
232 }
233
234
235
236
237
238
239
240 public TS getGoalEstablishedDateTime() {
241 TS retVal = this.getTypedField(7, 0);
242 return retVal;
243 }
244
245
246
247
248
249 public TS getGol7_GoalEstablishedDateTime() {
250 TS retVal = this.getTypedField(7, 0);
251 return retVal;
252 }
253
254
255
256
257
258
259
260 public TS getExpectedGoalAchieveDateTime() {
261 TS retVal = this.getTypedField(8, 0);
262 return retVal;
263 }
264
265
266
267
268
269 public TS getGol8_ExpectedGoalAchieveDateTime() {
270 TS retVal = this.getTypedField(8, 0);
271 return retVal;
272 }
273
274
275
276
277
278
279
280 public CE getGoalClassification() {
281 CE retVal = this.getTypedField(9, 0);
282 return retVal;
283 }
284
285
286
287
288
289 public CE getGol9_GoalClassification() {
290 CE retVal = this.getTypedField(9, 0);
291 return retVal;
292 }
293
294
295
296
297
298
299
300 public CE getGoalManagementDiscipline() {
301 CE retVal = this.getTypedField(10, 0);
302 return retVal;
303 }
304
305
306
307
308
309 public CE getGol10_GoalManagementDiscipline() {
310 CE retVal = this.getTypedField(10, 0);
311 return retVal;
312 }
313
314
315
316
317
318
319
320 public CE getCurrentGoalReviewStatus() {
321 CE retVal = this.getTypedField(11, 0);
322 return retVal;
323 }
324
325
326
327
328
329 public CE getGol11_CurrentGoalReviewStatus() {
330 CE retVal = this.getTypedField(11, 0);
331 return retVal;
332 }
333
334
335
336
337
338
339
340 public TS getCurrentGoalReviewDateTime() {
341 TS retVal = this.getTypedField(12, 0);
342 return retVal;
343 }
344
345
346
347
348
349 public TS getGol12_CurrentGoalReviewDateTime() {
350 TS retVal = this.getTypedField(12, 0);
351 return retVal;
352 }
353
354
355
356
357
358
359
360 public TS getNextGoalReviewDateTime() {
361 TS retVal = this.getTypedField(13, 0);
362 return retVal;
363 }
364
365
366
367
368
369 public TS getGol13_NextGoalReviewDateTime() {
370 TS retVal = this.getTypedField(13, 0);
371 return retVal;
372 }
373
374
375
376
377
378
379
380 public TS getPreviousGoalReviewDateTime() {
381 TS retVal = this.getTypedField(14, 0);
382 return retVal;
383 }
384
385
386
387
388
389 public TS getGol14_PreviousGoalReviewDateTime() {
390 TS retVal = this.getTypedField(14, 0);
391 return retVal;
392 }
393
394
395
396
397
398
399
400 public TQ getGoalReviewInterval() {
401 TQ retVal = this.getTypedField(15, 0);
402 return retVal;
403 }
404
405
406
407
408
409 public TQ getGol15_GoalReviewInterval() {
410 TQ retVal = this.getTypedField(15, 0);
411 return retVal;
412 }
413
414
415
416
417
418
419
420 public CE getGoalEvaluation() {
421 CE retVal = this.getTypedField(16, 0);
422 return retVal;
423 }
424
425
426
427
428
429 public CE getGol16_GoalEvaluation() {
430 CE retVal = this.getTypedField(16, 0);
431 return retVal;
432 }
433
434
435
436
437
438 public ST[] getGoalEvaluationComment() {
439 ST[] retVal = this.getTypedField(17, new ST[0]);
440 return retVal;
441 }
442
443
444
445
446
447 public ST[] getGol17_GoalEvaluationComment() {
448 ST[] retVal = this.getTypedField(17, new ST[0]);
449 return retVal;
450 }
451
452
453
454
455
456
457
458 public int getGoalEvaluationCommentReps() {
459 return this.getReps(17);
460 }
461
462
463
464
465
466
467
468
469 public ST getGoalEvaluationComment(int rep) {
470 ST retVal = this.getTypedField(17, rep);
471 return retVal;
472 }
473
474
475
476
477
478
479
480 public ST getGol17_GoalEvaluationComment(int rep) {
481 ST retVal = this.getTypedField(17, rep);
482 return retVal;
483 }
484
485
486
487
488
489
490 public int getGol17_GoalEvaluationCommentReps() {
491 return this.getReps(17);
492 }
493
494
495
496
497
498
499
500
501
502 public ST insertGoalEvaluationComment(int rep) throws HL7Exception {
503 return (ST) super.insertRepetition(17, rep);
504 }
505
506
507
508
509
510
511
512
513
514 public ST insertGol17_GoalEvaluationComment(int rep) throws HL7Exception {
515 return (ST) super.insertRepetition(17, rep);
516 }
517
518
519
520
521
522
523
524
525
526 public ST removeGoalEvaluationComment(int rep) throws HL7Exception {
527 return (ST) super.removeRepetition(17, rep);
528 }
529
530
531
532
533
534
535
536
537
538 public ST removeGol17_GoalEvaluationComment(int rep) throws HL7Exception {
539 return (ST) super.removeRepetition(17, rep);
540 }
541
542
543
544
545
546
547
548
549 public CE getGoalLifeCycleStatus() {
550 CE retVal = this.getTypedField(18, 0);
551 return retVal;
552 }
553
554
555
556
557
558 public CE getGol18_GoalLifeCycleStatus() {
559 CE retVal = this.getTypedField(18, 0);
560 return retVal;
561 }
562
563
564
565
566
567
568
569 public TS getGoalLifeCycleStatusDateTime() {
570 TS retVal = this.getTypedField(19, 0);
571 return retVal;
572 }
573
574
575
576
577
578 public TS getGol19_GoalLifeCycleStatusDateTime() {
579 TS retVal = this.getTypedField(19, 0);
580 return retVal;
581 }
582
583
584
585
586
587 public CE[] getGoalTargetType() {
588 CE[] retVal = this.getTypedField(20, new CE[0]);
589 return retVal;
590 }
591
592
593
594
595
596 public CE[] getGol20_GoalTargetType() {
597 CE[] retVal = this.getTypedField(20, new CE[0]);
598 return retVal;
599 }
600
601
602
603
604
605
606
607 public int getGoalTargetTypeReps() {
608 return this.getReps(20);
609 }
610
611
612
613
614
615
616
617
618 public CE getGoalTargetType(int rep) {
619 CE retVal = this.getTypedField(20, rep);
620 return retVal;
621 }
622
623
624
625
626
627
628
629 public CE getGol20_GoalTargetType(int rep) {
630 CE retVal = this.getTypedField(20, rep);
631 return retVal;
632 }
633
634
635
636
637
638
639 public int getGol20_GoalTargetTypeReps() {
640 return this.getReps(20);
641 }
642
643
644
645
646
647
648
649
650
651 public CE insertGoalTargetType(int rep) throws HL7Exception {
652 return (CE) super.insertRepetition(20, rep);
653 }
654
655
656
657
658
659
660
661
662
663 public CE insertGol20_GoalTargetType(int rep) throws HL7Exception {
664 return (CE) super.insertRepetition(20, rep);
665 }
666
667
668
669
670
671
672
673
674
675 public CE removeGoalTargetType(int rep) throws HL7Exception {
676 return (CE) super.removeRepetition(20, rep);
677 }
678
679
680
681
682
683
684
685
686
687 public CE removeGol20_GoalTargetType(int rep) throws HL7Exception {
688 return (CE) super.removeRepetition(20, rep);
689 }
690
691
692
693
694
695
696 public XPN[] getGoalTargetName() {
697 XPN[] retVal = this.getTypedField(21, new XPN[0]);
698 return retVal;
699 }
700
701
702
703
704
705 public XPN[] getGol21_GoalTargetName() {
706 XPN[] retVal = this.getTypedField(21, new XPN[0]);
707 return retVal;
708 }
709
710
711
712
713
714
715
716 public int getGoalTargetNameReps() {
717 return this.getReps(21);
718 }
719
720
721
722
723
724
725
726
727 public XPN getGoalTargetName(int rep) {
728 XPN retVal = this.getTypedField(21, rep);
729 return retVal;
730 }
731
732
733
734
735
736
737
738 public XPN getGol21_GoalTargetName(int rep) {
739 XPN retVal = this.getTypedField(21, rep);
740 return retVal;
741 }
742
743
744
745
746
747
748 public int getGol21_GoalTargetNameReps() {
749 return this.getReps(21);
750 }
751
752
753
754
755
756
757
758
759
760 public XPN insertGoalTargetName(int rep) throws HL7Exception {
761 return (XPN) super.insertRepetition(21, rep);
762 }
763
764
765
766
767
768
769
770
771
772 public XPN insertGol21_GoalTargetName(int rep) throws HL7Exception {
773 return (XPN) super.insertRepetition(21, rep);
774 }
775
776
777
778
779
780
781
782
783
784 public XPN removeGoalTargetName(int rep) throws HL7Exception {
785 return (XPN) super.removeRepetition(21, rep);
786 }
787
788
789
790
791
792
793
794
795
796 public XPN removeGol21_GoalTargetName(int rep) throws HL7Exception {
797 return (XPN) super.removeRepetition(21, rep);
798 }
799
800
801
802
803
804
805
806 protected Type createNewTypeWithoutReflection(int field) {
807 switch (field) {
808 case 0: return new ID(getMessage(), new Integer( 287 ));
809 case 1: return new TS(getMessage());
810 case 2: return new CE(getMessage());
811 case 3: return new EI(getMessage());
812 case 4: return new EI(getMessage());
813 case 5: return new NM(getMessage());
814 case 6: return new TS(getMessage());
815 case 7: return new TS(getMessage());
816 case 8: return new CE(getMessage());
817 case 9: return new CE(getMessage());
818 case 10: return new CE(getMessage());
819 case 11: return new TS(getMessage());
820 case 12: return new TS(getMessage());
821 case 13: return new TS(getMessage());
822 case 14: return new TQ(getMessage());
823 case 15: return new CE(getMessage());
824 case 16: return new ST(getMessage());
825 case 17: return new CE(getMessage());
826 case 18: return new TS(getMessage());
827 case 19: return new CE(getMessage());
828 case 20: return new XPN(getMessage());
829 default: return null;
830 }
831 }
832
833
834 }
835