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.v27.segment;
35  
36  
37  import ca.uhn.hl7v2.model.v27.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  @SuppressWarnings("unused")
68  public class ORG extends AbstractSegment {
69  
70      
71  
72  
73      public ORG(Group parent, ModelClassFactory factory) {
74         super(parent, factory);
75         init(factory);
76      }
77  
78      private void init(ModelClassFactory factory) {
79         try {
80                                    this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - ORG");
81                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Organization Unit Code");
82                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Organization Unit Type Code");
83                                                this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Primary Org Unit Indicator");
84                                    this.add(CX.class, false, 1, 0, new Object[]{ getMessage() }, "Practitioner Org Unit Identifier");
85                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Health Care Provider Type Code");
86                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Health Care Provider Classification Code");
87                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Health Care Provider Area of Specialization Code");
88                                    this.add(DR.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Date Range");
89                                    this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Employment Status Code");
90                                                this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Board Approval Indicator");
91                                                this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Primary Care Physician Indicator");
92                                    this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Cost Center Code");
93         } catch(HL7Exception e) {
94            log.error("Unexpected error creating ORG - this is probably a bug in the source code generator.", e);
95         }
96      }
97  
98  
99  
100     
101 
102 
103 
104     public SI getSetIDORG() { 
105 		SI retVal = this.getTypedField(1, 0);
106 		return retVal;
107     }
108     
109     
110 
111 
112 
113     public SI getOrg1_SetIDORG() { 
114 		SI retVal = this.getTypedField(1, 0);
115 		return retVal;
116     }
117 
118 
119 
120     
121 
122 
123 
124     public CWE getOrganizationUnitCode() { 
125 		CWE retVal = this.getTypedField(2, 0);
126 		return retVal;
127     }
128     
129     
130 
131 
132 
133     public CWE getOrg2_OrganizationUnitCode() { 
134 		CWE retVal = this.getTypedField(2, 0);
135 		return retVal;
136     }
137 
138 
139 
140     
141 
142 
143 
144     public CWE getOrganizationUnitTypeCode() { 
145 		CWE retVal = this.getTypedField(3, 0);
146 		return retVal;
147     }
148     
149     
150 
151 
152 
153     public CWE getOrg3_OrganizationUnitTypeCode() { 
154 		CWE retVal = this.getTypedField(3, 0);
155 		return retVal;
156     }
157 
158 
159 
160     
161 
162 
163 
164     public ID getPrimaryOrgUnitIndicator() { 
165 		ID retVal = this.getTypedField(4, 0);
166 		return retVal;
167     }
168     
169     
170 
171 
172 
173     public ID getOrg4_PrimaryOrgUnitIndicator() { 
174 		ID retVal = this.getTypedField(4, 0);
175 		return retVal;
176     }
177 
178 
179 
180     
181 
182 
183 
184     public CX getPractitionerOrgUnitIdentifier() { 
185 		CX retVal = this.getTypedField(5, 0);
186 		return retVal;
187     }
188     
189     
190 
191 
192 
193     public CX getOrg5_PractitionerOrgUnitIdentifier() { 
194 		CX retVal = this.getTypedField(5, 0);
195 		return retVal;
196     }
197 
198 
199 
200     
201 
202 
203 
204     public CWE getHealthCareProviderTypeCode() { 
205 		CWE retVal = this.getTypedField(6, 0);
206 		return retVal;
207     }
208     
209     
210 
211 
212 
213     public CWE getOrg6_HealthCareProviderTypeCode() { 
214 		CWE retVal = this.getTypedField(6, 0);
215 		return retVal;
216     }
217 
218 
219 
220     
221 
222 
223 
224     public CWE getHealthCareProviderClassificationCode() { 
225 		CWE retVal = this.getTypedField(7, 0);
226 		return retVal;
227     }
228     
229     
230 
231 
232 
233     public CWE getOrg7_HealthCareProviderClassificationCode() { 
234 		CWE retVal = this.getTypedField(7, 0);
235 		return retVal;
236     }
237 
238 
239 
240     
241 
242 
243 
244     public CWE getHealthCareProviderAreaOfSpecializationCode() { 
245 		CWE retVal = this.getTypedField(8, 0);
246 		return retVal;
247     }
248     
249     
250 
251 
252 
253     public CWE getOrg8_HealthCareProviderAreaOfSpecializationCode() { 
254 		CWE retVal = this.getTypedField(8, 0);
255 		return retVal;
256     }
257 
258 
259 
260     
261 
262 
263 
264     public DR getEffectiveDateRange() { 
265 		DR retVal = this.getTypedField(9, 0);
266 		return retVal;
267     }
268     
269     
270 
271 
272 
273     public DR getOrg9_EffectiveDateRange() { 
274 		DR retVal = this.getTypedField(9, 0);
275 		return retVal;
276     }
277 
278 
279 
280     
281 
282 
283 
284     public CWE getEmploymentStatusCode() { 
285 		CWE retVal = this.getTypedField(10, 0);
286 		return retVal;
287     }
288     
289     
290 
291 
292 
293     public CWE getOrg10_EmploymentStatusCode() { 
294 		CWE retVal = this.getTypedField(10, 0);
295 		return retVal;
296     }
297 
298 
299 
300     
301 
302 
303 
304     public ID getBoardApprovalIndicator() { 
305 		ID retVal = this.getTypedField(11, 0);
306 		return retVal;
307     }
308     
309     
310 
311 
312 
313     public ID getOrg11_BoardApprovalIndicator() { 
314 		ID retVal = this.getTypedField(11, 0);
315 		return retVal;
316     }
317 
318 
319 
320     
321 
322 
323 
324     public ID getPrimaryCarePhysicianIndicator() { 
325 		ID retVal = this.getTypedField(12, 0);
326 		return retVal;
327     }
328     
329     
330 
331 
332 
333     public ID getOrg12_PrimaryCarePhysicianIndicator() { 
334 		ID retVal = this.getTypedField(12, 0);
335 		return retVal;
336     }
337 
338 
339     
340 
341 
342     public CWE[] getCostCenterCode() {
343     	CWE[] retVal = this.getTypedField(13, new CWE[0]);
344     	return retVal;
345     }
346 
347 
348     
349 
350 
351     public CWE[] getOrg13_CostCenterCode() {
352     	CWE[] retVal = this.getTypedField(13, new CWE[0]);
353     	return retVal;
354     }
355 
356 
357     
358 
359 
360 
361 
362     public int getCostCenterCodeReps() {
363     	return this.getReps(13);
364     }
365 
366 
367     
368 
369 
370 
371 
372 
373     public CWE getCostCenterCode(int rep) { 
374 		CWE retVal = this.getTypedField(13, rep);
375 		return retVal;
376     }
377 
378     
379 
380 
381 
382 
383 
384     public CWE getOrg13_CostCenterCode(int rep) { 
385 		CWE retVal = this.getTypedField(13, rep);
386 		return retVal;
387     }
388 
389     
390 
391 
392 
393 
394     public int getOrg13_CostCenterCodeReps() {
395     	return this.getReps(13);
396     }
397 
398 
399     
400 
401 
402 
403 
404 
405 
406     public CWE insertCostCenterCode(int rep) throws HL7Exception { 
407         return (CWE) super.insertRepetition(13, rep);
408     }
409 
410 
411     
412 
413 
414 
415 
416 
417 
418     public CWE insertOrg13_CostCenterCode(int rep) throws HL7Exception { 
419         return (CWE) super.insertRepetition(13, rep);
420     }
421 
422 
423     
424 
425 
426 
427 
428 
429 
430     public CWE removeCostCenterCode(int rep) throws HL7Exception { 
431         return (CWE) super.removeRepetition(13, rep);
432     }
433 
434 
435     
436 
437 
438 
439 
440 
441 
442     public CWE removeOrg13_CostCenterCode(int rep) throws HL7Exception { 
443         return (CWE) super.removeRepetition(13, rep);
444     }
445 
446 
447 
448 
449 
450 
451        
452     protected Type createNewTypeWithoutReflection(int field) {
453        switch (field) {
454           case 0: return new SI(getMessage());
455           case 1: return new CWE(getMessage());
456           case 2: return new CWE(getMessage());
457           case 3: return new ID(getMessage(), new Integer( 136 ));
458           case 4: return new CX(getMessage());
459           case 5: return new CWE(getMessage());
460           case 6: return new CWE(getMessage());
461           case 7: return new CWE(getMessage());
462           case 8: return new DR(getMessage());
463           case 9: return new CWE(getMessage());
464           case 10: return new ID(getMessage(), new Integer( 136 ));
465           case 11: return new ID(getMessage(), new Integer( 136 ));
466           case 12: return new CWE(getMessage());
467           default: return null;
468        }
469    }
470 
471 
472 }
473