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 @SuppressWarnings("unused")
59 public class CDO extends AbstractSegment {
60
61
62
63
64 public CDO(Group parent, ModelClassFactory factory) {
65 super(parent, factory);
66 init(factory);
67 }
68
69 private void init(ModelClassFactory factory) {
70 try {
71 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - CDO");
72 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(206) }, "Action Code");
73 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Cumulative Dosage Limit");
74 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Cumulative Dosage Limit Time Interval");
75 } catch(HL7Exception e) {
76 log.error("Unexpected error creating CDO - this is probably a bug in the source code generator.", e);
77 }
78 }
79
80
81
82
83
84
85
86 public SI getSetIDCDO() {
87 SI retVal = this.getTypedField(1, 0);
88 return retVal;
89 }
90
91
92
93
94
95 public SI getCdo1_SetIDCDO() {
96 SI retVal = this.getTypedField(1, 0);
97 return retVal;
98 }
99
100
101
102
103
104
105
106 public ID getActionCode() {
107 ID retVal = this.getTypedField(2, 0);
108 return retVal;
109 }
110
111
112
113
114
115 public ID getCdo2_ActionCode() {
116 ID retVal = this.getTypedField(2, 0);
117 return retVal;
118 }
119
120
121
122
123
124
125
126 public CQ getCumulativeDosageLimit() {
127 CQ retVal = this.getTypedField(3, 0);
128 return retVal;
129 }
130
131
132
133
134
135 public CQ getCdo3_CumulativeDosageLimit() {
136 CQ retVal = this.getTypedField(3, 0);
137 return retVal;
138 }
139
140
141
142
143
144
145
146 public CQ getCumulativeDosageLimitTimeInterval() {
147 CQ retVal = this.getTypedField(4, 0);
148 return retVal;
149 }
150
151
152
153
154
155 public CQ getCdo4_CumulativeDosageLimitTimeInterval() {
156 CQ retVal = this.getTypedField(4, 0);
157 return retVal;
158 }
159
160
161
162
163
164
165 protected Type createNewTypeWithoutReflection(int field) {
166 switch (field) {
167 case 0: return new SI(getMessage());
168 case 1: return new ID(getMessage(), new Integer( 206 ));
169 case 2: return new CQ(getMessage());
170 case 3: return new CQ(getMessage());
171 default: return null;
172 }
173 }
174
175
176 }
177