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.v23.segment; 035 036// import ca.uhn.hl7v2.model.v23.group.*; 037import ca.uhn.hl7v2.model.v23.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 *<p>Represents an HL7 GT1 message segment (Guarantor). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>GT1-1: Set ID - Guarantor (SI) <b> </b> 052 * <li>GT1-2: Guarantor Number (CX) <b>optional repeating</b> 053 * <li>GT1-3: Guarantor Name (XPN) <b> repeating</b> 054 * <li>GT1-4: Guarantor Spouse Name (XPN) <b>optional repeating</b> 055 * <li>GT1-5: Guarantor Address (XAD) <b>optional repeating</b> 056 * <li>GT1-6: Guarantor Ph Num- Home (XTN) <b>optional repeating</b> 057 * <li>GT1-7: Guarantor Ph Num-Business (XTN) <b>optional repeating</b> 058 * <li>GT1-8: Guarantor Date/Time of Birth (TS) <b>optional </b> 059 * <li>GT1-9: Guarantor Sex (IS) <b>optional </b> 060 * <li>GT1-10: Guarantor Type (IS) <b>optional </b> 061 * <li>GT1-11: Guarantor Relationship (IS) <b>optional </b> 062 * <li>GT1-12: Guarantor SSN (ST) <b>optional </b> 063 * <li>GT1-13: Guarantor Date - Begin (DT) <b>optional </b> 064 * <li>GT1-14: Guarantor Date - End (DT) <b>optional </b> 065 * <li>GT1-15: Guarantor Priority (NM) <b>optional </b> 066 * <li>GT1-16: Guarantor Employer Name (XPN) <b>optional repeating</b> 067 * <li>GT1-17: Guarantor Employer Address (XAD) <b>optional repeating</b> 068 * <li>GT1-18: Guarantor Employ Phone Number (XTN) <b>optional repeating</b> 069 * <li>GT1-19: Guarantor Employee ID Number (CX) <b>optional repeating</b> 070 * <li>GT1-20: Guarantor Employment Status (IS) <b>optional </b> 071 * <li>GT1-21: Guarantor Organization (XON) <b>optional repeating</b> 072 * <li>GT1-22: Guarantor Billing Hold Flag (ID) <b>optional </b> 073 * <li>GT1-23: Guarantor Credit Rating Code (CE) <b>optional </b> 074 * <li>GT1-24: Guarantor Death Date And Time (TS) <b>optional </b> 075 * <li>GT1-25: Guarantor Death Flag (ID) <b>optional </b> 076 * <li>GT1-26: Guarantor Charge Adjustment Code (CE) <b>optional </b> 077 * <li>GT1-27: Guarantor Household Annual Income (CP) <b>optional </b> 078 * <li>GT1-28: Guarantor Household Size (NM) <b>optional </b> 079 * <li>GT1-29: Guarantor Employer ID Number (CX) <b>optional repeating</b> 080 * <li>GT1-30: Guarantor Marital Status Code (IS) <b>optional </b> 081 * <li>GT1-31: Guarantor Hire Effective Date (DT) <b>optional </b> 082 * <li>GT1-32: Employment Stop Date (DT) <b>optional </b> 083 * <li>GT1-33: Living Dependency (IS) <b>optional </b> 084 * <li>GT1-34: Ambulatory Status (IS) <b>optional </b> 085 * <li>GT1-35: Citizenship (IS) <b>optional </b> 086 * <li>GT1-36: Primary Language (CE) <b>optional </b> 087 * <li>GT1-37: Living Arrangement (IS) <b>optional </b> 088 * <li>GT1-38: Publicity Indicator (CE) <b>optional </b> 089 * <li>GT1-39: Protection Indicator (ID) <b>optional </b> 090 * <li>GT1-40: Student Indicator (IS) <b>optional </b> 091 * <li>GT1-41: Religion (IS) <b>optional </b> 092 * <li>GT1-42: Mother’s Maiden Name (XPN) <b>optional </b> 093 * <li>GT1-43: Nationality Code (CE) <b>optional </b> 094 * <li>GT1-44: Ethnic Group (IS) <b>optional </b> 095 * <li>GT1-45: Contact Person's Name (XPN) <b>optional repeating</b> 096 * <li>GT1-46: Contact Person’s Telephone Number (XTN) <b>optional repeating</b> 097 * <li>GT1-47: Contact Reason (CE) <b>optional </b> 098 * <li>GT1-48: Contact Relationship Code (IS) <b>optional </b> 099 * <li>GT1-49: Job Title (ST) <b>optional </b> 100 * <li>GT1-50: Job Code/Class (JCC) <b>optional </b> 101 * <li>GT1-51: Guarantor Employer's Organization Name (XON) <b>optional repeating</b> 102 * <li>GT1-52: Handicap (IS) <b>optional </b> 103 * <li>GT1-53: Job Status (IS) <b>optional </b> 104 * <li>GT1-54: Guarantor Financial Class (FC) <b>optional </b> 105 * <li>GT1-55: Guarantor Race (IS) <b>optional </b> 106 * </ul> 107 */ 108@SuppressWarnings("unused") 109public class GT1 extends AbstractSegment { 110 111 /** 112 * Creates a new GT1 segment 113 */ 114 public GT1(Group parent, ModelClassFactory factory) { 115 super(parent, factory); 116 init(factory); 117 } 118 119 private void init(ModelClassFactory factory) { 120 try { 121 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - Guarantor"); 122 this.add(CX.class, false, 0, 59, new Object[]{ getMessage() }, "Guarantor Number"); 123 this.add(XPN.class, true, 0, 48, new Object[]{ getMessage() }, "Guarantor Name"); 124 this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Guarantor Spouse Name"); 125 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Guarantor Address"); 126 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Guarantor Ph Num- Home"); 127 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Guarantor Ph Num-Business"); 128 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Guarantor Date/Time of Birth"); 129 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Guarantor Sex"); 130 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(68) }, "Guarantor Type"); 131 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Guarantor Relationship"); 132 this.add(ST.class, false, 1, 11, new Object[]{ getMessage() }, "Guarantor SSN"); 133 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Date - Begin"); 134 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Date - End"); 135 this.add(NM.class, false, 1, 2, new Object[]{ getMessage() }, "Guarantor Priority"); 136 this.add(XPN.class, false, 0, 130, new Object[]{ getMessage() }, "Guarantor Employer Name"); 137 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Guarantor Employer Address"); 138 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Guarantor Employ Phone Number"); 139 this.add(CX.class, false, 0, 20, new Object[]{ getMessage() }, "Guarantor Employee ID Number"); 140 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(66) }, "Guarantor Employment Status"); 141 this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Guarantor Organization"); 142 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Guarantor Billing Hold Flag"); 143 this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Guarantor Credit Rating Code"); 144 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Guarantor Death Date And Time"); 145 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Guarantor Death Flag"); 146 this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Guarantor Charge Adjustment Code"); 147 this.add(CP.class, false, 1, 10, new Object[]{ getMessage() }, "Guarantor Household Annual Income"); 148 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Guarantor Household Size"); 149 this.add(CX.class, false, 0, 20, new Object[]{ getMessage() }, "Guarantor Employer ID Number"); 150 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(0) }, "Guarantor Marital Status Code"); 151 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Guarantor Hire Effective Date"); 152 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Employment Stop Date"); 153 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(223) }, "Living Dependency"); 154 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status"); 155 this.add(IS.class, false, 1, 4, new Object[]{ getMessage(), new Integer(171) }, "Citizenship"); 156 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Primary Language"); 157 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(220) }, "Living Arrangement"); 158 this.add(CE.class, false, 1, 1, new Object[]{ getMessage() }, "Publicity Indicator"); 159 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Protection Indicator"); 160 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(231) }, "Student Indicator"); 161 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(6) }, "Religion"); 162 this.add(XPN.class, false, 1, 48, new Object[]{ getMessage() }, "Mother’s Maiden Name"); 163 this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Nationality Code"); 164 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(189) }, "Ethnic Group"); 165 this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Contact Person's Name"); 166 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Contact Person’s Telephone Number"); 167 this.add(CE.class, false, 1, 2, new Object[]{ getMessage() }, "Contact Reason"); 168 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(63) }, "Contact Relationship Code"); 169 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Job Title"); 170 this.add(JCC.class, false, 1, 20, new Object[]{ getMessage() }, "Job Code/Class"); 171 this.add(XON.class, false, 0, 130, new Object[]{ getMessage() }, "Guarantor Employer's Organization Name"); 172 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(310) }, "Handicap"); 173 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(311) }, "Job Status"); 174 this.add(FC.class, false, 1, 50, new Object[]{ getMessage() }, "Guarantor Financial Class"); 175 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(5) }, "Guarantor Race"); 176 } catch(HL7Exception e) { 177 log.error("Unexpected error creating GT1 - this is probably a bug in the source code generator.", e); 178 } 179 } 180 181 182 183 /** 184 * Returns 185 * GT1-1: "Set ID - Guarantor" - creates it if necessary 186 */ 187 public SI getSetIDGuarantor() { 188 SI retVal = this.getTypedField(1, 0); 189 return retVal; 190 } 191 192 /** 193 * Returns 194 * GT1-1: "Set ID - Guarantor" - creates it if necessary 195 */ 196 public SI getGt11_SetIDGuarantor() { 197 SI retVal = this.getTypedField(1, 0); 198 return retVal; 199 } 200 201 202 /** 203 * Returns all repetitions of Guarantor Number (GT1-2). 204 */ 205 public CX[] getGuarantorNumber() { 206 CX[] retVal = this.getTypedField(2, new CX[0]); 207 return retVal; 208 } 209 210 211 /** 212 * Returns all repetitions of Guarantor Number (GT1-2). 213 */ 214 public CX[] getGt12_GuarantorNumber() { 215 CX[] retVal = this.getTypedField(2, new CX[0]); 216 return retVal; 217 } 218 219 220 /** 221 * Returns a count of the current number of repetitions of Guarantor Number (GT1-2). 222 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 223 * it will return zero. 224 */ 225 public int getGuarantorNumberReps() { 226 return this.getReps(2); 227 } 228 229 230 /** 231 * Returns a specific repetition of 232 * GT1-2: "Guarantor Number" - creates it if necessary 233 * 234 * @param rep The repetition index (0-indexed) 235 */ 236 public CX getGuarantorNumber(int rep) { 237 CX retVal = this.getTypedField(2, rep); 238 return retVal; 239 } 240 241 /** 242 * Returns a specific repetition of 243 * GT1-2: "Guarantor Number" - creates it if necessary 244 * 245 * @param rep The repetition index (0-indexed) 246 */ 247 public CX getGt12_GuarantorNumber(int rep) { 248 CX retVal = this.getTypedField(2, rep); 249 return retVal; 250 } 251 252 /** 253 * Returns a count of the current number of repetitions of Guarantor Number (GT1-2). 254 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 255 * it will return zero. 256 */ 257 public int getGt12_GuarantorNumberReps() { 258 return this.getReps(2); 259 } 260 261 262 /** 263 * Inserts a repetition of 264 * GT1-2: "Guarantor Number" at a specific index 265 * 266 * @param rep The repetition index (0-indexed) 267 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 268 */ 269 public CX insertGuarantorNumber(int rep) throws HL7Exception { 270 return (CX) super.insertRepetition(2, rep); 271 } 272 273 274 /** 275 * Inserts a repetition of 276 * GT1-2: "Guarantor Number" at a specific index 277 * 278 * @param rep The repetition index (0-indexed) 279 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 280 */ 281 public CX insertGt12_GuarantorNumber(int rep) throws HL7Exception { 282 return (CX) super.insertRepetition(2, rep); 283 } 284 285 286 /** 287 * Removes a repetition of 288 * GT1-2: "Guarantor Number" at a specific index 289 * 290 * @param rep The repetition index (0-indexed) 291 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 292 */ 293 public CX removeGuarantorNumber(int rep) throws HL7Exception { 294 return (CX) super.removeRepetition(2, rep); 295 } 296 297 298 /** 299 * Removes a repetition of 300 * GT1-2: "Guarantor Number" at a specific index 301 * 302 * @param rep The repetition index (0-indexed) 303 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 304 */ 305 public CX removeGt12_GuarantorNumber(int rep) throws HL7Exception { 306 return (CX) super.removeRepetition(2, rep); 307 } 308 309 310 311 /** 312 * Returns all repetitions of Guarantor Name (GT1-3). 313 */ 314 public XPN[] getGuarantorName() { 315 XPN[] retVal = this.getTypedField(3, new XPN[0]); 316 return retVal; 317 } 318 319 320 /** 321 * Returns all repetitions of Guarantor Name (GT1-3). 322 */ 323 public XPN[] getGt13_GuarantorName() { 324 XPN[] retVal = this.getTypedField(3, new XPN[0]); 325 return retVal; 326 } 327 328 329 /** 330 * Returns a count of the current number of repetitions of Guarantor Name (GT1-3). 331 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 332 * it will return zero. 333 */ 334 public int getGuarantorNameReps() { 335 return this.getReps(3); 336 } 337 338 339 /** 340 * Returns a specific repetition of 341 * GT1-3: "Guarantor Name" - creates it if necessary 342 * 343 * @param rep The repetition index (0-indexed) 344 */ 345 public XPN getGuarantorName(int rep) { 346 XPN retVal = this.getTypedField(3, rep); 347 return retVal; 348 } 349 350 /** 351 * Returns a specific repetition of 352 * GT1-3: "Guarantor Name" - creates it if necessary 353 * 354 * @param rep The repetition index (0-indexed) 355 */ 356 public XPN getGt13_GuarantorName(int rep) { 357 XPN retVal = this.getTypedField(3, rep); 358 return retVal; 359 } 360 361 /** 362 * Returns a count of the current number of repetitions of Guarantor Name (GT1-3). 363 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 364 * it will return zero. 365 */ 366 public int getGt13_GuarantorNameReps() { 367 return this.getReps(3); 368 } 369 370 371 /** 372 * Inserts a repetition of 373 * GT1-3: "Guarantor Name" at a specific index 374 * 375 * @param rep The repetition index (0-indexed) 376 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 377 */ 378 public XPN insertGuarantorName(int rep) throws HL7Exception { 379 return (XPN) super.insertRepetition(3, rep); 380 } 381 382 383 /** 384 * Inserts a repetition of 385 * GT1-3: "Guarantor Name" at a specific index 386 * 387 * @param rep The repetition index (0-indexed) 388 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 389 */ 390 public XPN insertGt13_GuarantorName(int rep) throws HL7Exception { 391 return (XPN) super.insertRepetition(3, rep); 392 } 393 394 395 /** 396 * Removes a repetition of 397 * GT1-3: "Guarantor Name" at a specific index 398 * 399 * @param rep The repetition index (0-indexed) 400 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 401 */ 402 public XPN removeGuarantorName(int rep) throws HL7Exception { 403 return (XPN) super.removeRepetition(3, rep); 404 } 405 406 407 /** 408 * Removes a repetition of 409 * GT1-3: "Guarantor Name" at a specific index 410 * 411 * @param rep The repetition index (0-indexed) 412 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 413 */ 414 public XPN removeGt13_GuarantorName(int rep) throws HL7Exception { 415 return (XPN) super.removeRepetition(3, rep); 416 } 417 418 419 420 /** 421 * Returns all repetitions of Guarantor Spouse Name (GT1-4). 422 */ 423 public XPN[] getGuarantorSpouseName() { 424 XPN[] retVal = this.getTypedField(4, new XPN[0]); 425 return retVal; 426 } 427 428 429 /** 430 * Returns all repetitions of Guarantor Spouse Name (GT1-4). 431 */ 432 public XPN[] getGt14_GuarantorSpouseName() { 433 XPN[] retVal = this.getTypedField(4, new XPN[0]); 434 return retVal; 435 } 436 437 438 /** 439 * Returns a count of the current number of repetitions of Guarantor Spouse Name (GT1-4). 440 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 441 * it will return zero. 442 */ 443 public int getGuarantorSpouseNameReps() { 444 return this.getReps(4); 445 } 446 447 448 /** 449 * Returns a specific repetition of 450 * GT1-4: "Guarantor Spouse Name" - creates it if necessary 451 * 452 * @param rep The repetition index (0-indexed) 453 */ 454 public XPN getGuarantorSpouseName(int rep) { 455 XPN retVal = this.getTypedField(4, rep); 456 return retVal; 457 } 458 459 /** 460 * Returns a specific repetition of 461 * GT1-4: "Guarantor Spouse Name" - creates it if necessary 462 * 463 * @param rep The repetition index (0-indexed) 464 */ 465 public XPN getGt14_GuarantorSpouseName(int rep) { 466 XPN retVal = this.getTypedField(4, rep); 467 return retVal; 468 } 469 470 /** 471 * Returns a count of the current number of repetitions of Guarantor Spouse Name (GT1-4). 472 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 473 * it will return zero. 474 */ 475 public int getGt14_GuarantorSpouseNameReps() { 476 return this.getReps(4); 477 } 478 479 480 /** 481 * Inserts a repetition of 482 * GT1-4: "Guarantor Spouse Name" at a specific index 483 * 484 * @param rep The repetition index (0-indexed) 485 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 486 */ 487 public XPN insertGuarantorSpouseName(int rep) throws HL7Exception { 488 return (XPN) super.insertRepetition(4, rep); 489 } 490 491 492 /** 493 * Inserts a repetition of 494 * GT1-4: "Guarantor Spouse Name" at a specific index 495 * 496 * @param rep The repetition index (0-indexed) 497 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 498 */ 499 public XPN insertGt14_GuarantorSpouseName(int rep) throws HL7Exception { 500 return (XPN) super.insertRepetition(4, rep); 501 } 502 503 504 /** 505 * Removes a repetition of 506 * GT1-4: "Guarantor Spouse Name" at a specific index 507 * 508 * @param rep The repetition index (0-indexed) 509 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 510 */ 511 public XPN removeGuarantorSpouseName(int rep) throws HL7Exception { 512 return (XPN) super.removeRepetition(4, rep); 513 } 514 515 516 /** 517 * Removes a repetition of 518 * GT1-4: "Guarantor Spouse Name" at a specific index 519 * 520 * @param rep The repetition index (0-indexed) 521 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 522 */ 523 public XPN removeGt14_GuarantorSpouseName(int rep) throws HL7Exception { 524 return (XPN) super.removeRepetition(4, rep); 525 } 526 527 528 529 /** 530 * Returns all repetitions of Guarantor Address (GT1-5). 531 */ 532 public XAD[] getGuarantorAddress() { 533 XAD[] retVal = this.getTypedField(5, new XAD[0]); 534 return retVal; 535 } 536 537 538 /** 539 * Returns all repetitions of Guarantor Address (GT1-5). 540 */ 541 public XAD[] getGt15_GuarantorAddress() { 542 XAD[] retVal = this.getTypedField(5, new XAD[0]); 543 return retVal; 544 } 545 546 547 /** 548 * Returns a count of the current number of repetitions of Guarantor Address (GT1-5). 549 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 550 * it will return zero. 551 */ 552 public int getGuarantorAddressReps() { 553 return this.getReps(5); 554 } 555 556 557 /** 558 * Returns a specific repetition of 559 * GT1-5: "Guarantor Address" - creates it if necessary 560 * 561 * @param rep The repetition index (0-indexed) 562 */ 563 public XAD getGuarantorAddress(int rep) { 564 XAD retVal = this.getTypedField(5, rep); 565 return retVal; 566 } 567 568 /** 569 * Returns a specific repetition of 570 * GT1-5: "Guarantor Address" - creates it if necessary 571 * 572 * @param rep The repetition index (0-indexed) 573 */ 574 public XAD getGt15_GuarantorAddress(int rep) { 575 XAD retVal = this.getTypedField(5, rep); 576 return retVal; 577 } 578 579 /** 580 * Returns a count of the current number of repetitions of Guarantor Address (GT1-5). 581 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 582 * it will return zero. 583 */ 584 public int getGt15_GuarantorAddressReps() { 585 return this.getReps(5); 586 } 587 588 589 /** 590 * Inserts a repetition of 591 * GT1-5: "Guarantor Address" at a specific index 592 * 593 * @param rep The repetition index (0-indexed) 594 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 595 */ 596 public XAD insertGuarantorAddress(int rep) throws HL7Exception { 597 return (XAD) super.insertRepetition(5, rep); 598 } 599 600 601 /** 602 * Inserts a repetition of 603 * GT1-5: "Guarantor Address" at a specific index 604 * 605 * @param rep The repetition index (0-indexed) 606 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 607 */ 608 public XAD insertGt15_GuarantorAddress(int rep) throws HL7Exception { 609 return (XAD) super.insertRepetition(5, rep); 610 } 611 612 613 /** 614 * Removes a repetition of 615 * GT1-5: "Guarantor Address" at a specific index 616 * 617 * @param rep The repetition index (0-indexed) 618 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 619 */ 620 public XAD removeGuarantorAddress(int rep) throws HL7Exception { 621 return (XAD) super.removeRepetition(5, rep); 622 } 623 624 625 /** 626 * Removes a repetition of 627 * GT1-5: "Guarantor Address" at a specific index 628 * 629 * @param rep The repetition index (0-indexed) 630 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 631 */ 632 public XAD removeGt15_GuarantorAddress(int rep) throws HL7Exception { 633 return (XAD) super.removeRepetition(5, rep); 634 } 635 636 637 638 /** 639 * Returns all repetitions of Guarantor Ph Num- Home (GT1-6). 640 */ 641 public XTN[] getGuarantorPhNumHome() { 642 XTN[] retVal = this.getTypedField(6, new XTN[0]); 643 return retVal; 644 } 645 646 647 /** 648 * Returns all repetitions of Guarantor Ph Num- Home (GT1-6). 649 */ 650 public XTN[] getGt16_GuarantorPhNumHome() { 651 XTN[] retVal = this.getTypedField(6, new XTN[0]); 652 return retVal; 653 } 654 655 656 /** 657 * Returns a count of the current number of repetitions of Guarantor Ph Num- Home (GT1-6). 658 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 659 * it will return zero. 660 */ 661 public int getGuarantorPhNumHomeReps() { 662 return this.getReps(6); 663 } 664 665 666 /** 667 * Returns a specific repetition of 668 * GT1-6: "Guarantor Ph Num- Home" - creates it if necessary 669 * 670 * @param rep The repetition index (0-indexed) 671 */ 672 public XTN getGuarantorPhNumHome(int rep) { 673 XTN retVal = this.getTypedField(6, rep); 674 return retVal; 675 } 676 677 /** 678 * Returns a specific repetition of 679 * GT1-6: "Guarantor Ph Num- Home" - creates it if necessary 680 * 681 * @param rep The repetition index (0-indexed) 682 */ 683 public XTN getGt16_GuarantorPhNumHome(int rep) { 684 XTN retVal = this.getTypedField(6, rep); 685 return retVal; 686 } 687 688 /** 689 * Returns a count of the current number of repetitions of Guarantor Ph Num- Home (GT1-6). 690 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 691 * it will return zero. 692 */ 693 public int getGt16_GuarantorPhNumHomeReps() { 694 return this.getReps(6); 695 } 696 697 698 /** 699 * Inserts a repetition of 700 * GT1-6: "Guarantor Ph Num- Home" at a specific index 701 * 702 * @param rep The repetition index (0-indexed) 703 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 704 */ 705 public XTN insertGuarantorPhNumHome(int rep) throws HL7Exception { 706 return (XTN) super.insertRepetition(6, rep); 707 } 708 709 710 /** 711 * Inserts a repetition of 712 * GT1-6: "Guarantor Ph Num- Home" at a specific index 713 * 714 * @param rep The repetition index (0-indexed) 715 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 716 */ 717 public XTN insertGt16_GuarantorPhNumHome(int rep) throws HL7Exception { 718 return (XTN) super.insertRepetition(6, rep); 719 } 720 721 722 /** 723 * Removes a repetition of 724 * GT1-6: "Guarantor Ph Num- Home" at a specific index 725 * 726 * @param rep The repetition index (0-indexed) 727 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 728 */ 729 public XTN removeGuarantorPhNumHome(int rep) throws HL7Exception { 730 return (XTN) super.removeRepetition(6, rep); 731 } 732 733 734 /** 735 * Removes a repetition of 736 * GT1-6: "Guarantor Ph Num- Home" at a specific index 737 * 738 * @param rep The repetition index (0-indexed) 739 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 740 */ 741 public XTN removeGt16_GuarantorPhNumHome(int rep) throws HL7Exception { 742 return (XTN) super.removeRepetition(6, rep); 743 } 744 745 746 747 /** 748 * Returns all repetitions of Guarantor Ph Num-Business (GT1-7). 749 */ 750 public XTN[] getGuarantorPhNumBusiness() { 751 XTN[] retVal = this.getTypedField(7, new XTN[0]); 752 return retVal; 753 } 754 755 756 /** 757 * Returns all repetitions of Guarantor Ph Num-Business (GT1-7). 758 */ 759 public XTN[] getGt17_GuarantorPhNumBusiness() { 760 XTN[] retVal = this.getTypedField(7, new XTN[0]); 761 return retVal; 762 } 763 764 765 /** 766 * Returns a count of the current number of repetitions of Guarantor Ph Num-Business (GT1-7). 767 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 768 * it will return zero. 769 */ 770 public int getGuarantorPhNumBusinessReps() { 771 return this.getReps(7); 772 } 773 774 775 /** 776 * Returns a specific repetition of 777 * GT1-7: "Guarantor Ph Num-Business" - creates it if necessary 778 * 779 * @param rep The repetition index (0-indexed) 780 */ 781 public XTN getGuarantorPhNumBusiness(int rep) { 782 XTN retVal = this.getTypedField(7, rep); 783 return retVal; 784 } 785 786 /** 787 * Returns a specific repetition of 788 * GT1-7: "Guarantor Ph Num-Business" - creates it if necessary 789 * 790 * @param rep The repetition index (0-indexed) 791 */ 792 public XTN getGt17_GuarantorPhNumBusiness(int rep) { 793 XTN retVal = this.getTypedField(7, rep); 794 return retVal; 795 } 796 797 /** 798 * Returns a count of the current number of repetitions of Guarantor Ph Num-Business (GT1-7). 799 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 800 * it will return zero. 801 */ 802 public int getGt17_GuarantorPhNumBusinessReps() { 803 return this.getReps(7); 804 } 805 806 807 /** 808 * Inserts a repetition of 809 * GT1-7: "Guarantor Ph Num-Business" at a specific index 810 * 811 * @param rep The repetition index (0-indexed) 812 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 813 */ 814 public XTN insertGuarantorPhNumBusiness(int rep) throws HL7Exception { 815 return (XTN) super.insertRepetition(7, rep); 816 } 817 818 819 /** 820 * Inserts a repetition of 821 * GT1-7: "Guarantor Ph Num-Business" at a specific index 822 * 823 * @param rep The repetition index (0-indexed) 824 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 825 */ 826 public XTN insertGt17_GuarantorPhNumBusiness(int rep) throws HL7Exception { 827 return (XTN) super.insertRepetition(7, rep); 828 } 829 830 831 /** 832 * Removes a repetition of 833 * GT1-7: "Guarantor Ph Num-Business" at a specific index 834 * 835 * @param rep The repetition index (0-indexed) 836 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 837 */ 838 public XTN removeGuarantorPhNumBusiness(int rep) throws HL7Exception { 839 return (XTN) super.removeRepetition(7, rep); 840 } 841 842 843 /** 844 * Removes a repetition of 845 * GT1-7: "Guarantor Ph Num-Business" at a specific index 846 * 847 * @param rep The repetition index (0-indexed) 848 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 849 */ 850 public XTN removeGt17_GuarantorPhNumBusiness(int rep) throws HL7Exception { 851 return (XTN) super.removeRepetition(7, rep); 852 } 853 854 855 856 857 /** 858 * Returns 859 * GT1-8: "Guarantor Date/Time of Birth" - creates it if necessary 860 */ 861 public TS getGuarantorDateTimeOfBirth() { 862 TS retVal = this.getTypedField(8, 0); 863 return retVal; 864 } 865 866 /** 867 * Returns 868 * GT1-8: "Guarantor Date/Time of Birth" - creates it if necessary 869 */ 870 public TS getGt18_GuarantorDateTimeOfBirth() { 871 TS retVal = this.getTypedField(8, 0); 872 return retVal; 873 } 874 875 876 877 /** 878 * Returns 879 * GT1-9: "Guarantor Sex" - creates it if necessary 880 */ 881 public IS getGuarantorSex() { 882 IS retVal = this.getTypedField(9, 0); 883 return retVal; 884 } 885 886 /** 887 * Returns 888 * GT1-9: "Guarantor Sex" - creates it if necessary 889 */ 890 public IS getGt19_GuarantorSex() { 891 IS retVal = this.getTypedField(9, 0); 892 return retVal; 893 } 894 895 896 897 /** 898 * Returns 899 * GT1-10: "Guarantor Type" - creates it if necessary 900 */ 901 public IS getGuarantorType() { 902 IS retVal = this.getTypedField(10, 0); 903 return retVal; 904 } 905 906 /** 907 * Returns 908 * GT1-10: "Guarantor Type" - creates it if necessary 909 */ 910 public IS getGt110_GuarantorType() { 911 IS retVal = this.getTypedField(10, 0); 912 return retVal; 913 } 914 915 916 917 /** 918 * Returns 919 * GT1-11: "Guarantor Relationship" - creates it if necessary 920 */ 921 public IS getGuarantorRelationship() { 922 IS retVal = this.getTypedField(11, 0); 923 return retVal; 924 } 925 926 /** 927 * Returns 928 * GT1-11: "Guarantor Relationship" - creates it if necessary 929 */ 930 public IS getGt111_GuarantorRelationship() { 931 IS retVal = this.getTypedField(11, 0); 932 return retVal; 933 } 934 935 936 937 /** 938 * Returns 939 * GT1-12: "Guarantor SSN" - creates it if necessary 940 */ 941 public ST getGuarantorSSN() { 942 ST retVal = this.getTypedField(12, 0); 943 return retVal; 944 } 945 946 /** 947 * Returns 948 * GT1-12: "Guarantor SSN" - creates it if necessary 949 */ 950 public ST getGt112_GuarantorSSN() { 951 ST retVal = this.getTypedField(12, 0); 952 return retVal; 953 } 954 955 956 957 /** 958 * Returns 959 * GT1-13: "Guarantor Date - Begin" - creates it if necessary 960 */ 961 public DT getGuarantorDateBegin() { 962 DT retVal = this.getTypedField(13, 0); 963 return retVal; 964 } 965 966 /** 967 * Returns 968 * GT1-13: "Guarantor Date - Begin" - creates it if necessary 969 */ 970 public DT getGt113_GuarantorDateBegin() { 971 DT retVal = this.getTypedField(13, 0); 972 return retVal; 973 } 974 975 976 977 /** 978 * Returns 979 * GT1-14: "Guarantor Date - End" - creates it if necessary 980 */ 981 public DT getGuarantorDateEnd() { 982 DT retVal = this.getTypedField(14, 0); 983 return retVal; 984 } 985 986 /** 987 * Returns 988 * GT1-14: "Guarantor Date - End" - creates it if necessary 989 */ 990 public DT getGt114_GuarantorDateEnd() { 991 DT retVal = this.getTypedField(14, 0); 992 return retVal; 993 } 994 995 996 997 /** 998 * Returns 999 * GT1-15: "Guarantor Priority" - creates it if necessary 1000 */ 1001 public NM getGuarantorPriority() { 1002 NM retVal = this.getTypedField(15, 0); 1003 return retVal; 1004 } 1005 1006 /** 1007 * Returns 1008 * GT1-15: "Guarantor Priority" - creates it if necessary 1009 */ 1010 public NM getGt115_GuarantorPriority() { 1011 NM retVal = this.getTypedField(15, 0); 1012 return retVal; 1013 } 1014 1015 1016 /** 1017 * Returns all repetitions of Guarantor Employer Name (GT1-16). 1018 */ 1019 public XPN[] getGuarantorEmployerName() { 1020 XPN[] retVal = this.getTypedField(16, new XPN[0]); 1021 return retVal; 1022 } 1023 1024 1025 /** 1026 * Returns all repetitions of Guarantor Employer Name (GT1-16). 1027 */ 1028 public XPN[] getGt116_GuarantorEmployerName() { 1029 XPN[] retVal = this.getTypedField(16, new XPN[0]); 1030 return retVal; 1031 } 1032 1033 1034 /** 1035 * Returns a count of the current number of repetitions of Guarantor Employer Name (GT1-16). 1036 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1037 * it will return zero. 1038 */ 1039 public int getGuarantorEmployerNameReps() { 1040 return this.getReps(16); 1041 } 1042 1043 1044 /** 1045 * Returns a specific repetition of 1046 * GT1-16: "Guarantor Employer Name" - creates it if necessary 1047 * 1048 * @param rep The repetition index (0-indexed) 1049 */ 1050 public XPN getGuarantorEmployerName(int rep) { 1051 XPN retVal = this.getTypedField(16, rep); 1052 return retVal; 1053 } 1054 1055 /** 1056 * Returns a specific repetition of 1057 * GT1-16: "Guarantor Employer Name" - creates it if necessary 1058 * 1059 * @param rep The repetition index (0-indexed) 1060 */ 1061 public XPN getGt116_GuarantorEmployerName(int rep) { 1062 XPN retVal = this.getTypedField(16, rep); 1063 return retVal; 1064 } 1065 1066 /** 1067 * Returns a count of the current number of repetitions of Guarantor Employer Name (GT1-16). 1068 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1069 * it will return zero. 1070 */ 1071 public int getGt116_GuarantorEmployerNameReps() { 1072 return this.getReps(16); 1073 } 1074 1075 1076 /** 1077 * Inserts a repetition of 1078 * GT1-16: "Guarantor Employer Name" at a specific index 1079 * 1080 * @param rep The repetition index (0-indexed) 1081 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1082 */ 1083 public XPN insertGuarantorEmployerName(int rep) throws HL7Exception { 1084 return (XPN) super.insertRepetition(16, rep); 1085 } 1086 1087 1088 /** 1089 * Inserts a repetition of 1090 * GT1-16: "Guarantor Employer Name" at a specific index 1091 * 1092 * @param rep The repetition index (0-indexed) 1093 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1094 */ 1095 public XPN insertGt116_GuarantorEmployerName(int rep) throws HL7Exception { 1096 return (XPN) super.insertRepetition(16, rep); 1097 } 1098 1099 1100 /** 1101 * Removes a repetition of 1102 * GT1-16: "Guarantor Employer Name" at a specific index 1103 * 1104 * @param rep The repetition index (0-indexed) 1105 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1106 */ 1107 public XPN removeGuarantorEmployerName(int rep) throws HL7Exception { 1108 return (XPN) super.removeRepetition(16, rep); 1109 } 1110 1111 1112 /** 1113 * Removes a repetition of 1114 * GT1-16: "Guarantor Employer Name" at a specific index 1115 * 1116 * @param rep The repetition index (0-indexed) 1117 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1118 */ 1119 public XPN removeGt116_GuarantorEmployerName(int rep) throws HL7Exception { 1120 return (XPN) super.removeRepetition(16, rep); 1121 } 1122 1123 1124 1125 /** 1126 * Returns all repetitions of Guarantor Employer Address (GT1-17). 1127 */ 1128 public XAD[] getGuarantorEmployerAddress() { 1129 XAD[] retVal = this.getTypedField(17, new XAD[0]); 1130 return retVal; 1131 } 1132 1133 1134 /** 1135 * Returns all repetitions of Guarantor Employer Address (GT1-17). 1136 */ 1137 public XAD[] getGt117_GuarantorEmployerAddress() { 1138 XAD[] retVal = this.getTypedField(17, new XAD[0]); 1139 return retVal; 1140 } 1141 1142 1143 /** 1144 * Returns a count of the current number of repetitions of Guarantor Employer Address (GT1-17). 1145 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1146 * it will return zero. 1147 */ 1148 public int getGuarantorEmployerAddressReps() { 1149 return this.getReps(17); 1150 } 1151 1152 1153 /** 1154 * Returns a specific repetition of 1155 * GT1-17: "Guarantor Employer Address" - creates it if necessary 1156 * 1157 * @param rep The repetition index (0-indexed) 1158 */ 1159 public XAD getGuarantorEmployerAddress(int rep) { 1160 XAD retVal = this.getTypedField(17, rep); 1161 return retVal; 1162 } 1163 1164 /** 1165 * Returns a specific repetition of 1166 * GT1-17: "Guarantor Employer Address" - creates it if necessary 1167 * 1168 * @param rep The repetition index (0-indexed) 1169 */ 1170 public XAD getGt117_GuarantorEmployerAddress(int rep) { 1171 XAD retVal = this.getTypedField(17, rep); 1172 return retVal; 1173 } 1174 1175 /** 1176 * Returns a count of the current number of repetitions of Guarantor Employer Address (GT1-17). 1177 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1178 * it will return zero. 1179 */ 1180 public int getGt117_GuarantorEmployerAddressReps() { 1181 return this.getReps(17); 1182 } 1183 1184 1185 /** 1186 * Inserts a repetition of 1187 * GT1-17: "Guarantor Employer Address" at a specific index 1188 * 1189 * @param rep The repetition index (0-indexed) 1190 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1191 */ 1192 public XAD insertGuarantorEmployerAddress(int rep) throws HL7Exception { 1193 return (XAD) super.insertRepetition(17, rep); 1194 } 1195 1196 1197 /** 1198 * Inserts a repetition of 1199 * GT1-17: "Guarantor Employer Address" at a specific index 1200 * 1201 * @param rep The repetition index (0-indexed) 1202 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1203 */ 1204 public XAD insertGt117_GuarantorEmployerAddress(int rep) throws HL7Exception { 1205 return (XAD) super.insertRepetition(17, rep); 1206 } 1207 1208 1209 /** 1210 * Removes a repetition of 1211 * GT1-17: "Guarantor Employer Address" at a specific index 1212 * 1213 * @param rep The repetition index (0-indexed) 1214 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1215 */ 1216 public XAD removeGuarantorEmployerAddress(int rep) throws HL7Exception { 1217 return (XAD) super.removeRepetition(17, rep); 1218 } 1219 1220 1221 /** 1222 * Removes a repetition of 1223 * GT1-17: "Guarantor Employer Address" at a specific index 1224 * 1225 * @param rep The repetition index (0-indexed) 1226 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1227 */ 1228 public XAD removeGt117_GuarantorEmployerAddress(int rep) throws HL7Exception { 1229 return (XAD) super.removeRepetition(17, rep); 1230 } 1231 1232 1233 1234 /** 1235 * Returns all repetitions of Guarantor Employ Phone Number (GT1-18). 1236 */ 1237 public XTN[] getGuarantorEmployPhoneNumber() { 1238 XTN[] retVal = this.getTypedField(18, new XTN[0]); 1239 return retVal; 1240 } 1241 1242 1243 /** 1244 * Returns all repetitions of Guarantor Employ Phone Number (GT1-18). 1245 */ 1246 public XTN[] getGt118_GuarantorEmployPhoneNumber() { 1247 XTN[] retVal = this.getTypedField(18, new XTN[0]); 1248 return retVal; 1249 } 1250 1251 1252 /** 1253 * Returns a count of the current number of repetitions of Guarantor Employ Phone Number (GT1-18). 1254 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1255 * it will return zero. 1256 */ 1257 public int getGuarantorEmployPhoneNumberReps() { 1258 return this.getReps(18); 1259 } 1260 1261 1262 /** 1263 * Returns a specific repetition of 1264 * GT1-18: "Guarantor Employ Phone Number" - creates it if necessary 1265 * 1266 * @param rep The repetition index (0-indexed) 1267 */ 1268 public XTN getGuarantorEmployPhoneNumber(int rep) { 1269 XTN retVal = this.getTypedField(18, rep); 1270 return retVal; 1271 } 1272 1273 /** 1274 * Returns a specific repetition of 1275 * GT1-18: "Guarantor Employ Phone Number" - creates it if necessary 1276 * 1277 * @param rep The repetition index (0-indexed) 1278 */ 1279 public XTN getGt118_GuarantorEmployPhoneNumber(int rep) { 1280 XTN retVal = this.getTypedField(18, rep); 1281 return retVal; 1282 } 1283 1284 /** 1285 * Returns a count of the current number of repetitions of Guarantor Employ Phone Number (GT1-18). 1286 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1287 * it will return zero. 1288 */ 1289 public int getGt118_GuarantorEmployPhoneNumberReps() { 1290 return this.getReps(18); 1291 } 1292 1293 1294 /** 1295 * Inserts a repetition of 1296 * GT1-18: "Guarantor Employ Phone Number" at a specific index 1297 * 1298 * @param rep The repetition index (0-indexed) 1299 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1300 */ 1301 public XTN insertGuarantorEmployPhoneNumber(int rep) throws HL7Exception { 1302 return (XTN) super.insertRepetition(18, rep); 1303 } 1304 1305 1306 /** 1307 * Inserts a repetition of 1308 * GT1-18: "Guarantor Employ Phone Number" at a specific index 1309 * 1310 * @param rep The repetition index (0-indexed) 1311 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1312 */ 1313 public XTN insertGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception { 1314 return (XTN) super.insertRepetition(18, rep); 1315 } 1316 1317 1318 /** 1319 * Removes a repetition of 1320 * GT1-18: "Guarantor Employ Phone Number" at a specific index 1321 * 1322 * @param rep The repetition index (0-indexed) 1323 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1324 */ 1325 public XTN removeGuarantorEmployPhoneNumber(int rep) throws HL7Exception { 1326 return (XTN) super.removeRepetition(18, rep); 1327 } 1328 1329 1330 /** 1331 * Removes a repetition of 1332 * GT1-18: "Guarantor Employ Phone Number" at a specific index 1333 * 1334 * @param rep The repetition index (0-indexed) 1335 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1336 */ 1337 public XTN removeGt118_GuarantorEmployPhoneNumber(int rep) throws HL7Exception { 1338 return (XTN) super.removeRepetition(18, rep); 1339 } 1340 1341 1342 1343 /** 1344 * Returns all repetitions of Guarantor Employee ID Number (GT1-19). 1345 */ 1346 public CX[] getGuarantorEmployeeIDNumber() { 1347 CX[] retVal = this.getTypedField(19, new CX[0]); 1348 return retVal; 1349 } 1350 1351 1352 /** 1353 * Returns all repetitions of Guarantor Employee ID Number (GT1-19). 1354 */ 1355 public CX[] getGt119_GuarantorEmployeeIDNumber() { 1356 CX[] retVal = this.getTypedField(19, new CX[0]); 1357 return retVal; 1358 } 1359 1360 1361 /** 1362 * Returns a count of the current number of repetitions of Guarantor Employee ID Number (GT1-19). 1363 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1364 * it will return zero. 1365 */ 1366 public int getGuarantorEmployeeIDNumberReps() { 1367 return this.getReps(19); 1368 } 1369 1370 1371 /** 1372 * Returns a specific repetition of 1373 * GT1-19: "Guarantor Employee ID Number" - creates it if necessary 1374 * 1375 * @param rep The repetition index (0-indexed) 1376 */ 1377 public CX getGuarantorEmployeeIDNumber(int rep) { 1378 CX retVal = this.getTypedField(19, rep); 1379 return retVal; 1380 } 1381 1382 /** 1383 * Returns a specific repetition of 1384 * GT1-19: "Guarantor Employee ID Number" - creates it if necessary 1385 * 1386 * @param rep The repetition index (0-indexed) 1387 */ 1388 public CX getGt119_GuarantorEmployeeIDNumber(int rep) { 1389 CX retVal = this.getTypedField(19, rep); 1390 return retVal; 1391 } 1392 1393 /** 1394 * Returns a count of the current number of repetitions of Guarantor Employee ID Number (GT1-19). 1395 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1396 * it will return zero. 1397 */ 1398 public int getGt119_GuarantorEmployeeIDNumberReps() { 1399 return this.getReps(19); 1400 } 1401 1402 1403 /** 1404 * Inserts a repetition of 1405 * GT1-19: "Guarantor Employee ID Number" at a specific index 1406 * 1407 * @param rep The repetition index (0-indexed) 1408 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1409 */ 1410 public CX insertGuarantorEmployeeIDNumber(int rep) throws HL7Exception { 1411 return (CX) super.insertRepetition(19, rep); 1412 } 1413 1414 1415 /** 1416 * Inserts a repetition of 1417 * GT1-19: "Guarantor Employee ID Number" at a specific index 1418 * 1419 * @param rep The repetition index (0-indexed) 1420 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1421 */ 1422 public CX insertGt119_GuarantorEmployeeIDNumber(int rep) throws HL7Exception { 1423 return (CX) super.insertRepetition(19, rep); 1424 } 1425 1426 1427 /** 1428 * Removes a repetition of 1429 * GT1-19: "Guarantor Employee ID Number" at a specific index 1430 * 1431 * @param rep The repetition index (0-indexed) 1432 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1433 */ 1434 public CX removeGuarantorEmployeeIDNumber(int rep) throws HL7Exception { 1435 return (CX) super.removeRepetition(19, rep); 1436 } 1437 1438 1439 /** 1440 * Removes a repetition of 1441 * GT1-19: "Guarantor Employee ID Number" at a specific index 1442 * 1443 * @param rep The repetition index (0-indexed) 1444 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1445 */ 1446 public CX removeGt119_GuarantorEmployeeIDNumber(int rep) throws HL7Exception { 1447 return (CX) super.removeRepetition(19, rep); 1448 } 1449 1450 1451 1452 1453 /** 1454 * Returns 1455 * GT1-20: "Guarantor Employment Status" - creates it if necessary 1456 */ 1457 public IS getGuarantorEmploymentStatus() { 1458 IS retVal = this.getTypedField(20, 0); 1459 return retVal; 1460 } 1461 1462 /** 1463 * Returns 1464 * GT1-20: "Guarantor Employment Status" - creates it if necessary 1465 */ 1466 public IS getGt120_GuarantorEmploymentStatus() { 1467 IS retVal = this.getTypedField(20, 0); 1468 return retVal; 1469 } 1470 1471 1472 /** 1473 * Returns all repetitions of Guarantor Organization (GT1-21). 1474 */ 1475 public XON[] getGuarantorOrganization() { 1476 XON[] retVal = this.getTypedField(21, new XON[0]); 1477 return retVal; 1478 } 1479 1480 1481 /** 1482 * Returns all repetitions of Guarantor Organization (GT1-21). 1483 */ 1484 public XON[] getGt121_GuarantorOrganization() { 1485 XON[] retVal = this.getTypedField(21, new XON[0]); 1486 return retVal; 1487 } 1488 1489 1490 /** 1491 * Returns a count of the current number of repetitions of Guarantor Organization (GT1-21). 1492 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1493 * it will return zero. 1494 */ 1495 public int getGuarantorOrganizationReps() { 1496 return this.getReps(21); 1497 } 1498 1499 1500 /** 1501 * Returns a specific repetition of 1502 * GT1-21: "Guarantor Organization" - creates it if necessary 1503 * 1504 * @param rep The repetition index (0-indexed) 1505 */ 1506 public XON getGuarantorOrganization(int rep) { 1507 XON retVal = this.getTypedField(21, rep); 1508 return retVal; 1509 } 1510 1511 /** 1512 * Returns a specific repetition of 1513 * GT1-21: "Guarantor Organization" - creates it if necessary 1514 * 1515 * @param rep The repetition index (0-indexed) 1516 */ 1517 public XON getGt121_GuarantorOrganization(int rep) { 1518 XON retVal = this.getTypedField(21, rep); 1519 return retVal; 1520 } 1521 1522 /** 1523 * Returns a count of the current number of repetitions of Guarantor Organization (GT1-21). 1524 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1525 * it will return zero. 1526 */ 1527 public int getGt121_GuarantorOrganizationReps() { 1528 return this.getReps(21); 1529 } 1530 1531 1532 /** 1533 * Inserts a repetition of 1534 * GT1-21: "Guarantor Organization" at a specific index 1535 * 1536 * @param rep The repetition index (0-indexed) 1537 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1538 */ 1539 public XON insertGuarantorOrganization(int rep) throws HL7Exception { 1540 return (XON) super.insertRepetition(21, rep); 1541 } 1542 1543 1544 /** 1545 * Inserts a repetition of 1546 * GT1-21: "Guarantor Organization" at a specific index 1547 * 1548 * @param rep The repetition index (0-indexed) 1549 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1550 */ 1551 public XON insertGt121_GuarantorOrganization(int rep) throws HL7Exception { 1552 return (XON) super.insertRepetition(21, rep); 1553 } 1554 1555 1556 /** 1557 * Removes a repetition of 1558 * GT1-21: "Guarantor Organization" at a specific index 1559 * 1560 * @param rep The repetition index (0-indexed) 1561 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1562 */ 1563 public XON removeGuarantorOrganization(int rep) throws HL7Exception { 1564 return (XON) super.removeRepetition(21, rep); 1565 } 1566 1567 1568 /** 1569 * Removes a repetition of 1570 * GT1-21: "Guarantor Organization" at a specific index 1571 * 1572 * @param rep The repetition index (0-indexed) 1573 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1574 */ 1575 public XON removeGt121_GuarantorOrganization(int rep) throws HL7Exception { 1576 return (XON) super.removeRepetition(21, rep); 1577 } 1578 1579 1580 1581 1582 /** 1583 * Returns 1584 * GT1-22: "Guarantor Billing Hold Flag" - creates it if necessary 1585 */ 1586 public ID getGuarantorBillingHoldFlag() { 1587 ID retVal = this.getTypedField(22, 0); 1588 return retVal; 1589 } 1590 1591 /** 1592 * Returns 1593 * GT1-22: "Guarantor Billing Hold Flag" - creates it if necessary 1594 */ 1595 public ID getGt122_GuarantorBillingHoldFlag() { 1596 ID retVal = this.getTypedField(22, 0); 1597 return retVal; 1598 } 1599 1600 1601 1602 /** 1603 * Returns 1604 * GT1-23: "Guarantor Credit Rating Code" - creates it if necessary 1605 */ 1606 public CE getGuarantorCreditRatingCode() { 1607 CE retVal = this.getTypedField(23, 0); 1608 return retVal; 1609 } 1610 1611 /** 1612 * Returns 1613 * GT1-23: "Guarantor Credit Rating Code" - creates it if necessary 1614 */ 1615 public CE getGt123_GuarantorCreditRatingCode() { 1616 CE retVal = this.getTypedField(23, 0); 1617 return retVal; 1618 } 1619 1620 1621 1622 /** 1623 * Returns 1624 * GT1-24: "Guarantor Death Date And Time" - creates it if necessary 1625 */ 1626 public TS getGuarantorDeathDateAndTime() { 1627 TS retVal = this.getTypedField(24, 0); 1628 return retVal; 1629 } 1630 1631 /** 1632 * Returns 1633 * GT1-24: "Guarantor Death Date And Time" - creates it if necessary 1634 */ 1635 public TS getGt124_GuarantorDeathDateAndTime() { 1636 TS retVal = this.getTypedField(24, 0); 1637 return retVal; 1638 } 1639 1640 1641 1642 /** 1643 * Returns 1644 * GT1-25: "Guarantor Death Flag" - creates it if necessary 1645 */ 1646 public ID getGuarantorDeathFlag() { 1647 ID retVal = this.getTypedField(25, 0); 1648 return retVal; 1649 } 1650 1651 /** 1652 * Returns 1653 * GT1-25: "Guarantor Death Flag" - creates it if necessary 1654 */ 1655 public ID getGt125_GuarantorDeathFlag() { 1656 ID retVal = this.getTypedField(25, 0); 1657 return retVal; 1658 } 1659 1660 1661 1662 /** 1663 * Returns 1664 * GT1-26: "Guarantor Charge Adjustment Code" - creates it if necessary 1665 */ 1666 public CE getGuarantorChargeAdjustmentCode() { 1667 CE retVal = this.getTypedField(26, 0); 1668 return retVal; 1669 } 1670 1671 /** 1672 * Returns 1673 * GT1-26: "Guarantor Charge Adjustment Code" - creates it if necessary 1674 */ 1675 public CE getGt126_GuarantorChargeAdjustmentCode() { 1676 CE retVal = this.getTypedField(26, 0); 1677 return retVal; 1678 } 1679 1680 1681 1682 /** 1683 * Returns 1684 * GT1-27: "Guarantor Household Annual Income" - creates it if necessary 1685 */ 1686 public CP getGuarantorHouseholdAnnualIncome() { 1687 CP retVal = this.getTypedField(27, 0); 1688 return retVal; 1689 } 1690 1691 /** 1692 * Returns 1693 * GT1-27: "Guarantor Household Annual Income" - creates it if necessary 1694 */ 1695 public CP getGt127_GuarantorHouseholdAnnualIncome() { 1696 CP retVal = this.getTypedField(27, 0); 1697 return retVal; 1698 } 1699 1700 1701 1702 /** 1703 * Returns 1704 * GT1-28: "Guarantor Household Size" - creates it if necessary 1705 */ 1706 public NM getGuarantorHouseholdSize() { 1707 NM retVal = this.getTypedField(28, 0); 1708 return retVal; 1709 } 1710 1711 /** 1712 * Returns 1713 * GT1-28: "Guarantor Household Size" - creates it if necessary 1714 */ 1715 public NM getGt128_GuarantorHouseholdSize() { 1716 NM retVal = this.getTypedField(28, 0); 1717 return retVal; 1718 } 1719 1720 1721 /** 1722 * Returns all repetitions of Guarantor Employer ID Number (GT1-29). 1723 */ 1724 public CX[] getGuarantorEmployerIDNumber() { 1725 CX[] retVal = this.getTypedField(29, new CX[0]); 1726 return retVal; 1727 } 1728 1729 1730 /** 1731 * Returns all repetitions of Guarantor Employer ID Number (GT1-29). 1732 */ 1733 public CX[] getGt129_GuarantorEmployerIDNumber() { 1734 CX[] retVal = this.getTypedField(29, new CX[0]); 1735 return retVal; 1736 } 1737 1738 1739 /** 1740 * Returns a count of the current number of repetitions of Guarantor Employer ID Number (GT1-29). 1741 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1742 * it will return zero. 1743 */ 1744 public int getGuarantorEmployerIDNumberReps() { 1745 return this.getReps(29); 1746 } 1747 1748 1749 /** 1750 * Returns a specific repetition of 1751 * GT1-29: "Guarantor Employer ID Number" - creates it if necessary 1752 * 1753 * @param rep The repetition index (0-indexed) 1754 */ 1755 public CX getGuarantorEmployerIDNumber(int rep) { 1756 CX retVal = this.getTypedField(29, rep); 1757 return retVal; 1758 } 1759 1760 /** 1761 * Returns a specific repetition of 1762 * GT1-29: "Guarantor Employer ID Number" - creates it if necessary 1763 * 1764 * @param rep The repetition index (0-indexed) 1765 */ 1766 public CX getGt129_GuarantorEmployerIDNumber(int rep) { 1767 CX retVal = this.getTypedField(29, rep); 1768 return retVal; 1769 } 1770 1771 /** 1772 * Returns a count of the current number of repetitions of Guarantor Employer ID Number (GT1-29). 1773 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1774 * it will return zero. 1775 */ 1776 public int getGt129_GuarantorEmployerIDNumberReps() { 1777 return this.getReps(29); 1778 } 1779 1780 1781 /** 1782 * Inserts a repetition of 1783 * GT1-29: "Guarantor Employer ID Number" at a specific index 1784 * 1785 * @param rep The repetition index (0-indexed) 1786 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1787 */ 1788 public CX insertGuarantorEmployerIDNumber(int rep) throws HL7Exception { 1789 return (CX) super.insertRepetition(29, rep); 1790 } 1791 1792 1793 /** 1794 * Inserts a repetition of 1795 * GT1-29: "Guarantor Employer ID Number" at a specific index 1796 * 1797 * @param rep The repetition index (0-indexed) 1798 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1799 */ 1800 public CX insertGt129_GuarantorEmployerIDNumber(int rep) throws HL7Exception { 1801 return (CX) super.insertRepetition(29, rep); 1802 } 1803 1804 1805 /** 1806 * Removes a repetition of 1807 * GT1-29: "Guarantor Employer ID Number" at a specific index 1808 * 1809 * @param rep The repetition index (0-indexed) 1810 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1811 */ 1812 public CX removeGuarantorEmployerIDNumber(int rep) throws HL7Exception { 1813 return (CX) super.removeRepetition(29, rep); 1814 } 1815 1816 1817 /** 1818 * Removes a repetition of 1819 * GT1-29: "Guarantor Employer ID Number" at a specific index 1820 * 1821 * @param rep The repetition index (0-indexed) 1822 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1823 */ 1824 public CX removeGt129_GuarantorEmployerIDNumber(int rep) throws HL7Exception { 1825 return (CX) super.removeRepetition(29, rep); 1826 } 1827 1828 1829 1830 1831 /** 1832 * Returns 1833 * GT1-30: "Guarantor Marital Status Code" - creates it if necessary 1834 */ 1835 public IS getGuarantorMaritalStatusCode() { 1836 IS retVal = this.getTypedField(30, 0); 1837 return retVal; 1838 } 1839 1840 /** 1841 * Returns 1842 * GT1-30: "Guarantor Marital Status Code" - creates it if necessary 1843 */ 1844 public IS getGt130_GuarantorMaritalStatusCode() { 1845 IS retVal = this.getTypedField(30, 0); 1846 return retVal; 1847 } 1848 1849 1850 1851 /** 1852 * Returns 1853 * GT1-31: "Guarantor Hire Effective Date" - creates it if necessary 1854 */ 1855 public DT getGuarantorHireEffectiveDate() { 1856 DT retVal = this.getTypedField(31, 0); 1857 return retVal; 1858 } 1859 1860 /** 1861 * Returns 1862 * GT1-31: "Guarantor Hire Effective Date" - creates it if necessary 1863 */ 1864 public DT getGt131_GuarantorHireEffectiveDate() { 1865 DT retVal = this.getTypedField(31, 0); 1866 return retVal; 1867 } 1868 1869 1870 1871 /** 1872 * Returns 1873 * GT1-32: "Employment Stop Date" - creates it if necessary 1874 */ 1875 public DT getEmploymentStopDate() { 1876 DT retVal = this.getTypedField(32, 0); 1877 return retVal; 1878 } 1879 1880 /** 1881 * Returns 1882 * GT1-32: "Employment Stop Date" - creates it if necessary 1883 */ 1884 public DT getGt132_EmploymentStopDate() { 1885 DT retVal = this.getTypedField(32, 0); 1886 return retVal; 1887 } 1888 1889 1890 1891 /** 1892 * Returns 1893 * GT1-33: "Living Dependency" - creates it if necessary 1894 */ 1895 public IS getLivingDependency() { 1896 IS retVal = this.getTypedField(33, 0); 1897 return retVal; 1898 } 1899 1900 /** 1901 * Returns 1902 * GT1-33: "Living Dependency" - creates it if necessary 1903 */ 1904 public IS getGt133_LivingDependency() { 1905 IS retVal = this.getTypedField(33, 0); 1906 return retVal; 1907 } 1908 1909 1910 1911 /** 1912 * Returns 1913 * GT1-34: "Ambulatory Status" - creates it if necessary 1914 */ 1915 public IS getAmbulatoryStatus() { 1916 IS retVal = this.getTypedField(34, 0); 1917 return retVal; 1918 } 1919 1920 /** 1921 * Returns 1922 * GT1-34: "Ambulatory Status" - creates it if necessary 1923 */ 1924 public IS getGt134_AmbulatoryStatus() { 1925 IS retVal = this.getTypedField(34, 0); 1926 return retVal; 1927 } 1928 1929 1930 1931 /** 1932 * Returns 1933 * GT1-35: "Citizenship" - creates it if necessary 1934 */ 1935 public IS getCitizenship() { 1936 IS retVal = this.getTypedField(35, 0); 1937 return retVal; 1938 } 1939 1940 /** 1941 * Returns 1942 * GT1-35: "Citizenship" - creates it if necessary 1943 */ 1944 public IS getGt135_Citizenship() { 1945 IS retVal = this.getTypedField(35, 0); 1946 return retVal; 1947 } 1948 1949 1950 1951 /** 1952 * Returns 1953 * GT1-36: "Primary Language" - creates it if necessary 1954 */ 1955 public CE getPrimaryLanguage() { 1956 CE retVal = this.getTypedField(36, 0); 1957 return retVal; 1958 } 1959 1960 /** 1961 * Returns 1962 * GT1-36: "Primary Language" - creates it if necessary 1963 */ 1964 public CE getGt136_PrimaryLanguage() { 1965 CE retVal = this.getTypedField(36, 0); 1966 return retVal; 1967 } 1968 1969 1970 1971 /** 1972 * Returns 1973 * GT1-37: "Living Arrangement" - creates it if necessary 1974 */ 1975 public IS getLivingArrangement() { 1976 IS retVal = this.getTypedField(37, 0); 1977 return retVal; 1978 } 1979 1980 /** 1981 * Returns 1982 * GT1-37: "Living Arrangement" - creates it if necessary 1983 */ 1984 public IS getGt137_LivingArrangement() { 1985 IS retVal = this.getTypedField(37, 0); 1986 return retVal; 1987 } 1988 1989 1990 1991 /** 1992 * Returns 1993 * GT1-38: "Publicity Indicator" - creates it if necessary 1994 */ 1995 public CE getPublicityIndicator() { 1996 CE retVal = this.getTypedField(38, 0); 1997 return retVal; 1998 } 1999 2000 /** 2001 * Returns 2002 * GT1-38: "Publicity Indicator" - creates it if necessary 2003 */ 2004 public CE getGt138_PublicityIndicator() { 2005 CE retVal = this.getTypedField(38, 0); 2006 return retVal; 2007 } 2008 2009 2010 2011 /** 2012 * Returns 2013 * GT1-39: "Protection Indicator" - creates it if necessary 2014 */ 2015 public ID getProtectionIndicator() { 2016 ID retVal = this.getTypedField(39, 0); 2017 return retVal; 2018 } 2019 2020 /** 2021 * Returns 2022 * GT1-39: "Protection Indicator" - creates it if necessary 2023 */ 2024 public ID getGt139_ProtectionIndicator() { 2025 ID retVal = this.getTypedField(39, 0); 2026 return retVal; 2027 } 2028 2029 2030 2031 /** 2032 * Returns 2033 * GT1-40: "Student Indicator" - creates it if necessary 2034 */ 2035 public IS getStudentIndicator() { 2036 IS retVal = this.getTypedField(40, 0); 2037 return retVal; 2038 } 2039 2040 /** 2041 * Returns 2042 * GT1-40: "Student Indicator" - creates it if necessary 2043 */ 2044 public IS getGt140_StudentIndicator() { 2045 IS retVal = this.getTypedField(40, 0); 2046 return retVal; 2047 } 2048 2049 2050 2051 /** 2052 * Returns 2053 * GT1-41: "Religion" - creates it if necessary 2054 */ 2055 public IS getReligion() { 2056 IS retVal = this.getTypedField(41, 0); 2057 return retVal; 2058 } 2059 2060 /** 2061 * Returns 2062 * GT1-41: "Religion" - creates it if necessary 2063 */ 2064 public IS getGt141_Religion() { 2065 IS retVal = this.getTypedField(41, 0); 2066 return retVal; 2067 } 2068 2069 2070 2071 /** 2072 * Returns 2073 * GT1-42: "Mother’s Maiden Name" - creates it if necessary 2074 */ 2075 public XPN getMotherSMaidenName() { 2076 XPN retVal = this.getTypedField(42, 0); 2077 return retVal; 2078 } 2079 2080 /** 2081 * Returns 2082 * GT1-42: "Mother’s Maiden Name" - creates it if necessary 2083 */ 2084 public XPN getGt142_MotherSMaidenName() { 2085 XPN retVal = this.getTypedField(42, 0); 2086 return retVal; 2087 } 2088 2089 2090 2091 /** 2092 * Returns 2093 * GT1-43: "Nationality Code" - creates it if necessary 2094 */ 2095 public CE getNationalityCode() { 2096 CE retVal = this.getTypedField(43, 0); 2097 return retVal; 2098 } 2099 2100 /** 2101 * Returns 2102 * GT1-43: "Nationality Code" - creates it if necessary 2103 */ 2104 public CE getGt143_NationalityCode() { 2105 CE retVal = this.getTypedField(43, 0); 2106 return retVal; 2107 } 2108 2109 2110 2111 /** 2112 * Returns 2113 * GT1-44: "Ethnic Group" - creates it if necessary 2114 */ 2115 public IS getEthnicGroup() { 2116 IS retVal = this.getTypedField(44, 0); 2117 return retVal; 2118 } 2119 2120 /** 2121 * Returns 2122 * GT1-44: "Ethnic Group" - creates it if necessary 2123 */ 2124 public IS getGt144_EthnicGroup() { 2125 IS retVal = this.getTypedField(44, 0); 2126 return retVal; 2127 } 2128 2129 2130 /** 2131 * Returns all repetitions of Contact Person's Name (GT1-45). 2132 */ 2133 public XPN[] getContactPersonSName() { 2134 XPN[] retVal = this.getTypedField(45, new XPN[0]); 2135 return retVal; 2136 } 2137 2138 2139 /** 2140 * Returns all repetitions of Contact Person's Name (GT1-45). 2141 */ 2142 public XPN[] getGt145_ContactPersonSName() { 2143 XPN[] retVal = this.getTypedField(45, new XPN[0]); 2144 return retVal; 2145 } 2146 2147 2148 /** 2149 * Returns a count of the current number of repetitions of Contact Person's Name (GT1-45). 2150 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2151 * it will return zero. 2152 */ 2153 public int getContactPersonSNameReps() { 2154 return this.getReps(45); 2155 } 2156 2157 2158 /** 2159 * Returns a specific repetition of 2160 * GT1-45: "Contact Person's Name" - creates it if necessary 2161 * 2162 * @param rep The repetition index (0-indexed) 2163 */ 2164 public XPN getContactPersonSName(int rep) { 2165 XPN retVal = this.getTypedField(45, rep); 2166 return retVal; 2167 } 2168 2169 /** 2170 * Returns a specific repetition of 2171 * GT1-45: "Contact Person's Name" - creates it if necessary 2172 * 2173 * @param rep The repetition index (0-indexed) 2174 */ 2175 public XPN getGt145_ContactPersonSName(int rep) { 2176 XPN retVal = this.getTypedField(45, rep); 2177 return retVal; 2178 } 2179 2180 /** 2181 * Returns a count of the current number of repetitions of Contact Person's Name (GT1-45). 2182 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2183 * it will return zero. 2184 */ 2185 public int getGt145_ContactPersonSNameReps() { 2186 return this.getReps(45); 2187 } 2188 2189 2190 /** 2191 * Inserts a repetition of 2192 * GT1-45: "Contact Person's Name" at a specific index 2193 * 2194 * @param rep The repetition index (0-indexed) 2195 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2196 */ 2197 public XPN insertContactPersonSName(int rep) throws HL7Exception { 2198 return (XPN) super.insertRepetition(45, rep); 2199 } 2200 2201 2202 /** 2203 * Inserts a repetition of 2204 * GT1-45: "Contact Person's Name" at a specific index 2205 * 2206 * @param rep The repetition index (0-indexed) 2207 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2208 */ 2209 public XPN insertGt145_ContactPersonSName(int rep) throws HL7Exception { 2210 return (XPN) super.insertRepetition(45, rep); 2211 } 2212 2213 2214 /** 2215 * Removes a repetition of 2216 * GT1-45: "Contact Person's Name" at a specific index 2217 * 2218 * @param rep The repetition index (0-indexed) 2219 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2220 */ 2221 public XPN removeContactPersonSName(int rep) throws HL7Exception { 2222 return (XPN) super.removeRepetition(45, rep); 2223 } 2224 2225 2226 /** 2227 * Removes a repetition of 2228 * GT1-45: "Contact Person's Name" at a specific index 2229 * 2230 * @param rep The repetition index (0-indexed) 2231 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2232 */ 2233 public XPN removeGt145_ContactPersonSName(int rep) throws HL7Exception { 2234 return (XPN) super.removeRepetition(45, rep); 2235 } 2236 2237 2238 2239 /** 2240 * Returns all repetitions of Contact Person’s Telephone Number (GT1-46). 2241 */ 2242 public XTN[] getContactPersonSTelephoneNumber() { 2243 XTN[] retVal = this.getTypedField(46, new XTN[0]); 2244 return retVal; 2245 } 2246 2247 2248 /** 2249 * Returns all repetitions of Contact Person’s Telephone Number (GT1-46). 2250 */ 2251 public XTN[] getGt146_ContactPersonSTelephoneNumber() { 2252 XTN[] retVal = this.getTypedField(46, new XTN[0]); 2253 return retVal; 2254 } 2255 2256 2257 /** 2258 * Returns a count of the current number of repetitions of Contact Person’s Telephone Number (GT1-46). 2259 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2260 * it will return zero. 2261 */ 2262 public int getContactPersonSTelephoneNumberReps() { 2263 return this.getReps(46); 2264 } 2265 2266 2267 /** 2268 * Returns a specific repetition of 2269 * GT1-46: "Contact Person’s Telephone Number" - creates it if necessary 2270 * 2271 * @param rep The repetition index (0-indexed) 2272 */ 2273 public XTN getContactPersonSTelephoneNumber(int rep) { 2274 XTN retVal = this.getTypedField(46, rep); 2275 return retVal; 2276 } 2277 2278 /** 2279 * Returns a specific repetition of 2280 * GT1-46: "Contact Person’s Telephone Number" - creates it if necessary 2281 * 2282 * @param rep The repetition index (0-indexed) 2283 */ 2284 public XTN getGt146_ContactPersonSTelephoneNumber(int rep) { 2285 XTN retVal = this.getTypedField(46, rep); 2286 return retVal; 2287 } 2288 2289 /** 2290 * Returns a count of the current number of repetitions of Contact Person’s Telephone Number (GT1-46). 2291 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2292 * it will return zero. 2293 */ 2294 public int getGt146_ContactPersonSTelephoneNumberReps() { 2295 return this.getReps(46); 2296 } 2297 2298 2299 /** 2300 * Inserts a repetition of 2301 * GT1-46: "Contact Person’s Telephone Number" at a specific index 2302 * 2303 * @param rep The repetition index (0-indexed) 2304 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2305 */ 2306 public XTN insertContactPersonSTelephoneNumber(int rep) throws HL7Exception { 2307 return (XTN) super.insertRepetition(46, rep); 2308 } 2309 2310 2311 /** 2312 * Inserts a repetition of 2313 * GT1-46: "Contact Person’s Telephone Number" at a specific index 2314 * 2315 * @param rep The repetition index (0-indexed) 2316 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2317 */ 2318 public XTN insertGt146_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 2319 return (XTN) super.insertRepetition(46, rep); 2320 } 2321 2322 2323 /** 2324 * Removes a repetition of 2325 * GT1-46: "Contact Person’s Telephone Number" at a specific index 2326 * 2327 * @param rep The repetition index (0-indexed) 2328 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2329 */ 2330 public XTN removeContactPersonSTelephoneNumber(int rep) throws HL7Exception { 2331 return (XTN) super.removeRepetition(46, rep); 2332 } 2333 2334 2335 /** 2336 * Removes a repetition of 2337 * GT1-46: "Contact Person’s Telephone Number" at a specific index 2338 * 2339 * @param rep The repetition index (0-indexed) 2340 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2341 */ 2342 public XTN removeGt146_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 2343 return (XTN) super.removeRepetition(46, rep); 2344 } 2345 2346 2347 2348 2349 /** 2350 * Returns 2351 * GT1-47: "Contact Reason" - creates it if necessary 2352 */ 2353 public CE getContactReason() { 2354 CE retVal = this.getTypedField(47, 0); 2355 return retVal; 2356 } 2357 2358 /** 2359 * Returns 2360 * GT1-47: "Contact Reason" - creates it if necessary 2361 */ 2362 public CE getGt147_ContactReason() { 2363 CE retVal = this.getTypedField(47, 0); 2364 return retVal; 2365 } 2366 2367 2368 2369 /** 2370 * Returns 2371 * GT1-48: "Contact Relationship Code" - creates it if necessary 2372 */ 2373 public IS getContactRelationshipCode() { 2374 IS retVal = this.getTypedField(48, 0); 2375 return retVal; 2376 } 2377 2378 /** 2379 * Returns 2380 * GT1-48: "Contact Relationship Code" - creates it if necessary 2381 */ 2382 public IS getGt148_ContactRelationshipCode() { 2383 IS retVal = this.getTypedField(48, 0); 2384 return retVal; 2385 } 2386 2387 2388 2389 /** 2390 * Returns 2391 * GT1-49: "Job Title" - creates it if necessary 2392 */ 2393 public ST getJobTitle() { 2394 ST retVal = this.getTypedField(49, 0); 2395 return retVal; 2396 } 2397 2398 /** 2399 * Returns 2400 * GT1-49: "Job Title" - creates it if necessary 2401 */ 2402 public ST getGt149_JobTitle() { 2403 ST retVal = this.getTypedField(49, 0); 2404 return retVal; 2405 } 2406 2407 2408 2409 /** 2410 * Returns 2411 * GT1-50: "Job Code/Class" - creates it if necessary 2412 */ 2413 public JCC getJobCodeClass() { 2414 JCC retVal = this.getTypedField(50, 0); 2415 return retVal; 2416 } 2417 2418 /** 2419 * Returns 2420 * GT1-50: "Job Code/Class" - creates it if necessary 2421 */ 2422 public JCC getGt150_JobCodeClass() { 2423 JCC retVal = this.getTypedField(50, 0); 2424 return retVal; 2425 } 2426 2427 2428 /** 2429 * Returns all repetitions of Guarantor Employer's Organization Name (GT1-51). 2430 */ 2431 public XON[] getGuarantorEmployerSOrganizationName() { 2432 XON[] retVal = this.getTypedField(51, new XON[0]); 2433 return retVal; 2434 } 2435 2436 2437 /** 2438 * Returns all repetitions of Guarantor Employer's Organization Name (GT1-51). 2439 */ 2440 public XON[] getGt151_GuarantorEmployerSOrganizationName() { 2441 XON[] retVal = this.getTypedField(51, new XON[0]); 2442 return retVal; 2443 } 2444 2445 2446 /** 2447 * Returns a count of the current number of repetitions of Guarantor Employer's Organization Name (GT1-51). 2448 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2449 * it will return zero. 2450 */ 2451 public int getGuarantorEmployerSOrganizationNameReps() { 2452 return this.getReps(51); 2453 } 2454 2455 2456 /** 2457 * Returns a specific repetition of 2458 * GT1-51: "Guarantor Employer's Organization Name" - creates it if necessary 2459 * 2460 * @param rep The repetition index (0-indexed) 2461 */ 2462 public XON getGuarantorEmployerSOrganizationName(int rep) { 2463 XON retVal = this.getTypedField(51, rep); 2464 return retVal; 2465 } 2466 2467 /** 2468 * Returns a specific repetition of 2469 * GT1-51: "Guarantor Employer's Organization Name" - creates it if necessary 2470 * 2471 * @param rep The repetition index (0-indexed) 2472 */ 2473 public XON getGt151_GuarantorEmployerSOrganizationName(int rep) { 2474 XON retVal = this.getTypedField(51, rep); 2475 return retVal; 2476 } 2477 2478 /** 2479 * Returns a count of the current number of repetitions of Guarantor Employer's Organization Name (GT1-51). 2480 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2481 * it will return zero. 2482 */ 2483 public int getGt151_GuarantorEmployerSOrganizationNameReps() { 2484 return this.getReps(51); 2485 } 2486 2487 2488 /** 2489 * Inserts a repetition of 2490 * GT1-51: "Guarantor Employer's Organization Name" at a specific index 2491 * 2492 * @param rep The repetition index (0-indexed) 2493 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2494 */ 2495 public XON insertGuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 2496 return (XON) super.insertRepetition(51, rep); 2497 } 2498 2499 2500 /** 2501 * Inserts a repetition of 2502 * GT1-51: "Guarantor Employer's Organization Name" at a specific index 2503 * 2504 * @param rep The repetition index (0-indexed) 2505 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2506 */ 2507 public XON insertGt151_GuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 2508 return (XON) super.insertRepetition(51, rep); 2509 } 2510 2511 2512 /** 2513 * Removes a repetition of 2514 * GT1-51: "Guarantor Employer's Organization Name" at a specific index 2515 * 2516 * @param rep The repetition index (0-indexed) 2517 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2518 */ 2519 public XON removeGuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 2520 return (XON) super.removeRepetition(51, rep); 2521 } 2522 2523 2524 /** 2525 * Removes a repetition of 2526 * GT1-51: "Guarantor Employer's Organization Name" at a specific index 2527 * 2528 * @param rep The repetition index (0-indexed) 2529 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2530 */ 2531 public XON removeGt151_GuarantorEmployerSOrganizationName(int rep) throws HL7Exception { 2532 return (XON) super.removeRepetition(51, rep); 2533 } 2534 2535 2536 2537 2538 /** 2539 * Returns 2540 * GT1-52: "Handicap" - creates it if necessary 2541 */ 2542 public IS getHandicap() { 2543 IS retVal = this.getTypedField(52, 0); 2544 return retVal; 2545 } 2546 2547 /** 2548 * Returns 2549 * GT1-52: "Handicap" - creates it if necessary 2550 */ 2551 public IS getGt152_Handicap() { 2552 IS retVal = this.getTypedField(52, 0); 2553 return retVal; 2554 } 2555 2556 2557 2558 /** 2559 * Returns 2560 * GT1-53: "Job Status" - creates it if necessary 2561 */ 2562 public IS getJobStatus() { 2563 IS retVal = this.getTypedField(53, 0); 2564 return retVal; 2565 } 2566 2567 /** 2568 * Returns 2569 * GT1-53: "Job Status" - creates it if necessary 2570 */ 2571 public IS getGt153_JobStatus() { 2572 IS retVal = this.getTypedField(53, 0); 2573 return retVal; 2574 } 2575 2576 2577 2578 /** 2579 * Returns 2580 * GT1-54: "Guarantor Financial Class" - creates it if necessary 2581 */ 2582 public FC getGuarantorFinancialClass() { 2583 FC retVal = this.getTypedField(54, 0); 2584 return retVal; 2585 } 2586 2587 /** 2588 * Returns 2589 * GT1-54: "Guarantor Financial Class" - creates it if necessary 2590 */ 2591 public FC getGt154_GuarantorFinancialClass() { 2592 FC retVal = this.getTypedField(54, 0); 2593 return retVal; 2594 } 2595 2596 2597 2598 /** 2599 * Returns 2600 * GT1-55: "Guarantor Race" - creates it if necessary 2601 */ 2602 public IS getGuarantorRace() { 2603 IS retVal = this.getTypedField(55, 0); 2604 return retVal; 2605 } 2606 2607 /** 2608 * Returns 2609 * GT1-55: "Guarantor Race" - creates it if necessary 2610 */ 2611 public IS getGt155_GuarantorRace() { 2612 IS retVal = this.getTypedField(55, 0); 2613 return retVal; 2614 } 2615 2616 2617 2618 2619 2620 /** {@inheritDoc} */ 2621 protected Type createNewTypeWithoutReflection(int field) { 2622 switch (field) { 2623 case 0: return new SI(getMessage()); 2624 case 1: return new CX(getMessage()); 2625 case 2: return new XPN(getMessage()); 2626 case 3: return new XPN(getMessage()); 2627 case 4: return new XAD(getMessage()); 2628 case 5: return new XTN(getMessage()); 2629 case 6: return new XTN(getMessage()); 2630 case 7: return new TS(getMessage()); 2631 case 8: return new IS(getMessage(), new Integer( 1 )); 2632 case 9: return new IS(getMessage(), new Integer( 68 )); 2633 case 10: return new IS(getMessage(), new Integer( 63 )); 2634 case 11: return new ST(getMessage()); 2635 case 12: return new DT(getMessage()); 2636 case 13: return new DT(getMessage()); 2637 case 14: return new NM(getMessage()); 2638 case 15: return new XPN(getMessage()); 2639 case 16: return new XAD(getMessage()); 2640 case 17: return new XTN(getMessage()); 2641 case 18: return new CX(getMessage()); 2642 case 19: return new IS(getMessage(), new Integer( 66 )); 2643 case 20: return new XON(getMessage()); 2644 case 21: return new ID(getMessage(), new Integer( 136 )); 2645 case 22: return new CE(getMessage()); 2646 case 23: return new TS(getMessage()); 2647 case 24: return new ID(getMessage(), new Integer( 136 )); 2648 case 25: return new CE(getMessage()); 2649 case 26: return new CP(getMessage()); 2650 case 27: return new NM(getMessage()); 2651 case 28: return new CX(getMessage()); 2652 case 29: return new IS(getMessage(), new Integer( 0 )); 2653 case 30: return new DT(getMessage()); 2654 case 31: return new DT(getMessage()); 2655 case 32: return new IS(getMessage(), new Integer( 223 )); 2656 case 33: return new IS(getMessage(), new Integer( 9 )); 2657 case 34: return new IS(getMessage(), new Integer( 171 )); 2658 case 35: return new CE(getMessage()); 2659 case 36: return new IS(getMessage(), new Integer( 220 )); 2660 case 37: return new CE(getMessage()); 2661 case 38: return new ID(getMessage(), new Integer( 136 )); 2662 case 39: return new IS(getMessage(), new Integer( 231 )); 2663 case 40: return new IS(getMessage(), new Integer( 6 )); 2664 case 41: return new XPN(getMessage()); 2665 case 42: return new CE(getMessage()); 2666 case 43: return new IS(getMessage(), new Integer( 189 )); 2667 case 44: return new XPN(getMessage()); 2668 case 45: return new XTN(getMessage()); 2669 case 46: return new CE(getMessage()); 2670 case 47: return new IS(getMessage(), new Integer( 63 )); 2671 case 48: return new ST(getMessage()); 2672 case 49: return new JCC(getMessage()); 2673 case 50: return new XON(getMessage()); 2674 case 51: return new IS(getMessage(), new Integer( 310 )); 2675 case 52: return new IS(getMessage(), new Integer( 311 )); 2676 case 53: return new FC(getMessage()); 2677 case 54: return new IS(getMessage(), new Integer( 5 )); 2678 default: return null; 2679 } 2680 } 2681 2682 2683} 2684