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.v251.message; 035 036import ca.uhn.hl7v2.model.v251.group.*; 037import ca.uhn.hl7v2.model.v251.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 RRI_I12 message structure (see chapter 11.5.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>optional </b></li> 053 * <li>4: RF1 (Referral Information) <b>optional </b></li> 054 * <li>5: RRI_I12_AUTHORIZATION_CONTACT (a Group object) <b>optional </b></li> 055 * <li>6: RRI_I12_PROVIDER_CONTACT (a Group object) <b> repeating</b></li> 056 * <li>7: PID (Patient Identification) <b> </b></li> 057 * <li>8: ACC (Accident) <b>optional </b></li> 058 * <li>9: DG1 (Diagnosis) <b>optional repeating</b></li> 059 * <li>10: DRG (Diagnosis Related Group) <b>optional repeating</b></li> 060 * <li>11: AL1 (Patient Allergy Information) <b>optional repeating</b></li> 061 * <li>12: RRI_I12_PROCEDURE (a Group object) <b>optional repeating</b></li> 062 * <li>13: RRI_I12_OBSERVATION (a Group object) <b>optional repeating</b></li> 063 * <li>14: RRI_I12_PATIENT_VISIT (a Group object) <b>optional </b></li> 064 * <li>15: NTE (Notes and Comments) <b>optional repeating</b></li> 065 * </ul> 066 */ 067@SuppressWarnings("unused") 068public class RRI_I12 extends AbstractMessage { 069 070 /** 071 * Creates a new RRI_I12 message with DefaultModelClassFactory. 072 */ 073 public RRI_I12() { 074 this(new DefaultModelClassFactory()); 075 } 076 077 /** 078 * Creates a new RRI_I12 message with custom ModelClassFactory. 079 */ 080 public RRI_I12(ModelClassFactory factory) { 081 super(factory); 082 init(factory); 083 } 084 085 private void init(ModelClassFactory factory) { 086 try { 087 this.add(MSH.class, true, false); 088 this.add(SFT.class, false, true); 089 this.add(MSA.class, false, false); 090 this.add(RF1.class, false, false); 091 this.add(RRI_I12_AUTHORIZATION_CONTACT.class, false, false); 092 this.add(RRI_I12_PROVIDER_CONTACT.class, true, true); 093 this.add(PID.class, true, false); 094 this.add(ACC.class, false, false); 095 this.add(DG1.class, false, true); 096 this.add(DRG.class, false, true); 097 this.add(AL1.class, false, true); 098 this.add(RRI_I12_PROCEDURE.class, false, true); 099 this.add(RRI_I12_OBSERVATION.class, false, true); 100 this.add(RRI_I12_PATIENT_VISIT.class, false, false); 101 this.add(NTE.class, false, true); 102 } catch(HL7Exception e) { 103 log.error("Unexpected error creating RRI_I12 - this is probably a bug in the source code generator.", e); 104 } 105 } 106 107 /** 108 * Returns "2.5.1" 109 */ 110 public String getVersion() { 111 return "2.5.1"; 112 } 113 114 115 116 /** 117 * Returns 118 * MSH (Message Header) - creates it if necessary 119 */ 120 public MSH getMSH() { 121 return getTyped("MSH", MSH.class); 122 } 123 124 125 126 127 /** 128 * Returns 129 * the first repetition of 130 * SFT (Software Segment) - creates it if necessary 131 */ 132 public SFT getSFT() { 133 return getTyped("SFT", SFT.class); 134 } 135 136 137 /** 138 * Returns a specific repetition of 139 * SFT (Software Segment) - creates it if necessary 140 * 141 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 142 * @throws HL7Exception if the repetition requested is more than one 143 * greater than the number of existing repetitions. 144 */ 145 public SFT getSFT(int rep) { 146 return getTyped("SFT", rep, SFT.class); 147 } 148 149 /** 150 * Returns the number of existing repetitions of SFT 151 */ 152 public int getSFTReps() { 153 return getReps("SFT"); 154 } 155 156 /** 157 * <p> 158 * Returns a non-modifiable List containing all current existing repetitions of SFT. 159 * <p> 160 * <p> 161 * Note that unlike {@link #getSFT()}, this method will not create any reps 162 * if none are already present, so an empty list may be returned. 163 * </p> 164 */ 165 public List<SFT> getSFTAll() throws HL7Exception { 166 return getAllAsList("SFT", SFT.class); 167 } 168 169 /** 170 * Inserts a specific repetition of SFT (Software Segment) 171 * @see AbstractGroup#insertRepetition(Structure, int) 172 */ 173 public void insertSFT(SFT structure, int rep) throws HL7Exception { 174 super.insertRepetition( "SFT", structure, rep); 175 } 176 177 178 /** 179 * Inserts a specific repetition of SFT (Software Segment) 180 * @see AbstractGroup#insertRepetition(Structure, int) 181 */ 182 public SFT insertSFT(int rep) throws HL7Exception { 183 return (SFT)super.insertRepetition("SFT", rep); 184 } 185 186 187 /** 188 * Removes a specific repetition of SFT (Software Segment) 189 * @see AbstractGroup#removeRepetition(String, int) 190 */ 191 public SFT removeSFT(int rep) throws HL7Exception { 192 return (SFT)super.removeRepetition("SFT", rep); 193 } 194 195 196 197 /** 198 * Returns 199 * MSA (Message Acknowledgment) - creates it if necessary 200 */ 201 public MSA getMSA() { 202 return getTyped("MSA", MSA.class); 203 } 204 205 206 207 208 /** 209 * Returns 210 * RF1 (Referral Information) - creates it if necessary 211 */ 212 public RF1 getRF1() { 213 return getTyped("RF1", RF1.class); 214 } 215 216 217 218 219 /** 220 * Returns 221 * AUTHORIZATION_CONTACT (a Group object) - creates it if necessary 222 */ 223 public RRI_I12_AUTHORIZATION_CONTACT getAUTHORIZATION_CONTACT() { 224 return getTyped("AUTHORIZATION_CONTACT", RRI_I12_AUTHORIZATION_CONTACT.class); 225 } 226 227 228 229 230 /** 231 * Returns 232 * the first repetition of 233 * PROVIDER_CONTACT (a Group object) - creates it if necessary 234 */ 235 public RRI_I12_PROVIDER_CONTACT getPROVIDER_CONTACT() { 236 return getTyped("PROVIDER_CONTACT", RRI_I12_PROVIDER_CONTACT.class); 237 } 238 239 240 /** 241 * Returns a specific repetition of 242 * PROVIDER_CONTACT (a Group object) - creates it if necessary 243 * 244 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 245 * @throws HL7Exception if the repetition requested is more than one 246 * greater than the number of existing repetitions. 247 */ 248 public RRI_I12_PROVIDER_CONTACT getPROVIDER_CONTACT(int rep) { 249 return getTyped("PROVIDER_CONTACT", rep, RRI_I12_PROVIDER_CONTACT.class); 250 } 251 252 /** 253 * Returns the number of existing repetitions of PROVIDER_CONTACT 254 */ 255 public int getPROVIDER_CONTACTReps() { 256 return getReps("PROVIDER_CONTACT"); 257 } 258 259 /** 260 * <p> 261 * Returns a non-modifiable List containing all current existing repetitions of PROVIDER_CONTACT. 262 * <p> 263 * <p> 264 * Note that unlike {@link #getPROVIDER_CONTACT()}, this method will not create any reps 265 * if none are already present, so an empty list may be returned. 266 * </p> 267 */ 268 public List<RRI_I12_PROVIDER_CONTACT> getPROVIDER_CONTACTAll() throws HL7Exception { 269 return getAllAsList("PROVIDER_CONTACT", RRI_I12_PROVIDER_CONTACT.class); 270 } 271 272 /** 273 * Inserts a specific repetition of PROVIDER_CONTACT (a Group object) 274 * @see AbstractGroup#insertRepetition(Structure, int) 275 */ 276 public void insertPROVIDER_CONTACT(RRI_I12_PROVIDER_CONTACT structure, int rep) throws HL7Exception { 277 super.insertRepetition( "PROVIDER_CONTACT", structure, rep); 278 } 279 280 281 /** 282 * Inserts a specific repetition of PROVIDER_CONTACT (a Group object) 283 * @see AbstractGroup#insertRepetition(Structure, int) 284 */ 285 public RRI_I12_PROVIDER_CONTACT insertPROVIDER_CONTACT(int rep) throws HL7Exception { 286 return (RRI_I12_PROVIDER_CONTACT)super.insertRepetition("PROVIDER_CONTACT", rep); 287 } 288 289 290 /** 291 * Removes a specific repetition of PROVIDER_CONTACT (a Group object) 292 * @see AbstractGroup#removeRepetition(String, int) 293 */ 294 public RRI_I12_PROVIDER_CONTACT removePROVIDER_CONTACT(int rep) throws HL7Exception { 295 return (RRI_I12_PROVIDER_CONTACT)super.removeRepetition("PROVIDER_CONTACT", rep); 296 } 297 298 299 300 /** 301 * Returns 302 * PID (Patient Identification) - creates it if necessary 303 */ 304 public PID getPID() { 305 return getTyped("PID", PID.class); 306 } 307 308 309 310 311 /** 312 * Returns 313 * ACC (Accident) - creates it if necessary 314 */ 315 public ACC getACC() { 316 return getTyped("ACC", ACC.class); 317 } 318 319 320 321 322 /** 323 * Returns 324 * the first repetition of 325 * DG1 (Diagnosis) - creates it if necessary 326 */ 327 public DG1 getDG1() { 328 return getTyped("DG1", DG1.class); 329 } 330 331 332 /** 333 * Returns a specific repetition of 334 * DG1 (Diagnosis) - creates it if necessary 335 * 336 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 337 * @throws HL7Exception if the repetition requested is more than one 338 * greater than the number of existing repetitions. 339 */ 340 public DG1 getDG1(int rep) { 341 return getTyped("DG1", rep, DG1.class); 342 } 343 344 /** 345 * Returns the number of existing repetitions of DG1 346 */ 347 public int getDG1Reps() { 348 return getReps("DG1"); 349 } 350 351 /** 352 * <p> 353 * Returns a non-modifiable List containing all current existing repetitions of DG1. 354 * <p> 355 * <p> 356 * Note that unlike {@link #getDG1()}, this method will not create any reps 357 * if none are already present, so an empty list may be returned. 358 * </p> 359 */ 360 public List<DG1> getDG1All() throws HL7Exception { 361 return getAllAsList("DG1", DG1.class); 362 } 363 364 /** 365 * Inserts a specific repetition of DG1 (Diagnosis) 366 * @see AbstractGroup#insertRepetition(Structure, int) 367 */ 368 public void insertDG1(DG1 structure, int rep) throws HL7Exception { 369 super.insertRepetition( "DG1", structure, rep); 370 } 371 372 373 /** 374 * Inserts a specific repetition of DG1 (Diagnosis) 375 * @see AbstractGroup#insertRepetition(Structure, int) 376 */ 377 public DG1 insertDG1(int rep) throws HL7Exception { 378 return (DG1)super.insertRepetition("DG1", rep); 379 } 380 381 382 /** 383 * Removes a specific repetition of DG1 (Diagnosis) 384 * @see AbstractGroup#removeRepetition(String, int) 385 */ 386 public DG1 removeDG1(int rep) throws HL7Exception { 387 return (DG1)super.removeRepetition("DG1", rep); 388 } 389 390 391 392 /** 393 * Returns 394 * the first repetition of 395 * DRG (Diagnosis Related Group) - creates it if necessary 396 */ 397 public DRG getDRG() { 398 return getTyped("DRG", DRG.class); 399 } 400 401 402 /** 403 * Returns a specific repetition of 404 * DRG (Diagnosis Related Group) - creates it if necessary 405 * 406 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 407 * @throws HL7Exception if the repetition requested is more than one 408 * greater than the number of existing repetitions. 409 */ 410 public DRG getDRG(int rep) { 411 return getTyped("DRG", rep, DRG.class); 412 } 413 414 /** 415 * Returns the number of existing repetitions of DRG 416 */ 417 public int getDRGReps() { 418 return getReps("DRG"); 419 } 420 421 /** 422 * <p> 423 * Returns a non-modifiable List containing all current existing repetitions of DRG. 424 * <p> 425 * <p> 426 * Note that unlike {@link #getDRG()}, this method will not create any reps 427 * if none are already present, so an empty list may be returned. 428 * </p> 429 */ 430 public List<DRG> getDRGAll() throws HL7Exception { 431 return getAllAsList("DRG", DRG.class); 432 } 433 434 /** 435 * Inserts a specific repetition of DRG (Diagnosis Related Group) 436 * @see AbstractGroup#insertRepetition(Structure, int) 437 */ 438 public void insertDRG(DRG structure, int rep) throws HL7Exception { 439 super.insertRepetition( "DRG", structure, rep); 440 } 441 442 443 /** 444 * Inserts a specific repetition of DRG (Diagnosis Related Group) 445 * @see AbstractGroup#insertRepetition(Structure, int) 446 */ 447 public DRG insertDRG(int rep) throws HL7Exception { 448 return (DRG)super.insertRepetition("DRG", rep); 449 } 450 451 452 /** 453 * Removes a specific repetition of DRG (Diagnosis Related Group) 454 * @see AbstractGroup#removeRepetition(String, int) 455 */ 456 public DRG removeDRG(int rep) throws HL7Exception { 457 return (DRG)super.removeRepetition("DRG", rep); 458 } 459 460 461 462 /** 463 * Returns 464 * the first repetition of 465 * AL1 (Patient Allergy Information) - creates it if necessary 466 */ 467 public AL1 getAL1() { 468 return getTyped("AL1", AL1.class); 469 } 470 471 472 /** 473 * Returns a specific repetition of 474 * AL1 (Patient Allergy Information) - creates it if necessary 475 * 476 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 477 * @throws HL7Exception if the repetition requested is more than one 478 * greater than the number of existing repetitions. 479 */ 480 public AL1 getAL1(int rep) { 481 return getTyped("AL1", rep, AL1.class); 482 } 483 484 /** 485 * Returns the number of existing repetitions of AL1 486 */ 487 public int getAL1Reps() { 488 return getReps("AL1"); 489 } 490 491 /** 492 * <p> 493 * Returns a non-modifiable List containing all current existing repetitions of AL1. 494 * <p> 495 * <p> 496 * Note that unlike {@link #getAL1()}, this method will not create any reps 497 * if none are already present, so an empty list may be returned. 498 * </p> 499 */ 500 public List<AL1> getAL1All() throws HL7Exception { 501 return getAllAsList("AL1", AL1.class); 502 } 503 504 /** 505 * Inserts a specific repetition of AL1 (Patient Allergy Information) 506 * @see AbstractGroup#insertRepetition(Structure, int) 507 */ 508 public void insertAL1(AL1 structure, int rep) throws HL7Exception { 509 super.insertRepetition( "AL1", structure, rep); 510 } 511 512 513 /** 514 * Inserts a specific repetition of AL1 (Patient Allergy Information) 515 * @see AbstractGroup#insertRepetition(Structure, int) 516 */ 517 public AL1 insertAL1(int rep) throws HL7Exception { 518 return (AL1)super.insertRepetition("AL1", rep); 519 } 520 521 522 /** 523 * Removes a specific repetition of AL1 (Patient Allergy Information) 524 * @see AbstractGroup#removeRepetition(String, int) 525 */ 526 public AL1 removeAL1(int rep) throws HL7Exception { 527 return (AL1)super.removeRepetition("AL1", rep); 528 } 529 530 531 532 /** 533 * Returns 534 * the first repetition of 535 * PROCEDURE (a Group object) - creates it if necessary 536 */ 537 public RRI_I12_PROCEDURE getPROCEDURE() { 538 return getTyped("PROCEDURE", RRI_I12_PROCEDURE.class); 539 } 540 541 542 /** 543 * Returns a specific repetition of 544 * PROCEDURE (a Group object) - creates it if necessary 545 * 546 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 547 * @throws HL7Exception if the repetition requested is more than one 548 * greater than the number of existing repetitions. 549 */ 550 public RRI_I12_PROCEDURE getPROCEDURE(int rep) { 551 return getTyped("PROCEDURE", rep, RRI_I12_PROCEDURE.class); 552 } 553 554 /** 555 * Returns the number of existing repetitions of PROCEDURE 556 */ 557 public int getPROCEDUREReps() { 558 return getReps("PROCEDURE"); 559 } 560 561 /** 562 * <p> 563 * Returns a non-modifiable List containing all current existing repetitions of PROCEDURE. 564 * <p> 565 * <p> 566 * Note that unlike {@link #getPROCEDURE()}, this method will not create any reps 567 * if none are already present, so an empty list may be returned. 568 * </p> 569 */ 570 public List<RRI_I12_PROCEDURE> getPROCEDUREAll() throws HL7Exception { 571 return getAllAsList("PROCEDURE", RRI_I12_PROCEDURE.class); 572 } 573 574 /** 575 * Inserts a specific repetition of PROCEDURE (a Group object) 576 * @see AbstractGroup#insertRepetition(Structure, int) 577 */ 578 public void insertPROCEDURE(RRI_I12_PROCEDURE structure, int rep) throws HL7Exception { 579 super.insertRepetition( "PROCEDURE", structure, rep); 580 } 581 582 583 /** 584 * Inserts a specific repetition of PROCEDURE (a Group object) 585 * @see AbstractGroup#insertRepetition(Structure, int) 586 */ 587 public RRI_I12_PROCEDURE insertPROCEDURE(int rep) throws HL7Exception { 588 return (RRI_I12_PROCEDURE)super.insertRepetition("PROCEDURE", rep); 589 } 590 591 592 /** 593 * Removes a specific repetition of PROCEDURE (a Group object) 594 * @see AbstractGroup#removeRepetition(String, int) 595 */ 596 public RRI_I12_PROCEDURE removePROCEDURE(int rep) throws HL7Exception { 597 return (RRI_I12_PROCEDURE)super.removeRepetition("PROCEDURE", rep); 598 } 599 600 601 602 /** 603 * Returns 604 * the first repetition of 605 * OBSERVATION (a Group object) - creates it if necessary 606 */ 607 public RRI_I12_OBSERVATION getOBSERVATION() { 608 return getTyped("OBSERVATION", RRI_I12_OBSERVATION.class); 609 } 610 611 612 /** 613 * Returns a specific repetition of 614 * OBSERVATION (a Group object) - creates it if necessary 615 * 616 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 617 * @throws HL7Exception if the repetition requested is more than one 618 * greater than the number of existing repetitions. 619 */ 620 public RRI_I12_OBSERVATION getOBSERVATION(int rep) { 621 return getTyped("OBSERVATION", rep, RRI_I12_OBSERVATION.class); 622 } 623 624 /** 625 * Returns the number of existing repetitions of OBSERVATION 626 */ 627 public int getOBSERVATIONReps() { 628 return getReps("OBSERVATION"); 629 } 630 631 /** 632 * <p> 633 * Returns a non-modifiable List containing all current existing repetitions of OBSERVATION. 634 * <p> 635 * <p> 636 * Note that unlike {@link #getOBSERVATION()}, this method will not create any reps 637 * if none are already present, so an empty list may be returned. 638 * </p> 639 */ 640 public List<RRI_I12_OBSERVATION> getOBSERVATIONAll() throws HL7Exception { 641 return getAllAsList("OBSERVATION", RRI_I12_OBSERVATION.class); 642 } 643 644 /** 645 * Inserts a specific repetition of OBSERVATION (a Group object) 646 * @see AbstractGroup#insertRepetition(Structure, int) 647 */ 648 public void insertOBSERVATION(RRI_I12_OBSERVATION structure, int rep) throws HL7Exception { 649 super.insertRepetition( "OBSERVATION", structure, rep); 650 } 651 652 653 /** 654 * Inserts a specific repetition of OBSERVATION (a Group object) 655 * @see AbstractGroup#insertRepetition(Structure, int) 656 */ 657 public RRI_I12_OBSERVATION insertOBSERVATION(int rep) throws HL7Exception { 658 return (RRI_I12_OBSERVATION)super.insertRepetition("OBSERVATION", rep); 659 } 660 661 662 /** 663 * Removes a specific repetition of OBSERVATION (a Group object) 664 * @see AbstractGroup#removeRepetition(String, int) 665 */ 666 public RRI_I12_OBSERVATION removeOBSERVATION(int rep) throws HL7Exception { 667 return (RRI_I12_OBSERVATION)super.removeRepetition("OBSERVATION", rep); 668 } 669 670 671 672 /** 673 * Returns 674 * PATIENT_VISIT (a Group object) - creates it if necessary 675 */ 676 public RRI_I12_PATIENT_VISIT getPATIENT_VISIT() { 677 return getTyped("PATIENT_VISIT", RRI_I12_PATIENT_VISIT.class); 678 } 679 680 681 682 683 /** 684 * Returns 685 * the first repetition of 686 * NTE (Notes and Comments) - creates it if necessary 687 */ 688 public NTE getNTE() { 689 return getTyped("NTE", NTE.class); 690 } 691 692 693 /** 694 * Returns a specific repetition of 695 * NTE (Notes and Comments) - creates it if necessary 696 * 697 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 698 * @throws HL7Exception if the repetition requested is more than one 699 * greater than the number of existing repetitions. 700 */ 701 public NTE getNTE(int rep) { 702 return getTyped("NTE", rep, NTE.class); 703 } 704 705 /** 706 * Returns the number of existing repetitions of NTE 707 */ 708 public int getNTEReps() { 709 return getReps("NTE"); 710 } 711 712 /** 713 * <p> 714 * Returns a non-modifiable List containing all current existing repetitions of NTE. 715 * <p> 716 * <p> 717 * Note that unlike {@link #getNTE()}, this method will not create any reps 718 * if none are already present, so an empty list may be returned. 719 * </p> 720 */ 721 public List<NTE> getNTEAll() throws HL7Exception { 722 return getAllAsList("NTE", NTE.class); 723 } 724 725 /** 726 * Inserts a specific repetition of NTE (Notes and Comments) 727 * @see AbstractGroup#insertRepetition(Structure, int) 728 */ 729 public void insertNTE(NTE structure, int rep) throws HL7Exception { 730 super.insertRepetition( "NTE", structure, rep); 731 } 732 733 734 /** 735 * Inserts a specific repetition of NTE (Notes and Comments) 736 * @see AbstractGroup#insertRepetition(Structure, int) 737 */ 738 public NTE insertNTE(int rep) throws HL7Exception { 739 return (NTE)super.insertRepetition("NTE", rep); 740 } 741 742 743 /** 744 * Removes a specific repetition of NTE (Notes and Comments) 745 * @see AbstractGroup#removeRepetition(String, int) 746 */ 747 public NTE removeNTE(int rep) throws HL7Exception { 748 return (NTE)super.removeRepetition("NTE", rep); 749 } 750 751 752 753} 754