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.v21.segment;
35
36
37 import ca.uhn.hl7v2.model.v21.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 PR1 extends AbstractSegment {
69
70
71
72
73 public PR1(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, 0, 4, new Object[]{ getMessage() }, "SET ID - PROCEDURE");
81 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(89) }, "PROCEDURE CODING METHOD.");
82 this.add(ID.class, true, 1, 10, new Object[]{ getMessage(), new Integer(88) }, "PROCEDURE CODE");
83 this.add(ST.class, false, 1, 40, new Object[]{ getMessage() }, "PROCEDURE DESCRIPTION");
84 this.add(TS.class, true, 1, 19, new Object[]{ getMessage() }, "PROCEDURE DATE/TIME");
85 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(90) }, "PROCEDURE TYPE");
86 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "PROCEDURE MINUTES");
87 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "ANESTHESIOLOGIST");
88 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(19) }, "ANESTHESIA CODE");
89 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "ANESTHESIA MINUTES");
90 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "SURGEON");
91 this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "RESIDENT CODE");
92 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(59) }, "CONSENT CODE");
93 } catch(HL7Exception e) {
94 log.error("Unexpected error creating PR1 - this is probably a bug in the source code generator.", e);
95 }
96 }
97
98
99
100
101
102 public SI[] getSETIDPROCEDURE() {
103 SI[] retVal = this.getTypedField(1, new SI[0]);
104 return retVal;
105 }
106
107
108
109
110
111 public SI[] getPr11_SETIDPROCEDURE() {
112 SI[] retVal = this.getTypedField(1, new SI[0]);
113 return retVal;
114 }
115
116
117
118
119
120
121
122 public int getSETIDPROCEDUREReps() {
123 return this.getReps(1);
124 }
125
126
127
128
129
130
131
132
133 public SI getSETIDPROCEDURE(int rep) {
134 SI retVal = this.getTypedField(1, rep);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public SI getPr11_SETIDPROCEDURE(int rep) {
145 SI retVal = this.getTypedField(1, rep);
146 return retVal;
147 }
148
149
150
151
152
153
154 public int getPr11_SETIDPROCEDUREReps() {
155 return this.getReps(1);
156 }
157
158
159
160
161
162
163
164
165
166 public SI insertSETIDPROCEDURE(int rep) throws HL7Exception {
167 return (SI) super.insertRepetition(1, rep);
168 }
169
170
171
172
173
174
175
176
177
178 public SI insertPr11_SETIDPROCEDURE(int rep) throws HL7Exception {
179 return (SI) super.insertRepetition(1, rep);
180 }
181
182
183
184
185
186
187
188
189
190 public SI removeSETIDPROCEDURE(int rep) throws HL7Exception {
191 return (SI) super.removeRepetition(1, rep);
192 }
193
194
195
196
197
198
199
200
201
202 public SI removePr11_SETIDPROCEDURE(int rep) throws HL7Exception {
203 return (SI) super.removeRepetition(1, rep);
204 }
205
206
207
208
209
210
211
212
213 public ID getPROCEDURECODINGMETHOD() {
214 ID retVal = this.getTypedField(2, 0);
215 return retVal;
216 }
217
218
219
220
221
222 public ID getPr12_PROCEDURECODINGMETHOD() {
223 ID retVal = this.getTypedField(2, 0);
224 return retVal;
225 }
226
227
228
229
230
231
232
233 public ID getPROCEDURECODE() {
234 ID retVal = this.getTypedField(3, 0);
235 return retVal;
236 }
237
238
239
240
241
242 public ID getPr13_PROCEDURECODE() {
243 ID retVal = this.getTypedField(3, 0);
244 return retVal;
245 }
246
247
248
249
250
251
252
253 public ST getPROCEDUREDESCRIPTION() {
254 ST retVal = this.getTypedField(4, 0);
255 return retVal;
256 }
257
258
259
260
261
262 public ST getPr14_PROCEDUREDESCRIPTION() {
263 ST retVal = this.getTypedField(4, 0);
264 return retVal;
265 }
266
267
268
269
270
271
272
273 public TS getPROCEDUREDATETIME() {
274 TS retVal = this.getTypedField(5, 0);
275 return retVal;
276 }
277
278
279
280
281
282 public TS getPr15_PROCEDUREDATETIME() {
283 TS retVal = this.getTypedField(5, 0);
284 return retVal;
285 }
286
287
288
289
290
291
292
293 public ID getPROCEDURETYPE() {
294 ID retVal = this.getTypedField(6, 0);
295 return retVal;
296 }
297
298
299
300
301
302 public ID getPr16_PROCEDURETYPE() {
303 ID retVal = this.getTypedField(6, 0);
304 return retVal;
305 }
306
307
308
309
310
311
312
313 public NM getPROCEDUREMINUTES() {
314 NM retVal = this.getTypedField(7, 0);
315 return retVal;
316 }
317
318
319
320
321
322 public NM getPr17_PROCEDUREMINUTES() {
323 NM retVal = this.getTypedField(7, 0);
324 return retVal;
325 }
326
327
328
329
330
331
332
333 public CN getANESTHESIOLOGIST() {
334 CN retVal = this.getTypedField(8, 0);
335 return retVal;
336 }
337
338
339
340
341
342 public CN getPr18_ANESTHESIOLOGIST() {
343 CN retVal = this.getTypedField(8, 0);
344 return retVal;
345 }
346
347
348
349
350
351
352
353 public ID getANESTHESIACODE() {
354 ID retVal = this.getTypedField(9, 0);
355 return retVal;
356 }
357
358
359
360
361
362 public ID getPr19_ANESTHESIACODE() {
363 ID retVal = this.getTypedField(9, 0);
364 return retVal;
365 }
366
367
368
369
370
371
372
373 public NM getANESTHESIAMINUTES() {
374 NM retVal = this.getTypedField(10, 0);
375 return retVal;
376 }
377
378
379
380
381
382 public NM getPr110_ANESTHESIAMINUTES() {
383 NM retVal = this.getTypedField(10, 0);
384 return retVal;
385 }
386
387
388
389
390
391
392
393 public CN getSURGEON() {
394 CN retVal = this.getTypedField(11, 0);
395 return retVal;
396 }
397
398
399
400
401
402 public CN getPr111_SURGEON() {
403 CN retVal = this.getTypedField(11, 0);
404 return retVal;
405 }
406
407
408
409
410
411
412
413 public CN getRESIDENTCODE() {
414 CN retVal = this.getTypedField(12, 0);
415 return retVal;
416 }
417
418
419
420
421
422 public CN getPr112_RESIDENTCODE() {
423 CN retVal = this.getTypedField(12, 0);
424 return retVal;
425 }
426
427
428
429
430
431
432
433 public ID getCONSENTCODE() {
434 ID retVal = this.getTypedField(13, 0);
435 return retVal;
436 }
437
438
439
440
441
442 public ID getPr113_CONSENTCODE() {
443 ID retVal = this.getTypedField(13, 0);
444 return retVal;
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 ID(getMessage(), new Integer( 89 ));
456 case 2: return new ID(getMessage(), new Integer( 88 ));
457 case 3: return new ST(getMessage());
458 case 4: return new TS(getMessage());
459 case 5: return new ID(getMessage(), new Integer( 90 ));
460 case 6: return new NM(getMessage());
461 case 7: return new CN(getMessage());
462 case 8: return new ID(getMessage(), new Integer( 19 ));
463 case 9: return new NM(getMessage());
464 case 10: return new CN(getMessage());
465 case 11: return new CN(getMessage());
466 case 12: return new ID(getMessage(), new Integer( 59 ));
467 default: return null;
468 }
469 }
470
471
472 }
473