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