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