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.v22.segment; 035 036// import ca.uhn.hl7v2.model.v22.group.*; 037import ca.uhn.hl7v2.model.v22.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 GT1 message segment (GUARANTOR). 050 * This segment has the following fields:</p> 051 * <ul> 052 * <li>GT1-1: Set ID - guarantor (SI) <b> </b> 053 * <li>GT1-2: Guarantor number (CK) <b>optional </b> 054 * <li>GT1-3: Guarantor name (PN) <b> </b> 055 * <li>GT1-4: Guarantor spouse name (PN) <b>optional </b> 056 * <li>GT1-5: Guarantor address (AD) <b>optional </b> 057 * <li>GT1-6: Guarantor phone number - home (TN) <b>optional repeating</b> 058 * <li>GT1-7: Guarantor phone number - business (TN) <b>optional repeating</b> 059 * <li>GT1-8: Guarantor date of birth (DT) <b>optional </b> 060 * <li>GT1-9: Guarantor sex (ID) <b>optional </b> 061 * <li>GT1-10: Guarantor type (ID) <b>optional </b> 062 * <li>GT1-11: Guarantor relationship (ID) <b>optional </b> 063 * <li>GT1-12: Guarantor social security number (ST) <b>optional </b> 064 * <li>GT1-13: Guarantor date - begin (DT) <b>optional </b> 065 * <li>GT1-14: Guarantor date - end (DT) <b>optional </b> 066 * <li>GT1-15: Guarantor priority (NM) <b>optional </b> 067 * <li>GT1-16: Guarantor employer name (ST) <b>optional </b> 068 * <li>GT1-17: Guarantor employer address (AD) <b>optional </b> 069 * <li>GT1-18: Guarantor employ phone number (TN) <b>optional repeating</b> 070 * <li>GT1-19: Guarantor employee ID number (ST) <b>optional </b> 071 * <li>GT1-20: Guarantor employment status (ID) <b>optional </b> 072 * <li>GT1-21: Guarantor organization (ST) <b>optional </b> 073 * </ul> 074 */ 075@SuppressWarnings("unused") 076public class GT1 extends AbstractSegment { 077 078 /** 079 * Creates a new GT1 segment 080 */ 081 public GT1(Group parent, ModelClassFactory factory) { 082 super(parent, factory); 083 init(factory); 084 } 085 086 private void init(ModelClassFactory factory) { 087 try { 088 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - guarantor"); 089 this.add(CK.class, false, 1, 20, new Object[]{ getMessage() }, "Guarantor number"); 090 this.add(PN.class, true, 1, 48, new Object[]{ getMessage() }, "Guarantor name"); 091 this.add(PN.class, false, 1, 48, new Object[]{ getMessage() }, "Guarantor spouse name"); 092 this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "Guarantor address"); 093 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Guarantor phone number - home"); 094 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Guarantor phone number - business"); 095 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor date of birth"); 096 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Guarantor sex"); 097 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(68) }, "Guarantor type"); 098 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Guarantor relationship"); 099 this.add(ST.class, false, 1, 11, new Object[]{ getMessage() }, "Guarantor social security number"); 100 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor date - begin"); 101 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor date - end"); 102 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Guarantor priority"); 103 this.add(ST.class, false, 1, 45, new Object[]{ getMessage() }, "Guarantor employer name"); 104 this.add(AD.class, false, 1, 106, new Object[]{ getMessage() }, "Guarantor employer address"); 105 this.add(TN.class, false, 3, 40, new Object[]{ getMessage() }, "Guarantor employ phone number"); 106 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Guarantor employee ID number"); 107 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(66) }, "Guarantor employment status"); 108 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Guarantor organization"); 109 } catch(HL7Exception e) { 110 log.error("Unexpected error creating GT1 - this is probably a bug in the source code generator.", e); 111 } 112 } 113 114 115 116 /** 117 * Returns 118 * GT1-1: "Set ID - guarantor" - creates it if necessary 119 */ 120 public SI getSetIDGuarantor() { 121 SI retVal = this.getTypedField(1, 0); 122 return retVal; 123 } 124 125 /** 126 * Returns 127 * GT1-1: "Set ID - guarantor" - creates it if necessary 128 */ 129 public SI getGt11_SetIDGuarantor() { 130 SI retVal = this.getTypedField(1, 0); 131 return retVal; 132 } 133 134 135 136 /** 137 * Returns 138 * GT1-2: "Guarantor number" - creates it if necessary 139 */ 140 public CK getGuarantorNumber() { 141 CK retVal = this.getTypedField(2, 0); 142 return retVal; 143 } 144 145 /** 146 * Returns 147 * GT1-2: "Guarantor number" - creates it if necessary 148 */ 149 public CK getGt12_GuarantorNumber() { 150 CK retVal = this.getTypedField(2, 0); 151 return retVal; 152 } 153 154 155 156 /** 157 * Returns 158 * GT1-3: "Guarantor name" - creates it if necessary 159 */ 160 public PN getGuarantorName() { 161 PN retVal = this.getTypedField(3, 0); 162 return retVal; 163 } 164 165 /** 166 * Returns 167 * GT1-3: "Guarantor name" - creates it if necessary 168 */ 169 public PN getGt13_GuarantorName() { 170 PN retVal = this.getTypedField(3, 0); 171 return retVal; 172 } 173 174 175 176 /** 177 * Returns 178 * GT1-4: "Guarantor spouse name" - creates it if necessary 179 */ 180 public PN getGuarantorSpouseName() { 181 PN retVal = this.getTypedField(4, 0); 182 return retVal; 183 } 184 185 /** 186 * Returns 187 * GT1-4: "Guarantor spouse name" - creates it if necessary 188 */ 189 public PN getGt14_GuarantorSpouseName() { 190 PN retVal = this.getTypedField(4, 0); 191 return retVal; 192 } 193 194 195 196 /** 197 * Returns 198 * GT1-5: "Guarantor address" - creates it if necessary 199 */ 200 public AD getGuarantorAddress() { 201 AD retVal = this.getTypedField(5, 0); 202 return retVal; 203 } 204 205 /** 206 * Returns 207 * GT1-5: "Guarantor address" - creates it if necessary 208 */ 209 public AD getGt15_GuarantorAddress() { 210 AD retVal = this.getTypedField(5, 0); 211 return retVal; 212 } 213 214 215 /** 216 * Returns all repetitions of Guarantor phone number - home (GT1-6). 217 */ 218 public TN[] getGuarantorPhoneNumberHome() { 219 TN[] retVal = this.getTypedField(6, new TN[0]); 220 return retVal; 221 } 222 223 224 /** 225 * Returns all repetitions of Guarantor phone number - home (GT1-6). 226 */ 227 public TN[] getGt16_GuarantorPhoneNumberHome() { 228 TN[] retVal = this.getTypedField(6, new TN[0]); 229 return retVal; 230 } 231 232 233 /** 234 * Returns a count of the current number of repetitions of Guarantor phone number - home (GT1-6). 235 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 236 * it will return zero. 237 */ 238 public int getGuarantorPhoneNumberHomeReps() { 239 return this.getReps(6); 240 } 241 242 243 /** 244 * Returns a specific repetition of 245 * GT1-6: "Guarantor phone number - home" - creates it if necessary 246 * 247 * @param rep The repetition index (0-indexed) 248 */ 249 public TN getGuarantorPhoneNumberHome(int rep) { 250 TN retVal = this.getTypedField(6, rep); 251 return retVal; 252 } 253 254 /** 255 * Returns a specific repetition of 256 * GT1-6: "Guarantor phone number - home" - creates it if necessary 257 * 258 * @param rep The repetition index (0-indexed) 259 */ 260 public TN getGt16_GuarantorPhoneNumberHome(int rep) { 261 TN retVal = this.getTypedField(6, rep); 262 return retVal; 263 } 264 265 /** 266 * Returns a count of the current number of repetitions of Guarantor phone number - home (GT1-6). 267 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 268 * it will return zero. 269 */ 270 public int getGt16_GuarantorPhoneNumberHomeReps() { 271 return this.getReps(6); 272 } 273 274 275 /** 276 * Inserts a repetition of 277 * GT1-6: "Guarantor phone number - home" at a specific index 278 * 279 * @param rep The repetition index (0-indexed) 280 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 281 */ 282 public TN insertGuarantorPhoneNumberHome(int rep) throws HL7Exception { 283 return (TN) super.insertRepetition(6, rep); 284 } 285 286 287 /** 288 * Inserts a repetition of 289 * GT1-6: "Guarantor phone number - home" at a specific index 290 * 291 * @param rep The repetition index (0-indexed) 292 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 293 */ 294 public TN insertGt16_GuarantorPhoneNumberHome(int rep) throws HL7Exception { 295 return (TN) super.insertRepetition(6, rep); 296 } 297 298 299 /** 300 * Removes a repetition of 301 * GT1-6: "Guarantor phone number - home" at a specific index 302 * 303 * @param rep The repetition index (0-indexed) 304 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 305 */ 306 public TN removeGuarantorPhoneNumberHome(int rep) throws HL7Exception { 307 return (TN) super.removeRepetition(6, rep); 308 } 309 310 311 /** 312 * Removes a repetition of 313 * GT1-6: "Guarantor phone number - home" at a specific index 314 * 315 * @param rep The repetition index (0-indexed) 316 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 317 */ 318 public TN removeGt16_GuarantorPhoneNumberHome(int rep) throws HL7Exception { 319 return (TN) super.removeRepetition(6, rep); 320 } 321 322 323 324 /** 325 * Returns all repetitions of Guarantor phone number - business (GT1-7). 326 */ 327 public TN[] getGuarantorPhoneNumberBusiness() { 328 TN[] retVal = this.getTypedField(7, new TN[0]); 329 return retVal; 330 } 331 332 333 /** 334 * Returns all repetitions of Guarantor phone number - business (GT1-7). 335 */ 336 public TN[] getGt17_GuarantorPhoneNumberBusiness() { 337 TN[] retVal = this.getTypedField(7, new TN[0]); 338 return retVal; 339 } 340 341 342 /** 343 * Returns a count of the current number of repetitions of Guarantor phone number - business (GT1-7). 344 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 345 * it will return zero. 346 */ 347 public int getGuarantorPhoneNumberBusinessReps() { 348 return this.getReps(7); 349 } 350 351 352 /** 353 * Returns a specific repetition of 354 * GT1-7: "Guarantor phone number - business" - creates it if necessary 355 * 356 * @param rep The repetition index (0-indexed) 357 */ 358 public TN getGuarantorPhoneNumberBusiness(int rep) { 359 TN retVal = this.getTypedField(7, rep); 360 return retVal; 361 } 362 363 /** 364 * Returns a specific repetition of 365 * GT1-7: "Guarantor phone number - business" - creates it if necessary 366 * 367 * @param rep The repetition index (0-indexed) 368 */ 369 public TN getGt17_GuarantorPhoneNumberBusiness(int rep) { 370 TN retVal = this.getTypedField(7, rep); 371 return retVal; 372 } 373 374 /** 375 * Returns a count of the current number of repetitions of Guarantor phone number - business (GT1-7). 376 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 377 * it will return zero. 378 */ 379 public int getGt17_GuarantorPhoneNumberBusinessReps() { 380 return this.getReps(7); 381 } 382 383 384 /** 385 * Inserts a repetition of 386 * GT1-7: "Guarantor phone number - business" at a specific index 387 * 388 * @param rep The repetition index (0-indexed) 389 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 390 */ 391 public TN insertGuarantorPhoneNumberBusiness(int rep) throws HL7Exception { 392 return (TN) super.insertRepetition(7, rep); 393 } 394 395 396 /** 397 * Inserts a repetition of 398 * GT1-7: "Guarantor phone number - business" at a specific index 399 * 400 * @param rep The repetition index (0-indexed) 401 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 402 */ 403 public TN insertGt17_GuarantorPhoneNumberBusiness(int rep) throws HL7Exception { 404 return (TN) super.insertRepetition(7, rep); 405 } 406 407 408 /** 409 * Removes a repetition of 410 * GT1-7: "Guarantor phone number - business" at a specific index 411 * 412 * @param rep The repetition index (0-indexed) 413 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 414 */ 415 public TN removeGuarantorPhoneNumberBusiness(int rep) throws HL7Exception { 416 return (TN) super.removeRepetition(7, rep); 417 } 418 419 420 /** 421 * Removes a repetition of 422 * GT1-7: "Guarantor phone number - business" at a specific index 423 * 424 * @param rep The repetition index (0-indexed) 425 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 426 */ 427 public TN removeGt17_GuarantorPhoneNumberBusiness(int rep) throws HL7Exception { 428 return (TN) super.removeRepetition(7, rep); 429 } 430 431 432 433 434 /** 435 * Returns 436 * GT1-8: "Guarantor date of birth" - creates it if necessary 437 */ 438 public DT getGuarantorDateOfBirth() { 439 DT retVal = this.getTypedField(8, 0); 440 return retVal; 441 } 442 443 /** 444 * Returns 445 * GT1-8: "Guarantor date of birth" - creates it if necessary 446 */ 447 public DT getGt18_GuarantorDateOfBirth() { 448 DT retVal = this.getTypedField(8, 0); 449 return retVal; 450 } 451 452 453 454 /** 455 * Returns 456 * GT1-9: "Guarantor sex" - creates it if necessary 457 */ 458 public ID getGuarantorSex() { 459 ID retVal = this.getTypedField(9, 0); 460 return retVal; 461 } 462 463 /** 464 * Returns 465 * GT1-9: "Guarantor sex" - creates it if necessary 466 */ 467 public ID getGt19_GuarantorSex() { 468 ID retVal = this.getTypedField(9, 0); 469 return retVal; 470 } 471 472 473 474 /** 475 * Returns 476 * GT1-10: "Guarantor type" - creates it if necessary 477 */ 478 public ID getGuarantorType() { 479 ID retVal = this.getTypedField(10, 0); 480 return retVal; 481 } 482 483 /** 484 * Returns 485 * GT1-10: "Guarantor type" - creates it if necessary 486 */ 487 public ID getGt110_GuarantorType() { 488 ID retVal = this.getTypedField(10, 0); 489 return retVal; 490 } 491 492 493 494 /** 495 * Returns 496 * GT1-11: "Guarantor relationship" - creates it if necessary 497 */ 498 public ID getGuarantorRelationship() { 499 ID retVal = this.getTypedField(11, 0); 500 return retVal; 501 } 502 503 /** 504 * Returns 505 * GT1-11: "Guarantor relationship" - creates it if necessary 506 */ 507 public ID getGt111_GuarantorRelationship() { 508 ID retVal = this.getTypedField(11, 0); 509 return retVal; 510 } 511 512 513 514 /** 515 * Returns 516 * GT1-12: "Guarantor social security number" - creates it if necessary 517 */ 518 public ST getGuarantorSocialSecurityNumber() { 519 ST retVal = this.getTypedField(12, 0); 520 return retVal; 521 } 522 523 /** 524 * Returns 525 * GT1-12: "Guarantor social security number" - creates it if necessary 526 */ 527 public ST getGt112_GuarantorSocialSecurityNumber() { 528 ST retVal = this.getTypedField(12, 0); 529 return retVal; 530 } 531 532 533 534 /** 535 * Returns 536 * GT1-13: "Guarantor date - begin" - creates it if necessary 537 */ 538 public DT getGuarantorDateBegin() { 539 DT retVal = this.getTypedField(13, 0); 540 return retVal; 541 } 542 543 /** 544 * Returns 545 * GT1-13: "Guarantor date - begin" - creates it if necessary 546 */ 547 public DT getGt113_GuarantorDateBegin() { 548 DT retVal = this.getTypedField(13, 0); 549 return retVal; 550 } 551 552 553 554 /** 555 * Returns 556 * GT1-14: "Guarantor date - end" - creates it if necessary 557 */ 558 public DT getGuarantorDateEnd() { 559 DT retVal = this.getTypedField(14, 0); 560 return retVal; 561 } 562 563 /** 564 * Returns 565 * GT1-14: "Guarantor date - end" - creates it if necessary 566 */ 567 public DT getGt114_GuarantorDateEnd() { 568 DT retVal = this.getTypedField(14, 0); 569 return retVal; 570 } 571 572 573 574 /** 575 * Returns 576 * GT1-15: "Guarantor priority" - creates it if necessary 577 */ 578 public NM getGuarantorPriority() { 579 NM retVal = this.getTypedField(15, 0); 580 return retVal; 581 } 582 583 /** 584 * Returns 585 * GT1-15: "Guarantor priority" - creates it if necessary 586 */ 587 public NM getGt115_GuarantorPriority() { 588 NM retVal = this.getTypedField(15, 0); 589 return retVal; 590 } 591 592 593 594 /** 595 * Returns 596 * GT1-16: "Guarantor employer name" - creates it if necessary 597 */ 598 public ST getGuarantorEmployerName() { 599 ST retVal = this.getTypedField(16, 0); 600 return retVal; 601 } 602 603 /** 604 * Returns 605 * GT1-16: "Guarantor employer name" - creates it if necessary 606 */ 607 public ST getGt116_GuarantorEmployerName() { 608 ST retVal = this.getTypedField(16, 0); 609 return retVal; 610 } 611 612 613 614 /** 615 * Returns 616 * GT1-17: "Guarantor employer address" - creates it if necessary 617 */ 618 public AD getGuarantorEmployerAddress() { 619 AD retVal = this.getTypedField(17, 0); 620 return retVal; 621 } 622 623 /** 624 * Returns 625 * GT1-17: "Guarantor employer address" - creates it if necessary 626 */ 627 public AD getGt117_GuarantorEmployerAddress() { 628 AD retVal = this.getTypedField(17, 0); 629 return retVal; 630 } 631 632 633 /** 634 * Returns all repetitions of Guarantor employ phone number (GT1-18). 635 */ 636 public TN[] getGuarantorEmployPhoneNumber() { 637 TN[] retVal = this.getTypedField(18, new TN[0]); 638 return retVal; 639 } 640 641 642 /** 643 * Returns all repetitions of Guarantor employ phone number (GT1-18). 644 */ 645 public TN[] getGt118_GuarantorEmployPhoneNumber() { 646 TN[] retVal = this.getTypedField(18, new TN[0]); 647 return retVal; 648 } 649 650 651 /** 652 * Returns a count of the current number of repetitions of Guarantor employ phone number (GT1-18). 653 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 654 * it will return zero. 655 */ 656 public int getGuarantorEmployPhoneNumberReps() { 657 return this.getReps(18); 658 } 659 660 661 /** 662 * Returns a specific repetition of 663 * GT1-18: "Guarantor employ phone number" - creates it if necessary 664 * 665 * @param rep The repetition index (0-indexed) 666 */ 667 public TN getGuarantorEmployPhoneNumber(int rep) { 668 TN retVal = this.getTypedField(18, rep); 669 return retVal; 670 } 671 672 /** 673 * Returns a specific repetition of 674 * GT1-18: "Guarantor employ phone number" - creates it if necessary 675 * 676 * @param rep The repetition index (0-indexed) 677 */ 678 public TN getGt118_GuarantorEmployPhoneNumber(int rep) { 679 TN retVal = this.getTypedField(18, rep); 680 return retVal; 681 } 682 683 /** 684 * Returns a count of the current number of repetitions of Guarantor employ phone number (GT1-18). 685 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 686 * it will return zero. 687 */ 688 public int getGt118_GuarantorEmployPhoneNumberReps() { 689 return this.getReps(18); 690 } 691 692 693 /** 694 * Inserts a repetition of 695 * GT1-18: "Guarantor employ phone number" at a specific index 696 * 697 * @param rep The repetition index (0-indexed) 698 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 699 */ 700 public TN insertGuarantorEmployPhoneNumber(int rep) throws HL7Exception { 701 return (TN) super.insertRepetition(18, rep); 702 } 703 704 705 /** 706 * Inserts a repetition of 707 * GT1-18: "Guarantor employ phone number" at a specific index 708 * 709 * @param rep The repetition index (0-indexed) 710 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 711 */ 712 public TN insertGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception { 713 return (TN) super.insertRepetition(18, rep); 714 } 715 716 717 /** 718 * Removes a repetition of 719 * GT1-18: "Guarantor employ phone number" at a specific index 720 * 721 * @param rep The repetition index (0-indexed) 722 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 723 */ 724 public TN removeGuarantorEmployPhoneNumber(int rep) throws HL7Exception { 725 return (TN) super.removeRepetition(18, rep); 726 } 727 728 729 /** 730 * Removes a repetition of 731 * GT1-18: "Guarantor employ phone number" at a specific index 732 * 733 * @param rep The repetition index (0-indexed) 734 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 735 */ 736 public TN removeGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception { 737 return (TN) super.removeRepetition(18, rep); 738 } 739 740 741 742 743 /** 744 * Returns 745 * GT1-19: "Guarantor employee ID number" - creates it if necessary 746 */ 747 public ST getGuarantorEmployeeIDNumber() { 748 ST retVal = this.getTypedField(19, 0); 749 return retVal; 750 } 751 752 /** 753 * Returns 754 * GT1-19: "Guarantor employee ID number" - creates it if necessary 755 */ 756 public ST getGt119_GuarantorEmployeeIDNumber() { 757 ST retVal = this.getTypedField(19, 0); 758 return retVal; 759 } 760 761 762 763 /** 764 * Returns 765 * GT1-20: "Guarantor employment status" - creates it if necessary 766 */ 767 public ID getGuarantorEmploymentStatus() { 768 ID retVal = this.getTypedField(20, 0); 769 return retVal; 770 } 771 772 /** 773 * Returns 774 * GT1-20: "Guarantor employment status" - creates it if necessary 775 */ 776 public ID getGt120_GuarantorEmploymentStatus() { 777 ID retVal = this.getTypedField(20, 0); 778 return retVal; 779 } 780 781 782 783 /** 784 * Returns 785 * GT1-21: "Guarantor organization" - creates it if necessary 786 */ 787 public ST getGuarantorOrganization() { 788 ST retVal = this.getTypedField(21, 0); 789 return retVal; 790 } 791 792 /** 793 * Returns 794 * GT1-21: "Guarantor organization" - creates it if necessary 795 */ 796 public ST getGt121_GuarantorOrganization() { 797 ST retVal = this.getTypedField(21, 0); 798 return retVal; 799 } 800 801 802 803 804 805 /** {@inheritDoc} */ 806 protected Type createNewTypeWithoutReflection(int field) { 807 switch (field) { 808 case 0: return new SI(getMessage()); 809 case 1: return new CK(getMessage()); 810 case 2: return new PN(getMessage()); 811 case 3: return new PN(getMessage()); 812 case 4: return new AD(getMessage()); 813 case 5: return new TN(getMessage()); 814 case 6: return new TN(getMessage()); 815 case 7: return new DT(getMessage()); 816 case 8: return new ID(getMessage(), new Integer( 1 )); 817 case 9: return new ID(getMessage(), new Integer( 68 )); 818 case 10: return new ID(getMessage(), new Integer( 63 )); 819 case 11: return new ST(getMessage()); 820 case 12: return new DT(getMessage()); 821 case 13: return new DT(getMessage()); 822 case 14: return new NM(getMessage()); 823 case 15: return new ST(getMessage()); 824 case 16: return new AD(getMessage()); 825 case 17: return new TN(getMessage()); 826 case 18: return new ST(getMessage()); 827 case 19: return new ID(getMessage(), new Integer( 66 )); 828 case 20: return new ST(getMessage()); 829 default: return null; 830 } 831 } 832 833 834} 835