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.v24.message; 035 036import ca.uhn.hl7v2.model.v24.group.*; 037import ca.uhn.hl7v2.model.v24.segment.*; 038 039import java.util.List; 040 041import ca.uhn.hl7v2.HL7Exception; 042import ca.uhn.hl7v2.parser.ModelClassFactory; 043import ca.uhn.hl7v2.parser.DefaultModelClassFactory; 044import ca.uhn.hl7v2.model.AbstractMessage; 045 046/** 047 * <p>Represents a ADT_A01 message structure (see chapter 3). This structure contains the 048 * following elements: </p> 049 * <ul> 050 * <li>1: MSH (Message Header) <b> </b></li> 051 * <li>2: EVN (Event Type) <b> </b></li> 052 * <li>3: PID (Patient identification) <b> </b></li> 053 * <li>4: PD1 (patient additional demographic) <b>optional </b></li> 054 * <li>5: ROL (Role) <b>optional repeating</b></li> 055 * <li>6: NK1 (Next of kin / associated parties) <b>optional repeating</b></li> 056 * <li>7: PV1 (Patient visit) <b> </b></li> 057 * <li>8: PV2 (Patient visit - additional information) <b>optional </b></li> 058 * <li>9: ROL (Role) <b>optional repeating</b></li> 059 * <li>10: DB1 (Disability) <b>optional repeating</b></li> 060 * <li>11: OBX (Observation/Result) <b>optional repeating</b></li> 061 * <li>12: AL1 (Patient allergy information) <b>optional repeating</b></li> 062 * <li>13: DG1 (Diagnosis) <b>optional repeating</b></li> 063 * <li>14: DRG (Diagnosis Related Group) <b>optional </b></li> 064 * <li>15: ADT_A01_PROCEDURE (a Group object) <b>optional repeating</b></li> 065 * <li>16: GT1 (Guarantor) <b>optional repeating</b></li> 066 * <li>17: ADT_A01_INSURANCE (a Group object) <b>optional repeating</b></li> 067 * <li>18: ACC (Accident) <b>optional </b></li> 068 * <li>19: UB1 (UB82) <b>optional </b></li> 069 * <li>20: UB2 (UB92 Data) <b>optional </b></li> 070 * <li>21: PDA (Patient death and autopsy) <b>optional </b></li> 071 * </ul> 072 */ 073@SuppressWarnings("unused") 074public class ADT_A01 extends AbstractMessage { 075 076 /** 077 * Creates a new ADT_A01 message with DefaultModelClassFactory. 078 */ 079 public ADT_A01() { 080 this(new DefaultModelClassFactory()); 081 } 082 083 /** 084 * Creates a new ADT_A01 message with custom ModelClassFactory. 085 */ 086 public ADT_A01(ModelClassFactory factory) { 087 super(factory); 088 init(factory); 089 } 090 091 private void init(ModelClassFactory factory) { 092 try { 093 this.add(MSH.class, true, false); 094 this.add(EVN.class, true, false); 095 this.add(PID.class, true, false); 096 this.add(PD1.class, false, false); 097 this.add(ROL.class, false, true); 098 this.add(NK1.class, false, true); 099 this.add(PV1.class, true, false); 100 this.add(PV2.class, false, false); 101 this.add(ROL.class, false, true); 102 this.add(DB1.class, false, true); 103 this.add(OBX.class, false, true); 104 this.add(AL1.class, false, true); 105 this.add(DG1.class, false, true); 106 this.add(DRG.class, false, false); 107 this.add(ADT_A01_PROCEDURE.class, false, true); 108 this.add(GT1.class, false, true); 109 this.add(ADT_A01_INSURANCE.class, false, true); 110 this.add(ACC.class, false, false); 111 this.add(UB1.class, false, false); 112 this.add(UB2.class, false, false); 113 this.add(PDA.class, false, false); 114 } catch(HL7Exception e) { 115 log.error("Unexpected error creating ADT_A01 - this is probably a bug in the source code generator.", e); 116 } 117 } 118 119 /** 120 * Returns "2.4" 121 */ 122 public String getVersion() { 123 return "2.4"; 124 } 125 126 127 128 /** 129 * Returns 130 * MSH (Message Header) - creates it if necessary 131 */ 132 public MSH getMSH() { 133 return getTyped("MSH", MSH.class); 134 } 135 136 137 138 139 /** 140 * Returns 141 * EVN (Event Type) - creates it if necessary 142 */ 143 public EVN getEVN() { 144 return getTyped("EVN", EVN.class); 145 } 146 147 148 149 150 /** 151 * Returns 152 * PID (Patient identification) - creates it if necessary 153 */ 154 public PID getPID() { 155 return getTyped("PID", PID.class); 156 } 157 158 159 160 161 /** 162 * Returns 163 * PD1 (patient additional demographic) - creates it if necessary 164 */ 165 public PD1 getPD1() { 166 return getTyped("PD1", PD1.class); 167 } 168 169 170 171 172 /** 173 * Returns 174 * the first repetition of 175 * ROL (Role) - creates it if necessary 176 */ 177 public ROL getROL() { 178 return getTyped("ROL", ROL.class); 179 } 180 181 182 /** 183 * Returns a specific repetition of 184 * ROL (Role) - creates it if necessary 185 * 186 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 187 * @throws HL7Exception if the repetition requested is more than one 188 * greater than the number of existing repetitions. 189 */ 190 public ROL getROL(int rep) { 191 return getTyped("ROL", rep, ROL.class); 192 } 193 194 /** 195 * Returns the number of existing repetitions of ROL 196 */ 197 public int getROLReps() { 198 return getReps("ROL"); 199 } 200 201 /** 202 * <p> 203 * Returns a non-modifiable List containing all current existing repetitions of ROL. 204 * <p> 205 * <p> 206 * Note that unlike {@link #getROL()}, this method will not create any reps 207 * if none are already present, so an empty list may be returned. 208 * </p> 209 */ 210 public List<ROL> getROLAll() throws HL7Exception { 211 return getAllAsList("ROL", ROL.class); 212 } 213 214 /** 215 * Inserts a specific repetition of ROL (Role) 216 * @see AbstractGroup#insertRepetition(Structure, int) 217 */ 218 public void insertROL(ROL structure, int rep) throws HL7Exception { 219 super.insertRepetition( "ROL", structure, rep); 220 } 221 222 223 /** 224 * Inserts a specific repetition of ROL (Role) 225 * @see AbstractGroup#insertRepetition(Structure, int) 226 */ 227 public ROL insertROL(int rep) throws HL7Exception { 228 return (ROL)super.insertRepetition("ROL", rep); 229 } 230 231 232 /** 233 * Removes a specific repetition of ROL (Role) 234 * @see AbstractGroup#removeRepetition(String, int) 235 */ 236 public ROL removeROL(int rep) throws HL7Exception { 237 return (ROL)super.removeRepetition("ROL", rep); 238 } 239 240 241 242 /** 243 * Returns 244 * the first repetition of 245 * NK1 (Next of kin / associated parties) - creates it if necessary 246 */ 247 public NK1 getNK1() { 248 return getTyped("NK1", NK1.class); 249 } 250 251 252 /** 253 * Returns a specific repetition of 254 * NK1 (Next of kin / associated parties) - creates it if necessary 255 * 256 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 257 * @throws HL7Exception if the repetition requested is more than one 258 * greater than the number of existing repetitions. 259 */ 260 public NK1 getNK1(int rep) { 261 return getTyped("NK1", rep, NK1.class); 262 } 263 264 /** 265 * Returns the number of existing repetitions of NK1 266 */ 267 public int getNK1Reps() { 268 return getReps("NK1"); 269 } 270 271 /** 272 * <p> 273 * Returns a non-modifiable List containing all current existing repetitions of NK1. 274 * <p> 275 * <p> 276 * Note that unlike {@link #getNK1()}, this method will not create any reps 277 * if none are already present, so an empty list may be returned. 278 * </p> 279 */ 280 public List<NK1> getNK1All() throws HL7Exception { 281 return getAllAsList("NK1", NK1.class); 282 } 283 284 /** 285 * Inserts a specific repetition of NK1 (Next of kin / associated parties) 286 * @see AbstractGroup#insertRepetition(Structure, int) 287 */ 288 public void insertNK1(NK1 structure, int rep) throws HL7Exception { 289 super.insertRepetition( "NK1", structure, rep); 290 } 291 292 293 /** 294 * Inserts a specific repetition of NK1 (Next of kin / associated parties) 295 * @see AbstractGroup#insertRepetition(Structure, int) 296 */ 297 public NK1 insertNK1(int rep) throws HL7Exception { 298 return (NK1)super.insertRepetition("NK1", rep); 299 } 300 301 302 /** 303 * Removes a specific repetition of NK1 (Next of kin / associated parties) 304 * @see AbstractGroup#removeRepetition(String, int) 305 */ 306 public NK1 removeNK1(int rep) throws HL7Exception { 307 return (NK1)super.removeRepetition("NK1", rep); 308 } 309 310 311 312 /** 313 * Returns 314 * PV1 (Patient visit) - creates it if necessary 315 */ 316 public PV1 getPV1() { 317 return getTyped("PV1", PV1.class); 318 } 319 320 321 322 323 /** 324 * Returns 325 * PV2 (Patient visit - additional information) - creates it if necessary 326 */ 327 public PV2 getPV2() { 328 return getTyped("PV2", PV2.class); 329 } 330 331 332 333 334 /** 335 * Returns 336 * the first repetition of 337 * ROL2 (Role) - creates it if necessary 338 */ 339 public ROL getROL2() { 340 return getTyped("ROL2", ROL.class); 341 } 342 343 344 /** 345 * Returns a specific repetition of 346 * ROL2 (Role) - creates it if necessary 347 * 348 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 349 * @throws HL7Exception if the repetition requested is more than one 350 * greater than the number of existing repetitions. 351 */ 352 public ROL getROL2(int rep) { 353 return getTyped("ROL2", rep, ROL.class); 354 } 355 356 /** 357 * Returns the number of existing repetitions of ROL2 358 */ 359 public int getROL2Reps() { 360 return getReps("ROL2"); 361 } 362 363 /** 364 * <p> 365 * Returns a non-modifiable List containing all current existing repetitions of ROL2. 366 * <p> 367 * <p> 368 * Note that unlike {@link #getROL2()}, this method will not create any reps 369 * if none are already present, so an empty list may be returned. 370 * </p> 371 */ 372 public List<ROL> getROL2All() throws HL7Exception { 373 return getAllAsList("ROL2", ROL.class); 374 } 375 376 /** 377 * Inserts a specific repetition of ROL2 (Role) 378 * @see AbstractGroup#insertRepetition(Structure, int) 379 */ 380 public void insertROL2(ROL structure, int rep) throws HL7Exception { 381 super.insertRepetition( "ROL2", structure, rep); 382 } 383 384 385 /** 386 * Inserts a specific repetition of ROL2 (Role) 387 * @see AbstractGroup#insertRepetition(Structure, int) 388 */ 389 public ROL insertROL2(int rep) throws HL7Exception { 390 return (ROL)super.insertRepetition("ROL2", rep); 391 } 392 393 394 /** 395 * Removes a specific repetition of ROL2 (Role) 396 * @see AbstractGroup#removeRepetition(String, int) 397 */ 398 public ROL removeROL2(int rep) throws HL7Exception { 399 return (ROL)super.removeRepetition("ROL2", rep); 400 } 401 402 403 404 /** 405 * Returns 406 * the first repetition of 407 * DB1 (Disability) - creates it if necessary 408 */ 409 public DB1 getDB1() { 410 return getTyped("DB1", DB1.class); 411 } 412 413 414 /** 415 * Returns a specific repetition of 416 * DB1 (Disability) - creates it if necessary 417 * 418 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 419 * @throws HL7Exception if the repetition requested is more than one 420 * greater than the number of existing repetitions. 421 */ 422 public DB1 getDB1(int rep) { 423 return getTyped("DB1", rep, DB1.class); 424 } 425 426 /** 427 * Returns the number of existing repetitions of DB1 428 */ 429 public int getDB1Reps() { 430 return getReps("DB1"); 431 } 432 433 /** 434 * <p> 435 * Returns a non-modifiable List containing all current existing repetitions of DB1. 436 * <p> 437 * <p> 438 * Note that unlike {@link #getDB1()}, this method will not create any reps 439 * if none are already present, so an empty list may be returned. 440 * </p> 441 */ 442 public List<DB1> getDB1All() throws HL7Exception { 443 return getAllAsList("DB1", DB1.class); 444 } 445 446 /** 447 * Inserts a specific repetition of DB1 (Disability) 448 * @see AbstractGroup#insertRepetition(Structure, int) 449 */ 450 public void insertDB1(DB1 structure, int rep) throws HL7Exception { 451 super.insertRepetition( "DB1", structure, rep); 452 } 453 454 455 /** 456 * Inserts a specific repetition of DB1 (Disability) 457 * @see AbstractGroup#insertRepetition(Structure, int) 458 */ 459 public DB1 insertDB1(int rep) throws HL7Exception { 460 return (DB1)super.insertRepetition("DB1", rep); 461 } 462 463 464 /** 465 * Removes a specific repetition of DB1 (Disability) 466 * @see AbstractGroup#removeRepetition(String, int) 467 */ 468 public DB1 removeDB1(int rep) throws HL7Exception { 469 return (DB1)super.removeRepetition("DB1", rep); 470 } 471 472 473 474 /** 475 * Returns 476 * the first repetition of 477 * OBX (Observation/Result) - creates it if necessary 478 */ 479 public OBX getOBX() { 480 return getTyped("OBX", OBX.class); 481 } 482 483 484 /** 485 * Returns a specific repetition of 486 * OBX (Observation/Result) - creates it if necessary 487 * 488 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 489 * @throws HL7Exception if the repetition requested is more than one 490 * greater than the number of existing repetitions. 491 */ 492 public OBX getOBX(int rep) { 493 return getTyped("OBX", rep, OBX.class); 494 } 495 496 /** 497 * Returns the number of existing repetitions of OBX 498 */ 499 public int getOBXReps() { 500 return getReps("OBX"); 501 } 502 503 /** 504 * <p> 505 * Returns a non-modifiable List containing all current existing repetitions of OBX. 506 * <p> 507 * <p> 508 * Note that unlike {@link #getOBX()}, this method will not create any reps 509 * if none are already present, so an empty list may be returned. 510 * </p> 511 */ 512 public List<OBX> getOBXAll() throws HL7Exception { 513 return getAllAsList("OBX", OBX.class); 514 } 515 516 /** 517 * Inserts a specific repetition of OBX (Observation/Result) 518 * @see AbstractGroup#insertRepetition(Structure, int) 519 */ 520 public void insertOBX(OBX structure, int rep) throws HL7Exception { 521 super.insertRepetition( "OBX", structure, rep); 522 } 523 524 525 /** 526 * Inserts a specific repetition of OBX (Observation/Result) 527 * @see AbstractGroup#insertRepetition(Structure, int) 528 */ 529 public OBX insertOBX(int rep) throws HL7Exception { 530 return (OBX)super.insertRepetition("OBX", rep); 531 } 532 533 534 /** 535 * Removes a specific repetition of OBX (Observation/Result) 536 * @see AbstractGroup#removeRepetition(String, int) 537 */ 538 public OBX removeOBX(int rep) throws HL7Exception { 539 return (OBX)super.removeRepetition("OBX", rep); 540 } 541 542 543 544 /** 545 * Returns 546 * the first repetition of 547 * AL1 (Patient allergy information) - creates it if necessary 548 */ 549 public AL1 getAL1() { 550 return getTyped("AL1", AL1.class); 551 } 552 553 554 /** 555 * Returns a specific repetition of 556 * AL1 (Patient allergy information) - creates it if necessary 557 * 558 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 559 * @throws HL7Exception if the repetition requested is more than one 560 * greater than the number of existing repetitions. 561 */ 562 public AL1 getAL1(int rep) { 563 return getTyped("AL1", rep, AL1.class); 564 } 565 566 /** 567 * Returns the number of existing repetitions of AL1 568 */ 569 public int getAL1Reps() { 570 return getReps("AL1"); 571 } 572 573 /** 574 * <p> 575 * Returns a non-modifiable List containing all current existing repetitions of AL1. 576 * <p> 577 * <p> 578 * Note that unlike {@link #getAL1()}, this method will not create any reps 579 * if none are already present, so an empty list may be returned. 580 * </p> 581 */ 582 public List<AL1> getAL1All() throws HL7Exception { 583 return getAllAsList("AL1", AL1.class); 584 } 585 586 /** 587 * Inserts a specific repetition of AL1 (Patient allergy information) 588 * @see AbstractGroup#insertRepetition(Structure, int) 589 */ 590 public void insertAL1(AL1 structure, int rep) throws HL7Exception { 591 super.insertRepetition( "AL1", structure, rep); 592 } 593 594 595 /** 596 * Inserts a specific repetition of AL1 (Patient allergy information) 597 * @see AbstractGroup#insertRepetition(Structure, int) 598 */ 599 public AL1 insertAL1(int rep) throws HL7Exception { 600 return (AL1)super.insertRepetition("AL1", rep); 601 } 602 603 604 /** 605 * Removes a specific repetition of AL1 (Patient allergy information) 606 * @see AbstractGroup#removeRepetition(String, int) 607 */ 608 public AL1 removeAL1(int rep) throws HL7Exception { 609 return (AL1)super.removeRepetition("AL1", rep); 610 } 611 612 613 614 /** 615 * Returns 616 * the first repetition of 617 * DG1 (Diagnosis) - creates it if necessary 618 */ 619 public DG1 getDG1() { 620 return getTyped("DG1", DG1.class); 621 } 622 623 624 /** 625 * Returns a specific repetition of 626 * DG1 (Diagnosis) - creates it if necessary 627 * 628 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 629 * @throws HL7Exception if the repetition requested is more than one 630 * greater than the number of existing repetitions. 631 */ 632 public DG1 getDG1(int rep) { 633 return getTyped("DG1", rep, DG1.class); 634 } 635 636 /** 637 * Returns the number of existing repetitions of DG1 638 */ 639 public int getDG1Reps() { 640 return getReps("DG1"); 641 } 642 643 /** 644 * <p> 645 * Returns a non-modifiable List containing all current existing repetitions of DG1. 646 * <p> 647 * <p> 648 * Note that unlike {@link #getDG1()}, this method will not create any reps 649 * if none are already present, so an empty list may be returned. 650 * </p> 651 */ 652 public List<DG1> getDG1All() throws HL7Exception { 653 return getAllAsList("DG1", DG1.class); 654 } 655 656 /** 657 * Inserts a specific repetition of DG1 (Diagnosis) 658 * @see AbstractGroup#insertRepetition(Structure, int) 659 */ 660 public void insertDG1(DG1 structure, int rep) throws HL7Exception { 661 super.insertRepetition( "DG1", structure, rep); 662 } 663 664 665 /** 666 * Inserts a specific repetition of DG1 (Diagnosis) 667 * @see AbstractGroup#insertRepetition(Structure, int) 668 */ 669 public DG1 insertDG1(int rep) throws HL7Exception { 670 return (DG1)super.insertRepetition("DG1", rep); 671 } 672 673 674 /** 675 * Removes a specific repetition of DG1 (Diagnosis) 676 * @see AbstractGroup#removeRepetition(String, int) 677 */ 678 public DG1 removeDG1(int rep) throws HL7Exception { 679 return (DG1)super.removeRepetition("DG1", rep); 680 } 681 682 683 684 /** 685 * Returns 686 * DRG (Diagnosis Related Group) - creates it if necessary 687 */ 688 public DRG getDRG() { 689 return getTyped("DRG", DRG.class); 690 } 691 692 693 694 695 /** 696 * Returns 697 * the first repetition of 698 * PROCEDURE (a Group object) - creates it if necessary 699 */ 700 public ADT_A01_PROCEDURE getPROCEDURE() { 701 return getTyped("PROCEDURE", ADT_A01_PROCEDURE.class); 702 } 703 704 705 /** 706 * Returns a specific repetition of 707 * PROCEDURE (a Group object) - creates it if necessary 708 * 709 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 710 * @throws HL7Exception if the repetition requested is more than one 711 * greater than the number of existing repetitions. 712 */ 713 public ADT_A01_PROCEDURE getPROCEDURE(int rep) { 714 return getTyped("PROCEDURE", rep, ADT_A01_PROCEDURE.class); 715 } 716 717 /** 718 * Returns the number of existing repetitions of PROCEDURE 719 */ 720 public int getPROCEDUREReps() { 721 return getReps("PROCEDURE"); 722 } 723 724 /** 725 * <p> 726 * Returns a non-modifiable List containing all current existing repetitions of PROCEDURE. 727 * <p> 728 * <p> 729 * Note that unlike {@link #getPROCEDURE()}, this method will not create any reps 730 * if none are already present, so an empty list may be returned. 731 * </p> 732 */ 733 public List<ADT_A01_PROCEDURE> getPROCEDUREAll() throws HL7Exception { 734 return getAllAsList("PROCEDURE", ADT_A01_PROCEDURE.class); 735 } 736 737 /** 738 * Inserts a specific repetition of PROCEDURE (a Group object) 739 * @see AbstractGroup#insertRepetition(Structure, int) 740 */ 741 public void insertPROCEDURE(ADT_A01_PROCEDURE structure, int rep) throws HL7Exception { 742 super.insertRepetition( "PROCEDURE", structure, rep); 743 } 744 745 746 /** 747 * Inserts a specific repetition of PROCEDURE (a Group object) 748 * @see AbstractGroup#insertRepetition(Structure, int) 749 */ 750 public ADT_A01_PROCEDURE insertPROCEDURE(int rep) throws HL7Exception { 751 return (ADT_A01_PROCEDURE)super.insertRepetition("PROCEDURE", rep); 752 } 753 754 755 /** 756 * Removes a specific repetition of PROCEDURE (a Group object) 757 * @see AbstractGroup#removeRepetition(String, int) 758 */ 759 public ADT_A01_PROCEDURE removePROCEDURE(int rep) throws HL7Exception { 760 return (ADT_A01_PROCEDURE)super.removeRepetition("PROCEDURE", rep); 761 } 762 763 764 765 /** 766 * Returns 767 * the first repetition of 768 * GT1 (Guarantor) - creates it if necessary 769 */ 770 public GT1 getGT1() { 771 return getTyped("GT1", GT1.class); 772 } 773 774 775 /** 776 * Returns a specific repetition of 777 * GT1 (Guarantor) - creates it if necessary 778 * 779 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 780 * @throws HL7Exception if the repetition requested is more than one 781 * greater than the number of existing repetitions. 782 */ 783 public GT1 getGT1(int rep) { 784 return getTyped("GT1", rep, GT1.class); 785 } 786 787 /** 788 * Returns the number of existing repetitions of GT1 789 */ 790 public int getGT1Reps() { 791 return getReps("GT1"); 792 } 793 794 /** 795 * <p> 796 * Returns a non-modifiable List containing all current existing repetitions of GT1. 797 * <p> 798 * <p> 799 * Note that unlike {@link #getGT1()}, this method will not create any reps 800 * if none are already present, so an empty list may be returned. 801 * </p> 802 */ 803 public List<GT1> getGT1All() throws HL7Exception { 804 return getAllAsList("GT1", GT1.class); 805 } 806 807 /** 808 * Inserts a specific repetition of GT1 (Guarantor) 809 * @see AbstractGroup#insertRepetition(Structure, int) 810 */ 811 public void insertGT1(GT1 structure, int rep) throws HL7Exception { 812 super.insertRepetition( "GT1", structure, rep); 813 } 814 815 816 /** 817 * Inserts a specific repetition of GT1 (Guarantor) 818 * @see AbstractGroup#insertRepetition(Structure, int) 819 */ 820 public GT1 insertGT1(int rep) throws HL7Exception { 821 return (GT1)super.insertRepetition("GT1", rep); 822 } 823 824 825 /** 826 * Removes a specific repetition of GT1 (Guarantor) 827 * @see AbstractGroup#removeRepetition(String, int) 828 */ 829 public GT1 removeGT1(int rep) throws HL7Exception { 830 return (GT1)super.removeRepetition("GT1", rep); 831 } 832 833 834 835 /** 836 * Returns 837 * the first repetition of 838 * INSURANCE (a Group object) - creates it if necessary 839 */ 840 public ADT_A01_INSURANCE getINSURANCE() { 841 return getTyped("INSURANCE", ADT_A01_INSURANCE.class); 842 } 843 844 845 /** 846 * Returns a specific repetition of 847 * INSURANCE (a Group object) - creates it if necessary 848 * 849 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 850 * @throws HL7Exception if the repetition requested is more than one 851 * greater than the number of existing repetitions. 852 */ 853 public ADT_A01_INSURANCE getINSURANCE(int rep) { 854 return getTyped("INSURANCE", rep, ADT_A01_INSURANCE.class); 855 } 856 857 /** 858 * Returns the number of existing repetitions of INSURANCE 859 */ 860 public int getINSURANCEReps() { 861 return getReps("INSURANCE"); 862 } 863 864 /** 865 * <p> 866 * Returns a non-modifiable List containing all current existing repetitions of INSURANCE. 867 * <p> 868 * <p> 869 * Note that unlike {@link #getINSURANCE()}, this method will not create any reps 870 * if none are already present, so an empty list may be returned. 871 * </p> 872 */ 873 public List<ADT_A01_INSURANCE> getINSURANCEAll() throws HL7Exception { 874 return getAllAsList("INSURANCE", ADT_A01_INSURANCE.class); 875 } 876 877 /** 878 * Inserts a specific repetition of INSURANCE (a Group object) 879 * @see AbstractGroup#insertRepetition(Structure, int) 880 */ 881 public void insertINSURANCE(ADT_A01_INSURANCE structure, int rep) throws HL7Exception { 882 super.insertRepetition( "INSURANCE", structure, rep); 883 } 884 885 886 /** 887 * Inserts a specific repetition of INSURANCE (a Group object) 888 * @see AbstractGroup#insertRepetition(Structure, int) 889 */ 890 public ADT_A01_INSURANCE insertINSURANCE(int rep) throws HL7Exception { 891 return (ADT_A01_INSURANCE)super.insertRepetition("INSURANCE", rep); 892 } 893 894 895 /** 896 * Removes a specific repetition of INSURANCE (a Group object) 897 * @see AbstractGroup#removeRepetition(String, int) 898 */ 899 public ADT_A01_INSURANCE removeINSURANCE(int rep) throws HL7Exception { 900 return (ADT_A01_INSURANCE)super.removeRepetition("INSURANCE", rep); 901 } 902 903 904 905 /** 906 * Returns 907 * ACC (Accident) - creates it if necessary 908 */ 909 public ACC getACC() { 910 return getTyped("ACC", ACC.class); 911 } 912 913 914 915 916 /** 917 * Returns 918 * UB1 (UB82) - creates it if necessary 919 */ 920 public UB1 getUB1() { 921 return getTyped("UB1", UB1.class); 922 } 923 924 925 926 927 /** 928 * Returns 929 * UB2 (UB92 Data) - creates it if necessary 930 */ 931 public UB2 getUB2() { 932 return getTyped("UB2", UB2.class); 933 } 934 935 936 937 938 /** 939 * Returns 940 * PDA (Patient death and autopsy) - creates it if necessary 941 */ 942 public PDA getPDA() { 943 return getTyped("PDA", PDA.class); 944 } 945 946 947 948 949} 950