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 * The contents of this file are subject to the Mozilla Public License Version 1.1 008 * (the "License"); you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 010 * Software distributed under the License is distributed on an "AS IS" basis, 011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 012 * specific language governing rights and limitations under the License. 013 * 014 * The Original Code is "[file_name]". Description: 015 * "[one_line_description]" 016 * 017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 018 * 2012. All Rights Reserved. 019 * 020 * Contributor(s): ______________________________________. 021 * 022 * Alternatively, the contents of this file may be used under the terms of the 023 * GNU General Public License (the "GPL"), in which case the provisions of the GPL are 024 * applicable instead of those above. If you wish to allow use of your version of this 025 * file only under the terms of the GPL and not to allow others to use your version 026 * of this file under the MPL, indicate your decision by deleting the provisions above 027 * and replace them with the notice and other provisions required by the GPL License. 028 * If you do not delete the provisions above, a recipient may use your version of 029 * this file under either the MPL or the GPL. 030 * 031 */ 032 033 034package ca.uhn.hl7v2.model.v231.segment; 035 036// import ca.uhn.hl7v2.model.v231.group.*; 037import ca.uhn.hl7v2.model.v231.datatype.*; 038import ca.uhn.hl7v2.HL7Exception; 039import ca.uhn.hl7v2.parser.ModelClassFactory; 040import ca.uhn.hl7v2.parser.DefaultModelClassFactory; 041import ca.uhn.hl7v2.model.AbstractMessage; 042import ca.uhn.hl7v2.model.Group; 043import ca.uhn.hl7v2.model.Type; 044import ca.uhn.hl7v2.model.AbstractSegment; 045import ca.uhn.hl7v2.model.Varies; 046 047 048/** 049 *<p>Represents an HL7 IN1 message segment (IN1 - insurance segment). 050 * This segment has the following fields:</p> 051 * <ul> 052 * <li>IN1-1: Set ID - IN1 (SI) <b> </b> 053 * <li>IN1-2: Insurance Plan ID (CE) <b> </b> 054 * <li>IN1-3: Insurance Company ID (CX) <b> repeating</b> 055 * <li>IN1-4: Insurance Company Name (XON) <b>optional repeating</b> 056 * <li>IN1-5: Insurance Company Address (XAD) <b>optional repeating</b> 057 * <li>IN1-6: Insurance Co Contact Person (XPN) <b>optional repeating</b> 058 * <li>IN1-7: Insurance Co Phone Number (XTN) <b>optional repeating</b> 059 * <li>IN1-8: Group Number (ST) <b>optional </b> 060 * <li>IN1-9: Group Name (XON) <b>optional repeating</b> 061 * <li>IN1-10: Insured’s Group Emp ID (CX) <b>optional repeating</b> 062 * <li>IN1-11: Insured’s Group Emp Name (XON) <b>optional repeating</b> 063 * <li>IN1-12: Plan Effective Date (DT) <b>optional </b> 064 * <li>IN1-13: Plan Expiration Date (DT) <b>optional </b> 065 * <li>IN1-14: Authorization Information (AUI) <b>optional </b> 066 * <li>IN1-15: Plan Type (IS) <b>optional </b> 067 * <li>IN1-16: Name Of Insured (XPN) <b>optional repeating</b> 068 * <li>IN1-17: Insured’s Relationship To Patient (CE) <b>optional </b> 069 * <li>IN1-18: Insured’s Date Of Birth (TS) <b>optional </b> 070 * <li>IN1-19: Insured’s Address (XAD) <b>optional repeating</b> 071 * <li>IN1-20: Assignment Of Benefits (IS) <b>optional </b> 072 * <li>IN1-21: Coordination Of Benefits (IS) <b>optional </b> 073 * <li>IN1-22: Coord Of Ben. Priority (ST) <b>optional </b> 074 * <li>IN1-23: Notice Of Admission Flag (ID) <b>optional </b> 075 * <li>IN1-24: Notice Of Admission Date (DT) <b>optional </b> 076 * <li>IN1-25: Report Of Eligibility Flag (ID) <b>optional </b> 077 * <li>IN1-26: Report Of Eligibility Date (DT) <b>optional </b> 078 * <li>IN1-27: Release Information Code (IS) <b>optional </b> 079 * <li>IN1-28: Pre-Admit Cert (PAC) (ST) <b>optional </b> 080 * <li>IN1-29: Verification Date/Time (TS) <b>optional </b> 081 * <li>IN1-30: Verification By (XCN) <b>optional repeating</b> 082 * <li>IN1-31: Type Of Agreement Code (IS) <b>optional </b> 083 * <li>IN1-32: Billing Status (IS) <b>optional </b> 084 * <li>IN1-33: Lifetime Reserve Days (NM) <b>optional </b> 085 * <li>IN1-34: Delay Before L.R. Day (NM) <b>optional </b> 086 * <li>IN1-35: Company Plan Code (IS) <b>optional </b> 087 * <li>IN1-36: Policy Number (ST) <b>optional </b> 088 * <li>IN1-37: Policy Deductible (CP) <b>optional </b> 089 * <li>IN1-38: Policy Limit - Amount (CP) <b>optional </b> 090 * <li>IN1-39: Policy Limit - Days (NM) <b>optional </b> 091 * <li>IN1-40: Room Rate - Semi-Private (CP) <b>optional </b> 092 * <li>IN1-41: Room Rate - Private (CP) <b>optional </b> 093 * <li>IN1-42: Insured’s Employment Status (CE) <b>optional </b> 094 * <li>IN1-43: Insured’s Sex (IS) <b>optional </b> 095 * <li>IN1-44: Insured’s Employer’s Address (XAD) <b>optional repeating</b> 096 * <li>IN1-45: Verification Status (ST) <b>optional </b> 097 * <li>IN1-46: Prior Insurance Plan ID (IS) <b>optional </b> 098 * <li>IN1-47: Coverage Type (IS) <b>optional </b> 099 * <li>IN1-48: Handicap (IS) <b>optional </b> 100 * <li>IN1-49: Insured’s ID Number (CX) <b>optional repeating</b> 101 * </ul> 102 */ 103@SuppressWarnings("unused") 104public class IN1 extends AbstractSegment { 105 106 /** 107 * Creates a new IN1 segment 108 */ 109 public IN1(Group parent, ModelClassFactory factory) { 110 super(parent, factory); 111 init(factory); 112 } 113 114 private void init(ModelClassFactory factory) { 115 try { 116 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - IN1"); 117 this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Insurance Plan ID"); 118 this.add(CX.class, true, 0, 59, new Object[]{ getMessage() }, "Insurance Company ID"); 119 this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Insurance Company Name"); 120 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Insurance Company Address"); 121 this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Insurance Co Contact Person"); 122 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Insurance Co Phone Number"); 123 this.add(ST.class, false, 1, 12, new Object[]{ getMessage() }, "Group Number"); 124 this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Group Name"); 125 this.add(CX.class, false, 0, 12, new Object[]{ getMessage() }, "Insured’s Group Emp ID"); 126 this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Insured’s Group Emp Name"); 127 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Plan Effective Date"); 128 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Plan Expiration Date"); 129 this.add(AUI.class, false, 1, 55, new Object[]{ getMessage() }, "Authorization Information"); 130 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(86) }, "Plan Type"); 131 this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Name Of Insured"); 132 this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Insured’s Relationship To Patient"); 133 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Insured’s Date Of Birth"); 134 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Insured’s Address"); 135 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(135) }, "Assignment Of Benefits"); 136 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(173) }, "Coordination Of Benefits"); 137 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "Coord Of Ben. Priority"); 138 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Notice Of Admission Flag"); 139 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Notice Of Admission Date"); 140 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Report Of Eligibility Flag"); 141 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Report Of Eligibility Date"); 142 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(93) }, "Release Information Code"); 143 this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Pre-Admit Cert (PAC)"); 144 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Verification Date/Time"); 145 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Verification By"); 146 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(98) }, "Type Of Agreement Code"); 147 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(22) }, "Billing Status"); 148 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Lifetime Reserve Days"); 149 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Delay Before L.R. Day"); 150 this.add(IS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(42) }, "Company Plan Code"); 151 this.add(ST.class, false, 1, 15, new Object[]{ getMessage() }, "Policy Number"); 152 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Policy Deductible"); 153 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Policy Limit - Amount"); 154 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Policy Limit - Days"); 155 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Room Rate - Semi-Private"); 156 this.add(CP.class, false, 1, 12, new Object[]{ getMessage() }, "Room Rate - Private"); 157 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Insured’s Employment Status"); 158 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Insured’s Sex"); 159 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Insured’s Employer’s Address"); 160 this.add(ST.class, false, 1, 2, new Object[]{ getMessage() }, "Verification Status"); 161 this.add(IS.class, false, 1, 8, new Object[]{ getMessage(), new Integer(72) }, "Prior Insurance Plan ID"); 162 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(309) }, "Coverage Type"); 163 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(295) }, "Handicap"); 164 this.add(CX.class, false, 0, 12, new Object[]{ getMessage() }, "Insured’s ID Number"); 165 } catch(HL7Exception e) { 166 log.error("Unexpected error creating IN1 - this is probably a bug in the source code generator.", e); 167 } 168 } 169 170 171 172 /** 173 * Returns 174 * IN1-1: "Set ID - IN1" - creates it if necessary 175 */ 176 public SI getSetIDIN1() { 177 SI retVal = this.getTypedField(1, 0); 178 return retVal; 179 } 180 181 /** 182 * Returns 183 * IN1-1: "Set ID - IN1" - creates it if necessary 184 */ 185 public SI getIn11_SetIDIN1() { 186 SI retVal = this.getTypedField(1, 0); 187 return retVal; 188 } 189 190 191 192 /** 193 * Returns 194 * IN1-2: "Insurance Plan ID" - creates it if necessary 195 */ 196 public CE getInsurancePlanID() { 197 CE retVal = this.getTypedField(2, 0); 198 return retVal; 199 } 200 201 /** 202 * Returns 203 * IN1-2: "Insurance Plan ID" - creates it if necessary 204 */ 205 public CE getIn12_InsurancePlanID() { 206 CE retVal = this.getTypedField(2, 0); 207 return retVal; 208 } 209 210 211 /** 212 * Returns all repetitions of Insurance Company ID (IN1-3). 213 */ 214 public CX[] getInsuranceCompanyID() { 215 CX[] retVal = this.getTypedField(3, new CX[0]); 216 return retVal; 217 } 218 219 220 /** 221 * Returns all repetitions of Insurance Company ID (IN1-3). 222 */ 223 public CX[] getIn13_InsuranceCompanyID() { 224 CX[] retVal = this.getTypedField(3, new CX[0]); 225 return retVal; 226 } 227 228 229 /** 230 * Returns a count of the current number of repetitions of Insurance Company ID (IN1-3). 231 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 232 * it will return zero. 233 */ 234 public int getInsuranceCompanyIDReps() { 235 return this.getReps(3); 236 } 237 238 239 /** 240 * Returns a specific repetition of 241 * IN1-3: "Insurance Company ID" - creates it if necessary 242 * 243 * @param rep The repetition index (0-indexed) 244 */ 245 public CX getInsuranceCompanyID(int rep) { 246 CX retVal = this.getTypedField(3, rep); 247 return retVal; 248 } 249 250 /** 251 * Returns a specific repetition of 252 * IN1-3: "Insurance Company ID" - creates it if necessary 253 * 254 * @param rep The repetition index (0-indexed) 255 */ 256 public CX getIn13_InsuranceCompanyID(int rep) { 257 CX retVal = this.getTypedField(3, rep); 258 return retVal; 259 } 260 261 /** 262 * Returns a count of the current number of repetitions of Insurance Company ID (IN1-3). 263 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 264 * it will return zero. 265 */ 266 public int getIn13_InsuranceCompanyIDReps() { 267 return this.getReps(3); 268 } 269 270 271 /** 272 * Inserts a repetition of 273 * IN1-3: "Insurance Company ID" at a specific index 274 * 275 * @param rep The repetition index (0-indexed) 276 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 277 */ 278 public CX insertInsuranceCompanyID(int rep) throws HL7Exception { 279 return (CX) super.insertRepetition(3, rep); 280 } 281 282 283 /** 284 * Inserts a repetition of 285 * IN1-3: "Insurance Company ID" at a specific index 286 * 287 * @param rep The repetition index (0-indexed) 288 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 289 */ 290 public CX insertIn13_InsuranceCompanyID(int rep) throws HL7Exception { 291 return (CX) super.insertRepetition(3, rep); 292 } 293 294 295 /** 296 * Removes a repetition of 297 * IN1-3: "Insurance Company ID" at a specific index 298 * 299 * @param rep The repetition index (0-indexed) 300 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 301 */ 302 public CX removeInsuranceCompanyID(int rep) throws HL7Exception { 303 return (CX) super.removeRepetition(3, rep); 304 } 305 306 307 /** 308 * Removes a repetition of 309 * IN1-3: "Insurance Company ID" at a specific index 310 * 311 * @param rep The repetition index (0-indexed) 312 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 313 */ 314 public CX removeIn13_InsuranceCompanyID(int rep) throws HL7Exception { 315 return (CX) super.removeRepetition(3, rep); 316 } 317 318 319 320 /** 321 * Returns all repetitions of Insurance Company Name (IN1-4). 322 */ 323 public XON[] getInsuranceCompanyName() { 324 XON[] retVal = this.getTypedField(4, new XON[0]); 325 return retVal; 326 } 327 328 329 /** 330 * Returns all repetitions of Insurance Company Name (IN1-4). 331 */ 332 public XON[] getIn14_InsuranceCompanyName() { 333 XON[] retVal = this.getTypedField(4, new XON[0]); 334 return retVal; 335 } 336 337 338 /** 339 * Returns a count of the current number of repetitions of Insurance Company Name (IN1-4). 340 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 341 * it will return zero. 342 */ 343 public int getInsuranceCompanyNameReps() { 344 return this.getReps(4); 345 } 346 347 348 /** 349 * Returns a specific repetition of 350 * IN1-4: "Insurance Company Name" - creates it if necessary 351 * 352 * @param rep The repetition index (0-indexed) 353 */ 354 public XON getInsuranceCompanyName(int rep) { 355 XON retVal = this.getTypedField(4, rep); 356 return retVal; 357 } 358 359 /** 360 * Returns a specific repetition of 361 * IN1-4: "Insurance Company Name" - creates it if necessary 362 * 363 * @param rep The repetition index (0-indexed) 364 */ 365 public XON getIn14_InsuranceCompanyName(int rep) { 366 XON retVal = this.getTypedField(4, rep); 367 return retVal; 368 } 369 370 /** 371 * Returns a count of the current number of repetitions of Insurance Company Name (IN1-4). 372 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 373 * it will return zero. 374 */ 375 public int getIn14_InsuranceCompanyNameReps() { 376 return this.getReps(4); 377 } 378 379 380 /** 381 * Inserts a repetition of 382 * IN1-4: "Insurance Company Name" at a specific index 383 * 384 * @param rep The repetition index (0-indexed) 385 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 386 */ 387 public XON insertInsuranceCompanyName(int rep) throws HL7Exception { 388 return (XON) super.insertRepetition(4, rep); 389 } 390 391 392 /** 393 * Inserts a repetition of 394 * IN1-4: "Insurance Company Name" at a specific index 395 * 396 * @param rep The repetition index (0-indexed) 397 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 398 */ 399 public XON insertIn14_InsuranceCompanyName(int rep) throws HL7Exception { 400 return (XON) super.insertRepetition(4, rep); 401 } 402 403 404 /** 405 * Removes a repetition of 406 * IN1-4: "Insurance Company Name" at a specific index 407 * 408 * @param rep The repetition index (0-indexed) 409 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 410 */ 411 public XON removeInsuranceCompanyName(int rep) throws HL7Exception { 412 return (XON) super.removeRepetition(4, rep); 413 } 414 415 416 /** 417 * Removes a repetition of 418 * IN1-4: "Insurance Company Name" at a specific index 419 * 420 * @param rep The repetition index (0-indexed) 421 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 422 */ 423 public XON removeIn14_InsuranceCompanyName(int rep) throws HL7Exception { 424 return (XON) super.removeRepetition(4, rep); 425 } 426 427 428 429 /** 430 * Returns all repetitions of Insurance Company Address (IN1-5). 431 */ 432 public XAD[] getInsuranceCompanyAddress() { 433 XAD[] retVal = this.getTypedField(5, new XAD[0]); 434 return retVal; 435 } 436 437 438 /** 439 * Returns all repetitions of Insurance Company Address (IN1-5). 440 */ 441 public XAD[] getIn15_InsuranceCompanyAddress() { 442 XAD[] retVal = this.getTypedField(5, new XAD[0]); 443 return retVal; 444 } 445 446 447 /** 448 * Returns a count of the current number of repetitions of Insurance Company Address (IN1-5). 449 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 450 * it will return zero. 451 */ 452 public int getInsuranceCompanyAddressReps() { 453 return this.getReps(5); 454 } 455 456 457 /** 458 * Returns a specific repetition of 459 * IN1-5: "Insurance Company Address" - creates it if necessary 460 * 461 * @param rep The repetition index (0-indexed) 462 */ 463 public XAD getInsuranceCompanyAddress(int rep) { 464 XAD retVal = this.getTypedField(5, rep); 465 return retVal; 466 } 467 468 /** 469 * Returns a specific repetition of 470 * IN1-5: "Insurance Company Address" - creates it if necessary 471 * 472 * @param rep The repetition index (0-indexed) 473 */ 474 public XAD getIn15_InsuranceCompanyAddress(int rep) { 475 XAD retVal = this.getTypedField(5, rep); 476 return retVal; 477 } 478 479 /** 480 * Returns a count of the current number of repetitions of Insurance Company Address (IN1-5). 481 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 482 * it will return zero. 483 */ 484 public int getIn15_InsuranceCompanyAddressReps() { 485 return this.getReps(5); 486 } 487 488 489 /** 490 * Inserts a repetition of 491 * IN1-5: "Insurance Company Address" at a specific index 492 * 493 * @param rep The repetition index (0-indexed) 494 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 495 */ 496 public XAD insertInsuranceCompanyAddress(int rep) throws HL7Exception { 497 return (XAD) super.insertRepetition(5, rep); 498 } 499 500 501 /** 502 * Inserts a repetition of 503 * IN1-5: "Insurance Company Address" 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 XAD insertIn15_InsuranceCompanyAddress(int rep) throws HL7Exception { 509 return (XAD) super.insertRepetition(5, rep); 510 } 511 512 513 /** 514 * Removes a repetition of 515 * IN1-5: "Insurance Company Address" 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 XAD removeInsuranceCompanyAddress(int rep) throws HL7Exception { 521 return (XAD) super.removeRepetition(5, rep); 522 } 523 524 525 /** 526 * Removes a repetition of 527 * IN1-5: "Insurance Company Address" 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 XAD removeIn15_InsuranceCompanyAddress(int rep) throws HL7Exception { 533 return (XAD) super.removeRepetition(5, rep); 534 } 535 536 537 538 /** 539 * Returns all repetitions of Insurance Co Contact Person (IN1-6). 540 */ 541 public XPN[] getInsuranceCoContactPerson() { 542 XPN[] retVal = this.getTypedField(6, new XPN[0]); 543 return retVal; 544 } 545 546 547 /** 548 * Returns all repetitions of Insurance Co Contact Person (IN1-6). 549 */ 550 public XPN[] getIn16_InsuranceCoContactPerson() { 551 XPN[] retVal = this.getTypedField(6, new XPN[0]); 552 return retVal; 553 } 554 555 556 /** 557 * Returns a count of the current number of repetitions of Insurance Co Contact Person (IN1-6). 558 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 559 * it will return zero. 560 */ 561 public int getInsuranceCoContactPersonReps() { 562 return this.getReps(6); 563 } 564 565 566 /** 567 * Returns a specific repetition of 568 * IN1-6: "Insurance Co Contact Person" - creates it if necessary 569 * 570 * @param rep The repetition index (0-indexed) 571 */ 572 public XPN getInsuranceCoContactPerson(int rep) { 573 XPN retVal = this.getTypedField(6, rep); 574 return retVal; 575 } 576 577 /** 578 * Returns a specific repetition of 579 * IN1-6: "Insurance Co Contact Person" - creates it if necessary 580 * 581 * @param rep The repetition index (0-indexed) 582 */ 583 public XPN getIn16_InsuranceCoContactPerson(int rep) { 584 XPN retVal = this.getTypedField(6, rep); 585 return retVal; 586 } 587 588 /** 589 * Returns a count of the current number of repetitions of Insurance Co Contact Person (IN1-6). 590 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 591 * it will return zero. 592 */ 593 public int getIn16_InsuranceCoContactPersonReps() { 594 return this.getReps(6); 595 } 596 597 598 /** 599 * Inserts a repetition of 600 * IN1-6: "Insurance Co Contact Person" at a specific index 601 * 602 * @param rep The repetition index (0-indexed) 603 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 604 */ 605 public XPN insertInsuranceCoContactPerson(int rep) throws HL7Exception { 606 return (XPN) super.insertRepetition(6, rep); 607 } 608 609 610 /** 611 * Inserts a repetition of 612 * IN1-6: "Insurance Co Contact Person" at a specific index 613 * 614 * @param rep The repetition index (0-indexed) 615 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 616 */ 617 public XPN insertIn16_InsuranceCoContactPerson(int rep) throws HL7Exception { 618 return (XPN) super.insertRepetition(6, rep); 619 } 620 621 622 /** 623 * Removes a repetition of 624 * IN1-6: "Insurance Co Contact Person" at a specific index 625 * 626 * @param rep The repetition index (0-indexed) 627 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 628 */ 629 public XPN removeInsuranceCoContactPerson(int rep) throws HL7Exception { 630 return (XPN) super.removeRepetition(6, rep); 631 } 632 633 634 /** 635 * Removes a repetition of 636 * IN1-6: "Insurance Co Contact Person" at a specific index 637 * 638 * @param rep The repetition index (0-indexed) 639 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 640 */ 641 public XPN removeIn16_InsuranceCoContactPerson(int rep) throws HL7Exception { 642 return (XPN) super.removeRepetition(6, rep); 643 } 644 645 646 647 /** 648 * Returns all repetitions of Insurance Co Phone Number (IN1-7). 649 */ 650 public XTN[] getInsuranceCoPhoneNumber() { 651 XTN[] retVal = this.getTypedField(7, new XTN[0]); 652 return retVal; 653 } 654 655 656 /** 657 * Returns all repetitions of Insurance Co Phone Number (IN1-7). 658 */ 659 public XTN[] getIn17_InsuranceCoPhoneNumber() { 660 XTN[] retVal = this.getTypedField(7, new XTN[0]); 661 return retVal; 662 } 663 664 665 /** 666 * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7). 667 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 668 * it will return zero. 669 */ 670 public int getInsuranceCoPhoneNumberReps() { 671 return this.getReps(7); 672 } 673 674 675 /** 676 * Returns a specific repetition of 677 * IN1-7: "Insurance Co Phone Number" - creates it if necessary 678 * 679 * @param rep The repetition index (0-indexed) 680 */ 681 public XTN getInsuranceCoPhoneNumber(int rep) { 682 XTN retVal = this.getTypedField(7, rep); 683 return retVal; 684 } 685 686 /** 687 * Returns a specific repetition of 688 * IN1-7: "Insurance Co Phone Number" - creates it if necessary 689 * 690 * @param rep The repetition index (0-indexed) 691 */ 692 public XTN getIn17_InsuranceCoPhoneNumber(int rep) { 693 XTN retVal = this.getTypedField(7, rep); 694 return retVal; 695 } 696 697 /** 698 * Returns a count of the current number of repetitions of Insurance Co Phone Number (IN1-7). 699 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 700 * it will return zero. 701 */ 702 public int getIn17_InsuranceCoPhoneNumberReps() { 703 return this.getReps(7); 704 } 705 706 707 /** 708 * Inserts a repetition of 709 * IN1-7: "Insurance Co Phone Number" at a specific index 710 * 711 * @param rep The repetition index (0-indexed) 712 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 713 */ 714 public XTN insertInsuranceCoPhoneNumber(int rep) throws HL7Exception { 715 return (XTN) super.insertRepetition(7, rep); 716 } 717 718 719 /** 720 * Inserts a repetition of 721 * IN1-7: "Insurance Co Phone Number" at a specific index 722 * 723 * @param rep The repetition index (0-indexed) 724 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 725 */ 726 public XTN insertIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception { 727 return (XTN) super.insertRepetition(7, rep); 728 } 729 730 731 /** 732 * Removes a repetition of 733 * IN1-7: "Insurance Co Phone Number" at a specific index 734 * 735 * @param rep The repetition index (0-indexed) 736 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 737 */ 738 public XTN removeInsuranceCoPhoneNumber(int rep) throws HL7Exception { 739 return (XTN) super.removeRepetition(7, rep); 740 } 741 742 743 /** 744 * Removes a repetition of 745 * IN1-7: "Insurance Co Phone Number" at a specific index 746 * 747 * @param rep The repetition index (0-indexed) 748 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 749 */ 750 public XTN removeIn17_InsuranceCoPhoneNumber(int rep) throws HL7Exception { 751 return (XTN) super.removeRepetition(7, rep); 752 } 753 754 755 756 757 /** 758 * Returns 759 * IN1-8: "Group Number" - creates it if necessary 760 */ 761 public ST getGroupNumber() { 762 ST retVal = this.getTypedField(8, 0); 763 return retVal; 764 } 765 766 /** 767 * Returns 768 * IN1-8: "Group Number" - creates it if necessary 769 */ 770 public ST getIn18_GroupNumber() { 771 ST retVal = this.getTypedField(8, 0); 772 return retVal; 773 } 774 775 776 /** 777 * Returns all repetitions of Group Name (IN1-9). 778 */ 779 public XON[] getGroupName() { 780 XON[] retVal = this.getTypedField(9, new XON[0]); 781 return retVal; 782 } 783 784 785 /** 786 * Returns all repetitions of Group Name (IN1-9). 787 */ 788 public XON[] getIn19_GroupName() { 789 XON[] retVal = this.getTypedField(9, new XON[0]); 790 return retVal; 791 } 792 793 794 /** 795 * Returns a count of the current number of repetitions of Group Name (IN1-9). 796 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 797 * it will return zero. 798 */ 799 public int getGroupNameReps() { 800 return this.getReps(9); 801 } 802 803 804 /** 805 * Returns a specific repetition of 806 * IN1-9: "Group Name" - creates it if necessary 807 * 808 * @param rep The repetition index (0-indexed) 809 */ 810 public XON getGroupName(int rep) { 811 XON retVal = this.getTypedField(9, rep); 812 return retVal; 813 } 814 815 /** 816 * Returns a specific repetition of 817 * IN1-9: "Group Name" - creates it if necessary 818 * 819 * @param rep The repetition index (0-indexed) 820 */ 821 public XON getIn19_GroupName(int rep) { 822 XON retVal = this.getTypedField(9, rep); 823 return retVal; 824 } 825 826 /** 827 * Returns a count of the current number of repetitions of Group Name (IN1-9). 828 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 829 * it will return zero. 830 */ 831 public int getIn19_GroupNameReps() { 832 return this.getReps(9); 833 } 834 835 836 /** 837 * Inserts a repetition of 838 * IN1-9: "Group Name" at a specific index 839 * 840 * @param rep The repetition index (0-indexed) 841 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 842 */ 843 public XON insertGroupName(int rep) throws HL7Exception { 844 return (XON) super.insertRepetition(9, rep); 845 } 846 847 848 /** 849 * Inserts a repetition of 850 * IN1-9: "Group Name" at a specific index 851 * 852 * @param rep The repetition index (0-indexed) 853 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 854 */ 855 public XON insertIn19_GroupName(int rep) throws HL7Exception { 856 return (XON) super.insertRepetition(9, rep); 857 } 858 859 860 /** 861 * Removes a repetition of 862 * IN1-9: "Group Name" at a specific index 863 * 864 * @param rep The repetition index (0-indexed) 865 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 866 */ 867 public XON removeGroupName(int rep) throws HL7Exception { 868 return (XON) super.removeRepetition(9, rep); 869 } 870 871 872 /** 873 * Removes a repetition of 874 * IN1-9: "Group Name" at a specific index 875 * 876 * @param rep The repetition index (0-indexed) 877 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 878 */ 879 public XON removeIn19_GroupName(int rep) throws HL7Exception { 880 return (XON) super.removeRepetition(9, rep); 881 } 882 883 884 885 /** 886 * Returns all repetitions of Insured’s Group Emp ID (IN1-10). 887 */ 888 public CX[] getInsuredSGroupEmpID() { 889 CX[] retVal = this.getTypedField(10, new CX[0]); 890 return retVal; 891 } 892 893 894 /** 895 * Returns all repetitions of Insured’s Group Emp ID (IN1-10). 896 */ 897 public CX[] getIn110_InsuredSGroupEmpID() { 898 CX[] retVal = this.getTypedField(10, new CX[0]); 899 return retVal; 900 } 901 902 903 /** 904 * Returns a count of the current number of repetitions of Insured’s Group Emp ID (IN1-10). 905 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 906 * it will return zero. 907 */ 908 public int getInsuredSGroupEmpIDReps() { 909 return this.getReps(10); 910 } 911 912 913 /** 914 * Returns a specific repetition of 915 * IN1-10: "Insured’s Group Emp ID" - creates it if necessary 916 * 917 * @param rep The repetition index (0-indexed) 918 */ 919 public CX getInsuredSGroupEmpID(int rep) { 920 CX retVal = this.getTypedField(10, rep); 921 return retVal; 922 } 923 924 /** 925 * Returns a specific repetition of 926 * IN1-10: "Insured’s Group Emp ID" - creates it if necessary 927 * 928 * @param rep The repetition index (0-indexed) 929 */ 930 public CX getIn110_InsuredSGroupEmpID(int rep) { 931 CX retVal = this.getTypedField(10, rep); 932 return retVal; 933 } 934 935 /** 936 * Returns a count of the current number of repetitions of Insured’s Group Emp ID (IN1-10). 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 getIn110_InsuredSGroupEmpIDReps() { 941 return this.getReps(10); 942 } 943 944 945 /** 946 * Inserts a repetition of 947 * IN1-10: "Insured’s Group Emp ID" at a specific index 948 * 949 * @param rep The repetition index (0-indexed) 950 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 951 */ 952 public CX insertInsuredSGroupEmpID(int rep) throws HL7Exception { 953 return (CX) super.insertRepetition(10, rep); 954 } 955 956 957 /** 958 * Inserts a repetition of 959 * IN1-10: "Insured’s Group Emp ID" at a specific index 960 * 961 * @param rep The repetition index (0-indexed) 962 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 963 */ 964 public CX insertIn110_InsuredSGroupEmpID(int rep) throws HL7Exception { 965 return (CX) super.insertRepetition(10, rep); 966 } 967 968 969 /** 970 * Removes a repetition of 971 * IN1-10: "Insured’s Group Emp ID" 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 CX removeInsuredSGroupEmpID(int rep) throws HL7Exception { 977 return (CX) super.removeRepetition(10, rep); 978 } 979 980 981 /** 982 * Removes a repetition of 983 * IN1-10: "Insured’s Group Emp ID" 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 CX removeIn110_InsuredSGroupEmpID(int rep) throws HL7Exception { 989 return (CX) super.removeRepetition(10, rep); 990 } 991 992 993 994 /** 995 * Returns all repetitions of Insured’s Group Emp Name (IN1-11). 996 */ 997 public XON[] getInsuredSGroupEmpName() { 998 XON[] retVal = this.getTypedField(11, new XON[0]); 999 return retVal; 1000 } 1001 1002 1003 /** 1004 * Returns all repetitions of Insured’s Group Emp Name (IN1-11). 1005 */ 1006 public XON[] getIn111_InsuredSGroupEmpName() { 1007 XON[] retVal = this.getTypedField(11, new XON[0]); 1008 return retVal; 1009 } 1010 1011 1012 /** 1013 * Returns a count of the current number of repetitions of Insured’s Group Emp Name (IN1-11). 1014 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1015 * it will return zero. 1016 */ 1017 public int getInsuredSGroupEmpNameReps() { 1018 return this.getReps(11); 1019 } 1020 1021 1022 /** 1023 * Returns a specific repetition of 1024 * IN1-11: "Insured’s Group Emp Name" - creates it if necessary 1025 * 1026 * @param rep The repetition index (0-indexed) 1027 */ 1028 public XON getInsuredSGroupEmpName(int rep) { 1029 XON retVal = this.getTypedField(11, rep); 1030 return retVal; 1031 } 1032 1033 /** 1034 * Returns a specific repetition of 1035 * IN1-11: "Insured’s Group Emp Name" - creates it if necessary 1036 * 1037 * @param rep The repetition index (0-indexed) 1038 */ 1039 public XON getIn111_InsuredSGroupEmpName(int rep) { 1040 XON retVal = this.getTypedField(11, rep); 1041 return retVal; 1042 } 1043 1044 /** 1045 * Returns a count of the current number of repetitions of Insured’s Group Emp Name (IN1-11). 1046 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1047 * it will return zero. 1048 */ 1049 public int getIn111_InsuredSGroupEmpNameReps() { 1050 return this.getReps(11); 1051 } 1052 1053 1054 /** 1055 * Inserts a repetition of 1056 * IN1-11: "Insured’s Group Emp Name" at a specific index 1057 * 1058 * @param rep The repetition index (0-indexed) 1059 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1060 */ 1061 public XON insertInsuredSGroupEmpName(int rep) throws HL7Exception { 1062 return (XON) super.insertRepetition(11, rep); 1063 } 1064 1065 1066 /** 1067 * Inserts a repetition of 1068 * IN1-11: "Insured’s Group Emp Name" at a specific index 1069 * 1070 * @param rep The repetition index (0-indexed) 1071 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1072 */ 1073 public XON insertIn111_InsuredSGroupEmpName(int rep) throws HL7Exception { 1074 return (XON) super.insertRepetition(11, rep); 1075 } 1076 1077 1078 /** 1079 * Removes a repetition of 1080 * IN1-11: "Insured’s Group Emp Name" at a specific index 1081 * 1082 * @param rep The repetition index (0-indexed) 1083 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1084 */ 1085 public XON removeInsuredSGroupEmpName(int rep) throws HL7Exception { 1086 return (XON) super.removeRepetition(11, rep); 1087 } 1088 1089 1090 /** 1091 * Removes a repetition of 1092 * IN1-11: "Insured’s Group Emp Name" at a specific index 1093 * 1094 * @param rep The repetition index (0-indexed) 1095 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1096 */ 1097 public XON removeIn111_InsuredSGroupEmpName(int rep) throws HL7Exception { 1098 return (XON) super.removeRepetition(11, rep); 1099 } 1100 1101 1102 1103 1104 /** 1105 * Returns 1106 * IN1-12: "Plan Effective Date" - creates it if necessary 1107 */ 1108 public DT getPlanEffectiveDate() { 1109 DT retVal = this.getTypedField(12, 0); 1110 return retVal; 1111 } 1112 1113 /** 1114 * Returns 1115 * IN1-12: "Plan Effective Date" - creates it if necessary 1116 */ 1117 public DT getIn112_PlanEffectiveDate() { 1118 DT retVal = this.getTypedField(12, 0); 1119 return retVal; 1120 } 1121 1122 1123 1124 /** 1125 * Returns 1126 * IN1-13: "Plan Expiration Date" - creates it if necessary 1127 */ 1128 public DT getPlanExpirationDate() { 1129 DT retVal = this.getTypedField(13, 0); 1130 return retVal; 1131 } 1132 1133 /** 1134 * Returns 1135 * IN1-13: "Plan Expiration Date" - creates it if necessary 1136 */ 1137 public DT getIn113_PlanExpirationDate() { 1138 DT retVal = this.getTypedField(13, 0); 1139 return retVal; 1140 } 1141 1142 1143 1144 /** 1145 * Returns 1146 * IN1-14: "Authorization Information" - creates it if necessary 1147 */ 1148 public AUI getAuthorizationInformation() { 1149 AUI retVal = this.getTypedField(14, 0); 1150 return retVal; 1151 } 1152 1153 /** 1154 * Returns 1155 * IN1-14: "Authorization Information" - creates it if necessary 1156 */ 1157 public AUI getIn114_AuthorizationInformation() { 1158 AUI retVal = this.getTypedField(14, 0); 1159 return retVal; 1160 } 1161 1162 1163 1164 /** 1165 * Returns 1166 * IN1-15: "Plan Type" - creates it if necessary 1167 */ 1168 public IS getPlanType() { 1169 IS retVal = this.getTypedField(15, 0); 1170 return retVal; 1171 } 1172 1173 /** 1174 * Returns 1175 * IN1-15: "Plan Type" - creates it if necessary 1176 */ 1177 public IS getIn115_PlanType() { 1178 IS retVal = this.getTypedField(15, 0); 1179 return retVal; 1180 } 1181 1182 1183 /** 1184 * Returns all repetitions of Name Of Insured (IN1-16). 1185 */ 1186 public XPN[] getNameOfInsured() { 1187 XPN[] retVal = this.getTypedField(16, new XPN[0]); 1188 return retVal; 1189 } 1190 1191 1192 /** 1193 * Returns all repetitions of Name Of Insured (IN1-16). 1194 */ 1195 public XPN[] getIn116_NameOfInsured() { 1196 XPN[] retVal = this.getTypedField(16, new XPN[0]); 1197 return retVal; 1198 } 1199 1200 1201 /** 1202 * Returns a count of the current number of repetitions of Name Of Insured (IN1-16). 1203 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1204 * it will return zero. 1205 */ 1206 public int getNameOfInsuredReps() { 1207 return this.getReps(16); 1208 } 1209 1210 1211 /** 1212 * Returns a specific repetition of 1213 * IN1-16: "Name Of Insured" - creates it if necessary 1214 * 1215 * @param rep The repetition index (0-indexed) 1216 */ 1217 public XPN getNameOfInsured(int rep) { 1218 XPN retVal = this.getTypedField(16, rep); 1219 return retVal; 1220 } 1221 1222 /** 1223 * Returns a specific repetition of 1224 * IN1-16: "Name Of Insured" - creates it if necessary 1225 * 1226 * @param rep The repetition index (0-indexed) 1227 */ 1228 public XPN getIn116_NameOfInsured(int rep) { 1229 XPN retVal = this.getTypedField(16, rep); 1230 return retVal; 1231 } 1232 1233 /** 1234 * Returns a count of the current number of repetitions of Name Of Insured (IN1-16). 1235 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1236 * it will return zero. 1237 */ 1238 public int getIn116_NameOfInsuredReps() { 1239 return this.getReps(16); 1240 } 1241 1242 1243 /** 1244 * Inserts a repetition of 1245 * IN1-16: "Name Of Insured" at a specific index 1246 * 1247 * @param rep The repetition index (0-indexed) 1248 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1249 */ 1250 public XPN insertNameOfInsured(int rep) throws HL7Exception { 1251 return (XPN) super.insertRepetition(16, rep); 1252 } 1253 1254 1255 /** 1256 * Inserts a repetition of 1257 * IN1-16: "Name Of Insured" at a specific index 1258 * 1259 * @param rep The repetition index (0-indexed) 1260 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1261 */ 1262 public XPN insertIn116_NameOfInsured(int rep) throws HL7Exception { 1263 return (XPN) super.insertRepetition(16, rep); 1264 } 1265 1266 1267 /** 1268 * Removes a repetition of 1269 * IN1-16: "Name Of Insured" at a specific index 1270 * 1271 * @param rep The repetition index (0-indexed) 1272 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1273 */ 1274 public XPN removeNameOfInsured(int rep) throws HL7Exception { 1275 return (XPN) super.removeRepetition(16, rep); 1276 } 1277 1278 1279 /** 1280 * Removes a repetition of 1281 * IN1-16: "Name Of Insured" at a specific index 1282 * 1283 * @param rep The repetition index (0-indexed) 1284 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1285 */ 1286 public XPN removeIn116_NameOfInsured(int rep) throws HL7Exception { 1287 return (XPN) super.removeRepetition(16, rep); 1288 } 1289 1290 1291 1292 1293 /** 1294 * Returns 1295 * IN1-17: "Insured’s Relationship To Patient" - creates it if necessary 1296 */ 1297 public CE getInsuredSRelationshipToPatient() { 1298 CE retVal = this.getTypedField(17, 0); 1299 return retVal; 1300 } 1301 1302 /** 1303 * Returns 1304 * IN1-17: "Insured’s Relationship To Patient" - creates it if necessary 1305 */ 1306 public CE getIn117_InsuredSRelationshipToPatient() { 1307 CE retVal = this.getTypedField(17, 0); 1308 return retVal; 1309 } 1310 1311 1312 1313 /** 1314 * Returns 1315 * IN1-18: "Insured’s Date Of Birth" - creates it if necessary 1316 */ 1317 public TS getInsuredSDateOfBirth() { 1318 TS retVal = this.getTypedField(18, 0); 1319 return retVal; 1320 } 1321 1322 /** 1323 * Returns 1324 * IN1-18: "Insured’s Date Of Birth" - creates it if necessary 1325 */ 1326 public TS getIn118_InsuredSDateOfBirth() { 1327 TS retVal = this.getTypedField(18, 0); 1328 return retVal; 1329 } 1330 1331 1332 /** 1333 * Returns all repetitions of Insured’s Address (IN1-19). 1334 */ 1335 public XAD[] getInsuredSAddress() { 1336 XAD[] retVal = this.getTypedField(19, new XAD[0]); 1337 return retVal; 1338 } 1339 1340 1341 /** 1342 * Returns all repetitions of Insured’s Address (IN1-19). 1343 */ 1344 public XAD[] getIn119_InsuredSAddress() { 1345 XAD[] retVal = this.getTypedField(19, new XAD[0]); 1346 return retVal; 1347 } 1348 1349 1350 /** 1351 * Returns a count of the current number of repetitions of Insured’s Address (IN1-19). 1352 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1353 * it will return zero. 1354 */ 1355 public int getInsuredSAddressReps() { 1356 return this.getReps(19); 1357 } 1358 1359 1360 /** 1361 * Returns a specific repetition of 1362 * IN1-19: "Insured’s Address" - creates it if necessary 1363 * 1364 * @param rep The repetition index (0-indexed) 1365 */ 1366 public XAD getInsuredSAddress(int rep) { 1367 XAD retVal = this.getTypedField(19, rep); 1368 return retVal; 1369 } 1370 1371 /** 1372 * Returns a specific repetition of 1373 * IN1-19: "Insured’s Address" - creates it if necessary 1374 * 1375 * @param rep The repetition index (0-indexed) 1376 */ 1377 public XAD getIn119_InsuredSAddress(int rep) { 1378 XAD retVal = this.getTypedField(19, rep); 1379 return retVal; 1380 } 1381 1382 /** 1383 * Returns a count of the current number of repetitions of Insured’s Address (IN1-19). 1384 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1385 * it will return zero. 1386 */ 1387 public int getIn119_InsuredSAddressReps() { 1388 return this.getReps(19); 1389 } 1390 1391 1392 /** 1393 * Inserts a repetition of 1394 * IN1-19: "Insured’s Address" at a specific index 1395 * 1396 * @param rep The repetition index (0-indexed) 1397 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1398 */ 1399 public XAD insertInsuredSAddress(int rep) throws HL7Exception { 1400 return (XAD) super.insertRepetition(19, rep); 1401 } 1402 1403 1404 /** 1405 * Inserts a repetition of 1406 * IN1-19: "Insured’s Address" at a specific index 1407 * 1408 * @param rep The repetition index (0-indexed) 1409 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1410 */ 1411 public XAD insertIn119_InsuredSAddress(int rep) throws HL7Exception { 1412 return (XAD) super.insertRepetition(19, rep); 1413 } 1414 1415 1416 /** 1417 * Removes a repetition of 1418 * IN1-19: "Insured’s Address" at a specific index 1419 * 1420 * @param rep The repetition index (0-indexed) 1421 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1422 */ 1423 public XAD removeInsuredSAddress(int rep) throws HL7Exception { 1424 return (XAD) super.removeRepetition(19, rep); 1425 } 1426 1427 1428 /** 1429 * Removes a repetition of 1430 * IN1-19: "Insured’s Address" at a specific index 1431 * 1432 * @param rep The repetition index (0-indexed) 1433 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1434 */ 1435 public XAD removeIn119_InsuredSAddress(int rep) throws HL7Exception { 1436 return (XAD) super.removeRepetition(19, rep); 1437 } 1438 1439 1440 1441 1442 /** 1443 * Returns 1444 * IN1-20: "Assignment Of Benefits" - creates it if necessary 1445 */ 1446 public IS getAssignmentOfBenefits() { 1447 IS retVal = this.getTypedField(20, 0); 1448 return retVal; 1449 } 1450 1451 /** 1452 * Returns 1453 * IN1-20: "Assignment Of Benefits" - creates it if necessary 1454 */ 1455 public IS getIn120_AssignmentOfBenefits() { 1456 IS retVal = this.getTypedField(20, 0); 1457 return retVal; 1458 } 1459 1460 1461 1462 /** 1463 * Returns 1464 * IN1-21: "Coordination Of Benefits" - creates it if necessary 1465 */ 1466 public IS getCoordinationOfBenefits() { 1467 IS retVal = this.getTypedField(21, 0); 1468 return retVal; 1469 } 1470 1471 /** 1472 * Returns 1473 * IN1-21: "Coordination Of Benefits" - creates it if necessary 1474 */ 1475 public IS getIn121_CoordinationOfBenefits() { 1476 IS retVal = this.getTypedField(21, 0); 1477 return retVal; 1478 } 1479 1480 1481 1482 /** 1483 * Returns 1484 * IN1-22: "Coord Of Ben. Priority" - creates it if necessary 1485 */ 1486 public ST getCoordOfBenPriority() { 1487 ST retVal = this.getTypedField(22, 0); 1488 return retVal; 1489 } 1490 1491 /** 1492 * Returns 1493 * IN1-22: "Coord Of Ben. Priority" - creates it if necessary 1494 */ 1495 public ST getIn122_CoordOfBenPriority() { 1496 ST retVal = this.getTypedField(22, 0); 1497 return retVal; 1498 } 1499 1500 1501 1502 /** 1503 * Returns 1504 * IN1-23: "Notice Of Admission Flag" - creates it if necessary 1505 */ 1506 public ID getNoticeOfAdmissionFlag() { 1507 ID retVal = this.getTypedField(23, 0); 1508 return retVal; 1509 } 1510 1511 /** 1512 * Returns 1513 * IN1-23: "Notice Of Admission Flag" - creates it if necessary 1514 */ 1515 public ID getIn123_NoticeOfAdmissionFlag() { 1516 ID retVal = this.getTypedField(23, 0); 1517 return retVal; 1518 } 1519 1520 1521 1522 /** 1523 * Returns 1524 * IN1-24: "Notice Of Admission Date" - creates it if necessary 1525 */ 1526 public DT getNoticeOfAdmissionDate() { 1527 DT retVal = this.getTypedField(24, 0); 1528 return retVal; 1529 } 1530 1531 /** 1532 * Returns 1533 * IN1-24: "Notice Of Admission Date" - creates it if necessary 1534 */ 1535 public DT getIn124_NoticeOfAdmissionDate() { 1536 DT retVal = this.getTypedField(24, 0); 1537 return retVal; 1538 } 1539 1540 1541 1542 /** 1543 * Returns 1544 * IN1-25: "Report Of Eligibility Flag" - creates it if necessary 1545 */ 1546 public ID getReportOfEligibilityFlag() { 1547 ID retVal = this.getTypedField(25, 0); 1548 return retVal; 1549 } 1550 1551 /** 1552 * Returns 1553 * IN1-25: "Report Of Eligibility Flag" - creates it if necessary 1554 */ 1555 public ID getIn125_ReportOfEligibilityFlag() { 1556 ID retVal = this.getTypedField(25, 0); 1557 return retVal; 1558 } 1559 1560 1561 1562 /** 1563 * Returns 1564 * IN1-26: "Report Of Eligibility Date" - creates it if necessary 1565 */ 1566 public DT getReportOfEligibilityDate() { 1567 DT retVal = this.getTypedField(26, 0); 1568 return retVal; 1569 } 1570 1571 /** 1572 * Returns 1573 * IN1-26: "Report Of Eligibility Date" - creates it if necessary 1574 */ 1575 public DT getIn126_ReportOfEligibilityDate() { 1576 DT retVal = this.getTypedField(26, 0); 1577 return retVal; 1578 } 1579 1580 1581 1582 /** 1583 * Returns 1584 * IN1-27: "Release Information Code" - creates it if necessary 1585 */ 1586 public IS getReleaseInformationCode() { 1587 IS retVal = this.getTypedField(27, 0); 1588 return retVal; 1589 } 1590 1591 /** 1592 * Returns 1593 * IN1-27: "Release Information Code" - creates it if necessary 1594 */ 1595 public IS getIn127_ReleaseInformationCode() { 1596 IS retVal = this.getTypedField(27, 0); 1597 return retVal; 1598 } 1599 1600 1601 1602 /** 1603 * Returns 1604 * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary 1605 */ 1606 public ST getPreAdmitCert() { 1607 ST retVal = this.getTypedField(28, 0); 1608 return retVal; 1609 } 1610 1611 /** 1612 * Returns 1613 * IN1-28: "Pre-Admit Cert (PAC)" - creates it if necessary 1614 */ 1615 public ST getIn128_PreAdmitCert() { 1616 ST retVal = this.getTypedField(28, 0); 1617 return retVal; 1618 } 1619 1620 1621 1622 /** 1623 * Returns 1624 * IN1-29: "Verification Date/Time" - creates it if necessary 1625 */ 1626 public TS getVerificationDateTime() { 1627 TS retVal = this.getTypedField(29, 0); 1628 return retVal; 1629 } 1630 1631 /** 1632 * Returns 1633 * IN1-29: "Verification Date/Time" - creates it if necessary 1634 */ 1635 public TS getIn129_VerificationDateTime() { 1636 TS retVal = this.getTypedField(29, 0); 1637 return retVal; 1638 } 1639 1640 1641 /** 1642 * Returns all repetitions of Verification By (IN1-30). 1643 */ 1644 public XCN[] getVerificationBy() { 1645 XCN[] retVal = this.getTypedField(30, new XCN[0]); 1646 return retVal; 1647 } 1648 1649 1650 /** 1651 * Returns all repetitions of Verification By (IN1-30). 1652 */ 1653 public XCN[] getIn130_VerificationBy() { 1654 XCN[] retVal = this.getTypedField(30, new XCN[0]); 1655 return retVal; 1656 } 1657 1658 1659 /** 1660 * Returns a count of the current number of repetitions of Verification By (IN1-30). 1661 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1662 * it will return zero. 1663 */ 1664 public int getVerificationByReps() { 1665 return this.getReps(30); 1666 } 1667 1668 1669 /** 1670 * Returns a specific repetition of 1671 * IN1-30: "Verification By" - creates it if necessary 1672 * 1673 * @param rep The repetition index (0-indexed) 1674 */ 1675 public XCN getVerificationBy(int rep) { 1676 XCN retVal = this.getTypedField(30, rep); 1677 return retVal; 1678 } 1679 1680 /** 1681 * Returns a specific repetition of 1682 * IN1-30: "Verification By" - creates it if necessary 1683 * 1684 * @param rep The repetition index (0-indexed) 1685 */ 1686 public XCN getIn130_VerificationBy(int rep) { 1687 XCN retVal = this.getTypedField(30, rep); 1688 return retVal; 1689 } 1690 1691 /** 1692 * Returns a count of the current number of repetitions of Verification By (IN1-30). 1693 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1694 * it will return zero. 1695 */ 1696 public int getIn130_VerificationByReps() { 1697 return this.getReps(30); 1698 } 1699 1700 1701 /** 1702 * Inserts a repetition of 1703 * IN1-30: "Verification By" at a specific index 1704 * 1705 * @param rep The repetition index (0-indexed) 1706 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1707 */ 1708 public XCN insertVerificationBy(int rep) throws HL7Exception { 1709 return (XCN) super.insertRepetition(30, rep); 1710 } 1711 1712 1713 /** 1714 * Inserts a repetition of 1715 * IN1-30: "Verification By" at a specific index 1716 * 1717 * @param rep The repetition index (0-indexed) 1718 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1719 */ 1720 public XCN insertIn130_VerificationBy(int rep) throws HL7Exception { 1721 return (XCN) super.insertRepetition(30, rep); 1722 } 1723 1724 1725 /** 1726 * Removes a repetition of 1727 * IN1-30: "Verification By" at a specific index 1728 * 1729 * @param rep The repetition index (0-indexed) 1730 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1731 */ 1732 public XCN removeVerificationBy(int rep) throws HL7Exception { 1733 return (XCN) super.removeRepetition(30, rep); 1734 } 1735 1736 1737 /** 1738 * Removes a repetition of 1739 * IN1-30: "Verification By" at a specific index 1740 * 1741 * @param rep The repetition index (0-indexed) 1742 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1743 */ 1744 public XCN removeIn130_VerificationBy(int rep) throws HL7Exception { 1745 return (XCN) super.removeRepetition(30, rep); 1746 } 1747 1748 1749 1750 1751 /** 1752 * Returns 1753 * IN1-31: "Type Of Agreement Code" - creates it if necessary 1754 */ 1755 public IS getTypeOfAgreementCode() { 1756 IS retVal = this.getTypedField(31, 0); 1757 return retVal; 1758 } 1759 1760 /** 1761 * Returns 1762 * IN1-31: "Type Of Agreement Code" - creates it if necessary 1763 */ 1764 public IS getIn131_TypeOfAgreementCode() { 1765 IS retVal = this.getTypedField(31, 0); 1766 return retVal; 1767 } 1768 1769 1770 1771 /** 1772 * Returns 1773 * IN1-32: "Billing Status" - creates it if necessary 1774 */ 1775 public IS getBillingStatus() { 1776 IS retVal = this.getTypedField(32, 0); 1777 return retVal; 1778 } 1779 1780 /** 1781 * Returns 1782 * IN1-32: "Billing Status" - creates it if necessary 1783 */ 1784 public IS getIn132_BillingStatus() { 1785 IS retVal = this.getTypedField(32, 0); 1786 return retVal; 1787 } 1788 1789 1790 1791 /** 1792 * Returns 1793 * IN1-33: "Lifetime Reserve Days" - creates it if necessary 1794 */ 1795 public NM getLifetimeReserveDays() { 1796 NM retVal = this.getTypedField(33, 0); 1797 return retVal; 1798 } 1799 1800 /** 1801 * Returns 1802 * IN1-33: "Lifetime Reserve Days" - creates it if necessary 1803 */ 1804 public NM getIn133_LifetimeReserveDays() { 1805 NM retVal = this.getTypedField(33, 0); 1806 return retVal; 1807 } 1808 1809 1810 1811 /** 1812 * Returns 1813 * IN1-34: "Delay Before L.R. Day" - creates it if necessary 1814 */ 1815 public NM getDelayBeforeLRDay() { 1816 NM retVal = this.getTypedField(34, 0); 1817 return retVal; 1818 } 1819 1820 /** 1821 * Returns 1822 * IN1-34: "Delay Before L.R. Day" - creates it if necessary 1823 */ 1824 public NM getIn134_DelayBeforeLRDay() { 1825 NM retVal = this.getTypedField(34, 0); 1826 return retVal; 1827 } 1828 1829 1830 1831 /** 1832 * Returns 1833 * IN1-35: "Company Plan Code" - creates it if necessary 1834 */ 1835 public IS getCompanyPlanCode() { 1836 IS retVal = this.getTypedField(35, 0); 1837 return retVal; 1838 } 1839 1840 /** 1841 * Returns 1842 * IN1-35: "Company Plan Code" - creates it if necessary 1843 */ 1844 public IS getIn135_CompanyPlanCode() { 1845 IS retVal = this.getTypedField(35, 0); 1846 return retVal; 1847 } 1848 1849 1850 1851 /** 1852 * Returns 1853 * IN1-36: "Policy Number" - creates it if necessary 1854 */ 1855 public ST getPolicyNumber() { 1856 ST retVal = this.getTypedField(36, 0); 1857 return retVal; 1858 } 1859 1860 /** 1861 * Returns 1862 * IN1-36: "Policy Number" - creates it if necessary 1863 */ 1864 public ST getIn136_PolicyNumber() { 1865 ST retVal = this.getTypedField(36, 0); 1866 return retVal; 1867 } 1868 1869 1870 1871 /** 1872 * Returns 1873 * IN1-37: "Policy Deductible" - creates it if necessary 1874 */ 1875 public CP getPolicyDeductible() { 1876 CP retVal = this.getTypedField(37, 0); 1877 return retVal; 1878 } 1879 1880 /** 1881 * Returns 1882 * IN1-37: "Policy Deductible" - creates it if necessary 1883 */ 1884 public CP getIn137_PolicyDeductible() { 1885 CP retVal = this.getTypedField(37, 0); 1886 return retVal; 1887 } 1888 1889 1890 1891 /** 1892 * Returns 1893 * IN1-38: "Policy Limit - Amount" - creates it if necessary 1894 */ 1895 public CP getPolicyLimitAmount() { 1896 CP retVal = this.getTypedField(38, 0); 1897 return retVal; 1898 } 1899 1900 /** 1901 * Returns 1902 * IN1-38: "Policy Limit - Amount" - creates it if necessary 1903 */ 1904 public CP getIn138_PolicyLimitAmount() { 1905 CP retVal = this.getTypedField(38, 0); 1906 return retVal; 1907 } 1908 1909 1910 1911 /** 1912 * Returns 1913 * IN1-39: "Policy Limit - Days" - creates it if necessary 1914 */ 1915 public NM getPolicyLimitDays() { 1916 NM retVal = this.getTypedField(39, 0); 1917 return retVal; 1918 } 1919 1920 /** 1921 * Returns 1922 * IN1-39: "Policy Limit - Days" - creates it if necessary 1923 */ 1924 public NM getIn139_PolicyLimitDays() { 1925 NM retVal = this.getTypedField(39, 0); 1926 return retVal; 1927 } 1928 1929 1930 1931 /** 1932 * Returns 1933 * IN1-40: "Room Rate - Semi-Private" - creates it if necessary 1934 */ 1935 public CP getRoomRateSemiPrivate() { 1936 CP retVal = this.getTypedField(40, 0); 1937 return retVal; 1938 } 1939 1940 /** 1941 * Returns 1942 * IN1-40: "Room Rate - Semi-Private" - creates it if necessary 1943 */ 1944 public CP getIn140_RoomRateSemiPrivate() { 1945 CP retVal = this.getTypedField(40, 0); 1946 return retVal; 1947 } 1948 1949 1950 1951 /** 1952 * Returns 1953 * IN1-41: "Room Rate - Private" - creates it if necessary 1954 */ 1955 public CP getRoomRatePrivate() { 1956 CP retVal = this.getTypedField(41, 0); 1957 return retVal; 1958 } 1959 1960 /** 1961 * Returns 1962 * IN1-41: "Room Rate - Private" - creates it if necessary 1963 */ 1964 public CP getIn141_RoomRatePrivate() { 1965 CP retVal = this.getTypedField(41, 0); 1966 return retVal; 1967 } 1968 1969 1970 1971 /** 1972 * Returns 1973 * IN1-42: "Insured’s Employment Status" - creates it if necessary 1974 */ 1975 public CE getInsuredSEmploymentStatus() { 1976 CE retVal = this.getTypedField(42, 0); 1977 return retVal; 1978 } 1979 1980 /** 1981 * Returns 1982 * IN1-42: "Insured’s Employment Status" - creates it if necessary 1983 */ 1984 public CE getIn142_InsuredSEmploymentStatus() { 1985 CE retVal = this.getTypedField(42, 0); 1986 return retVal; 1987 } 1988 1989 1990 1991 /** 1992 * Returns 1993 * IN1-43: "Insured’s Sex" - creates it if necessary 1994 */ 1995 public IS getInsuredSSex() { 1996 IS retVal = this.getTypedField(43, 0); 1997 return retVal; 1998 } 1999 2000 /** 2001 * Returns 2002 * IN1-43: "Insured’s Sex" - creates it if necessary 2003 */ 2004 public IS getIn143_InsuredSSex() { 2005 IS retVal = this.getTypedField(43, 0); 2006 return retVal; 2007 } 2008 2009 2010 /** 2011 * Returns all repetitions of Insured’s Employer’s Address (IN1-44). 2012 */ 2013 public XAD[] getInsuredSEmployerSAddress() { 2014 XAD[] retVal = this.getTypedField(44, new XAD[0]); 2015 return retVal; 2016 } 2017 2018 2019 /** 2020 * Returns all repetitions of Insured’s Employer’s Address (IN1-44). 2021 */ 2022 public XAD[] getIn144_InsuredSEmployerSAddress() { 2023 XAD[] retVal = this.getTypedField(44, new XAD[0]); 2024 return retVal; 2025 } 2026 2027 2028 /** 2029 * Returns a count of the current number of repetitions of Insured’s Employer’s Address (IN1-44). 2030 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2031 * it will return zero. 2032 */ 2033 public int getInsuredSEmployerSAddressReps() { 2034 return this.getReps(44); 2035 } 2036 2037 2038 /** 2039 * Returns a specific repetition of 2040 * IN1-44: "Insured’s Employer’s Address" - creates it if necessary 2041 * 2042 * @param rep The repetition index (0-indexed) 2043 */ 2044 public XAD getInsuredSEmployerSAddress(int rep) { 2045 XAD retVal = this.getTypedField(44, rep); 2046 return retVal; 2047 } 2048 2049 /** 2050 * Returns a specific repetition of 2051 * IN1-44: "Insured’s Employer’s Address" - creates it if necessary 2052 * 2053 * @param rep The repetition index (0-indexed) 2054 */ 2055 public XAD getIn144_InsuredSEmployerSAddress(int rep) { 2056 XAD retVal = this.getTypedField(44, rep); 2057 return retVal; 2058 } 2059 2060 /** 2061 * Returns a count of the current number of repetitions of Insured’s Employer’s Address (IN1-44). 2062 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2063 * it will return zero. 2064 */ 2065 public int getIn144_InsuredSEmployerSAddressReps() { 2066 return this.getReps(44); 2067 } 2068 2069 2070 /** 2071 * Inserts a repetition of 2072 * IN1-44: "Insured’s Employer’s Address" at a specific index 2073 * 2074 * @param rep The repetition index (0-indexed) 2075 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2076 */ 2077 public XAD insertInsuredSEmployerSAddress(int rep) throws HL7Exception { 2078 return (XAD) super.insertRepetition(44, rep); 2079 } 2080 2081 2082 /** 2083 * Inserts a repetition of 2084 * IN1-44: "Insured’s Employer’s Address" at a specific index 2085 * 2086 * @param rep The repetition index (0-indexed) 2087 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2088 */ 2089 public XAD insertIn144_InsuredSEmployerSAddress(int rep) throws HL7Exception { 2090 return (XAD) super.insertRepetition(44, rep); 2091 } 2092 2093 2094 /** 2095 * Removes a repetition of 2096 * IN1-44: "Insured’s Employer’s Address" at a specific index 2097 * 2098 * @param rep The repetition index (0-indexed) 2099 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2100 */ 2101 public XAD removeInsuredSEmployerSAddress(int rep) throws HL7Exception { 2102 return (XAD) super.removeRepetition(44, rep); 2103 } 2104 2105 2106 /** 2107 * Removes a repetition of 2108 * IN1-44: "Insured’s Employer’s Address" at a specific index 2109 * 2110 * @param rep The repetition index (0-indexed) 2111 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2112 */ 2113 public XAD removeIn144_InsuredSEmployerSAddress(int rep) throws HL7Exception { 2114 return (XAD) super.removeRepetition(44, rep); 2115 } 2116 2117 2118 2119 2120 /** 2121 * Returns 2122 * IN1-45: "Verification Status" - creates it if necessary 2123 */ 2124 public ST getVerificationStatus() { 2125 ST retVal = this.getTypedField(45, 0); 2126 return retVal; 2127 } 2128 2129 /** 2130 * Returns 2131 * IN1-45: "Verification Status" - creates it if necessary 2132 */ 2133 public ST getIn145_VerificationStatus() { 2134 ST retVal = this.getTypedField(45, 0); 2135 return retVal; 2136 } 2137 2138 2139 2140 /** 2141 * Returns 2142 * IN1-46: "Prior Insurance Plan ID" - creates it if necessary 2143 */ 2144 public IS getPriorInsurancePlanID() { 2145 IS retVal = this.getTypedField(46, 0); 2146 return retVal; 2147 } 2148 2149 /** 2150 * Returns 2151 * IN1-46: "Prior Insurance Plan ID" - creates it if necessary 2152 */ 2153 public IS getIn146_PriorInsurancePlanID() { 2154 IS retVal = this.getTypedField(46, 0); 2155 return retVal; 2156 } 2157 2158 2159 2160 /** 2161 * Returns 2162 * IN1-47: "Coverage Type" - creates it if necessary 2163 */ 2164 public IS getCoverageType() { 2165 IS retVal = this.getTypedField(47, 0); 2166 return retVal; 2167 } 2168 2169 /** 2170 * Returns 2171 * IN1-47: "Coverage Type" - creates it if necessary 2172 */ 2173 public IS getIn147_CoverageType() { 2174 IS retVal = this.getTypedField(47, 0); 2175 return retVal; 2176 } 2177 2178 2179 2180 /** 2181 * Returns 2182 * IN1-48: "Handicap" - creates it if necessary 2183 */ 2184 public IS getHandicap() { 2185 IS retVal = this.getTypedField(48, 0); 2186 return retVal; 2187 } 2188 2189 /** 2190 * Returns 2191 * IN1-48: "Handicap" - creates it if necessary 2192 */ 2193 public IS getIn148_Handicap() { 2194 IS retVal = this.getTypedField(48, 0); 2195 return retVal; 2196 } 2197 2198 2199 /** 2200 * Returns all repetitions of Insured’s ID Number (IN1-49). 2201 */ 2202 public CX[] getInsuredSIDNumber() { 2203 CX[] retVal = this.getTypedField(49, new CX[0]); 2204 return retVal; 2205 } 2206 2207 2208 /** 2209 * Returns all repetitions of Insured’s ID Number (IN1-49). 2210 */ 2211 public CX[] getIn149_InsuredSIDNumber() { 2212 CX[] retVal = this.getTypedField(49, new CX[0]); 2213 return retVal; 2214 } 2215 2216 2217 /** 2218 * Returns a count of the current number of repetitions of Insured’s ID Number (IN1-49). 2219 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2220 * it will return zero. 2221 */ 2222 public int getInsuredSIDNumberReps() { 2223 return this.getReps(49); 2224 } 2225 2226 2227 /** 2228 * Returns a specific repetition of 2229 * IN1-49: "Insured’s ID Number" - creates it if necessary 2230 * 2231 * @param rep The repetition index (0-indexed) 2232 */ 2233 public CX getInsuredSIDNumber(int rep) { 2234 CX retVal = this.getTypedField(49, rep); 2235 return retVal; 2236 } 2237 2238 /** 2239 * Returns a specific repetition of 2240 * IN1-49: "Insured’s ID Number" - creates it if necessary 2241 * 2242 * @param rep The repetition index (0-indexed) 2243 */ 2244 public CX getIn149_InsuredSIDNumber(int rep) { 2245 CX retVal = this.getTypedField(49, rep); 2246 return retVal; 2247 } 2248 2249 /** 2250 * Returns a count of the current number of repetitions of Insured’s ID Number (IN1-49). 2251 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2252 * it will return zero. 2253 */ 2254 public int getIn149_InsuredSIDNumberReps() { 2255 return this.getReps(49); 2256 } 2257 2258 2259 /** 2260 * Inserts a repetition of 2261 * IN1-49: "Insured’s ID Number" at a specific index 2262 * 2263 * @param rep The repetition index (0-indexed) 2264 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2265 */ 2266 public CX insertInsuredSIDNumber(int rep) throws HL7Exception { 2267 return (CX) super.insertRepetition(49, rep); 2268 } 2269 2270 2271 /** 2272 * Inserts a repetition of 2273 * IN1-49: "Insured’s ID Number" at a specific index 2274 * 2275 * @param rep The repetition index (0-indexed) 2276 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2277 */ 2278 public CX insertIn149_InsuredSIDNumber(int rep) throws HL7Exception { 2279 return (CX) super.insertRepetition(49, rep); 2280 } 2281 2282 2283 /** 2284 * Removes a repetition of 2285 * IN1-49: "Insured’s ID Number" at a specific index 2286 * 2287 * @param rep The repetition index (0-indexed) 2288 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2289 */ 2290 public CX removeInsuredSIDNumber(int rep) throws HL7Exception { 2291 return (CX) super.removeRepetition(49, rep); 2292 } 2293 2294 2295 /** 2296 * Removes a repetition of 2297 * IN1-49: "Insured’s ID Number" at a specific index 2298 * 2299 * @param rep The repetition index (0-indexed) 2300 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2301 */ 2302 public CX removeIn149_InsuredSIDNumber(int rep) throws HL7Exception { 2303 return (CX) super.removeRepetition(49, rep); 2304 } 2305 2306 2307 2308 2309 2310 2311 /** {@inheritDoc} */ 2312 protected Type createNewTypeWithoutReflection(int field) { 2313 switch (field) { 2314 case 0: return new SI(getMessage()); 2315 case 1: return new CE(getMessage()); 2316 case 2: return new CX(getMessage()); 2317 case 3: return new XON(getMessage()); 2318 case 4: return new XAD(getMessage()); 2319 case 5: return new XPN(getMessage()); 2320 case 6: return new XTN(getMessage()); 2321 case 7: return new ST(getMessage()); 2322 case 8: return new XON(getMessage()); 2323 case 9: return new CX(getMessage()); 2324 case 10: return new XON(getMessage()); 2325 case 11: return new DT(getMessage()); 2326 case 12: return new DT(getMessage()); 2327 case 13: return new AUI(getMessage()); 2328 case 14: return new IS(getMessage(), new Integer( 86 )); 2329 case 15: return new XPN(getMessage()); 2330 case 16: return new CE(getMessage()); 2331 case 17: return new TS(getMessage()); 2332 case 18: return new XAD(getMessage()); 2333 case 19: return new IS(getMessage(), new Integer( 135 )); 2334 case 20: return new IS(getMessage(), new Integer( 173 )); 2335 case 21: return new ST(getMessage()); 2336 case 22: return new ID(getMessage(), new Integer( 136 )); 2337 case 23: return new DT(getMessage()); 2338 case 24: return new ID(getMessage(), new Integer( 136 )); 2339 case 25: return new DT(getMessage()); 2340 case 26: return new IS(getMessage(), new Integer( 93 )); 2341 case 27: return new ST(getMessage()); 2342 case 28: return new TS(getMessage()); 2343 case 29: return new XCN(getMessage()); 2344 case 30: return new IS(getMessage(), new Integer( 98 )); 2345 case 31: return new IS(getMessage(), new Integer( 22 )); 2346 case 32: return new NM(getMessage()); 2347 case 33: return new NM(getMessage()); 2348 case 34: return new IS(getMessage(), new Integer( 42 )); 2349 case 35: return new ST(getMessage()); 2350 case 36: return new CP(getMessage()); 2351 case 37: return new CP(getMessage()); 2352 case 38: return new NM(getMessage()); 2353 case 39: return new CP(getMessage()); 2354 case 40: return new CP(getMessage()); 2355 case 41: return new CE(getMessage()); 2356 case 42: return new IS(getMessage(), new Integer( 1 )); 2357 case 43: return new XAD(getMessage()); 2358 case 44: return new ST(getMessage()); 2359 case 45: return new IS(getMessage(), new Integer( 72 )); 2360 case 46: return new IS(getMessage(), new Integer( 309 )); 2361 case 47: return new IS(getMessage(), new Integer( 295 )); 2362 case 48: return new CX(getMessage()); 2363 default: return null; 2364 } 2365 } 2366 2367 2368} 2369