001 /*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 */
007
008 package ca.uhn.hl7v2.model.v24.segment;
009
010 // import ca.uhn.hl7v2.model.v24.group.*;
011 import ca.uhn.hl7v2.model.v24.datatype.*;
012 import ca.uhn.log.HapiLogFactory;
013 import ca.uhn.hl7v2.HL7Exception;
014 import ca.uhn.hl7v2.parser.ModelClassFactory;
015 import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
016 import ca.uhn.hl7v2.model.AbstractMessage;
017 import ca.uhn.hl7v2.model.Group;
018 import ca.uhn.hl7v2.model.Type;
019 import ca.uhn.hl7v2.model.AbstractSegment;
020 import ca.uhn.hl7v2.model.Varies;
021
022 /**
023 *<p>Represents an HL7 IN1 message segment (Insurance).
024 * This segment has the following fields:</p>
025 * <ul>
026 * <li>IN1-1: Set ID - IN1 (SI) <b> </b>
027 * <li>IN1-2: Insurance Plan ID (CE) <b> </b>
028 * <li>IN1-3: Insurance Company ID (CX) <b> repeating</b>
029 * <li>IN1-4: Insurance Company Name (XON) <b>optional repeating</b>
030 * <li>IN1-5: Insurance Company Address (XAD) <b>optional repeating</b>
031 * <li>IN1-6: Insurance Co Contact Person (XPN) <b>optional repeating</b>
032 * <li>IN1-7: Insurance Co Phone Number (XTN) <b>optional repeating</b>
033 * <li>IN1-8: Group Number (ST) <b>optional </b>
034 * <li>IN1-9: Group Name (XON) <b>optional repeating</b>
035 * <li>IN1-10: Insured's Group Emp ID (CX) <b>optional repeating</b>
036 * <li>IN1-11: Insured's Group Emp Name (XON) <b>optional repeating</b>
037 * <li>IN1-12: Plan Effective Date (DT) <b>optional </b>
038 * <li>IN1-13: Plan Expiration Date (DT) <b>optional </b>
039 * <li>IN1-14: Authorization Information (AUI) <b>optional </b>
040 * <li>IN1-15: Plan Type (IS) <b>optional </b>
041 * <li>IN1-16: Name Of Insured (XPN) <b>optional repeating</b>
042 * <li>IN1-17: Insured's Relationship To Patient (CE) <b>optional </b>
043 * <li>IN1-18: Insured's Date Of Birth (TS) <b>optional </b>
044 * <li>IN1-19: Insured's Address (XAD) <b>optional repeating</b>
045 * <li>IN1-20: Assignment Of Benefits (IS) <b>optional </b>
046 * <li>IN1-21: Coordination Of Benefits (IS) <b>optional </b>
047 * <li>IN1-22: Coord Of Ben. Priority (ST) <b>optional </b>
048 * <li>IN1-23: Notice Of Admission Flag (ID) <b>optional </b>
049 * <li>IN1-24: Notice Of Admission Date (DT) <b>optional </b>
050 * <li>IN1-25: Report Of Eligibility Flag (ID) <b>optional </b>
051 * <li>IN1-26: Report Of Eligibility Date (DT) <b>optional </b>
052 * <li>IN1-27: Release Information Code (IS) <b>optional </b>
053 * <li>IN1-28: Pre-Admit Cert (PAC) (ST) <b>optional </b>
054 * <li>IN1-29: Verification Date/Time (TS) <b>optional </b>
055 * <li>IN1-30: Verification By (XCN) <b>optional repeating</b>
056 * <li>IN1-31: Type Of Agreement Code (IS) <b>optional </b>
057 * <li>IN1-32: Billing Status (IS) <b>optional </b>
058 * <li>IN1-33: Lifetime Reserve Days (NM) <b>optional </b>
059 * <li>IN1-34: Delay Before L.R. Day (NM) <b>optional </b>
060 * <li>IN1-35: Company Plan Code (IS) <b>optional </b>
061 * <li>IN1-36: Policy Number (ST) <b>optional </b>
062 * <li>IN1-37: Policy Deductible (CP) <b>optional </b>
063 * <li>IN1-38: Policy Limit - Amount (CP) <b>optional </b>
064 * <li>IN1-39: Policy Limit - Days (NM) <b>optional </b>
065 * <li>IN1-40: Room Rate - Semi-Private (CP) <b>optional </b>
066 * <li>IN1-41: Room Rate - Private (CP) <b>optional </b>
067 * <li>IN1-42: Insured's Employment Status (CE) <b>optional </b>
068 * <li>IN1-43: Insured's Administrative Sex (IS) <b>optional </b>
069 * <li>IN1-44: Insured's Employer's Address (XAD) <b>optional repeating</b>
070 * <li>IN1-45: Verification Status (ST) <b>optional </b>
071 * <li>IN1-46: Prior Insurance Plan ID (IS) <b>optional </b>
072 * <li>IN1-47: Coverage Type (IS) <b>optional </b>
073 * <li>IN1-48: Handicap (IS) <b>optional </b>
074 * <li>IN1-49: Insured's ID Number (CX) <b>optional repeating</b>
075 * </ul>
076 */
077 public class IN1 extends AbstractSegment {
078
079 /**
080 * Creates a new IN1 segment
081 */
082 public IN1(Group parent, ModelClassFactory factory) {
083 super(parent, factory);
084 init(factory);
085 }
086
087 private void init(ModelClassFactory factory) {
088 try {
089 this.add(SI.class, true, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Set ID - IN1");
090 this.add(CE.class, true, 1, 250, new Object[]{ getMessage(), new Integer(72) }, "Insurance Plan ID");
091 this.add(CX.class, true, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insurance Company ID");
092 this.add(XON.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insurance Company Name");
093 this.add(XAD.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insurance Company Address");
094 this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insurance Co Contact Person");
095 this.add(XTN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insurance Co Phone Number");
096 this.add(ST.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Group Number");
097 this.add(XON.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Group Name");
098 this.add(CX.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Group Emp ID");
099 this.add(XON.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Group Emp Name");
100 this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Plan Effective Date");
101 this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Plan Expiration Date");
102 this.add(AUI.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Authorization Information");
103 this.add(IS.class, false, 1, 3, new Object[]{ getMessage() }, "Plan Type");
104 this.add(XPN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Name Of Insured");
105 this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(63) }, "Insured's Relationship To Patient");
106 this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Insured's Date Of Birth");
107 this.add(XAD.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Address");
108 this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Assignment Of Benefits");
109 this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Coordination Of Benefits");
110 this.add(ST.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "Coord Of Ben. Priority");
111 this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Notice Of Admission Flag");
112 this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Notice Of Admission Date");
113 this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "Report Of Eligibility Flag");
114 this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "Report Of Eligibility Date");
115 this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Release Information Code");
116 this.add(ST.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "Pre-Admit Cert (PAC)");
117 this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Verification Date/Time");
118 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Verification By");
119 this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Type Of Agreement Code");
120 this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Billing Status");
121 this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Lifetime Reserve Days");
122 this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Delay Before L.R. Day");
123 this.add(IS.class, false, 1, 8, new Object[]{ getMessage() }, "Company Plan Code");
124 this.add(ST.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "Policy Number");
125 this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Policy Deductible");
126 this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Policy Limit - Amount");
127 this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "Policy Limit - Days");
128 this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Room Rate - Semi-Private");
129 this.add(CP.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Room Rate - Private");
130 this.add(CE.class, false, 1, 250, new Object[]{ getMessage(), new Integer(66) }, "Insured's Employment Status");
131 this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Insured's Administrative Sex");
132 this.add(XAD.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's Employer's Address");
133 this.add(ST.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "Verification Status");
134 this.add(IS.class, false, 1, 8, new Object[]{ getMessage() }, "Prior Insurance Plan ID");
135 this.add(IS.class, false, 1, 3, new Object[]{ getMessage() }, "Coverage Type");
136 this.add(IS.class, false, 1, 2, new Object[]{ getMessage() }, "Handicap");
137 this.add(CX.class, false, 0, 250, new Object[]{ getMessage(), new Integer(0) }, "Insured's ID Number");
138 } catch(HL7Exception e) {
139 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating IN1 - this is probably a bug in the source code generator.", e);
140 }
141 }
142
143
144
145 /**
146 * Returns
147 * IN1-1: "Set ID - IN1" - creates it if necessary
148 */
149 public SI getSetIDIN1() {
150 SI ret = null;
151 try {
152 Type t = this.getField(1, 0);
153 ret = (SI)t;
154 } catch (ClassCastException cce) {
155 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
156 throw new RuntimeException(cce);
157 } catch (HL7Exception he) {
158 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
159 throw new RuntimeException(he);
160 }
161 return ret;
162 }
163
164
165 /**
166 * Returns
167 * IN1-1: "Set ID - IN1" - creates it if necessary
168 */
169 public SI getIn11_SetIDIN1() {
170 SI ret = null;
171 try {
172 Type t = this.getField(1, 0);
173 ret = (SI)t;
174 } catch (ClassCastException cce) {
175 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
176 throw new RuntimeException(cce);
177 } catch (HL7Exception he) {
178 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
179 throw new RuntimeException(he);
180 }
181 return ret;
182 }
183
184
185
186 /**
187 * Returns
188 * IN1-2: "Insurance Plan ID" - creates it if necessary
189 */
190 public CE getInsurancePlanID() {
191 CE ret = null;
192 try {
193 Type t = this.getField(2, 0);
194 ret = (CE)t;
195 } catch (ClassCastException cce) {
196 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
197 throw new RuntimeException(cce);
198 } catch (HL7Exception he) {
199 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
200 throw new RuntimeException(he);
201 }
202 return ret;
203 }
204
205
206 /**
207 * Returns
208 * IN1-2: "Insurance Plan ID" - creates it if necessary
209 */
210 public CE getIn12_InsurancePlanID() {
211 CE ret = null;
212 try {
213 Type t = this.getField(2, 0);
214 ret = (CE)t;
215 } catch (ClassCastException cce) {
216 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
217 throw new RuntimeException(cce);
218 } catch (HL7Exception he) {
219 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
220 throw new RuntimeException(he);
221 }
222 return ret;
223 }
224
225
226 /**
227 * Returns all repetitions of Insurance Company ID (IN1-3).
228 */
229 public CX[] getInsuranceCompanyID() {
230 CX[] ret = null;
231 try {
232 Type[] t = this.getField(3);
233 ret = new CX[t.length];
234 for (int i = 0; i < ret.length; i++) {
235 ret[i] = (CX)t[i];
236 }
237 } catch (ClassCastException cce) {
238 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
239 throw new RuntimeException(cce);
240 } catch (HL7Exception he) {
241 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
242 throw new RuntimeException(he);
243 }
244 return ret;
245 }
246
247
248 /**
249 * Returns a count of the current number of repetitions of Insurance Company ID (IN1-3).
250 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
251 * it will return zero.
252 */
253 public int getInsuranceCompanyIDReps() {
254 CX[] ret = null;
255 try {
256 Type[] t = this.getField(3);
257 return t.length;
258 } catch (ClassCastException cce) {
259 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
260 throw new RuntimeException(cce);
261 } catch (HL7Exception he) {
262 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
263 throw new RuntimeException(he);
264 }
265 }
266
267
268 /**
269 * Returns a specific repetition of
270 * IN1-3: "Insurance Company ID" - creates it if necessary
271 *
272 * @param rep The repetition index (0-indexed)
273 */
274 public CX getInsuranceCompanyID(int rep) {
275 CX ret = null;
276 try {
277 Type t = this.getField(3, rep);
278 ret = (CX)t;
279 } catch (ClassCastException cce) {
280 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
281 throw new RuntimeException(cce);
282 } catch (HL7Exception he) {
283 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
284 throw new RuntimeException(he);
285 }
286 return ret;
287 }
288
289 /**
290 * Returns a specific repetition of
291 * IN1-3: "Insurance Company ID" - creates it if necessary
292 *
293 * @param rep The repetition index (0-indexed)
294 */
295 public CX getIn13_InsuranceCompanyID(int rep) {
296 CX ret = null;
297 try {
298 Type t = this.getField(3, rep);
299 ret = (CX)t;
300 } catch (ClassCastException cce) {
301 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
302 throw new RuntimeException(cce);
303 } catch (HL7Exception he) {
304 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
305 throw new RuntimeException(he);
306 }
307 return ret;
308 }
309
310
311 /**
312 * Returns a count of the current number of repetitions of Insurance Company ID (IN1-3).
313 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
314 * it will return zero.
315 */
316 public int getIn13_InsuranceCompanyIDReps() {
317 CX[] ret = null;
318 try {
319 Type[] t = this.getField(3);
320 return t.length;
321 } catch (ClassCastException cce) {
322 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
323 throw new RuntimeException(cce);
324 } catch (HL7Exception he) {
325 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
326 throw new RuntimeException(he);
327 }
328 }
329
330
331
332 /**
333 * Inserts a repetition of
334 * IN1-3: "Insurance Company ID" at a specific index
335 *
336 * @param rep The repetition index (0-indexed)
337 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
338 */
339 public CX insertInsuranceCompanyID(int rep) throws HL7Exception {
340 return (CX) super.insertRepetition(3, rep);
341 }
342
343
344
345 /**
346 * Inserts a repetition of
347 * IN1-3: "Insurance Company ID" at a specific index
348 *
349 * @param rep The repetition index (0-indexed)
350 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
351 */
352 public CX insertIn13_InsuranceCompanyID(int rep) throws HL7Exception {
353 return (CX) super.insertRepetition(3, rep);
354 }
355
356
357 /**
358 * Removes a repetition of
359 * IN1-3: "Insurance Company ID" at a specific index
360 *
361 * @param rep The repetition index (0-indexed)
362 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
363 */
364 public CX removeInsuranceCompanyID(int rep) throws HL7Exception {
365 return (CX) super.removeRepetition(3, rep);
366 }
367
368
369 /**
370 * Removes a repetition of
371 * IN1-3: "Insurance Company ID" at a specific index
372 *
373 * @param rep The repetition index (0-indexed)
374 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
375 */
376 public CX removeIn13_InsuranceCompanyID(int rep) throws HL7Exception {
377 return (CX) super.removeRepetition(3, rep);
378 }
379
380
381
382 /**
383 * Returns all repetitions of Insurance Company Name (IN1-4).
384 */
385 public XON[] getInsuranceCompanyName() {
386 XON[] ret = null;
387 try {
388 Type[] t = this.getField(4);
389 ret = new XON[t.length];
390 for (int i = 0; i < ret.length; i++) {
391 ret[i] = (XON)t[i];
392 }
393 } catch (ClassCastException cce) {
394 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
395 throw new RuntimeException(cce);
396 } catch (HL7Exception he) {
397 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
398 throw new RuntimeException(he);
399 }
400 return ret;
401 }
402
403
404 /**
405 * Returns a count of the current number of repetitions of Insurance Company Name (IN1-4).
406 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
407 * it will return zero.
408 */
409 public int getInsuranceCompanyNameReps() {
410 XON[] ret = null;
411 try {
412 Type[] t = this.getField(4);
413 return t.length;
414 } catch (ClassCastException cce) {
415 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
416 throw new RuntimeException(cce);
417 } catch (HL7Exception he) {
418 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
419 throw new RuntimeException(he);
420 }
421 }
422
423
424 /**
425 * Returns a specific repetition of
426 * IN1-4: "Insurance Company Name" - creates it if necessary
427 *
428 * @param rep The repetition index (0-indexed)
429 */
430 public XON getInsuranceCompanyName(int rep) {
431 XON ret = null;
432 try {
433 Type t = this.getField(4, rep);
434 ret = (XON)t;
435 } catch (ClassCastException cce) {
436 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
437 throw new RuntimeException(cce);
438 } catch (HL7Exception he) {
439 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
440 throw new RuntimeException(he);
441 }
442 return ret;
443 }
444
445 /**
446 * Returns a specific repetition of
447 * IN1-4: "Insurance Company Name" - creates it if necessary
448 *
449 * @param rep The repetition index (0-indexed)
450 */
451 public XON getIn14_InsuranceCompanyName(int rep) {
452 XON ret = null;
453 try {
454 Type t = this.getField(4, rep);
455 ret = (XON)t;
456 } catch (ClassCastException cce) {
457 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
458 throw new RuntimeException(cce);
459 } catch (HL7Exception he) {
460 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
461 throw new RuntimeException(he);
462 }
463 return ret;
464 }
465
466
467 /**
468 * Returns a count of the current number of repetitions of Insurance Company Name (IN1-4).
469 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
470 * it will return zero.
471 */
472 public int getIn14_InsuranceCompanyNameReps() {
473 XON[] ret = null;
474 try {
475 Type[] t = this.getField(4);
476 return t.length;
477 } catch (ClassCastException cce) {
478 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
479 throw new RuntimeException(cce);
480 } catch (HL7Exception he) {
481 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
482 throw new RuntimeException(he);
483 }
484 }
485
486
487
488 /**
489 * Inserts a repetition of
490 * IN1-4: "Insurance Company Name" at a specific index
491 *
492 * @param rep The repetition index (0-indexed)
493 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
494 */
495 public XON insertInsuranceCompanyName(int rep) throws HL7Exception {
496 return (XON) super.insertRepetition(4, rep);
497 }
498
499
500
501 /**
502 * Inserts a repetition of
503 * IN1-4: "Insurance Company Name" at a specific index
504 *
505 * @param rep The repetition index (0-indexed)
506 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
507 */
508 public XON insertIn14_InsuranceCompanyName(int rep) throws HL7Exception {
509 return (XON) super.insertRepetition(4, rep);
510 }
511
512
513 /**
514 * Removes a repetition of
515 * IN1-4: "Insurance Company Name" at a specific index
516 *
517 * @param rep The repetition index (0-indexed)
518 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
519 */
520 public XON removeInsuranceCompanyName(int rep) throws HL7Exception {
521 return (XON) super.removeRepetition(4, rep);
522 }
523
524
525 /**
526 * Removes a repetition of
527 * IN1-4: "Insurance Company Name" at a specific index
528 *
529 * @param rep The repetition index (0-indexed)
530 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
531 */
532 public XON removeIn14_InsuranceCompanyName(int rep) throws HL7Exception {
533 return (XON) super.removeRepetition(4, rep);
534 }
535
536
537
538 /**
539 * Returns all repetitions of Insurance Company Address (IN1-5).
540 */
541 public XAD[] getInsuranceCompanyAddress() {
542 XAD[] ret = null;
543 try {
544 Type[] t = this.getField(5);
545 ret = new XAD[t.length];
546 for (int i = 0; i < ret.length; i++) {
547 ret[i] = (XAD)t[i];
548 }
549 } catch (ClassCastException cce) {
550 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
551 throw new RuntimeException(cce);
552 } catch (HL7Exception he) {
553 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
554 throw new RuntimeException(he);
555 }
556 return ret;
557 }
558
559
560 /**
561 * Returns a count of the current number of repetitions of Insurance Company Address (IN1-5).
562 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
563 * it will return zero.
564 */
565 public int getInsuranceCompanyAddressReps() {
566 XAD[] ret = null;
567 try {
568 Type[] t = this.getField(5);
569 return t.length;
570 } catch (ClassCastException cce) {
571 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
572 throw new RuntimeException(cce);
573 } catch (HL7Exception he) {
574 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
575 throw new RuntimeException(he);
576 }
577 }
578
579
580 /**
581 * Returns a specific repetition of
582 * IN1-5: "Insurance Company Address" - creates it if necessary
583 *
584 * @param rep The repetition index (0-indexed)
585 */
586 public XAD getInsuranceCompanyAddress(int rep) {
587 XAD ret = null;
588 try {
589 Type t = this.getField(5, rep);
590 ret = (XAD)t;
591 } catch (ClassCastException cce) {
592 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
593 throw new RuntimeException(cce);
594 } catch (HL7Exception he) {
595 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
596 throw new RuntimeException(he);
597 }
598 return ret;
599 }
600
601 /**
602 * Returns a specific repetition of
603 * IN1-5: "Insurance Company Address" - creates it if necessary
604 *
605 * @param rep The repetition index (0-indexed)
606 */
607 public XAD getIn15_InsuranceCompanyAddress(int rep) {
608 XAD ret = null;
609 try {
610 Type t = this.getField(5, rep);
611 ret = (XAD)t;
612 } catch (ClassCastException cce) {
613 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
614 throw new RuntimeException(cce);
615 } catch (HL7Exception he) {
616 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
617 throw new RuntimeException(he);
618 }
619 return ret;
620 }
621
622
623 /**
624 * Returns a count of the current number of repetitions of Insurance Company Address (IN1-5).
625 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
626 * it will return zero.
627 */
628 public int getIn15_InsuranceCompanyAddressReps() {
629 XAD[] ret = null;
630 try {
631 Type[] t = this.getField(5);
632 return t.length;
633 } catch (ClassCastException cce) {
634 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
635 throw new RuntimeException(cce);
636 } catch (HL7Exception he) {
637 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
638 throw new RuntimeException(he);
639 }
640 }
641
642
643
644 /**
645 * Inserts a repetition of
646 * IN1-5: "Insurance Company Address" at a specific index
647 *
648 * @param rep The repetition index (0-indexed)
649 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
650 */
651 public XAD insertInsuranceCompanyAddress(int rep) throws HL7Exception {
652 return (XAD) super.insertRepetition(5, rep);
653 }
654
655
656
657 /**
658 * Inserts a repetition of
659 * IN1-5: "Insurance Company Address" at a specific index
660 *
661 * @param rep The repetition index (0-indexed)
662 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
663 */
664 public XAD insertIn15_InsuranceCompanyAddress(int rep) throws HL7Exception {
665 return (XAD) super.insertRepetition(5, rep);
666 }
667
668
669 /**
670 * Removes a repetition of
671 * IN1-5: "Insurance Company Address" at a specific index
672 *
673 * @param rep The repetition index (0-indexed)
674 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
675 */
676 public XAD removeInsuranceCompanyAddress(int rep) throws HL7Exception {
677 return (XAD) super.removeRepetition(5, rep);
678 }
679
680
681 /**
682 * Removes a repetition of
683 * IN1-5: "Insurance Company Address" at a specific index
684 *
685 * @param rep The repetition index (0-indexed)
686 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
687 */
688 public XAD removeIn15_InsuranceCompanyAddress(int rep) throws HL7Exception {
689 return (XAD) super.removeRepetition(5, rep);
690 }
691
692
693
694 /**
695 * Returns all repetitions of Insurance Co Contact Person (IN1-6).
696 */
697 public XPN[] getInsuranceCoContactPerson() {
698 XPN[] ret = null;
699 try {
700 Type[] t = this.getField(6);
701 ret = new XPN[t.length];
702 for (int i = 0; i < ret.length; i++) {
703 ret[i] = (XPN)t[i];
704 }
705 } catch (ClassCastException cce) {
706 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
707 throw new RuntimeException(cce);
708 } catch (HL7Exception he) {
709 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
710 throw new RuntimeException(he);
711 }
712 return ret;
713 }
714
715
716 /**
717 * Returns a count of the current number of repetitions of Insurance Co Contact Person (IN1-6).
718 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
719 * it will return zero.
720 */
721 public int getInsuranceCoContactPersonReps() {
722 XPN[] ret = null;
723 try {
724 Type[] t = this.getField(6);
725 return t.length;
726 } catch (ClassCastException cce) {
727 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
728 throw new RuntimeException(cce);
729 } catch (HL7Exception he) {
730 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
731 throw new RuntimeException(he);
732 }
733 }
734
735
736 /**
737 * Returns a specific repetition of
738 * IN1-6: "Insurance Co Contact Person" - creates it if necessary
739 *
740 * @param rep The repetition index (0-indexed)
741 */
742 public XPN getInsuranceCoContactPerson(int rep) {
743 XPN ret = null;
744 try {
745 Type t = this.getField(6, rep);
746 ret = (XPN)t;
747 } catch (ClassCastException cce) {
748 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
749 throw new RuntimeException(cce);
750 } catch (HL7Exception he) {
751 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
752 throw new RuntimeException(he);
753 }
754 return ret;
755 }
756
757 /**
758 * Returns a specific repetition of
759 * IN1-6: "Insurance Co Contact Person" - creates it if necessary
760 *
761 * @param rep The repetition index (0-indexed)
762 */
763 public XPN getIn16_InsuranceCoContactPerson(int rep) {
764 XPN ret = null;
765 try {
766 Type t = this.getField(6, rep);
767 ret = (XPN)t;
768 } catch (ClassCastException cce) {
769 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
770 throw new RuntimeException(cce);
771 } catch (HL7Exception he) {
772 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
773 throw new RuntimeException(he);
774 }
775 return ret;
776 }
777
778
779 /**
780 * Returns a count of the current number of repetitions of Insurance Co Contact Person (IN1-6).
781 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
782 * it will return zero.
783 */
784 public int getIn16_InsuranceCoContactPersonReps() {
785 XPN[] ret = null;
786 try {
787 Type[] t = this.getField(6);
788 return t.length;
789 } catch (ClassCastException cce) {
790 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
791 throw new RuntimeException(cce);
792 } catch (HL7Exception he) {
793 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
794 throw new RuntimeException(he);
795 }
796 }
797
798
799
800 /**
801 * Inserts a repetition of
802 * IN1-6: "Insurance Co Contact Person" at a specific index
803 *
804 * @param rep The repetition index (0-indexed)
805 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
806 */
807 public XPN insertInsuranceCoContactPerson(int rep) throws HL7Exception {
808 return (XPN) super.insertRepetition(6, rep);
809 }
810
811
812
813 /**
814 * Inserts a repetition of
815 * IN1-6: "Insurance Co Contact Person" at a specific index
816 *
817 * @param rep The repetition index (0-indexed)
818 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
819 */
820 public XPN insertIn16_InsuranceCoContactPerson(int rep) throws HL7Exception {
821 return (XPN) super.insertRepetition(6, rep);
822 }
823
824
825 /**
826 * Removes a repetition of
827 * IN1-6: "Insurance Co Contact Person" at a specific index
828 *
829 * @param rep The repetition index (0-indexed)
830 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
831 */
832 public XPN removeInsuranceCoContactPerson(int rep) throws HL7Exception {
833 return (XPN) super.removeRepetition(6, rep);
834 }
835
836
837 /**
838 * Removes a repetition of
839 * IN1-6: "Insurance Co Contact Person" at a specific index
840 *
841 * @param rep The repetition index (0-indexed)
842 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
843 */
844 public XPN removeIn16_InsuranceCoContactPerson(int rep) throws HL7Exception {
845 return (XPN) super.removeRepetition(6, rep);
846 }
847
848
849
850 /**
851 * Returns all repetitions of Insurance Co Phone Number (IN1-7).
852 */
853 public XTN[] getInsuranceCoPhoneNumber() {
854 XTN[] ret = null;
855 try {
856 Type[] t = this.getField(7);
857 ret = new XTN[t.length];
858 for (int i = 0; i < ret.length; i++) {
859 ret[i] = (XTN)t[i];
860 }
861 } catch (ClassCastException cce) {
862 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
863 throw new RuntimeException(cce);
864 } catch (HL7Exception he) {
865 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
866 throw new RuntimeException(he);
867 }
868 return ret;
869 }
870
871
872 /**
873 * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7).
874 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
875 * it will return zero.
876 */
877 public int getInsuranceCoPhoneNumberReps() {
878 XTN[] ret = null;
879 try {
880 Type[] t = this.getField(7);
881 return t.length;
882 } catch (ClassCastException cce) {
883 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
884 throw new RuntimeException(cce);
885 } catch (HL7Exception he) {
886 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
887 throw new RuntimeException(he);
888 }
889 }
890
891
892 /**
893 * Returns a specific repetition of
894 * IN1-7: "Insurance Co Phone Number" - creates it if necessary
895 *
896 * @param rep The repetition index (0-indexed)
897 */
898 public XTN getInsuranceCoPhoneNumber(int rep) {
899 XTN ret = null;
900 try {
901 Type t = this.getField(7, rep);
902 ret = (XTN)t;
903 } catch (ClassCastException cce) {
904 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
905 throw new RuntimeException(cce);
906 } catch (HL7Exception he) {
907 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
908 throw new RuntimeException(he);
909 }
910 return ret;
911 }
912
913 /**
914 * Returns a specific repetition of
915 * IN1-7: "Insurance Co Phone Number" - creates it if necessary
916 *
917 * @param rep The repetition index (0-indexed)
918 */
919 public XTN getIn17_InsuranceCoPhoneNumber(int rep) {
920 XTN ret = null;
921 try {
922 Type t = this.getField(7, rep);
923 ret = (XTN)t;
924 } catch (ClassCastException cce) {
925 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
926 throw new RuntimeException(cce);
927 } catch (HL7Exception he) {
928 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
929 throw new RuntimeException(he);
930 }
931 return ret;
932 }
933
934
935 /**
936 * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7).
937 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
938 * it will return zero.
939 */
940 public int getIn17_InsuranceCoPhoneNumberReps() {
941 XTN[] ret = null;
942 try {
943 Type[] t = this.getField(7);
944 return t.length;
945 } catch (ClassCastException cce) {
946 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
947 throw new RuntimeException(cce);
948 } catch (HL7Exception he) {
949 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
950 throw new RuntimeException(he);
951 }
952 }
953
954
955
956 /**
957 * Inserts a repetition of
958 * IN1-7: "Insurance Co Phone Number" at a specific index
959 *
960 * @param rep The repetition index (0-indexed)
961 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
962 */
963 public XTN insertInsuranceCoPhoneNumber(int rep) throws HL7Exception {
964 return (XTN) super.insertRepetition(7, rep);
965 }
966
967
968
969 /**
970 * Inserts a repetition of
971 * IN1-7: "Insurance Co Phone Number" at a specific index
972 *
973 * @param rep The repetition index (0-indexed)
974 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
975 */
976 public XTN insertIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception {
977 return (XTN) super.insertRepetition(7, rep);
978 }
979
980
981 /**
982 * Removes a repetition of
983 * IN1-7: "Insurance Co Phone Number" at a specific index
984 *
985 * @param rep The repetition index (0-indexed)
986 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
987 */
988 public XTN removeInsuranceCoPhoneNumber(int rep) throws HL7Exception {
989 return (XTN) super.removeRepetition(7, rep);
990 }
991
992
993 /**
994 * Removes a repetition of
995 * IN1-7: "Insurance Co Phone Number" at a specific index
996 *
997 * @param rep The repetition index (0-indexed)
998 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
999 */
1000 public XTN removeIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception {
1001 return (XTN) super.removeRepetition(7, rep);
1002 }
1003
1004
1005
1006
1007 /**
1008 * Returns
1009 * IN1-8: "Group Number" - creates it if necessary
1010 */
1011 public ST getGroupNumber() {
1012 ST ret = null;
1013 try {
1014 Type t = this.getField(8, 0);
1015 ret = (ST)t;
1016 } catch (ClassCastException cce) {
1017 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1018 throw new RuntimeException(cce);
1019 } catch (HL7Exception he) {
1020 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1021 throw new RuntimeException(he);
1022 }
1023 return ret;
1024 }
1025
1026
1027 /**
1028 * Returns
1029 * IN1-8: "Group Number" - creates it if necessary
1030 */
1031 public ST getIn18_GroupNumber() {
1032 ST ret = null;
1033 try {
1034 Type t = this.getField(8, 0);
1035 ret = (ST)t;
1036 } catch (ClassCastException cce) {
1037 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1038 throw new RuntimeException(cce);
1039 } catch (HL7Exception he) {
1040 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1041 throw new RuntimeException(he);
1042 }
1043 return ret;
1044 }
1045
1046
1047 /**
1048 * Returns all repetitions of Group Name (IN1-9).
1049 */
1050 public XON[] getGroupName() {
1051 XON[] ret = null;
1052 try {
1053 Type[] t = this.getField(9);
1054 ret = new XON[t.length];
1055 for (int i = 0; i < ret.length; i++) {
1056 ret[i] = (XON)t[i];
1057 }
1058 } catch (ClassCastException cce) {
1059 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1060 throw new RuntimeException(cce);
1061 } catch (HL7Exception he) {
1062 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1063 throw new RuntimeException(he);
1064 }
1065 return ret;
1066 }
1067
1068
1069 /**
1070 * Returns a count of the current number of repetitions of Group Name (IN1-9).
1071 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1072 * it will return zero.
1073 */
1074 public int getGroupNameReps() {
1075 XON[] ret = null;
1076 try {
1077 Type[] t = this.getField(9);
1078 return t.length;
1079 } catch (ClassCastException cce) {
1080 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1081 throw new RuntimeException(cce);
1082 } catch (HL7Exception he) {
1083 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1084 throw new RuntimeException(he);
1085 }
1086 }
1087
1088
1089 /**
1090 * Returns a specific repetition of
1091 * IN1-9: "Group Name" - creates it if necessary
1092 *
1093 * @param rep The repetition index (0-indexed)
1094 */
1095 public XON getGroupName(int rep) {
1096 XON ret = null;
1097 try {
1098 Type t = this.getField(9, rep);
1099 ret = (XON)t;
1100 } catch (ClassCastException cce) {
1101 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1102 throw new RuntimeException(cce);
1103 } catch (HL7Exception he) {
1104 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1105 throw new RuntimeException(he);
1106 }
1107 return ret;
1108 }
1109
1110 /**
1111 * Returns a specific repetition of
1112 * IN1-9: "Group Name" - creates it if necessary
1113 *
1114 * @param rep The repetition index (0-indexed)
1115 */
1116 public XON getIn19_GroupName(int rep) {
1117 XON ret = null;
1118 try {
1119 Type t = this.getField(9, rep);
1120 ret = (XON)t;
1121 } catch (ClassCastException cce) {
1122 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1123 throw new RuntimeException(cce);
1124 } catch (HL7Exception he) {
1125 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1126 throw new RuntimeException(he);
1127 }
1128 return ret;
1129 }
1130
1131
1132 /**
1133 * Returns a count of the current number of repetitions of Group Name (IN1-9).
1134 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1135 * it will return zero.
1136 */
1137 public int getIn19_GroupNameReps() {
1138 XON[] ret = null;
1139 try {
1140 Type[] t = this.getField(9);
1141 return t.length;
1142 } catch (ClassCastException cce) {
1143 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1144 throw new RuntimeException(cce);
1145 } catch (HL7Exception he) {
1146 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1147 throw new RuntimeException(he);
1148 }
1149 }
1150
1151
1152
1153 /**
1154 * Inserts a repetition of
1155 * IN1-9: "Group Name" at a specific index
1156 *
1157 * @param rep The repetition index (0-indexed)
1158 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1159 */
1160 public XON insertGroupName(int rep) throws HL7Exception {
1161 return (XON) super.insertRepetition(9, rep);
1162 }
1163
1164
1165
1166 /**
1167 * Inserts a repetition of
1168 * IN1-9: "Group Name" at a specific index
1169 *
1170 * @param rep The repetition index (0-indexed)
1171 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1172 */
1173 public XON insertIn19_GroupName(int rep) throws HL7Exception {
1174 return (XON) super.insertRepetition(9, rep);
1175 }
1176
1177
1178 /**
1179 * Removes a repetition of
1180 * IN1-9: "Group Name" at a specific index
1181 *
1182 * @param rep The repetition index (0-indexed)
1183 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1184 */
1185 public XON removeGroupName(int rep) throws HL7Exception {
1186 return (XON) super.removeRepetition(9, rep);
1187 }
1188
1189
1190 /**
1191 * Removes a repetition of
1192 * IN1-9: "Group Name" at a specific index
1193 *
1194 * @param rep The repetition index (0-indexed)
1195 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1196 */
1197 public XON removeIn19_GroupName(int rep) throws HL7Exception {
1198 return (XON) super.removeRepetition(9, rep);
1199 }
1200
1201
1202
1203 /**
1204 * Returns all repetitions of Insured's Group Emp ID (IN1-10).
1205 */
1206 public CX[] getInsuredSGroupEmpID() {
1207 CX[] ret = null;
1208 try {
1209 Type[] t = this.getField(10);
1210 ret = new CX[t.length];
1211 for (int i = 0; i < ret.length; i++) {
1212 ret[i] = (CX)t[i];
1213 }
1214 } catch (ClassCastException cce) {
1215 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1216 throw new RuntimeException(cce);
1217 } catch (HL7Exception he) {
1218 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1219 throw new RuntimeException(he);
1220 }
1221 return ret;
1222 }
1223
1224
1225 /**
1226 * Returns a count of the current number of repetitions of Insured's Group Emp ID (IN1-10).
1227 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1228 * it will return zero.
1229 */
1230 public int getInsuredSGroupEmpIDReps() {
1231 CX[] ret = null;
1232 try {
1233 Type[] t = this.getField(10);
1234 return t.length;
1235 } catch (ClassCastException cce) {
1236 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1237 throw new RuntimeException(cce);
1238 } catch (HL7Exception he) {
1239 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1240 throw new RuntimeException(he);
1241 }
1242 }
1243
1244
1245 /**
1246 * Returns a specific repetition of
1247 * IN1-10: "Insured's Group Emp ID" - creates it if necessary
1248 *
1249 * @param rep The repetition index (0-indexed)
1250 */
1251 public CX getInsuredSGroupEmpID(int rep) {
1252 CX ret = null;
1253 try {
1254 Type t = this.getField(10, rep);
1255 ret = (CX)t;
1256 } catch (ClassCastException cce) {
1257 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1258 throw new RuntimeException(cce);
1259 } catch (HL7Exception he) {
1260 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1261 throw new RuntimeException(he);
1262 }
1263 return ret;
1264 }
1265
1266 /**
1267 * Returns a specific repetition of
1268 * IN1-10: "Insured's Group Emp ID" - creates it if necessary
1269 *
1270 * @param rep The repetition index (0-indexed)
1271 */
1272 public CX getIn110_InsuredSGroupEmpID(int rep) {
1273 CX ret = null;
1274 try {
1275 Type t = this.getField(10, rep);
1276 ret = (CX)t;
1277 } catch (ClassCastException cce) {
1278 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1279 throw new RuntimeException(cce);
1280 } catch (HL7Exception he) {
1281 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1282 throw new RuntimeException(he);
1283 }
1284 return ret;
1285 }
1286
1287
1288 /**
1289 * Returns a count of the current number of repetitions of Insured's Group Emp ID (IN1-10).
1290 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1291 * it will return zero.
1292 */
1293 public int getIn110_InsuredSGroupEmpIDReps() {
1294 CX[] ret = null;
1295 try {
1296 Type[] t = this.getField(10);
1297 return t.length;
1298 } catch (ClassCastException cce) {
1299 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1300 throw new RuntimeException(cce);
1301 } catch (HL7Exception he) {
1302 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1303 throw new RuntimeException(he);
1304 }
1305 }
1306
1307
1308
1309 /**
1310 * Inserts a repetition of
1311 * IN1-10: "Insured's Group Emp ID" at a specific index
1312 *
1313 * @param rep The repetition index (0-indexed)
1314 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1315 */
1316 public CX insertInsuredSGroupEmpID(int rep) throws HL7Exception {
1317 return (CX) super.insertRepetition(10, rep);
1318 }
1319
1320
1321
1322 /**
1323 * Inserts a repetition of
1324 * IN1-10: "Insured's Group Emp ID" at a specific index
1325 *
1326 * @param rep The repetition index (0-indexed)
1327 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1328 */
1329 public CX insertIn110_InsuredSGroupEmpID(int rep) throws HL7Exception {
1330 return (CX) super.insertRepetition(10, rep);
1331 }
1332
1333
1334 /**
1335 * Removes a repetition of
1336 * IN1-10: "Insured's Group Emp ID" at a specific index
1337 *
1338 * @param rep The repetition index (0-indexed)
1339 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1340 */
1341 public CX removeInsuredSGroupEmpID(int rep) throws HL7Exception {
1342 return (CX) super.removeRepetition(10, rep);
1343 }
1344
1345
1346 /**
1347 * Removes a repetition of
1348 * IN1-10: "Insured's Group Emp ID" at a specific index
1349 *
1350 * @param rep The repetition index (0-indexed)
1351 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1352 */
1353 public CX removeIn110_InsuredSGroupEmpID(int rep) throws HL7Exception {
1354 return (CX) super.removeRepetition(10, rep);
1355 }
1356
1357
1358
1359 /**
1360 * Returns all repetitions of Insured's Group Emp Name (IN1-11).
1361 */
1362 public XON[] getInsuredSGroupEmpName() {
1363 XON[] ret = null;
1364 try {
1365 Type[] t = this.getField(11);
1366 ret = new XON[t.length];
1367 for (int i = 0; i < ret.length; i++) {
1368 ret[i] = (XON)t[i];
1369 }
1370 } catch (ClassCastException cce) {
1371 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1372 throw new RuntimeException(cce);
1373 } catch (HL7Exception he) {
1374 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1375 throw new RuntimeException(he);
1376 }
1377 return ret;
1378 }
1379
1380
1381 /**
1382 * Returns a count of the current number of repetitions of Insured's Group Emp Name (IN1-11).
1383 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1384 * it will return zero.
1385 */
1386 public int getInsuredSGroupEmpNameReps() {
1387 XON[] ret = null;
1388 try {
1389 Type[] t = this.getField(11);
1390 return t.length;
1391 } catch (ClassCastException cce) {
1392 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1393 throw new RuntimeException(cce);
1394 } catch (HL7Exception he) {
1395 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1396 throw new RuntimeException(he);
1397 }
1398 }
1399
1400
1401 /**
1402 * Returns a specific repetition of
1403 * IN1-11: "Insured's Group Emp Name" - creates it if necessary
1404 *
1405 * @param rep The repetition index (0-indexed)
1406 */
1407 public XON getInsuredSGroupEmpName(int rep) {
1408 XON ret = null;
1409 try {
1410 Type t = this.getField(11, rep);
1411 ret = (XON)t;
1412 } catch (ClassCastException cce) {
1413 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1414 throw new RuntimeException(cce);
1415 } catch (HL7Exception he) {
1416 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1417 throw new RuntimeException(he);
1418 }
1419 return ret;
1420 }
1421
1422 /**
1423 * Returns a specific repetition of
1424 * IN1-11: "Insured's Group Emp Name" - creates it if necessary
1425 *
1426 * @param rep The repetition index (0-indexed)
1427 */
1428 public XON getIn111_InsuredSGroupEmpName(int rep) {
1429 XON ret = null;
1430 try {
1431 Type t = this.getField(11, rep);
1432 ret = (XON)t;
1433 } catch (ClassCastException cce) {
1434 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1435 throw new RuntimeException(cce);
1436 } catch (HL7Exception he) {
1437 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1438 throw new RuntimeException(he);
1439 }
1440 return ret;
1441 }
1442
1443
1444 /**
1445 * Returns a count of the current number of repetitions of Insured's Group Emp Name (IN1-11).
1446 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1447 * it will return zero.
1448 */
1449 public int getIn111_InsuredSGroupEmpNameReps() {
1450 XON[] ret = null;
1451 try {
1452 Type[] t = this.getField(11);
1453 return t.length;
1454 } catch (ClassCastException cce) {
1455 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1456 throw new RuntimeException(cce);
1457 } catch (HL7Exception he) {
1458 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1459 throw new RuntimeException(he);
1460 }
1461 }
1462
1463
1464
1465 /**
1466 * Inserts a repetition of
1467 * IN1-11: "Insured's Group Emp Name" at a specific index
1468 *
1469 * @param rep The repetition index (0-indexed)
1470 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1471 */
1472 public XON insertInsuredSGroupEmpName(int rep) throws HL7Exception {
1473 return (XON) super.insertRepetition(11, rep);
1474 }
1475
1476
1477
1478 /**
1479 * Inserts a repetition of
1480 * IN1-11: "Insured's Group Emp Name" at a specific index
1481 *
1482 * @param rep The repetition index (0-indexed)
1483 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1484 */
1485 public XON insertIn111_InsuredSGroupEmpName(int rep) throws HL7Exception {
1486 return (XON) super.insertRepetition(11, rep);
1487 }
1488
1489
1490 /**
1491 * Removes a repetition of
1492 * IN1-11: "Insured's Group Emp Name" at a specific index
1493 *
1494 * @param rep The repetition index (0-indexed)
1495 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1496 */
1497 public XON removeInsuredSGroupEmpName(int rep) throws HL7Exception {
1498 return (XON) super.removeRepetition(11, rep);
1499 }
1500
1501
1502 /**
1503 * Removes a repetition of
1504 * IN1-11: "Insured's Group Emp Name" at a specific index
1505 *
1506 * @param rep The repetition index (0-indexed)
1507 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1508 */
1509 public XON removeIn111_InsuredSGroupEmpName(int rep) throws HL7Exception {
1510 return (XON) super.removeRepetition(11, rep);
1511 }
1512
1513
1514
1515
1516 /**
1517 * Returns
1518 * IN1-12: "Plan Effective Date" - creates it if necessary
1519 */
1520 public DT getPlanEffectiveDate() {
1521 DT ret = null;
1522 try {
1523 Type t = this.getField(12, 0);
1524 ret = (DT)t;
1525 } catch (ClassCastException cce) {
1526 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1527 throw new RuntimeException(cce);
1528 } catch (HL7Exception he) {
1529 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1530 throw new RuntimeException(he);
1531 }
1532 return ret;
1533 }
1534
1535
1536 /**
1537 * Returns
1538 * IN1-12: "Plan Effective Date" - creates it if necessary
1539 */
1540 public DT getIn112_PlanEffectiveDate() {
1541 DT ret = null;
1542 try {
1543 Type t = this.getField(12, 0);
1544 ret = (DT)t;
1545 } catch (ClassCastException cce) {
1546 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1547 throw new RuntimeException(cce);
1548 } catch (HL7Exception he) {
1549 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1550 throw new RuntimeException(he);
1551 }
1552 return ret;
1553 }
1554
1555
1556
1557 /**
1558 * Returns
1559 * IN1-13: "Plan Expiration Date" - creates it if necessary
1560 */
1561 public DT getPlanExpirationDate() {
1562 DT ret = null;
1563 try {
1564 Type t = this.getField(13, 0);
1565 ret = (DT)t;
1566 } catch (ClassCastException cce) {
1567 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1568 throw new RuntimeException(cce);
1569 } catch (HL7Exception he) {
1570 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1571 throw new RuntimeException(he);
1572 }
1573 return ret;
1574 }
1575
1576
1577 /**
1578 * Returns
1579 * IN1-13: "Plan Expiration Date" - creates it if necessary
1580 */
1581 public DT getIn113_PlanExpirationDate() {
1582 DT ret = null;
1583 try {
1584 Type t = this.getField(13, 0);
1585 ret = (DT)t;
1586 } catch (ClassCastException cce) {
1587 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1588 throw new RuntimeException(cce);
1589 } catch (HL7Exception he) {
1590 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1591 throw new RuntimeException(he);
1592 }
1593 return ret;
1594 }
1595
1596
1597
1598 /**
1599 * Returns
1600 * IN1-14: "Authorization Information" - creates it if necessary
1601 */
1602 public AUI getAuthorizationInformation() {
1603 AUI ret = null;
1604 try {
1605 Type t = this.getField(14, 0);
1606 ret = (AUI)t;
1607 } catch (ClassCastException cce) {
1608 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1609 throw new RuntimeException(cce);
1610 } catch (HL7Exception he) {
1611 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1612 throw new RuntimeException(he);
1613 }
1614 return ret;
1615 }
1616
1617
1618 /**
1619 * Returns
1620 * IN1-14: "Authorization Information" - creates it if necessary
1621 */
1622 public AUI getIn114_AuthorizationInformation() {
1623 AUI ret = null;
1624 try {
1625 Type t = this.getField(14, 0);
1626 ret = (AUI)t;
1627 } catch (ClassCastException cce) {
1628 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1629 throw new RuntimeException(cce);
1630 } catch (HL7Exception he) {
1631 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1632 throw new RuntimeException(he);
1633 }
1634 return ret;
1635 }
1636
1637
1638
1639 /**
1640 * Returns
1641 * IN1-15: "Plan Type" - creates it if necessary
1642 */
1643 public IS getPlanType() {
1644 IS ret = null;
1645 try {
1646 Type t = this.getField(15, 0);
1647 ret = (IS)t;
1648 } catch (ClassCastException cce) {
1649 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1650 throw new RuntimeException(cce);
1651 } catch (HL7Exception he) {
1652 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1653 throw new RuntimeException(he);
1654 }
1655 return ret;
1656 }
1657
1658
1659 /**
1660 * Returns
1661 * IN1-15: "Plan Type" - creates it if necessary
1662 */
1663 public IS getIn115_PlanType() {
1664 IS ret = null;
1665 try {
1666 Type t = this.getField(15, 0);
1667 ret = (IS)t;
1668 } catch (ClassCastException cce) {
1669 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1670 throw new RuntimeException(cce);
1671 } catch (HL7Exception he) {
1672 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1673 throw new RuntimeException(he);
1674 }
1675 return ret;
1676 }
1677
1678
1679 /**
1680 * Returns all repetitions of Name Of Insured (IN1-16).
1681 */
1682 public XPN[] getNameOfInsured() {
1683 XPN[] ret = null;
1684 try {
1685 Type[] t = this.getField(16);
1686 ret = new XPN[t.length];
1687 for (int i = 0; i < ret.length; i++) {
1688 ret[i] = (XPN)t[i];
1689 }
1690 } catch (ClassCastException cce) {
1691 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1692 throw new RuntimeException(cce);
1693 } catch (HL7Exception he) {
1694 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1695 throw new RuntimeException(he);
1696 }
1697 return ret;
1698 }
1699
1700
1701 /**
1702 * Returns a count of the current number of repetitions of Name Of Insured (IN1-16).
1703 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1704 * it will return zero.
1705 */
1706 public int getNameOfInsuredReps() {
1707 XPN[] ret = null;
1708 try {
1709 Type[] t = this.getField(16);
1710 return t.length;
1711 } catch (ClassCastException cce) {
1712 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1713 throw new RuntimeException(cce);
1714 } catch (HL7Exception he) {
1715 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1716 throw new RuntimeException(he);
1717 }
1718 }
1719
1720
1721 /**
1722 * Returns a specific repetition of
1723 * IN1-16: "Name Of Insured" - creates it if necessary
1724 *
1725 * @param rep The repetition index (0-indexed)
1726 */
1727 public XPN getNameOfInsured(int rep) {
1728 XPN ret = null;
1729 try {
1730 Type t = this.getField(16, rep);
1731 ret = (XPN)t;
1732 } catch (ClassCastException cce) {
1733 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1734 throw new RuntimeException(cce);
1735 } catch (HL7Exception he) {
1736 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1737 throw new RuntimeException(he);
1738 }
1739 return ret;
1740 }
1741
1742 /**
1743 * Returns a specific repetition of
1744 * IN1-16: "Name Of Insured" - creates it if necessary
1745 *
1746 * @param rep The repetition index (0-indexed)
1747 */
1748 public XPN getIn116_NameOfInsured(int rep) {
1749 XPN ret = null;
1750 try {
1751 Type t = this.getField(16, rep);
1752 ret = (XPN)t;
1753 } catch (ClassCastException cce) {
1754 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1755 throw new RuntimeException(cce);
1756 } catch (HL7Exception he) {
1757 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1758 throw new RuntimeException(he);
1759 }
1760 return ret;
1761 }
1762
1763
1764 /**
1765 * Returns a count of the current number of repetitions of Name Of Insured (IN1-16).
1766 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1767 * it will return zero.
1768 */
1769 public int getIn116_NameOfInsuredReps() {
1770 XPN[] ret = null;
1771 try {
1772 Type[] t = this.getField(16);
1773 return t.length;
1774 } catch (ClassCastException cce) {
1775 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1776 throw new RuntimeException(cce);
1777 } catch (HL7Exception he) {
1778 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1779 throw new RuntimeException(he);
1780 }
1781 }
1782
1783
1784
1785 /**
1786 * Inserts a repetition of
1787 * IN1-16: "Name Of Insured" at a specific index
1788 *
1789 * @param rep The repetition index (0-indexed)
1790 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1791 */
1792 public XPN insertNameOfInsured(int rep) throws HL7Exception {
1793 return (XPN) super.insertRepetition(16, rep);
1794 }
1795
1796
1797
1798 /**
1799 * Inserts a repetition of
1800 * IN1-16: "Name Of Insured" at a specific index
1801 *
1802 * @param rep The repetition index (0-indexed)
1803 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1804 */
1805 public XPN insertIn116_NameOfInsured(int rep) throws HL7Exception {
1806 return (XPN) super.insertRepetition(16, rep);
1807 }
1808
1809
1810 /**
1811 * Removes a repetition of
1812 * IN1-16: "Name Of Insured" at a specific index
1813 *
1814 * @param rep The repetition index (0-indexed)
1815 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1816 */
1817 public XPN removeNameOfInsured(int rep) throws HL7Exception {
1818 return (XPN) super.removeRepetition(16, rep);
1819 }
1820
1821
1822 /**
1823 * Removes a repetition of
1824 * IN1-16: "Name Of Insured" at a specific index
1825 *
1826 * @param rep The repetition index (0-indexed)
1827 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1828 */
1829 public XPN removeIn116_NameOfInsured(int rep) throws HL7Exception {
1830 return (XPN) super.removeRepetition(16, rep);
1831 }
1832
1833
1834
1835
1836 /**
1837 * Returns
1838 * IN1-17: "Insured's Relationship To Patient" - creates it if necessary
1839 */
1840 public CE getInsuredSRelationshipToPatient() {
1841 CE ret = null;
1842 try {
1843 Type t = this.getField(17, 0);
1844 ret = (CE)t;
1845 } catch (ClassCastException cce) {
1846 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1847 throw new RuntimeException(cce);
1848 } catch (HL7Exception he) {
1849 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1850 throw new RuntimeException(he);
1851 }
1852 return ret;
1853 }
1854
1855
1856 /**
1857 * Returns
1858 * IN1-17: "Insured's Relationship To Patient" - creates it if necessary
1859 */
1860 public CE getIn117_InsuredSRelationshipToPatient() {
1861 CE ret = null;
1862 try {
1863 Type t = this.getField(17, 0);
1864 ret = (CE)t;
1865 } catch (ClassCastException cce) {
1866 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1867 throw new RuntimeException(cce);
1868 } catch (HL7Exception he) {
1869 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1870 throw new RuntimeException(he);
1871 }
1872 return ret;
1873 }
1874
1875
1876
1877 /**
1878 * Returns
1879 * IN1-18: "Insured's Date Of Birth" - creates it if necessary
1880 */
1881 public TS getInsuredSDateOfBirth() {
1882 TS ret = null;
1883 try {
1884 Type t = this.getField(18, 0);
1885 ret = (TS)t;
1886 } catch (ClassCastException cce) {
1887 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1888 throw new RuntimeException(cce);
1889 } catch (HL7Exception he) {
1890 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1891 throw new RuntimeException(he);
1892 }
1893 return ret;
1894 }
1895
1896
1897 /**
1898 * Returns
1899 * IN1-18: "Insured's Date Of Birth" - creates it if necessary
1900 */
1901 public TS getIn118_InsuredSDateOfBirth() {
1902 TS ret = null;
1903 try {
1904 Type t = this.getField(18, 0);
1905 ret = (TS)t;
1906 } catch (ClassCastException cce) {
1907 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1908 throw new RuntimeException(cce);
1909 } catch (HL7Exception he) {
1910 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1911 throw new RuntimeException(he);
1912 }
1913 return ret;
1914 }
1915
1916
1917 /**
1918 * Returns all repetitions of Insured's Address (IN1-19).
1919 */
1920 public XAD[] getInsuredSAddress() {
1921 XAD[] ret = null;
1922 try {
1923 Type[] t = this.getField(19);
1924 ret = new XAD[t.length];
1925 for (int i = 0; i < ret.length; i++) {
1926 ret[i] = (XAD)t[i];
1927 }
1928 } catch (ClassCastException cce) {
1929 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1930 throw new RuntimeException(cce);
1931 } catch (HL7Exception he) {
1932 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1933 throw new RuntimeException(he);
1934 }
1935 return ret;
1936 }
1937
1938
1939 /**
1940 * Returns a count of the current number of repetitions of Insured's Address (IN1-19).
1941 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1942 * it will return zero.
1943 */
1944 public int getInsuredSAddressReps() {
1945 XAD[] ret = null;
1946 try {
1947 Type[] t = this.getField(19);
1948 return t.length;
1949 } catch (ClassCastException cce) {
1950 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1951 throw new RuntimeException(cce);
1952 } catch (HL7Exception he) {
1953 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1954 throw new RuntimeException(he);
1955 }
1956 }
1957
1958
1959 /**
1960 * Returns a specific repetition of
1961 * IN1-19: "Insured's Address" - creates it if necessary
1962 *
1963 * @param rep The repetition index (0-indexed)
1964 */
1965 public XAD getInsuredSAddress(int rep) {
1966 XAD ret = null;
1967 try {
1968 Type t = this.getField(19, rep);
1969 ret = (XAD)t;
1970 } catch (ClassCastException cce) {
1971 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1972 throw new RuntimeException(cce);
1973 } catch (HL7Exception he) {
1974 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1975 throw new RuntimeException(he);
1976 }
1977 return ret;
1978 }
1979
1980 /**
1981 * Returns a specific repetition of
1982 * IN1-19: "Insured's Address" - creates it if necessary
1983 *
1984 * @param rep The repetition index (0-indexed)
1985 */
1986 public XAD getIn119_InsuredSAddress(int rep) {
1987 XAD ret = null;
1988 try {
1989 Type t = this.getField(19, rep);
1990 ret = (XAD)t;
1991 } catch (ClassCastException cce) {
1992 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
1993 throw new RuntimeException(cce);
1994 } catch (HL7Exception he) {
1995 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
1996 throw new RuntimeException(he);
1997 }
1998 return ret;
1999 }
2000
2001
2002 /**
2003 * Returns a count of the current number of repetitions of Insured's Address (IN1-19).
2004 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2005 * it will return zero.
2006 */
2007 public int getIn119_InsuredSAddressReps() {
2008 XAD[] ret = null;
2009 try {
2010 Type[] t = this.getField(19);
2011 return t.length;
2012 } catch (ClassCastException cce) {
2013 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2014 throw new RuntimeException(cce);
2015 } catch (HL7Exception he) {
2016 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2017 throw new RuntimeException(he);
2018 }
2019 }
2020
2021
2022
2023 /**
2024 * Inserts a repetition of
2025 * IN1-19: "Insured's Address" at a specific index
2026 *
2027 * @param rep The repetition index (0-indexed)
2028 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2029 */
2030 public XAD insertInsuredSAddress(int rep) throws HL7Exception {
2031 return (XAD) super.insertRepetition(19, rep);
2032 }
2033
2034
2035
2036 /**
2037 * Inserts a repetition of
2038 * IN1-19: "Insured's Address" at a specific index
2039 *
2040 * @param rep The repetition index (0-indexed)
2041 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2042 */
2043 public XAD insertIn119_InsuredSAddress(int rep) throws HL7Exception {
2044 return (XAD) super.insertRepetition(19, rep);
2045 }
2046
2047
2048 /**
2049 * Removes a repetition of
2050 * IN1-19: "Insured's Address" at a specific index
2051 *
2052 * @param rep The repetition index (0-indexed)
2053 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2054 */
2055 public XAD removeInsuredSAddress(int rep) throws HL7Exception {
2056 return (XAD) super.removeRepetition(19, rep);
2057 }
2058
2059
2060 /**
2061 * Removes a repetition of
2062 * IN1-19: "Insured's Address" at a specific index
2063 *
2064 * @param rep The repetition index (0-indexed)
2065 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2066 */
2067 public XAD removeIn119_InsuredSAddress(int rep) throws HL7Exception {
2068 return (XAD) super.removeRepetition(19, rep);
2069 }
2070
2071
2072
2073
2074 /**
2075 * Returns
2076 * IN1-20: "Assignment Of Benefits" - creates it if necessary
2077 */
2078 public IS getAssignmentOfBenefits() {
2079 IS ret = null;
2080 try {
2081 Type t = this.getField(20, 0);
2082 ret = (IS)t;
2083 } catch (ClassCastException cce) {
2084 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2085 throw new RuntimeException(cce);
2086 } catch (HL7Exception he) {
2087 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2088 throw new RuntimeException(he);
2089 }
2090 return ret;
2091 }
2092
2093
2094 /**
2095 * Returns
2096 * IN1-20: "Assignment Of Benefits" - creates it if necessary
2097 */
2098 public IS getIn120_AssignmentOfBenefits() {
2099 IS ret = null;
2100 try {
2101 Type t = this.getField(20, 0);
2102 ret = (IS)t;
2103 } catch (ClassCastException cce) {
2104 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2105 throw new RuntimeException(cce);
2106 } catch (HL7Exception he) {
2107 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2108 throw new RuntimeException(he);
2109 }
2110 return ret;
2111 }
2112
2113
2114
2115 /**
2116 * Returns
2117 * IN1-21: "Coordination Of Benefits" - creates it if necessary
2118 */
2119 public IS getCoordinationOfBenefits() {
2120 IS ret = null;
2121 try {
2122 Type t = this.getField(21, 0);
2123 ret = (IS)t;
2124 } catch (ClassCastException cce) {
2125 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2126 throw new RuntimeException(cce);
2127 } catch (HL7Exception he) {
2128 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2129 throw new RuntimeException(he);
2130 }
2131 return ret;
2132 }
2133
2134
2135 /**
2136 * Returns
2137 * IN1-21: "Coordination Of Benefits" - creates it if necessary
2138 */
2139 public IS getIn121_CoordinationOfBenefits() {
2140 IS ret = null;
2141 try {
2142 Type t = this.getField(21, 0);
2143 ret = (IS)t;
2144 } catch (ClassCastException cce) {
2145 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2146 throw new RuntimeException(cce);
2147 } catch (HL7Exception he) {
2148 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2149 throw new RuntimeException(he);
2150 }
2151 return ret;
2152 }
2153
2154
2155
2156 /**
2157 * Returns
2158 * IN1-22: "Coord Of Ben. Priority" - creates it if necessary
2159 */
2160 public ST getCoordOfBenPriority() {
2161 ST ret = null;
2162 try {
2163 Type t = this.getField(22, 0);
2164 ret = (ST)t;
2165 } catch (ClassCastException cce) {
2166 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2167 throw new RuntimeException(cce);
2168 } catch (HL7Exception he) {
2169 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2170 throw new RuntimeException(he);
2171 }
2172 return ret;
2173 }
2174
2175
2176 /**
2177 * Returns
2178 * IN1-22: "Coord Of Ben. Priority" - creates it if necessary
2179 */
2180 public ST getIn122_CoordOfBenPriority() {
2181 ST ret = null;
2182 try {
2183 Type t = this.getField(22, 0);
2184 ret = (ST)t;
2185 } catch (ClassCastException cce) {
2186 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2187 throw new RuntimeException(cce);
2188 } catch (HL7Exception he) {
2189 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2190 throw new RuntimeException(he);
2191 }
2192 return ret;
2193 }
2194
2195
2196
2197 /**
2198 * Returns
2199 * IN1-23: "Notice Of Admission Flag" - creates it if necessary
2200 */
2201 public ID getNoticeOfAdmissionFlag() {
2202 ID ret = null;
2203 try {
2204 Type t = this.getField(23, 0);
2205 ret = (ID)t;
2206 } catch (ClassCastException cce) {
2207 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2208 throw new RuntimeException(cce);
2209 } catch (HL7Exception he) {
2210 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2211 throw new RuntimeException(he);
2212 }
2213 return ret;
2214 }
2215
2216
2217 /**
2218 * Returns
2219 * IN1-23: "Notice Of Admission Flag" - creates it if necessary
2220 */
2221 public ID getIn123_NoticeOfAdmissionFlag() {
2222 ID ret = null;
2223 try {
2224 Type t = this.getField(23, 0);
2225 ret = (ID)t;
2226 } catch (ClassCastException cce) {
2227 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2228 throw new RuntimeException(cce);
2229 } catch (HL7Exception he) {
2230 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2231 throw new RuntimeException(he);
2232 }
2233 return ret;
2234 }
2235
2236
2237
2238 /**
2239 * Returns
2240 * IN1-24: "Notice Of Admission Date" - creates it if necessary
2241 */
2242 public DT getNoticeOfAdmissionDate() {
2243 DT ret = null;
2244 try {
2245 Type t = this.getField(24, 0);
2246 ret = (DT)t;
2247 } catch (ClassCastException cce) {
2248 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2249 throw new RuntimeException(cce);
2250 } catch (HL7Exception he) {
2251 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2252 throw new RuntimeException(he);
2253 }
2254 return ret;
2255 }
2256
2257
2258 /**
2259 * Returns
2260 * IN1-24: "Notice Of Admission Date" - creates it if necessary
2261 */
2262 public DT getIn124_NoticeOfAdmissionDate() {
2263 DT ret = null;
2264 try {
2265 Type t = this.getField(24, 0);
2266 ret = (DT)t;
2267 } catch (ClassCastException cce) {
2268 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2269 throw new RuntimeException(cce);
2270 } catch (HL7Exception he) {
2271 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2272 throw new RuntimeException(he);
2273 }
2274 return ret;
2275 }
2276
2277
2278
2279 /**
2280 * Returns
2281 * IN1-25: "Report Of Eligibility Flag" - creates it if necessary
2282 */
2283 public ID getReportOfEligibilityFlag() {
2284 ID ret = null;
2285 try {
2286 Type t = this.getField(25, 0);
2287 ret = (ID)t;
2288 } catch (ClassCastException cce) {
2289 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2290 throw new RuntimeException(cce);
2291 } catch (HL7Exception he) {
2292 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2293 throw new RuntimeException(he);
2294 }
2295 return ret;
2296 }
2297
2298
2299 /**
2300 * Returns
2301 * IN1-25: "Report Of Eligibility Flag" - creates it if necessary
2302 */
2303 public ID getIn125_ReportOfEligibilityFlag() {
2304 ID ret = null;
2305 try {
2306 Type t = this.getField(25, 0);
2307 ret = (ID)t;
2308 } catch (ClassCastException cce) {
2309 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2310 throw new RuntimeException(cce);
2311 } catch (HL7Exception he) {
2312 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2313 throw new RuntimeException(he);
2314 }
2315 return ret;
2316 }
2317
2318
2319
2320 /**
2321 * Returns
2322 * IN1-26: "Report Of Eligibility Date" - creates it if necessary
2323 */
2324 public DT getReportOfEligibilityDate() {
2325 DT ret = null;
2326 try {
2327 Type t = this.getField(26, 0);
2328 ret = (DT)t;
2329 } catch (ClassCastException cce) {
2330 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2331 throw new RuntimeException(cce);
2332 } catch (HL7Exception he) {
2333 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2334 throw new RuntimeException(he);
2335 }
2336 return ret;
2337 }
2338
2339
2340 /**
2341 * Returns
2342 * IN1-26: "Report Of Eligibility Date" - creates it if necessary
2343 */
2344 public DT getIn126_ReportOfEligibilityDate() {
2345 DT ret = null;
2346 try {
2347 Type t = this.getField(26, 0);
2348 ret = (DT)t;
2349 } catch (ClassCastException cce) {
2350 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2351 throw new RuntimeException(cce);
2352 } catch (HL7Exception he) {
2353 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2354 throw new RuntimeException(he);
2355 }
2356 return ret;
2357 }
2358
2359
2360
2361 /**
2362 * Returns
2363 * IN1-27: "Release Information Code" - creates it if necessary
2364 */
2365 public IS getReleaseInformationCode() {
2366 IS ret = null;
2367 try {
2368 Type t = this.getField(27, 0);
2369 ret = (IS)t;
2370 } catch (ClassCastException cce) {
2371 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2372 throw new RuntimeException(cce);
2373 } catch (HL7Exception he) {
2374 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2375 throw new RuntimeException(he);
2376 }
2377 return ret;
2378 }
2379
2380
2381 /**
2382 * Returns
2383 * IN1-27: "Release Information Code" - creates it if necessary
2384 */
2385 public IS getIn127_ReleaseInformationCode() {
2386 IS ret = null;
2387 try {
2388 Type t = this.getField(27, 0);
2389 ret = (IS)t;
2390 } catch (ClassCastException cce) {
2391 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2392 throw new RuntimeException(cce);
2393 } catch (HL7Exception he) {
2394 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2395 throw new RuntimeException(he);
2396 }
2397 return ret;
2398 }
2399
2400
2401
2402 /**
2403 * Returns
2404 * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary
2405 */
2406 public ST getPreAdmitCert() {
2407 ST ret = null;
2408 try {
2409 Type t = this.getField(28, 0);
2410 ret = (ST)t;
2411 } catch (ClassCastException cce) {
2412 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2413 throw new RuntimeException(cce);
2414 } catch (HL7Exception he) {
2415 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2416 throw new RuntimeException(he);
2417 }
2418 return ret;
2419 }
2420
2421
2422 /**
2423 * Returns
2424 * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary
2425 */
2426 public ST getIn128_PreAdmitCert() {
2427 ST ret = null;
2428 try {
2429 Type t = this.getField(28, 0);
2430 ret = (ST)t;
2431 } catch (ClassCastException cce) {
2432 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2433 throw new RuntimeException(cce);
2434 } catch (HL7Exception he) {
2435 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2436 throw new RuntimeException(he);
2437 }
2438 return ret;
2439 }
2440
2441
2442
2443 /**
2444 * Returns
2445 * IN1-29: "Verification Date/Time" - creates it if necessary
2446 */
2447 public TS getVerificationDateTime() {
2448 TS ret = null;
2449 try {
2450 Type t = this.getField(29, 0);
2451 ret = (TS)t;
2452 } catch (ClassCastException cce) {
2453 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2454 throw new RuntimeException(cce);
2455 } catch (HL7Exception he) {
2456 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2457 throw new RuntimeException(he);
2458 }
2459 return ret;
2460 }
2461
2462
2463 /**
2464 * Returns
2465 * IN1-29: "Verification Date/Time" - creates it if necessary
2466 */
2467 public TS getIn129_VerificationDateTime() {
2468 TS ret = null;
2469 try {
2470 Type t = this.getField(29, 0);
2471 ret = (TS)t;
2472 } catch (ClassCastException cce) {
2473 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2474 throw new RuntimeException(cce);
2475 } catch (HL7Exception he) {
2476 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2477 throw new RuntimeException(he);
2478 }
2479 return ret;
2480 }
2481
2482
2483 /**
2484 * Returns all repetitions of Verification By (IN1-30).
2485 */
2486 public XCN[] getVerificationBy() {
2487 XCN[] ret = null;
2488 try {
2489 Type[] t = this.getField(30);
2490 ret = new XCN[t.length];
2491 for (int i = 0; i < ret.length; i++) {
2492 ret[i] = (XCN)t[i];
2493 }
2494 } catch (ClassCastException cce) {
2495 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2496 throw new RuntimeException(cce);
2497 } catch (HL7Exception he) {
2498 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2499 throw new RuntimeException(he);
2500 }
2501 return ret;
2502 }
2503
2504
2505 /**
2506 * Returns a count of the current number of repetitions of Verification By (IN1-30).
2507 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2508 * it will return zero.
2509 */
2510 public int getVerificationByReps() {
2511 XCN[] ret = null;
2512 try {
2513 Type[] t = this.getField(30);
2514 return t.length;
2515 } catch (ClassCastException cce) {
2516 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2517 throw new RuntimeException(cce);
2518 } catch (HL7Exception he) {
2519 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2520 throw new RuntimeException(he);
2521 }
2522 }
2523
2524
2525 /**
2526 * Returns a specific repetition of
2527 * IN1-30: "Verification By" - creates it if necessary
2528 *
2529 * @param rep The repetition index (0-indexed)
2530 */
2531 public XCN getVerificationBy(int rep) {
2532 XCN ret = null;
2533 try {
2534 Type t = this.getField(30, rep);
2535 ret = (XCN)t;
2536 } catch (ClassCastException cce) {
2537 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2538 throw new RuntimeException(cce);
2539 } catch (HL7Exception he) {
2540 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2541 throw new RuntimeException(he);
2542 }
2543 return ret;
2544 }
2545
2546 /**
2547 * Returns a specific repetition of
2548 * IN1-30: "Verification By" - creates it if necessary
2549 *
2550 * @param rep The repetition index (0-indexed)
2551 */
2552 public XCN getIn130_VerificationBy(int rep) {
2553 XCN ret = null;
2554 try {
2555 Type t = this.getField(30, rep);
2556 ret = (XCN)t;
2557 } catch (ClassCastException cce) {
2558 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2559 throw new RuntimeException(cce);
2560 } catch (HL7Exception he) {
2561 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2562 throw new RuntimeException(he);
2563 }
2564 return ret;
2565 }
2566
2567
2568 /**
2569 * Returns a count of the current number of repetitions of Verification By (IN1-30).
2570 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2571 * it will return zero.
2572 */
2573 public int getIn130_VerificationByReps() {
2574 XCN[] ret = null;
2575 try {
2576 Type[] t = this.getField(30);
2577 return t.length;
2578 } catch (ClassCastException cce) {
2579 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2580 throw new RuntimeException(cce);
2581 } catch (HL7Exception he) {
2582 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2583 throw new RuntimeException(he);
2584 }
2585 }
2586
2587
2588
2589 /**
2590 * Inserts a repetition of
2591 * IN1-30: "Verification By" at a specific index
2592 *
2593 * @param rep The repetition index (0-indexed)
2594 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2595 */
2596 public XCN insertVerificationBy(int rep) throws HL7Exception {
2597 return (XCN) super.insertRepetition(30, rep);
2598 }
2599
2600
2601
2602 /**
2603 * Inserts a repetition of
2604 * IN1-30: "Verification By" at a specific index
2605 *
2606 * @param rep The repetition index (0-indexed)
2607 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2608 */
2609 public XCN insertIn130_VerificationBy(int rep) throws HL7Exception {
2610 return (XCN) super.insertRepetition(30, rep);
2611 }
2612
2613
2614 /**
2615 * Removes a repetition of
2616 * IN1-30: "Verification By" at a specific index
2617 *
2618 * @param rep The repetition index (0-indexed)
2619 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2620 */
2621 public XCN removeVerificationBy(int rep) throws HL7Exception {
2622 return (XCN) super.removeRepetition(30, rep);
2623 }
2624
2625
2626 /**
2627 * Removes a repetition of
2628 * IN1-30: "Verification By" at a specific index
2629 *
2630 * @param rep The repetition index (0-indexed)
2631 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2632 */
2633 public XCN removeIn130_VerificationBy(int rep) throws HL7Exception {
2634 return (XCN) super.removeRepetition(30, rep);
2635 }
2636
2637
2638
2639
2640 /**
2641 * Returns
2642 * IN1-31: "Type Of Agreement Code" - creates it if necessary
2643 */
2644 public IS getTypeOfAgreementCode() {
2645 IS ret = null;
2646 try {
2647 Type t = this.getField(31, 0);
2648 ret = (IS)t;
2649 } catch (ClassCastException cce) {
2650 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2651 throw new RuntimeException(cce);
2652 } catch (HL7Exception he) {
2653 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2654 throw new RuntimeException(he);
2655 }
2656 return ret;
2657 }
2658
2659
2660 /**
2661 * Returns
2662 * IN1-31: "Type Of Agreement Code" - creates it if necessary
2663 */
2664 public IS getIn131_TypeOfAgreementCode() {
2665 IS ret = null;
2666 try {
2667 Type t = this.getField(31, 0);
2668 ret = (IS)t;
2669 } catch (ClassCastException cce) {
2670 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2671 throw new RuntimeException(cce);
2672 } catch (HL7Exception he) {
2673 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2674 throw new RuntimeException(he);
2675 }
2676 return ret;
2677 }
2678
2679
2680
2681 /**
2682 * Returns
2683 * IN1-32: "Billing Status" - creates it if necessary
2684 */
2685 public IS getBillingStatus() {
2686 IS ret = null;
2687 try {
2688 Type t = this.getField(32, 0);
2689 ret = (IS)t;
2690 } catch (ClassCastException cce) {
2691 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2692 throw new RuntimeException(cce);
2693 } catch (HL7Exception he) {
2694 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2695 throw new RuntimeException(he);
2696 }
2697 return ret;
2698 }
2699
2700
2701 /**
2702 * Returns
2703 * IN1-32: "Billing Status" - creates it if necessary
2704 */
2705 public IS getIn132_BillingStatus() {
2706 IS ret = null;
2707 try {
2708 Type t = this.getField(32, 0);
2709 ret = (IS)t;
2710 } catch (ClassCastException cce) {
2711 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2712 throw new RuntimeException(cce);
2713 } catch (HL7Exception he) {
2714 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2715 throw new RuntimeException(he);
2716 }
2717 return ret;
2718 }
2719
2720
2721
2722 /**
2723 * Returns
2724 * IN1-33: "Lifetime Reserve Days" - creates it if necessary
2725 */
2726 public NM getLifetimeReserveDays() {
2727 NM ret = null;
2728 try {
2729 Type t = this.getField(33, 0);
2730 ret = (NM)t;
2731 } catch (ClassCastException cce) {
2732 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2733 throw new RuntimeException(cce);
2734 } catch (HL7Exception he) {
2735 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2736 throw new RuntimeException(he);
2737 }
2738 return ret;
2739 }
2740
2741
2742 /**
2743 * Returns
2744 * IN1-33: "Lifetime Reserve Days" - creates it if necessary
2745 */
2746 public NM getIn133_LifetimeReserveDays() {
2747 NM ret = null;
2748 try {
2749 Type t = this.getField(33, 0);
2750 ret = (NM)t;
2751 } catch (ClassCastException cce) {
2752 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2753 throw new RuntimeException(cce);
2754 } catch (HL7Exception he) {
2755 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2756 throw new RuntimeException(he);
2757 }
2758 return ret;
2759 }
2760
2761
2762
2763 /**
2764 * Returns
2765 * IN1-34: "Delay Before L.R. Day" - creates it if necessary
2766 */
2767 public NM getDelayBeforeLRDay() {
2768 NM ret = null;
2769 try {
2770 Type t = this.getField(34, 0);
2771 ret = (NM)t;
2772 } catch (ClassCastException cce) {
2773 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2774 throw new RuntimeException(cce);
2775 } catch (HL7Exception he) {
2776 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2777 throw new RuntimeException(he);
2778 }
2779 return ret;
2780 }
2781
2782
2783 /**
2784 * Returns
2785 * IN1-34: "Delay Before L.R. Day" - creates it if necessary
2786 */
2787 public NM getIn134_DelayBeforeLRDay() {
2788 NM ret = null;
2789 try {
2790 Type t = this.getField(34, 0);
2791 ret = (NM)t;
2792 } catch (ClassCastException cce) {
2793 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2794 throw new RuntimeException(cce);
2795 } catch (HL7Exception he) {
2796 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2797 throw new RuntimeException(he);
2798 }
2799 return ret;
2800 }
2801
2802
2803
2804 /**
2805 * Returns
2806 * IN1-35: "Company Plan Code" - creates it if necessary
2807 */
2808 public IS getCompanyPlanCode() {
2809 IS ret = null;
2810 try {
2811 Type t = this.getField(35, 0);
2812 ret = (IS)t;
2813 } catch (ClassCastException cce) {
2814 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2815 throw new RuntimeException(cce);
2816 } catch (HL7Exception he) {
2817 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2818 throw new RuntimeException(he);
2819 }
2820 return ret;
2821 }
2822
2823
2824 /**
2825 * Returns
2826 * IN1-35: "Company Plan Code" - creates it if necessary
2827 */
2828 public IS getIn135_CompanyPlanCode() {
2829 IS ret = null;
2830 try {
2831 Type t = this.getField(35, 0);
2832 ret = (IS)t;
2833 } catch (ClassCastException cce) {
2834 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2835 throw new RuntimeException(cce);
2836 } catch (HL7Exception he) {
2837 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2838 throw new RuntimeException(he);
2839 }
2840 return ret;
2841 }
2842
2843
2844
2845 /**
2846 * Returns
2847 * IN1-36: "Policy Number" - creates it if necessary
2848 */
2849 public ST getPolicyNumber() {
2850 ST ret = null;
2851 try {
2852 Type t = this.getField(36, 0);
2853 ret = (ST)t;
2854 } catch (ClassCastException cce) {
2855 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2856 throw new RuntimeException(cce);
2857 } catch (HL7Exception he) {
2858 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2859 throw new RuntimeException(he);
2860 }
2861 return ret;
2862 }
2863
2864
2865 /**
2866 * Returns
2867 * IN1-36: "Policy Number" - creates it if necessary
2868 */
2869 public ST getIn136_PolicyNumber() {
2870 ST ret = null;
2871 try {
2872 Type t = this.getField(36, 0);
2873 ret = (ST)t;
2874 } catch (ClassCastException cce) {
2875 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2876 throw new RuntimeException(cce);
2877 } catch (HL7Exception he) {
2878 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2879 throw new RuntimeException(he);
2880 }
2881 return ret;
2882 }
2883
2884
2885
2886 /**
2887 * Returns
2888 * IN1-37: "Policy Deductible" - creates it if necessary
2889 */
2890 public CP getPolicyDeductible() {
2891 CP ret = null;
2892 try {
2893 Type t = this.getField(37, 0);
2894 ret = (CP)t;
2895 } catch (ClassCastException cce) {
2896 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2897 throw new RuntimeException(cce);
2898 } catch (HL7Exception he) {
2899 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2900 throw new RuntimeException(he);
2901 }
2902 return ret;
2903 }
2904
2905
2906 /**
2907 * Returns
2908 * IN1-37: "Policy Deductible" - creates it if necessary
2909 */
2910 public CP getIn137_PolicyDeductible() {
2911 CP ret = null;
2912 try {
2913 Type t = this.getField(37, 0);
2914 ret = (CP)t;
2915 } catch (ClassCastException cce) {
2916 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2917 throw new RuntimeException(cce);
2918 } catch (HL7Exception he) {
2919 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2920 throw new RuntimeException(he);
2921 }
2922 return ret;
2923 }
2924
2925
2926
2927 /**
2928 * Returns
2929 * IN1-38: "Policy Limit - Amount" - creates it if necessary
2930 */
2931 public CP getPolicyLimitAmount() {
2932 CP ret = null;
2933 try {
2934 Type t = this.getField(38, 0);
2935 ret = (CP)t;
2936 } catch (ClassCastException cce) {
2937 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2938 throw new RuntimeException(cce);
2939 } catch (HL7Exception he) {
2940 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2941 throw new RuntimeException(he);
2942 }
2943 return ret;
2944 }
2945
2946
2947 /**
2948 * Returns
2949 * IN1-38: "Policy Limit - Amount" - creates it if necessary
2950 */
2951 public CP getIn138_PolicyLimitAmount() {
2952 CP ret = null;
2953 try {
2954 Type t = this.getField(38, 0);
2955 ret = (CP)t;
2956 } catch (ClassCastException cce) {
2957 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2958 throw new RuntimeException(cce);
2959 } catch (HL7Exception he) {
2960 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2961 throw new RuntimeException(he);
2962 }
2963 return ret;
2964 }
2965
2966
2967
2968 /**
2969 * Returns
2970 * IN1-39: "Policy Limit - Days" - creates it if necessary
2971 */
2972 public NM getPolicyLimitDays() {
2973 NM ret = null;
2974 try {
2975 Type t = this.getField(39, 0);
2976 ret = (NM)t;
2977 } catch (ClassCastException cce) {
2978 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2979 throw new RuntimeException(cce);
2980 } catch (HL7Exception he) {
2981 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
2982 throw new RuntimeException(he);
2983 }
2984 return ret;
2985 }
2986
2987
2988 /**
2989 * Returns
2990 * IN1-39: "Policy Limit - Days" - creates it if necessary
2991 */
2992 public NM getIn139_PolicyLimitDays() {
2993 NM ret = null;
2994 try {
2995 Type t = this.getField(39, 0);
2996 ret = (NM)t;
2997 } catch (ClassCastException cce) {
2998 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
2999 throw new RuntimeException(cce);
3000 } catch (HL7Exception he) {
3001 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3002 throw new RuntimeException(he);
3003 }
3004 return ret;
3005 }
3006
3007
3008
3009 /**
3010 * Returns
3011 * IN1-40: "Room Rate - Semi-Private" - creates it if necessary
3012 */
3013 public CP getRoomRateSemiPrivate() {
3014 CP ret = null;
3015 try {
3016 Type t = this.getField(40, 0);
3017 ret = (CP)t;
3018 } catch (ClassCastException cce) {
3019 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3020 throw new RuntimeException(cce);
3021 } catch (HL7Exception he) {
3022 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3023 throw new RuntimeException(he);
3024 }
3025 return ret;
3026 }
3027
3028
3029 /**
3030 * Returns
3031 * IN1-40: "Room Rate - Semi-Private" - creates it if necessary
3032 */
3033 public CP getIn140_RoomRateSemiPrivate() {
3034 CP ret = null;
3035 try {
3036 Type t = this.getField(40, 0);
3037 ret = (CP)t;
3038 } catch (ClassCastException cce) {
3039 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3040 throw new RuntimeException(cce);
3041 } catch (HL7Exception he) {
3042 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3043 throw new RuntimeException(he);
3044 }
3045 return ret;
3046 }
3047
3048
3049
3050 /**
3051 * Returns
3052 * IN1-41: "Room Rate - Private" - creates it if necessary
3053 */
3054 public CP getRoomRatePrivate() {
3055 CP ret = null;
3056 try {
3057 Type t = this.getField(41, 0);
3058 ret = (CP)t;
3059 } catch (ClassCastException cce) {
3060 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3061 throw new RuntimeException(cce);
3062 } catch (HL7Exception he) {
3063 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3064 throw new RuntimeException(he);
3065 }
3066 return ret;
3067 }
3068
3069
3070 /**
3071 * Returns
3072 * IN1-41: "Room Rate - Private" - creates it if necessary
3073 */
3074 public CP getIn141_RoomRatePrivate() {
3075 CP ret = null;
3076 try {
3077 Type t = this.getField(41, 0);
3078 ret = (CP)t;
3079 } catch (ClassCastException cce) {
3080 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3081 throw new RuntimeException(cce);
3082 } catch (HL7Exception he) {
3083 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3084 throw new RuntimeException(he);
3085 }
3086 return ret;
3087 }
3088
3089
3090
3091 /**
3092 * Returns
3093 * IN1-42: "Insured's Employment Status" - creates it if necessary
3094 */
3095 public CE getInsuredSEmploymentStatus() {
3096 CE ret = null;
3097 try {
3098 Type t = this.getField(42, 0);
3099 ret = (CE)t;
3100 } catch (ClassCastException cce) {
3101 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3102 throw new RuntimeException(cce);
3103 } catch (HL7Exception he) {
3104 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3105 throw new RuntimeException(he);
3106 }
3107 return ret;
3108 }
3109
3110
3111 /**
3112 * Returns
3113 * IN1-42: "Insured's Employment Status" - creates it if necessary
3114 */
3115 public CE getIn142_InsuredSEmploymentStatus() {
3116 CE ret = null;
3117 try {
3118 Type t = this.getField(42, 0);
3119 ret = (CE)t;
3120 } catch (ClassCastException cce) {
3121 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3122 throw new RuntimeException(cce);
3123 } catch (HL7Exception he) {
3124 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3125 throw new RuntimeException(he);
3126 }
3127 return ret;
3128 }
3129
3130
3131
3132 /**
3133 * Returns
3134 * IN1-43: "Insured's Administrative Sex" - creates it if necessary
3135 */
3136 public IS getInsuredSAdministrativeSex() {
3137 IS ret = null;
3138 try {
3139 Type t = this.getField(43, 0);
3140 ret = (IS)t;
3141 } catch (ClassCastException cce) {
3142 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3143 throw new RuntimeException(cce);
3144 } catch (HL7Exception he) {
3145 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3146 throw new RuntimeException(he);
3147 }
3148 return ret;
3149 }
3150
3151
3152 /**
3153 * Returns
3154 * IN1-43: "Insured's Administrative Sex" - creates it if necessary
3155 */
3156 public IS getIn143_InsuredSAdministrativeSex() {
3157 IS ret = null;
3158 try {
3159 Type t = this.getField(43, 0);
3160 ret = (IS)t;
3161 } catch (ClassCastException cce) {
3162 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3163 throw new RuntimeException(cce);
3164 } catch (HL7Exception he) {
3165 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3166 throw new RuntimeException(he);
3167 }
3168 return ret;
3169 }
3170
3171
3172 /**
3173 * Returns all repetitions of Insured's Employer's Address (IN1-44).
3174 */
3175 public XAD[] getInsuredSEmployerSAddress() {
3176 XAD[] ret = null;
3177 try {
3178 Type[] t = this.getField(44);
3179 ret = new XAD[t.length];
3180 for (int i = 0; i < ret.length; i++) {
3181 ret[i] = (XAD)t[i];
3182 }
3183 } catch (ClassCastException cce) {
3184 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3185 throw new RuntimeException(cce);
3186 } catch (HL7Exception he) {
3187 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3188 throw new RuntimeException(he);
3189 }
3190 return ret;
3191 }
3192
3193
3194 /**
3195 * Returns a count of the current number of repetitions of Insured's Employer's Address (IN1-44).
3196 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
3197 * it will return zero.
3198 */
3199 public int getInsuredSEmployerSAddressReps() {
3200 XAD[] ret = null;
3201 try {
3202 Type[] t = this.getField(44);
3203 return t.length;
3204 } catch (ClassCastException cce) {
3205 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3206 throw new RuntimeException(cce);
3207 } catch (HL7Exception he) {
3208 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3209 throw new RuntimeException(he);
3210 }
3211 }
3212
3213
3214 /**
3215 * Returns a specific repetition of
3216 * IN1-44: "Insured's Employer's Address" - creates it if necessary
3217 *
3218 * @param rep The repetition index (0-indexed)
3219 */
3220 public XAD getInsuredSEmployerSAddress(int rep) {
3221 XAD ret = null;
3222 try {
3223 Type t = this.getField(44, rep);
3224 ret = (XAD)t;
3225 } catch (ClassCastException cce) {
3226 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3227 throw new RuntimeException(cce);
3228 } catch (HL7Exception he) {
3229 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3230 throw new RuntimeException(he);
3231 }
3232 return ret;
3233 }
3234
3235 /**
3236 * Returns a specific repetition of
3237 * IN1-44: "Insured's Employer's Address" - creates it if necessary
3238 *
3239 * @param rep The repetition index (0-indexed)
3240 */
3241 public XAD getIn144_InsuredSEmployerSAddress(int rep) {
3242 XAD ret = null;
3243 try {
3244 Type t = this.getField(44, rep);
3245 ret = (XAD)t;
3246 } catch (ClassCastException cce) {
3247 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3248 throw new RuntimeException(cce);
3249 } catch (HL7Exception he) {
3250 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3251 throw new RuntimeException(he);
3252 }
3253 return ret;
3254 }
3255
3256
3257 /**
3258 * Returns a count of the current number of repetitions of Insured's Employer's Address (IN1-44).
3259 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
3260 * it will return zero.
3261 */
3262 public int getIn144_InsuredSEmployerSAddressReps() {
3263 XAD[] ret = null;
3264 try {
3265 Type[] t = this.getField(44);
3266 return t.length;
3267 } catch (ClassCastException cce) {
3268 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3269 throw new RuntimeException(cce);
3270 } catch (HL7Exception he) {
3271 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3272 throw new RuntimeException(he);
3273 }
3274 }
3275
3276
3277
3278 /**
3279 * Inserts a repetition of
3280 * IN1-44: "Insured's Employer's Address" at a specific index
3281 *
3282 * @param rep The repetition index (0-indexed)
3283 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3284 */
3285 public XAD insertInsuredSEmployerSAddress(int rep) throws HL7Exception {
3286 return (XAD) super.insertRepetition(44, rep);
3287 }
3288
3289
3290
3291 /**
3292 * Inserts a repetition of
3293 * IN1-44: "Insured's Employer's Address" at a specific index
3294 *
3295 * @param rep The repetition index (0-indexed)
3296 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3297 */
3298 public XAD insertIn144_InsuredSEmployerSAddress(int rep) throws HL7Exception {
3299 return (XAD) super.insertRepetition(44, rep);
3300 }
3301
3302
3303 /**
3304 * Removes a repetition of
3305 * IN1-44: "Insured's Employer's Address" at a specific index
3306 *
3307 * @param rep The repetition index (0-indexed)
3308 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3309 */
3310 public XAD removeInsuredSEmployerSAddress(int rep) throws HL7Exception {
3311 return (XAD) super.removeRepetition(44, rep);
3312 }
3313
3314
3315 /**
3316 * Removes a repetition of
3317 * IN1-44: "Insured's Employer's Address" at a specific index
3318 *
3319 * @param rep The repetition index (0-indexed)
3320 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3321 */
3322 public XAD removeIn144_InsuredSEmployerSAddress(int rep) throws HL7Exception {
3323 return (XAD) super.removeRepetition(44, rep);
3324 }
3325
3326
3327
3328
3329 /**
3330 * Returns
3331 * IN1-45: "Verification Status" - creates it if necessary
3332 */
3333 public ST getVerificationStatus() {
3334 ST ret = null;
3335 try {
3336 Type t = this.getField(45, 0);
3337 ret = (ST)t;
3338 } catch (ClassCastException cce) {
3339 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3340 throw new RuntimeException(cce);
3341 } catch (HL7Exception he) {
3342 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3343 throw new RuntimeException(he);
3344 }
3345 return ret;
3346 }
3347
3348
3349 /**
3350 * Returns
3351 * IN1-45: "Verification Status" - creates it if necessary
3352 */
3353 public ST getIn145_VerificationStatus() {
3354 ST ret = null;
3355 try {
3356 Type t = this.getField(45, 0);
3357 ret = (ST)t;
3358 } catch (ClassCastException cce) {
3359 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3360 throw new RuntimeException(cce);
3361 } catch (HL7Exception he) {
3362 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3363 throw new RuntimeException(he);
3364 }
3365 return ret;
3366 }
3367
3368
3369
3370 /**
3371 * Returns
3372 * IN1-46: "Prior Insurance Plan ID" - creates it if necessary
3373 */
3374 public IS getPriorInsurancePlanID() {
3375 IS ret = null;
3376 try {
3377 Type t = this.getField(46, 0);
3378 ret = (IS)t;
3379 } catch (ClassCastException cce) {
3380 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3381 throw new RuntimeException(cce);
3382 } catch (HL7Exception he) {
3383 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3384 throw new RuntimeException(he);
3385 }
3386 return ret;
3387 }
3388
3389
3390 /**
3391 * Returns
3392 * IN1-46: "Prior Insurance Plan ID" - creates it if necessary
3393 */
3394 public IS getIn146_PriorInsurancePlanID() {
3395 IS ret = null;
3396 try {
3397 Type t = this.getField(46, 0);
3398 ret = (IS)t;
3399 } catch (ClassCastException cce) {
3400 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3401 throw new RuntimeException(cce);
3402 } catch (HL7Exception he) {
3403 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3404 throw new RuntimeException(he);
3405 }
3406 return ret;
3407 }
3408
3409
3410
3411 /**
3412 * Returns
3413 * IN1-47: "Coverage Type" - creates it if necessary
3414 */
3415 public IS getCoverageType() {
3416 IS ret = null;
3417 try {
3418 Type t = this.getField(47, 0);
3419 ret = (IS)t;
3420 } catch (ClassCastException cce) {
3421 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3422 throw new RuntimeException(cce);
3423 } catch (HL7Exception he) {
3424 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3425 throw new RuntimeException(he);
3426 }
3427 return ret;
3428 }
3429
3430
3431 /**
3432 * Returns
3433 * IN1-47: "Coverage Type" - creates it if necessary
3434 */
3435 public IS getIn147_CoverageType() {
3436 IS ret = null;
3437 try {
3438 Type t = this.getField(47, 0);
3439 ret = (IS)t;
3440 } catch (ClassCastException cce) {
3441 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3442 throw new RuntimeException(cce);
3443 } catch (HL7Exception he) {
3444 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3445 throw new RuntimeException(he);
3446 }
3447 return ret;
3448 }
3449
3450
3451
3452 /**
3453 * Returns
3454 * IN1-48: "Handicap" - creates it if necessary
3455 */
3456 public IS getHandicap() {
3457 IS ret = null;
3458 try {
3459 Type t = this.getField(48, 0);
3460 ret = (IS)t;
3461 } catch (ClassCastException cce) {
3462 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3463 throw new RuntimeException(cce);
3464 } catch (HL7Exception he) {
3465 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3466 throw new RuntimeException(he);
3467 }
3468 return ret;
3469 }
3470
3471
3472 /**
3473 * Returns
3474 * IN1-48: "Handicap" - creates it if necessary
3475 */
3476 public IS getIn148_Handicap() {
3477 IS ret = null;
3478 try {
3479 Type t = this.getField(48, 0);
3480 ret = (IS)t;
3481 } catch (ClassCastException cce) {
3482 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3483 throw new RuntimeException(cce);
3484 } catch (HL7Exception he) {
3485 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3486 throw new RuntimeException(he);
3487 }
3488 return ret;
3489 }
3490
3491
3492 /**
3493 * Returns all repetitions of Insured's ID Number (IN1-49).
3494 */
3495 public CX[] getInsuredSIDNumber() {
3496 CX[] ret = null;
3497 try {
3498 Type[] t = this.getField(49);
3499 ret = new CX[t.length];
3500 for (int i = 0; i < ret.length; i++) {
3501 ret[i] = (CX)t[i];
3502 }
3503 } catch (ClassCastException cce) {
3504 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3505 throw new RuntimeException(cce);
3506 } catch (HL7Exception he) {
3507 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3508 throw new RuntimeException(he);
3509 }
3510 return ret;
3511 }
3512
3513
3514 /**
3515 * Returns a count of the current number of repetitions of Insured's ID Number (IN1-49).
3516 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
3517 * it will return zero.
3518 */
3519 public int getInsuredSIDNumberReps() {
3520 CX[] ret = null;
3521 try {
3522 Type[] t = this.getField(49);
3523 return t.length;
3524 } catch (ClassCastException cce) {
3525 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3526 throw new RuntimeException(cce);
3527 } catch (HL7Exception he) {
3528 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3529 throw new RuntimeException(he);
3530 }
3531 }
3532
3533
3534 /**
3535 * Returns a specific repetition of
3536 * IN1-49: "Insured's ID Number" - creates it if necessary
3537 *
3538 * @param rep The repetition index (0-indexed)
3539 */
3540 public CX getInsuredSIDNumber(int rep) {
3541 CX ret = null;
3542 try {
3543 Type t = this.getField(49, rep);
3544 ret = (CX)t;
3545 } catch (ClassCastException cce) {
3546 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3547 throw new RuntimeException(cce);
3548 } catch (HL7Exception he) {
3549 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3550 throw new RuntimeException(he);
3551 }
3552 return ret;
3553 }
3554
3555 /**
3556 * Returns a specific repetition of
3557 * IN1-49: "Insured's ID Number" - creates it if necessary
3558 *
3559 * @param rep The repetition index (0-indexed)
3560 */
3561 public CX getIn149_InsuredSIDNumber(int rep) {
3562 CX ret = null;
3563 try {
3564 Type t = this.getField(49, rep);
3565 ret = (CX)t;
3566 } catch (ClassCastException cce) {
3567 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3568 throw new RuntimeException(cce);
3569 } catch (HL7Exception he) {
3570 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3571 throw new RuntimeException(he);
3572 }
3573 return ret;
3574 }
3575
3576
3577 /**
3578 * Returns a count of the current number of repetitions of Insured's ID Number (IN1-49).
3579 * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
3580 * it will return zero.
3581 */
3582 public int getIn149_InsuredSIDNumberReps() {
3583 CX[] ret = null;
3584 try {
3585 Type[] t = this.getField(49);
3586 return t.length;
3587 } catch (ClassCastException cce) {
3588 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
3589 throw new RuntimeException(cce);
3590 } catch (HL7Exception he) {
3591 HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
3592 throw new RuntimeException(he);
3593 }
3594 }
3595
3596
3597
3598 /**
3599 * Inserts a repetition of
3600 * IN1-49: "Insured's ID Number" at a specific index
3601 *
3602 * @param rep The repetition index (0-indexed)
3603 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3604 */
3605 public CX insertInsuredSIDNumber(int rep) throws HL7Exception {
3606 return (CX) super.insertRepetition(49, rep);
3607 }
3608
3609
3610
3611 /**
3612 * Inserts a repetition of
3613 * IN1-49: "Insured's ID Number" at a specific index
3614 *
3615 * @param rep The repetition index (0-indexed)
3616 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3617 */
3618 public CX insertIn149_InsuredSIDNumber(int rep) throws HL7Exception {
3619 return (CX) super.insertRepetition(49, rep);
3620 }
3621
3622
3623 /**
3624 * Removes a repetition of
3625 * IN1-49: "Insured's ID Number" at a specific index
3626 *
3627 * @param rep The repetition index (0-indexed)
3628 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3629 */
3630 public CX removeInsuredSIDNumber(int rep) throws HL7Exception {
3631 return (CX) super.removeRepetition(49, rep);
3632 }
3633
3634
3635 /**
3636 * Removes a repetition of
3637 * IN1-49: "Insured's ID Number" at a specific index
3638 *
3639 * @param rep The repetition index (0-indexed)
3640 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
3641 */
3642 public CX removeIn149_InsuredSIDNumber(int rep) throws HL7Exception {
3643 return (CX) super.removeRepetition(49, rep);
3644 }
3645
3646
3647
3648
3649
3650
3651 /** {@inheritDoc} */
3652 protected Type createNewTypeWithoutReflection(int field) {
3653 switch (field) {
3654 case 0: return new SI(getMessage());
3655 case 1: return new CE(getMessage());
3656 case 2: return new CX(getMessage());
3657 case 3: return new XON(getMessage());
3658 case 4: return new XAD(getMessage());
3659 case 5: return new XPN(getMessage());
3660 case 6: return new XTN(getMessage());
3661 case 7: return new ST(getMessage());
3662 case 8: return new XON(getMessage());
3663 case 9: return new CX(getMessage());
3664 case 10: return new XON(getMessage());
3665 case 11: return new DT(getMessage());
3666 case 12: return new DT(getMessage());
3667 case 13: return new AUI(getMessage());
3668 case 14: return new IS(getMessage(), new Integer( 86 ));
3669 case 15: return new XPN(getMessage());
3670 case 16: return new CE(getMessage());
3671 case 17: return new TS(getMessage());
3672 case 18: return new XAD(getMessage());
3673 case 19: return new IS(getMessage(), new Integer( 135 ));
3674 case 20: return new IS(getMessage(), new Integer( 173 ));
3675 case 21: return new ST(getMessage());
3676 case 22: return new ID(getMessage(), new Integer( 136 ));
3677 case 23: return new DT(getMessage());
3678 case 24: return new ID(getMessage(), new Integer( 136 ));
3679 case 25: return new DT(getMessage());
3680 case 26: return new IS(getMessage(), new Integer( 93 ));
3681 case 27: return new ST(getMessage());
3682 case 28: return new TS(getMessage());
3683 case 29: return new XCN(getMessage());
3684 case 30: return new IS(getMessage(), new Integer( 98 ));
3685 case 31: return new IS(getMessage(), new Integer( 22 ));
3686 case 32: return new NM(getMessage());
3687 case 33: return new NM(getMessage());
3688 case 34: return new IS(getMessage(), new Integer( 42 ));
3689 case 35: return new ST(getMessage());
3690 case 36: return new CP(getMessage());
3691 case 37: return new CP(getMessage());
3692 case 38: return new NM(getMessage());
3693 case 39: return new CP(getMessage());
3694 case 40: return new CP(getMessage());
3695 case 41: return new CE(getMessage());
3696 case 42: return new IS(getMessage(), new Integer( 1 ));
3697 case 43: return new XAD(getMessage());
3698 case 44: return new ST(getMessage());
3699 case 45: return new IS(getMessage(), new Integer( 72 ));
3700 case 46: return new IS(getMessage(), new Integer( 309 ));
3701 case 47: return new IS(getMessage(), new Integer( 295 ));
3702 case 48: return new CX(getMessage());
3703 default: return null;
3704 }
3705 }
3706
3707
3708 }
3709