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