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