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 NK1 message segment (Next of kin). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>NK1-1: Set ID - Next of Kin (SI) <b> </b> 052 * <li>NK1-2: NK Name (XPN) <b>optional repeating</b> 053 * <li>NK1-3: Relationship (CE) <b>optional </b> 054 * <li>NK1-4: Address (XAD) <b>optional repeating</b> 055 * <li>NK1-5: Phone Number (XTN) <b>optional repeating</b> 056 * <li>NK1-6: Business Phone Number (XTN) <b>optional repeating</b> 057 * <li>NK1-7: Contact Role (CE) <b> </b> 058 * <li>NK1-8: Start Date (DT) <b>optional </b> 059 * <li>NK1-9: End Date (DT) <b>optional </b> 060 * <li>NK1-10: Next of Kin/Associated Parties Job Title (ST) <b>optional </b> 061 * <li>NK1-11: Next of Kin Job/Associated Parties Code/Class (JCC) <b>optional </b> 062 * <li>NK1-12: Next of Kin/Associated Parties Employee Number (CX) <b>optional </b> 063 * <li>NK1-13: Organization Name (XON) <b>optional repeating</b> 064 * <li>NK1-14: Marital Status (IS) <b>optional repeating</b> 065 * <li>NK1-15: Sex (IS) <b>optional </b> 066 * <li>NK1-16: Date of Birth (TS) <b>optional </b> 067 * <li>NK1-17: Living Dependency (IS) <b>optional </b> 068 * <li>NK1-18: Ambulatory Status (IS) <b>optional </b> 069 * <li>NK1-19: Citizenship (IS) <b>optional </b> 070 * <li>NK1-20: Primary Language (CE) <b>optional </b> 071 * <li>NK1-21: Living Arrangement (IS) <b>optional </b> 072 * <li>NK1-22: Publicity Indicator (CE) <b>optional </b> 073 * <li>NK1-23: Protection Indicator (ID) <b>optional </b> 074 * <li>NK1-24: Student Indicator (IS) <b>optional </b> 075 * <li>NK1-25: Religion (IS) <b>optional </b> 076 * <li>NK1-26: Mother’s Maiden Name (XPN) <b>optional </b> 077 * <li>NK1-27: Nationality Code (CE) <b>optional </b> 078 * <li>NK1-28: Ethnic Group (IS) <b>optional </b> 079 * <li>NK1-29: Contact Reason (CE) <b>optional </b> 080 * <li>NK1-30: Contact Person's Name (XPN) <b>optional repeating</b> 081 * <li>NK1-31: Contact Person’s Telephone Number (XTN) <b>optional repeating</b> 082 * <li>NK1-32: Contact Person’s Address (XAD) <b>optional repeating</b> 083 * <li>NK1-33: Associated Party’s Identifiers (CX) <b>optional repeating</b> 084 * <li>NK1-34: Job Status (IS) <b>optional </b> 085 * <li>NK1-35: Race (IS) <b>optional </b> 086 * <li>NK1-36: Handicap (IS) <b>optional </b> 087 * <li>NK1-37: Contact Person Social Security Number (ST) <b>optional </b> 088 * </ul> 089 */ 090@SuppressWarnings("unused") 091public class NK1 extends AbstractSegment { 092 093 /** 094 * Creates a new NK1 segment 095 */ 096 public NK1(Group parent, ModelClassFactory factory) { 097 super(parent, factory); 098 init(factory); 099 } 100 101 private void init(ModelClassFactory factory) { 102 try { 103 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - Next of Kin"); 104 this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "NK Name"); 105 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Relationship"); 106 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Address"); 107 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Phone Number"); 108 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Business Phone Number"); 109 this.add(CE.class, true, 1, 60, new Object[]{ getMessage() }, "Contact Role"); 110 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Start Date"); 111 this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "End Date"); 112 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Next of Kin/Associated Parties Job Title"); 113 this.add(JCC.class, false, 1, 20, new Object[]{ getMessage() }, "Next of Kin Job/Associated Parties Code/Class"); 114 this.add(CX.class, false, 1, 20, new Object[]{ getMessage() }, "Next of Kin/Associated Parties Employee Number"); 115 this.add(XON.class, false, 0, 60, new Object[]{ getMessage() }, "Organization Name"); 116 this.add(IS.class, false, 0, 1, new Object[]{ getMessage(), new Integer(2) }, "Marital Status"); 117 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(1) }, "Sex"); 118 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date of Birth"); 119 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(223) }, "Living Dependency"); 120 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status"); 121 this.add(IS.class, false, 1, 4, new Object[]{ getMessage(), new Integer(171) }, "Citizenship"); 122 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Primary Language"); 123 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(220) }, "Living Arrangement"); 124 this.add(CE.class, false, 1, 1, new Object[]{ getMessage() }, "Publicity Indicator"); 125 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Protection Indicator"); 126 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(231) }, "Student Indicator"); 127 this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(6) }, "Religion"); 128 this.add(XPN.class, false, 1, 48, new Object[]{ getMessage() }, "Mother’s Maiden Name"); 129 this.add(CE.class, false, 1, 80, new Object[]{ getMessage() }, "Nationality Code"); 130 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(189) }, "Ethnic Group"); 131 this.add(CE.class, false, 1, 2, new Object[]{ getMessage() }, "Contact Reason"); 132 this.add(XPN.class, false, 0, 48, new Object[]{ getMessage() }, "Contact Person's Name"); 133 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Contact Person’s Telephone Number"); 134 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Contact Person’s Address"); 135 this.add(CX.class, false, 0, 32, new Object[]{ getMessage() }, "Associated Party’s Identifiers"); 136 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(311) }, "Job Status"); 137 this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(5) }, "Race"); 138 this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(310) }, "Handicap"); 139 this.add(ST.class, false, 1, 16, new Object[]{ getMessage() }, "Contact Person Social Security Number"); 140 } catch(HL7Exception e) { 141 log.error("Unexpected error creating NK1 - this is probably a bug in the source code generator.", e); 142 } 143 } 144 145 146 147 /** 148 * Returns 149 * NK1-1: "Set ID - Next of Kin" - creates it if necessary 150 */ 151 public SI getSetIDNextOfKin() { 152 SI retVal = this.getTypedField(1, 0); 153 return retVal; 154 } 155 156 /** 157 * Returns 158 * NK1-1: "Set ID - Next of Kin" - creates it if necessary 159 */ 160 public SI getNk11_SetIDNextOfKin() { 161 SI retVal = this.getTypedField(1, 0); 162 return retVal; 163 } 164 165 166 /** 167 * Returns all repetitions of NK Name (NK1-2). 168 */ 169 public XPN[] getNKName() { 170 XPN[] retVal = this.getTypedField(2, new XPN[0]); 171 return retVal; 172 } 173 174 175 /** 176 * Returns all repetitions of NK Name (NK1-2). 177 */ 178 public XPN[] getNk12_NKName() { 179 XPN[] retVal = this.getTypedField(2, new XPN[0]); 180 return retVal; 181 } 182 183 184 /** 185 * Returns a count of the current number of repetitions of NK Name (NK1-2). 186 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 187 * it will return zero. 188 */ 189 public int getNKNameReps() { 190 return this.getReps(2); 191 } 192 193 194 /** 195 * Returns a specific repetition of 196 * NK1-2: "NK Name" - creates it if necessary 197 * 198 * @param rep The repetition index (0-indexed) 199 */ 200 public XPN getNKName(int rep) { 201 XPN retVal = this.getTypedField(2, rep); 202 return retVal; 203 } 204 205 /** 206 * Returns a specific repetition of 207 * NK1-2: "NK Name" - creates it if necessary 208 * 209 * @param rep The repetition index (0-indexed) 210 */ 211 public XPN getNk12_NKName(int rep) { 212 XPN retVal = this.getTypedField(2, rep); 213 return retVal; 214 } 215 216 /** 217 * Returns a count of the current number of repetitions of NK Name (NK1-2). 218 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 219 * it will return zero. 220 */ 221 public int getNk12_NKNameReps() { 222 return this.getReps(2); 223 } 224 225 226 /** 227 * Inserts a repetition of 228 * NK1-2: "NK Name" at a specific index 229 * 230 * @param rep The repetition index (0-indexed) 231 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 232 */ 233 public XPN insertNKName(int rep) throws HL7Exception { 234 return (XPN) super.insertRepetition(2, rep); 235 } 236 237 238 /** 239 * Inserts a repetition of 240 * NK1-2: "NK Name" at a specific index 241 * 242 * @param rep The repetition index (0-indexed) 243 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 244 */ 245 public XPN insertNk12_NKName(int rep) throws HL7Exception { 246 return (XPN) super.insertRepetition(2, rep); 247 } 248 249 250 /** 251 * Removes a repetition of 252 * NK1-2: "NK Name" at a specific index 253 * 254 * @param rep The repetition index (0-indexed) 255 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 256 */ 257 public XPN removeNKName(int rep) throws HL7Exception { 258 return (XPN) super.removeRepetition(2, rep); 259 } 260 261 262 /** 263 * Removes a repetition of 264 * NK1-2: "NK Name" 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 XPN removeNk12_NKName(int rep) throws HL7Exception { 270 return (XPN) super.removeRepetition(2, rep); 271 } 272 273 274 275 276 /** 277 * Returns 278 * NK1-3: "Relationship" - creates it if necessary 279 */ 280 public CE getRelationship() { 281 CE retVal = this.getTypedField(3, 0); 282 return retVal; 283 } 284 285 /** 286 * Returns 287 * NK1-3: "Relationship" - creates it if necessary 288 */ 289 public CE getNk13_Relationship() { 290 CE retVal = this.getTypedField(3, 0); 291 return retVal; 292 } 293 294 295 /** 296 * Returns all repetitions of Address (NK1-4). 297 */ 298 public XAD[] getAddress() { 299 XAD[] retVal = this.getTypedField(4, new XAD[0]); 300 return retVal; 301 } 302 303 304 /** 305 * Returns all repetitions of Address (NK1-4). 306 */ 307 public XAD[] getNk14_Address() { 308 XAD[] retVal = this.getTypedField(4, new XAD[0]); 309 return retVal; 310 } 311 312 313 /** 314 * Returns a count of the current number of repetitions of Address (NK1-4). 315 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 316 * it will return zero. 317 */ 318 public int getAddressReps() { 319 return this.getReps(4); 320 } 321 322 323 /** 324 * Returns a specific repetition of 325 * NK1-4: "Address" - creates it if necessary 326 * 327 * @param rep The repetition index (0-indexed) 328 */ 329 public XAD getAddress(int rep) { 330 XAD retVal = this.getTypedField(4, rep); 331 return retVal; 332 } 333 334 /** 335 * Returns a specific repetition of 336 * NK1-4: "Address" - creates it if necessary 337 * 338 * @param rep The repetition index (0-indexed) 339 */ 340 public XAD getNk14_Address(int rep) { 341 XAD retVal = this.getTypedField(4, rep); 342 return retVal; 343 } 344 345 /** 346 * Returns a count of the current number of repetitions of Address (NK1-4). 347 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 348 * it will return zero. 349 */ 350 public int getNk14_AddressReps() { 351 return this.getReps(4); 352 } 353 354 355 /** 356 * Inserts a repetition of 357 * NK1-4: "Address" at a specific index 358 * 359 * @param rep The repetition index (0-indexed) 360 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 361 */ 362 public XAD insertAddress(int rep) throws HL7Exception { 363 return (XAD) super.insertRepetition(4, rep); 364 } 365 366 367 /** 368 * Inserts a repetition of 369 * NK1-4: "Address" at a specific index 370 * 371 * @param rep The repetition index (0-indexed) 372 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 373 */ 374 public XAD insertNk14_Address(int rep) throws HL7Exception { 375 return (XAD) super.insertRepetition(4, rep); 376 } 377 378 379 /** 380 * Removes a repetition of 381 * NK1-4: "Address" at a specific index 382 * 383 * @param rep The repetition index (0-indexed) 384 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 385 */ 386 public XAD removeAddress(int rep) throws HL7Exception { 387 return (XAD) super.removeRepetition(4, rep); 388 } 389 390 391 /** 392 * Removes a repetition of 393 * NK1-4: "Address" at a specific index 394 * 395 * @param rep The repetition index (0-indexed) 396 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 397 */ 398 public XAD removeNk14_Address(int rep) throws HL7Exception { 399 return (XAD) super.removeRepetition(4, rep); 400 } 401 402 403 404 /** 405 * Returns all repetitions of Phone Number (NK1-5). 406 */ 407 public XTN[] getPhoneNumber() { 408 XTN[] retVal = this.getTypedField(5, new XTN[0]); 409 return retVal; 410 } 411 412 413 /** 414 * Returns all repetitions of Phone Number (NK1-5). 415 */ 416 public XTN[] getNk15_PhoneNumber() { 417 XTN[] retVal = this.getTypedField(5, new XTN[0]); 418 return retVal; 419 } 420 421 422 /** 423 * Returns a count of the current number of repetitions of Phone Number (NK1-5). 424 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 425 * it will return zero. 426 */ 427 public int getPhoneNumberReps() { 428 return this.getReps(5); 429 } 430 431 432 /** 433 * Returns a specific repetition of 434 * NK1-5: "Phone Number" - creates it if necessary 435 * 436 * @param rep The repetition index (0-indexed) 437 */ 438 public XTN getPhoneNumber(int rep) { 439 XTN retVal = this.getTypedField(5, rep); 440 return retVal; 441 } 442 443 /** 444 * Returns a specific repetition of 445 * NK1-5: "Phone Number" - creates it if necessary 446 * 447 * @param rep The repetition index (0-indexed) 448 */ 449 public XTN getNk15_PhoneNumber(int rep) { 450 XTN retVal = this.getTypedField(5, rep); 451 return retVal; 452 } 453 454 /** 455 * Returns a count of the current number of repetitions of Phone Number (NK1-5). 456 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 457 * it will return zero. 458 */ 459 public int getNk15_PhoneNumberReps() { 460 return this.getReps(5); 461 } 462 463 464 /** 465 * Inserts a repetition of 466 * NK1-5: "Phone Number" at a specific index 467 * 468 * @param rep The repetition index (0-indexed) 469 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 470 */ 471 public XTN insertPhoneNumber(int rep) throws HL7Exception { 472 return (XTN) super.insertRepetition(5, rep); 473 } 474 475 476 /** 477 * Inserts a repetition of 478 * NK1-5: "Phone Number" at a specific index 479 * 480 * @param rep The repetition index (0-indexed) 481 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 482 */ 483 public XTN insertNk15_PhoneNumber(int rep) throws HL7Exception { 484 return (XTN) super.insertRepetition(5, rep); 485 } 486 487 488 /** 489 * Removes a repetition of 490 * NK1-5: "Phone Number" at a specific index 491 * 492 * @param rep The repetition index (0-indexed) 493 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 494 */ 495 public XTN removePhoneNumber(int rep) throws HL7Exception { 496 return (XTN) super.removeRepetition(5, rep); 497 } 498 499 500 /** 501 * Removes a repetition of 502 * NK1-5: "Phone Number" at a specific index 503 * 504 * @param rep The repetition index (0-indexed) 505 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 506 */ 507 public XTN removeNk15_PhoneNumber(int rep) throws HL7Exception { 508 return (XTN) super.removeRepetition(5, rep); 509 } 510 511 512 513 /** 514 * Returns all repetitions of Business Phone Number (NK1-6). 515 */ 516 public XTN[] getBusinessPhoneNumber() { 517 XTN[] retVal = this.getTypedField(6, new XTN[0]); 518 return retVal; 519 } 520 521 522 /** 523 * Returns all repetitions of Business Phone Number (NK1-6). 524 */ 525 public XTN[] getNk16_BusinessPhoneNumber() { 526 XTN[] retVal = this.getTypedField(6, new XTN[0]); 527 return retVal; 528 } 529 530 531 /** 532 * Returns a count of the current number of repetitions of Business Phone Number (NK1-6). 533 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 534 * it will return zero. 535 */ 536 public int getBusinessPhoneNumberReps() { 537 return this.getReps(6); 538 } 539 540 541 /** 542 * Returns a specific repetition of 543 * NK1-6: "Business Phone Number" - creates it if necessary 544 * 545 * @param rep The repetition index (0-indexed) 546 */ 547 public XTN getBusinessPhoneNumber(int rep) { 548 XTN retVal = this.getTypedField(6, rep); 549 return retVal; 550 } 551 552 /** 553 * Returns a specific repetition of 554 * NK1-6: "Business Phone Number" - creates it if necessary 555 * 556 * @param rep The repetition index (0-indexed) 557 */ 558 public XTN getNk16_BusinessPhoneNumber(int rep) { 559 XTN retVal = this.getTypedField(6, rep); 560 return retVal; 561 } 562 563 /** 564 * Returns a count of the current number of repetitions of Business Phone Number (NK1-6). 565 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 566 * it will return zero. 567 */ 568 public int getNk16_BusinessPhoneNumberReps() { 569 return this.getReps(6); 570 } 571 572 573 /** 574 * Inserts a repetition of 575 * NK1-6: "Business Phone Number" at a specific index 576 * 577 * @param rep The repetition index (0-indexed) 578 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 579 */ 580 public XTN insertBusinessPhoneNumber(int rep) throws HL7Exception { 581 return (XTN) super.insertRepetition(6, rep); 582 } 583 584 585 /** 586 * Inserts a repetition of 587 * NK1-6: "Business Phone Number" at a specific index 588 * 589 * @param rep The repetition index (0-indexed) 590 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 591 */ 592 public XTN insertNk16_BusinessPhoneNumber(int rep) throws HL7Exception { 593 return (XTN) super.insertRepetition(6, rep); 594 } 595 596 597 /** 598 * Removes a repetition of 599 * NK1-6: "Business Phone Number" at a specific index 600 * 601 * @param rep The repetition index (0-indexed) 602 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 603 */ 604 public XTN removeBusinessPhoneNumber(int rep) throws HL7Exception { 605 return (XTN) super.removeRepetition(6, rep); 606 } 607 608 609 /** 610 * Removes a repetition of 611 * NK1-6: "Business Phone Number" at a specific index 612 * 613 * @param rep The repetition index (0-indexed) 614 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 615 */ 616 public XTN removeNk16_BusinessPhoneNumber(int rep) throws HL7Exception { 617 return (XTN) super.removeRepetition(6, rep); 618 } 619 620 621 622 623 /** 624 * Returns 625 * NK1-7: "Contact Role" - creates it if necessary 626 */ 627 public CE getContactRole() { 628 CE retVal = this.getTypedField(7, 0); 629 return retVal; 630 } 631 632 /** 633 * Returns 634 * NK1-7: "Contact Role" - creates it if necessary 635 */ 636 public CE getNk17_ContactRole() { 637 CE retVal = this.getTypedField(7, 0); 638 return retVal; 639 } 640 641 642 643 /** 644 * Returns 645 * NK1-8: "Start Date" - creates it if necessary 646 */ 647 public DT getStartDate() { 648 DT retVal = this.getTypedField(8, 0); 649 return retVal; 650 } 651 652 /** 653 * Returns 654 * NK1-8: "Start Date" - creates it if necessary 655 */ 656 public DT getNk18_StartDate() { 657 DT retVal = this.getTypedField(8, 0); 658 return retVal; 659 } 660 661 662 663 /** 664 * Returns 665 * NK1-9: "End Date" - creates it if necessary 666 */ 667 public DT getEndDate() { 668 DT retVal = this.getTypedField(9, 0); 669 return retVal; 670 } 671 672 /** 673 * Returns 674 * NK1-9: "End Date" - creates it if necessary 675 */ 676 public DT getNk19_EndDate() { 677 DT retVal = this.getTypedField(9, 0); 678 return retVal; 679 } 680 681 682 683 /** 684 * Returns 685 * NK1-10: "Next of Kin/Associated Parties Job Title" - creates it if necessary 686 */ 687 public ST getNextOfKinAssociatedPartiesJobTitle() { 688 ST retVal = this.getTypedField(10, 0); 689 return retVal; 690 } 691 692 /** 693 * Returns 694 * NK1-10: "Next of Kin/Associated Parties Job Title" - creates it if necessary 695 */ 696 public ST getNk110_NextOfKinAssociatedPartiesJobTitle() { 697 ST retVal = this.getTypedField(10, 0); 698 return retVal; 699 } 700 701 702 703 /** 704 * Returns 705 * NK1-11: "Next of Kin Job/Associated Parties Code/Class" - creates it if necessary 706 */ 707 public JCC getNextOfKinJobAssociatedPartiesCodeClass() { 708 JCC retVal = this.getTypedField(11, 0); 709 return retVal; 710 } 711 712 /** 713 * Returns 714 * NK1-11: "Next of Kin Job/Associated Parties Code/Class" - creates it if necessary 715 */ 716 public JCC getNk111_NextOfKinJobAssociatedPartiesCodeClass() { 717 JCC retVal = this.getTypedField(11, 0); 718 return retVal; 719 } 720 721 722 723 /** 724 * Returns 725 * NK1-12: "Next of Kin/Associated Parties Employee Number" - creates it if necessary 726 */ 727 public CX getNextOfKinAssociatedPartiesEmployeeNumber() { 728 CX retVal = this.getTypedField(12, 0); 729 return retVal; 730 } 731 732 /** 733 * Returns 734 * NK1-12: "Next of Kin/Associated Parties Employee Number" - creates it if necessary 735 */ 736 public CX getNk112_NextOfKinAssociatedPartiesEmployeeNumber() { 737 CX retVal = this.getTypedField(12, 0); 738 return retVal; 739 } 740 741 742 /** 743 * Returns all repetitions of Organization Name (NK1-13). 744 */ 745 public XON[] getOrganizationName() { 746 XON[] retVal = this.getTypedField(13, new XON[0]); 747 return retVal; 748 } 749 750 751 /** 752 * Returns all repetitions of Organization Name (NK1-13). 753 */ 754 public XON[] getNk113_OrganizationName() { 755 XON[] retVal = this.getTypedField(13, new XON[0]); 756 return retVal; 757 } 758 759 760 /** 761 * Returns a count of the current number of repetitions of Organization Name (NK1-13). 762 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 763 * it will return zero. 764 */ 765 public int getOrganizationNameReps() { 766 return this.getReps(13); 767 } 768 769 770 /** 771 * Returns a specific repetition of 772 * NK1-13: "Organization Name" - creates it if necessary 773 * 774 * @param rep The repetition index (0-indexed) 775 */ 776 public XON getOrganizationName(int rep) { 777 XON retVal = this.getTypedField(13, rep); 778 return retVal; 779 } 780 781 /** 782 * Returns a specific repetition of 783 * NK1-13: "Organization Name" - creates it if necessary 784 * 785 * @param rep The repetition index (0-indexed) 786 */ 787 public XON getNk113_OrganizationName(int rep) { 788 XON retVal = this.getTypedField(13, rep); 789 return retVal; 790 } 791 792 /** 793 * Returns a count of the current number of repetitions of Organization Name (NK1-13). 794 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 795 * it will return zero. 796 */ 797 public int getNk113_OrganizationNameReps() { 798 return this.getReps(13); 799 } 800 801 802 /** 803 * Inserts a repetition of 804 * NK1-13: "Organization Name" at a specific index 805 * 806 * @param rep The repetition index (0-indexed) 807 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 808 */ 809 public XON insertOrganizationName(int rep) throws HL7Exception { 810 return (XON) super.insertRepetition(13, rep); 811 } 812 813 814 /** 815 * Inserts a repetition of 816 * NK1-13: "Organization Name" at a specific index 817 * 818 * @param rep The repetition index (0-indexed) 819 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 820 */ 821 public XON insertNk113_OrganizationName(int rep) throws HL7Exception { 822 return (XON) super.insertRepetition(13, rep); 823 } 824 825 826 /** 827 * Removes a repetition of 828 * NK1-13: "Organization Name" at a specific index 829 * 830 * @param rep The repetition index (0-indexed) 831 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 832 */ 833 public XON removeOrganizationName(int rep) throws HL7Exception { 834 return (XON) super.removeRepetition(13, rep); 835 } 836 837 838 /** 839 * Removes a repetition of 840 * NK1-13: "Organization Name" at a specific index 841 * 842 * @param rep The repetition index (0-indexed) 843 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 844 */ 845 public XON removeNk113_OrganizationName(int rep) throws HL7Exception { 846 return (XON) super.removeRepetition(13, rep); 847 } 848 849 850 851 /** 852 * Returns all repetitions of Marital Status (NK1-14). 853 */ 854 public IS[] getMaritalStatus() { 855 IS[] retVal = this.getTypedField(14, new IS[0]); 856 return retVal; 857 } 858 859 860 /** 861 * Returns all repetitions of Marital Status (NK1-14). 862 */ 863 public IS[] getNk114_MaritalStatus() { 864 IS[] retVal = this.getTypedField(14, new IS[0]); 865 return retVal; 866 } 867 868 869 /** 870 * Returns a count of the current number of repetitions of Marital Status (NK1-14). 871 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 872 * it will return zero. 873 */ 874 public int getMaritalStatusReps() { 875 return this.getReps(14); 876 } 877 878 879 /** 880 * Returns a specific repetition of 881 * NK1-14: "Marital Status" - creates it if necessary 882 * 883 * @param rep The repetition index (0-indexed) 884 */ 885 public IS getMaritalStatus(int rep) { 886 IS retVal = this.getTypedField(14, rep); 887 return retVal; 888 } 889 890 /** 891 * Returns a specific repetition of 892 * NK1-14: "Marital Status" - creates it if necessary 893 * 894 * @param rep The repetition index (0-indexed) 895 */ 896 public IS getNk114_MaritalStatus(int rep) { 897 IS retVal = this.getTypedField(14, rep); 898 return retVal; 899 } 900 901 /** 902 * Returns a count of the current number of repetitions of Marital Status (NK1-14). 903 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 904 * it will return zero. 905 */ 906 public int getNk114_MaritalStatusReps() { 907 return this.getReps(14); 908 } 909 910 911 /** 912 * Inserts a repetition of 913 * NK1-14: "Marital Status" at a specific index 914 * 915 * @param rep The repetition index (0-indexed) 916 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 917 */ 918 public IS insertMaritalStatus(int rep) throws HL7Exception { 919 return (IS) super.insertRepetition(14, rep); 920 } 921 922 923 /** 924 * Inserts a repetition of 925 * NK1-14: "Marital Status" at a specific index 926 * 927 * @param rep The repetition index (0-indexed) 928 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 929 */ 930 public IS insertNk114_MaritalStatus(int rep) throws HL7Exception { 931 return (IS) super.insertRepetition(14, rep); 932 } 933 934 935 /** 936 * Removes a repetition of 937 * NK1-14: "Marital Status" at a specific index 938 * 939 * @param rep The repetition index (0-indexed) 940 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 941 */ 942 public IS removeMaritalStatus(int rep) throws HL7Exception { 943 return (IS) super.removeRepetition(14, rep); 944 } 945 946 947 /** 948 * Removes a repetition of 949 * NK1-14: "Marital Status" at a specific index 950 * 951 * @param rep The repetition index (0-indexed) 952 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 953 */ 954 public IS removeNk114_MaritalStatus(int rep) throws HL7Exception { 955 return (IS) super.removeRepetition(14, rep); 956 } 957 958 959 960 961 /** 962 * Returns 963 * NK1-15: "Sex" - creates it if necessary 964 */ 965 public IS getSex() { 966 IS retVal = this.getTypedField(15, 0); 967 return retVal; 968 } 969 970 /** 971 * Returns 972 * NK1-15: "Sex" - creates it if necessary 973 */ 974 public IS getNk115_Sex() { 975 IS retVal = this.getTypedField(15, 0); 976 return retVal; 977 } 978 979 980 981 /** 982 * Returns 983 * NK1-16: "Date of Birth" - creates it if necessary 984 */ 985 public TS getDateOfBirth() { 986 TS retVal = this.getTypedField(16, 0); 987 return retVal; 988 } 989 990 /** 991 * Returns 992 * NK1-16: "Date of Birth" - creates it if necessary 993 */ 994 public TS getNk116_DateOfBirth() { 995 TS retVal = this.getTypedField(16, 0); 996 return retVal; 997 } 998 999 1000 1001 /** 1002 * Returns 1003 * NK1-17: "Living Dependency" - creates it if necessary 1004 */ 1005 public IS getLivingDependency() { 1006 IS retVal = this.getTypedField(17, 0); 1007 return retVal; 1008 } 1009 1010 /** 1011 * Returns 1012 * NK1-17: "Living Dependency" - creates it if necessary 1013 */ 1014 public IS getNk117_LivingDependency() { 1015 IS retVal = this.getTypedField(17, 0); 1016 return retVal; 1017 } 1018 1019 1020 1021 /** 1022 * Returns 1023 * NK1-18: "Ambulatory Status" - creates it if necessary 1024 */ 1025 public IS getAmbulatoryStatus() { 1026 IS retVal = this.getTypedField(18, 0); 1027 return retVal; 1028 } 1029 1030 /** 1031 * Returns 1032 * NK1-18: "Ambulatory Status" - creates it if necessary 1033 */ 1034 public IS getNk118_AmbulatoryStatus() { 1035 IS retVal = this.getTypedField(18, 0); 1036 return retVal; 1037 } 1038 1039 1040 1041 /** 1042 * Returns 1043 * NK1-19: "Citizenship" - creates it if necessary 1044 */ 1045 public IS getCitizenship() { 1046 IS retVal = this.getTypedField(19, 0); 1047 return retVal; 1048 } 1049 1050 /** 1051 * Returns 1052 * NK1-19: "Citizenship" - creates it if necessary 1053 */ 1054 public IS getNk119_Citizenship() { 1055 IS retVal = this.getTypedField(19, 0); 1056 return retVal; 1057 } 1058 1059 1060 1061 /** 1062 * Returns 1063 * NK1-20: "Primary Language" - creates it if necessary 1064 */ 1065 public CE getPrimaryLanguage() { 1066 CE retVal = this.getTypedField(20, 0); 1067 return retVal; 1068 } 1069 1070 /** 1071 * Returns 1072 * NK1-20: "Primary Language" - creates it if necessary 1073 */ 1074 public CE getNk120_PrimaryLanguage() { 1075 CE retVal = this.getTypedField(20, 0); 1076 return retVal; 1077 } 1078 1079 1080 1081 /** 1082 * Returns 1083 * NK1-21: "Living Arrangement" - creates it if necessary 1084 */ 1085 public IS getLivingArrangement() { 1086 IS retVal = this.getTypedField(21, 0); 1087 return retVal; 1088 } 1089 1090 /** 1091 * Returns 1092 * NK1-21: "Living Arrangement" - creates it if necessary 1093 */ 1094 public IS getNk121_LivingArrangement() { 1095 IS retVal = this.getTypedField(21, 0); 1096 return retVal; 1097 } 1098 1099 1100 1101 /** 1102 * Returns 1103 * NK1-22: "Publicity Indicator" - creates it if necessary 1104 */ 1105 public CE getPublicityIndicator() { 1106 CE retVal = this.getTypedField(22, 0); 1107 return retVal; 1108 } 1109 1110 /** 1111 * Returns 1112 * NK1-22: "Publicity Indicator" - creates it if necessary 1113 */ 1114 public CE getNk122_PublicityIndicator() { 1115 CE retVal = this.getTypedField(22, 0); 1116 return retVal; 1117 } 1118 1119 1120 1121 /** 1122 * Returns 1123 * NK1-23: "Protection Indicator" - creates it if necessary 1124 */ 1125 public ID getProtectionIndicator() { 1126 ID retVal = this.getTypedField(23, 0); 1127 return retVal; 1128 } 1129 1130 /** 1131 * Returns 1132 * NK1-23: "Protection Indicator" - creates it if necessary 1133 */ 1134 public ID getNk123_ProtectionIndicator() { 1135 ID retVal = this.getTypedField(23, 0); 1136 return retVal; 1137 } 1138 1139 1140 1141 /** 1142 * Returns 1143 * NK1-24: "Student Indicator" - creates it if necessary 1144 */ 1145 public IS getStudentIndicator() { 1146 IS retVal = this.getTypedField(24, 0); 1147 return retVal; 1148 } 1149 1150 /** 1151 * Returns 1152 * NK1-24: "Student Indicator" - creates it if necessary 1153 */ 1154 public IS getNk124_StudentIndicator() { 1155 IS retVal = this.getTypedField(24, 0); 1156 return retVal; 1157 } 1158 1159 1160 1161 /** 1162 * Returns 1163 * NK1-25: "Religion" - creates it if necessary 1164 */ 1165 public IS getReligion() { 1166 IS retVal = this.getTypedField(25, 0); 1167 return retVal; 1168 } 1169 1170 /** 1171 * Returns 1172 * NK1-25: "Religion" - creates it if necessary 1173 */ 1174 public IS getNk125_Religion() { 1175 IS retVal = this.getTypedField(25, 0); 1176 return retVal; 1177 } 1178 1179 1180 1181 /** 1182 * Returns 1183 * NK1-26: "Mother’s Maiden Name" - creates it if necessary 1184 */ 1185 public XPN getMotherSMaidenName() { 1186 XPN retVal = this.getTypedField(26, 0); 1187 return retVal; 1188 } 1189 1190 /** 1191 * Returns 1192 * NK1-26: "Mother’s Maiden Name" - creates it if necessary 1193 */ 1194 public XPN getNk126_MotherSMaidenName() { 1195 XPN retVal = this.getTypedField(26, 0); 1196 return retVal; 1197 } 1198 1199 1200 1201 /** 1202 * Returns 1203 * NK1-27: "Nationality Code" - creates it if necessary 1204 */ 1205 public CE getNationalityCode() { 1206 CE retVal = this.getTypedField(27, 0); 1207 return retVal; 1208 } 1209 1210 /** 1211 * Returns 1212 * NK1-27: "Nationality Code" - creates it if necessary 1213 */ 1214 public CE getNk127_NationalityCode() { 1215 CE retVal = this.getTypedField(27, 0); 1216 return retVal; 1217 } 1218 1219 1220 1221 /** 1222 * Returns 1223 * NK1-28: "Ethnic Group" - creates it if necessary 1224 */ 1225 public IS getEthnicGroup() { 1226 IS retVal = this.getTypedField(28, 0); 1227 return retVal; 1228 } 1229 1230 /** 1231 * Returns 1232 * NK1-28: "Ethnic Group" - creates it if necessary 1233 */ 1234 public IS getNk128_EthnicGroup() { 1235 IS retVal = this.getTypedField(28, 0); 1236 return retVal; 1237 } 1238 1239 1240 1241 /** 1242 * Returns 1243 * NK1-29: "Contact Reason" - creates it if necessary 1244 */ 1245 public CE getContactReason() { 1246 CE retVal = this.getTypedField(29, 0); 1247 return retVal; 1248 } 1249 1250 /** 1251 * Returns 1252 * NK1-29: "Contact Reason" - creates it if necessary 1253 */ 1254 public CE getNk129_ContactReason() { 1255 CE retVal = this.getTypedField(29, 0); 1256 return retVal; 1257 } 1258 1259 1260 /** 1261 * Returns all repetitions of Contact Person's Name (NK1-30). 1262 */ 1263 public XPN[] getContactPersonSName() { 1264 XPN[] retVal = this.getTypedField(30, new XPN[0]); 1265 return retVal; 1266 } 1267 1268 1269 /** 1270 * Returns all repetitions of Contact Person's Name (NK1-30). 1271 */ 1272 public XPN[] getNk130_ContactPersonSName() { 1273 XPN[] retVal = this.getTypedField(30, new XPN[0]); 1274 return retVal; 1275 } 1276 1277 1278 /** 1279 * Returns a count of the current number of repetitions of Contact Person's Name (NK1-30). 1280 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1281 * it will return zero. 1282 */ 1283 public int getContactPersonSNameReps() { 1284 return this.getReps(30); 1285 } 1286 1287 1288 /** 1289 * Returns a specific repetition of 1290 * NK1-30: "Contact Person's Name" - creates it if necessary 1291 * 1292 * @param rep The repetition index (0-indexed) 1293 */ 1294 public XPN getContactPersonSName(int rep) { 1295 XPN retVal = this.getTypedField(30, rep); 1296 return retVal; 1297 } 1298 1299 /** 1300 * Returns a specific repetition of 1301 * NK1-30: "Contact Person's Name" - creates it if necessary 1302 * 1303 * @param rep The repetition index (0-indexed) 1304 */ 1305 public XPN getNk130_ContactPersonSName(int rep) { 1306 XPN retVal = this.getTypedField(30, rep); 1307 return retVal; 1308 } 1309 1310 /** 1311 * Returns a count of the current number of repetitions of Contact Person's Name (NK1-30). 1312 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1313 * it will return zero. 1314 */ 1315 public int getNk130_ContactPersonSNameReps() { 1316 return this.getReps(30); 1317 } 1318 1319 1320 /** 1321 * Inserts a repetition of 1322 * NK1-30: "Contact Person's Name" at a specific index 1323 * 1324 * @param rep The repetition index (0-indexed) 1325 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1326 */ 1327 public XPN insertContactPersonSName(int rep) throws HL7Exception { 1328 return (XPN) super.insertRepetition(30, rep); 1329 } 1330 1331 1332 /** 1333 * Inserts a repetition of 1334 * NK1-30: "Contact Person's Name" at a specific index 1335 * 1336 * @param rep The repetition index (0-indexed) 1337 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1338 */ 1339 public XPN insertNk130_ContactPersonSName(int rep) throws HL7Exception { 1340 return (XPN) super.insertRepetition(30, rep); 1341 } 1342 1343 1344 /** 1345 * Removes a repetition of 1346 * NK1-30: "Contact Person's Name" at a specific index 1347 * 1348 * @param rep The repetition index (0-indexed) 1349 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1350 */ 1351 public XPN removeContactPersonSName(int rep) throws HL7Exception { 1352 return (XPN) super.removeRepetition(30, rep); 1353 } 1354 1355 1356 /** 1357 * Removes a repetition of 1358 * NK1-30: "Contact Person's Name" at a specific index 1359 * 1360 * @param rep The repetition index (0-indexed) 1361 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1362 */ 1363 public XPN removeNk130_ContactPersonSName(int rep) throws HL7Exception { 1364 return (XPN) super.removeRepetition(30, rep); 1365 } 1366 1367 1368 1369 /** 1370 * Returns all repetitions of Contact Person’s Telephone Number (NK1-31). 1371 */ 1372 public XTN[] getContactPersonSTelephoneNumber() { 1373 XTN[] retVal = this.getTypedField(31, new XTN[0]); 1374 return retVal; 1375 } 1376 1377 1378 /** 1379 * Returns all repetitions of Contact Person’s Telephone Number (NK1-31). 1380 */ 1381 public XTN[] getNk131_ContactPersonSTelephoneNumber() { 1382 XTN[] retVal = this.getTypedField(31, new XTN[0]); 1383 return retVal; 1384 } 1385 1386 1387 /** 1388 * Returns a count of the current number of repetitions of Contact Person’s Telephone Number (NK1-31). 1389 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1390 * it will return zero. 1391 */ 1392 public int getContactPersonSTelephoneNumberReps() { 1393 return this.getReps(31); 1394 } 1395 1396 1397 /** 1398 * Returns a specific repetition of 1399 * NK1-31: "Contact Person’s Telephone Number" - creates it if necessary 1400 * 1401 * @param rep The repetition index (0-indexed) 1402 */ 1403 public XTN getContactPersonSTelephoneNumber(int rep) { 1404 XTN retVal = this.getTypedField(31, rep); 1405 return retVal; 1406 } 1407 1408 /** 1409 * Returns a specific repetition of 1410 * NK1-31: "Contact Person’s Telephone Number" - creates it if necessary 1411 * 1412 * @param rep The repetition index (0-indexed) 1413 */ 1414 public XTN getNk131_ContactPersonSTelephoneNumber(int rep) { 1415 XTN retVal = this.getTypedField(31, rep); 1416 return retVal; 1417 } 1418 1419 /** 1420 * Returns a count of the current number of repetitions of Contact Person’s Telephone Number (NK1-31). 1421 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1422 * it will return zero. 1423 */ 1424 public int getNk131_ContactPersonSTelephoneNumberReps() { 1425 return this.getReps(31); 1426 } 1427 1428 1429 /** 1430 * Inserts a repetition of 1431 * NK1-31: "Contact Person’s Telephone Number" at a specific index 1432 * 1433 * @param rep The repetition index (0-indexed) 1434 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1435 */ 1436 public XTN insertContactPersonSTelephoneNumber(int rep) throws HL7Exception { 1437 return (XTN) super.insertRepetition(31, rep); 1438 } 1439 1440 1441 /** 1442 * Inserts a repetition of 1443 * NK1-31: "Contact Person’s Telephone Number" at a specific index 1444 * 1445 * @param rep The repetition index (0-indexed) 1446 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1447 */ 1448 public XTN insertNk131_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 1449 return (XTN) super.insertRepetition(31, rep); 1450 } 1451 1452 1453 /** 1454 * Removes a repetition of 1455 * NK1-31: "Contact Person’s Telephone Number" at a specific index 1456 * 1457 * @param rep The repetition index (0-indexed) 1458 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1459 */ 1460 public XTN removeContactPersonSTelephoneNumber(int rep) throws HL7Exception { 1461 return (XTN) super.removeRepetition(31, rep); 1462 } 1463 1464 1465 /** 1466 * Removes a repetition of 1467 * NK1-31: "Contact Person’s Telephone Number" at a specific index 1468 * 1469 * @param rep The repetition index (0-indexed) 1470 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1471 */ 1472 public XTN removeNk131_ContactPersonSTelephoneNumber(int rep) throws HL7Exception { 1473 return (XTN) super.removeRepetition(31, rep); 1474 } 1475 1476 1477 1478 /** 1479 * Returns all repetitions of Contact Person’s Address (NK1-32). 1480 */ 1481 public XAD[] getContactPersonSAddress() { 1482 XAD[] retVal = this.getTypedField(32, new XAD[0]); 1483 return retVal; 1484 } 1485 1486 1487 /** 1488 * Returns all repetitions of Contact Person’s Address (NK1-32). 1489 */ 1490 public XAD[] getNk132_ContactPersonSAddress() { 1491 XAD[] retVal = this.getTypedField(32, new XAD[0]); 1492 return retVal; 1493 } 1494 1495 1496 /** 1497 * Returns a count of the current number of repetitions of Contact Person’s Address (NK1-32). 1498 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1499 * it will return zero. 1500 */ 1501 public int getContactPersonSAddressReps() { 1502 return this.getReps(32); 1503 } 1504 1505 1506 /** 1507 * Returns a specific repetition of 1508 * NK1-32: "Contact Person’s Address" - creates it if necessary 1509 * 1510 * @param rep The repetition index (0-indexed) 1511 */ 1512 public XAD getContactPersonSAddress(int rep) { 1513 XAD retVal = this.getTypedField(32, rep); 1514 return retVal; 1515 } 1516 1517 /** 1518 * Returns a specific repetition of 1519 * NK1-32: "Contact Person’s Address" - creates it if necessary 1520 * 1521 * @param rep The repetition index (0-indexed) 1522 */ 1523 public XAD getNk132_ContactPersonSAddress(int rep) { 1524 XAD retVal = this.getTypedField(32, rep); 1525 return retVal; 1526 } 1527 1528 /** 1529 * Returns a count of the current number of repetitions of Contact Person’s Address (NK1-32). 1530 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1531 * it will return zero. 1532 */ 1533 public int getNk132_ContactPersonSAddressReps() { 1534 return this.getReps(32); 1535 } 1536 1537 1538 /** 1539 * Inserts a repetition of 1540 * NK1-32: "Contact Person’s Address" at a specific index 1541 * 1542 * @param rep The repetition index (0-indexed) 1543 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1544 */ 1545 public XAD insertContactPersonSAddress(int rep) throws HL7Exception { 1546 return (XAD) super.insertRepetition(32, rep); 1547 } 1548 1549 1550 /** 1551 * Inserts a repetition of 1552 * NK1-32: "Contact Person’s Address" at a specific index 1553 * 1554 * @param rep The repetition index (0-indexed) 1555 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1556 */ 1557 public XAD insertNk132_ContactPersonSAddress(int rep) throws HL7Exception { 1558 return (XAD) super.insertRepetition(32, rep); 1559 } 1560 1561 1562 /** 1563 * Removes a repetition of 1564 * NK1-32: "Contact Person’s Address" at a specific index 1565 * 1566 * @param rep The repetition index (0-indexed) 1567 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1568 */ 1569 public XAD removeContactPersonSAddress(int rep) throws HL7Exception { 1570 return (XAD) super.removeRepetition(32, rep); 1571 } 1572 1573 1574 /** 1575 * Removes a repetition of 1576 * NK1-32: "Contact Person’s Address" at a specific index 1577 * 1578 * @param rep The repetition index (0-indexed) 1579 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1580 */ 1581 public XAD removeNk132_ContactPersonSAddress(int rep) throws HL7Exception { 1582 return (XAD) super.removeRepetition(32, rep); 1583 } 1584 1585 1586 1587 /** 1588 * Returns all repetitions of Associated Party’s Identifiers (NK1-33). 1589 */ 1590 public CX[] getAssociatedPartySIdentifiers() { 1591 CX[] retVal = this.getTypedField(33, new CX[0]); 1592 return retVal; 1593 } 1594 1595 1596 /** 1597 * Returns all repetitions of Associated Party’s Identifiers (NK1-33). 1598 */ 1599 public CX[] getNk133_AssociatedPartySIdentifiers() { 1600 CX[] retVal = this.getTypedField(33, new CX[0]); 1601 return retVal; 1602 } 1603 1604 1605 /** 1606 * Returns a count of the current number of repetitions of Associated Party’s Identifiers (NK1-33). 1607 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1608 * it will return zero. 1609 */ 1610 public int getAssociatedPartySIdentifiersReps() { 1611 return this.getReps(33); 1612 } 1613 1614 1615 /** 1616 * Returns a specific repetition of 1617 * NK1-33: "Associated Party’s Identifiers" - creates it if necessary 1618 * 1619 * @param rep The repetition index (0-indexed) 1620 */ 1621 public CX getAssociatedPartySIdentifiers(int rep) { 1622 CX retVal = this.getTypedField(33, rep); 1623 return retVal; 1624 } 1625 1626 /** 1627 * Returns a specific repetition of 1628 * NK1-33: "Associated Party’s Identifiers" - creates it if necessary 1629 * 1630 * @param rep The repetition index (0-indexed) 1631 */ 1632 public CX getNk133_AssociatedPartySIdentifiers(int rep) { 1633 CX retVal = this.getTypedField(33, rep); 1634 return retVal; 1635 } 1636 1637 /** 1638 * Returns a count of the current number of repetitions of Associated Party’s Identifiers (NK1-33). 1639 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1640 * it will return zero. 1641 */ 1642 public int getNk133_AssociatedPartySIdentifiersReps() { 1643 return this.getReps(33); 1644 } 1645 1646 1647 /** 1648 * Inserts a repetition of 1649 * NK1-33: "Associated Party’s Identifiers" at a specific index 1650 * 1651 * @param rep The repetition index (0-indexed) 1652 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1653 */ 1654 public CX insertAssociatedPartySIdentifiers(int rep) throws HL7Exception { 1655 return (CX) super.insertRepetition(33, rep); 1656 } 1657 1658 1659 /** 1660 * Inserts a repetition of 1661 * NK1-33: "Associated Party’s Identifiers" at a specific index 1662 * 1663 * @param rep The repetition index (0-indexed) 1664 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1665 */ 1666 public CX insertNk133_AssociatedPartySIdentifiers(int rep) throws HL7Exception { 1667 return (CX) super.insertRepetition(33, rep); 1668 } 1669 1670 1671 /** 1672 * Removes a repetition of 1673 * NK1-33: "Associated Party’s Identifiers" at a specific index 1674 * 1675 * @param rep The repetition index (0-indexed) 1676 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1677 */ 1678 public CX removeAssociatedPartySIdentifiers(int rep) throws HL7Exception { 1679 return (CX) super.removeRepetition(33, rep); 1680 } 1681 1682 1683 /** 1684 * Removes a repetition of 1685 * NK1-33: "Associated Party’s Identifiers" at a specific index 1686 * 1687 * @param rep The repetition index (0-indexed) 1688 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1689 */ 1690 public CX removeNk133_AssociatedPartySIdentifiers(int rep) throws HL7Exception { 1691 return (CX) super.removeRepetition(33, rep); 1692 } 1693 1694 1695 1696 1697 /** 1698 * Returns 1699 * NK1-34: "Job Status" - creates it if necessary 1700 */ 1701 public IS getJobStatus() { 1702 IS retVal = this.getTypedField(34, 0); 1703 return retVal; 1704 } 1705 1706 /** 1707 * Returns 1708 * NK1-34: "Job Status" - creates it if necessary 1709 */ 1710 public IS getNk134_JobStatus() { 1711 IS retVal = this.getTypedField(34, 0); 1712 return retVal; 1713 } 1714 1715 1716 1717 /** 1718 * Returns 1719 * NK1-35: "Race" - creates it if necessary 1720 */ 1721 public IS getRace() { 1722 IS retVal = this.getTypedField(35, 0); 1723 return retVal; 1724 } 1725 1726 /** 1727 * Returns 1728 * NK1-35: "Race" - creates it if necessary 1729 */ 1730 public IS getNk135_Race() { 1731 IS retVal = this.getTypedField(35, 0); 1732 return retVal; 1733 } 1734 1735 1736 1737 /** 1738 * Returns 1739 * NK1-36: "Handicap" - creates it if necessary 1740 */ 1741 public IS getHandicap() { 1742 IS retVal = this.getTypedField(36, 0); 1743 return retVal; 1744 } 1745 1746 /** 1747 * Returns 1748 * NK1-36: "Handicap" - creates it if necessary 1749 */ 1750 public IS getNk136_Handicap() { 1751 IS retVal = this.getTypedField(36, 0); 1752 return retVal; 1753 } 1754 1755 1756 1757 /** 1758 * Returns 1759 * NK1-37: "Contact Person Social Security Number" - creates it if necessary 1760 */ 1761 public ST getContactPersonSocialSecurityNumber() { 1762 ST retVal = this.getTypedField(37, 0); 1763 return retVal; 1764 } 1765 1766 /** 1767 * Returns 1768 * NK1-37: "Contact Person Social Security Number" - creates it if necessary 1769 */ 1770 public ST getNk137_ContactPersonSocialSecurityNumber() { 1771 ST retVal = this.getTypedField(37, 0); 1772 return retVal; 1773 } 1774 1775 1776 1777 1778 1779 /** {@inheritDoc} */ 1780 protected Type createNewTypeWithoutReflection(int field) { 1781 switch (field) { 1782 case 0: return new SI(getMessage()); 1783 case 1: return new XPN(getMessage()); 1784 case 2: return new CE(getMessage()); 1785 case 3: return new XAD(getMessage()); 1786 case 4: return new XTN(getMessage()); 1787 case 5: return new XTN(getMessage()); 1788 case 6: return new CE(getMessage()); 1789 case 7: return new DT(getMessage()); 1790 case 8: return new DT(getMessage()); 1791 case 9: return new ST(getMessage()); 1792 case 10: return new JCC(getMessage()); 1793 case 11: return new CX(getMessage()); 1794 case 12: return new XON(getMessage()); 1795 case 13: return new IS(getMessage(), new Integer( 2 )); 1796 case 14: return new IS(getMessage(), new Integer( 1 )); 1797 case 15: return new TS(getMessage()); 1798 case 16: return new IS(getMessage(), new Integer( 223 )); 1799 case 17: return new IS(getMessage(), new Integer( 9 )); 1800 case 18: return new IS(getMessage(), new Integer( 171 )); 1801 case 19: return new CE(getMessage()); 1802 case 20: return new IS(getMessage(), new Integer( 220 )); 1803 case 21: return new CE(getMessage()); 1804 case 22: return new ID(getMessage(), new Integer( 136 )); 1805 case 23: return new IS(getMessage(), new Integer( 231 )); 1806 case 24: return new IS(getMessage(), new Integer( 6 )); 1807 case 25: return new XPN(getMessage()); 1808 case 26: return new CE(getMessage()); 1809 case 27: return new IS(getMessage(), new Integer( 189 )); 1810 case 28: return new CE(getMessage()); 1811 case 29: return new XPN(getMessage()); 1812 case 30: return new XTN(getMessage()); 1813 case 31: return new XAD(getMessage()); 1814 case 32: return new CX(getMessage()); 1815 case 33: return new IS(getMessage(), new Integer( 311 )); 1816 case 34: return new IS(getMessage(), new Integer( 5 )); 1817 case 35: return new IS(getMessage(), new Integer( 310 )); 1818 case 36: return new ST(getMessage()); 1819 default: return null; 1820 } 1821 } 1822 1823 1824} 1825