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.v24.segment;
35
36
37 import ca.uhn.hl7v2.model.v24.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 @SuppressWarnings("unused")
67 public class ORG extends AbstractSegment {
68
69
70
71
72 public ORG(Group parent, ModelClassFactory factory) {
73 super(parent, factory);
74 init(factory);
75 }
76
77 private void init(ModelClassFactory factory) {
78 try {
79 this.add(SI.class, true, 1, 60, new Object[]{ getMessage() }, "Set ID - ORG");
80 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Organization Unit Code");
81 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Organization Unit Type Code - ORG");
82 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Primary Org Unit Indicator");
83 this.add(CX.class, false, 1, 60, new Object[]{ getMessage() }, "Practitioner Org Unit Identifier");
84 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Health Care Provider Type Code");
85 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Health Care Provider Classification Code");
86 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Health Care Provider Area of Specialization Code");
87 this.add(DR.class, false, 1, 52, new Object[]{ getMessage() }, "Effective Date Range");
88 this.add(CE.class, false, 1, 2, new Object[]{ getMessage() }, "Employment Status Code");
89 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Board Approval Indicator");
90 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Primary Care Physician Indicator");
91 } catch(HL7Exception e) {
92 log.error("Unexpected error creating ORG - this is probably a bug in the source code generator.", e);
93 }
94 }
95
96
97
98
99
100
101
102 public SI getSetIDORG() {
103 SI retVal = this.getTypedField(1, 0);
104 return retVal;
105 }
106
107
108
109
110
111 public SI getOrg1_SetIDORG() {
112 SI retVal = this.getTypedField(1, 0);
113 return retVal;
114 }
115
116
117
118
119
120
121
122 public CE getOrganizationUnitCode() {
123 CE retVal = this.getTypedField(2, 0);
124 return retVal;
125 }
126
127
128
129
130
131 public CE getOrg2_OrganizationUnitCode() {
132 CE retVal = this.getTypedField(2, 0);
133 return retVal;
134 }
135
136
137
138
139
140
141
142 public CE getOrganizationUnitTypeCodeORG() {
143 CE retVal = this.getTypedField(3, 0);
144 return retVal;
145 }
146
147
148
149
150
151 public CE getOrg3_OrganizationUnitTypeCodeORG() {
152 CE retVal = this.getTypedField(3, 0);
153 return retVal;
154 }
155
156
157
158
159
160
161
162 public ID getPrimaryOrgUnitIndicator() {
163 ID retVal = this.getTypedField(4, 0);
164 return retVal;
165 }
166
167
168
169
170
171 public ID getOrg4_PrimaryOrgUnitIndicator() {
172 ID retVal = this.getTypedField(4, 0);
173 return retVal;
174 }
175
176
177
178
179
180
181
182 public CX getPractitionerOrgUnitIdentifier() {
183 CX retVal = this.getTypedField(5, 0);
184 return retVal;
185 }
186
187
188
189
190
191 public CX getOrg5_PractitionerOrgUnitIdentifier() {
192 CX retVal = this.getTypedField(5, 0);
193 return retVal;
194 }
195
196
197
198
199
200
201
202 public CE getHealthCareProviderTypeCode() {
203 CE retVal = this.getTypedField(6, 0);
204 return retVal;
205 }
206
207
208
209
210
211 public CE getOrg6_HealthCareProviderTypeCode() {
212 CE retVal = this.getTypedField(6, 0);
213 return retVal;
214 }
215
216
217
218
219
220
221
222 public CE getHealthCareProviderClassificationCode() {
223 CE retVal = this.getTypedField(7, 0);
224 return retVal;
225 }
226
227
228
229
230
231 public CE getOrg7_HealthCareProviderClassificationCode() {
232 CE retVal = this.getTypedField(7, 0);
233 return retVal;
234 }
235
236
237
238
239
240
241
242 public CE getHealthCareProviderAreaOfSpecializationCode() {
243 CE retVal = this.getTypedField(8, 0);
244 return retVal;
245 }
246
247
248
249
250
251 public CE getOrg8_HealthCareProviderAreaOfSpecializationCode() {
252 CE retVal = this.getTypedField(8, 0);
253 return retVal;
254 }
255
256
257
258
259
260
261
262 public DR getEffectiveDateRange() {
263 DR retVal = this.getTypedField(9, 0);
264 return retVal;
265 }
266
267
268
269
270
271 public DR getOrg9_EffectiveDateRange() {
272 DR retVal = this.getTypedField(9, 0);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public CE getEmploymentStatusCode() {
283 CE retVal = this.getTypedField(10, 0);
284 return retVal;
285 }
286
287
288
289
290
291 public CE getOrg10_EmploymentStatusCode() {
292 CE retVal = this.getTypedField(10, 0);
293 return retVal;
294 }
295
296
297
298
299
300
301
302 public ID getBoardApprovalIndicator() {
303 ID retVal = this.getTypedField(11, 0);
304 return retVal;
305 }
306
307
308
309
310
311 public ID getOrg11_BoardApprovalIndicator() {
312 ID retVal = this.getTypedField(11, 0);
313 return retVal;
314 }
315
316
317
318
319
320
321
322 public ID getPrimaryCarePhysicianIndicator() {
323 ID retVal = this.getTypedField(12, 0);
324 return retVal;
325 }
326
327
328
329
330
331 public ID getOrg12_PrimaryCarePhysicianIndicator() {
332 ID retVal = this.getTypedField(12, 0);
333 return retVal;
334 }
335
336
337
338
339
340
341 protected Type createNewTypeWithoutReflection(int field) {
342 switch (field) {
343 case 0: return new SI(getMessage());
344 case 1: return new CE(getMessage());
345 case 2: return new CE(getMessage());
346 case 3: return new ID(getMessage(), new Integer( 136 ));
347 case 4: return new CX(getMessage());
348 case 5: return new CE(getMessage());
349 case 6: return new CE(getMessage());
350 case 7: return new CE(getMessage());
351 case 8: return new DR(getMessage());
352 case 9: return new CE(getMessage());
353 case 10: return new ID(getMessage(), new Integer( 136 ));
354 case 11: return new ID(getMessage(), new Integer( 136 ));
355 default: return null;
356 }
357 }
358
359
360 }
361