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