1 /* 2 * This class is an auto-generated source file for a HAPI 3 * HL7 v2.x standard structure class. 4 * 5 * For more information, visit: http://hl7api.sourceforge.net/ 6 * 7 * The contents of this file are subject to the Mozilla Public License Version 1.1 8 * (the "License"); you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 10 * Software distributed under the License is distributed on an "AS IS" basis, 11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 12 * specific language governing rights and limitations under the License. 13 * 14 * The Original Code is "[file_name]". Description: 15 * "[one_line_description]" 16 * 17 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 18 * 2012. All Rights Reserved. 19 * 20 * Contributor(s): ______________________________________. 21 * 22 * Alternatively, the contents of this file may be used under the terms of the 23 * GNU General Public License (the "GPL"), in which case the provisions of the GPL are 24 * applicable instead of those above. If you wish to allow use of your version of this 25 * file only under the terms of the GPL and not to allow others to use your version 26 * of this file under the MPL, indicate your decision by deleting the provisions above 27 * and replace them with the notice and other provisions required by the GPL License. 28 * If you do not delete the provisions above, a recipient may use your version of 29 * this file under either the MPL or the GPL. 30 * 31 */ 32 33 34 package ca.uhn.hl7v2.model.v27.group; 35 36 import ca.uhn.hl7v2.model.v27.segment.*; 37 38 import ca.uhn.hl7v2.HL7Exception; 39 import ca.uhn.hl7v2.parser.ModelClassFactory; 40 import ca.uhn.hl7v2.model.*; 41 42 /** 43 * <p>Represents a RDE_O11_ORDER group structure (a Group object). 44 * A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together. 45 * This Group contains the following elements: 46 * </p> 47 * <ul> 48 * <li>1: ORC (Common Order) <b> </b></li> 49 * <li>2: RDE_O11_TIMING (a Group object) <b>optional repeating </b></li> 50 * <li>3: RDE_O11_ORDER_DETAIL (a Group object) <b>optional </b></li> 51 * <li>4: PRT (Participation Information) <b>optional repeating </b></li> 52 * <li>5: RXE (Pharmacy/Treatment Encoded Order) <b> </b></li> 53 * <li>6: PRT (Participation Information) <b>optional repeating </b></li> 54 * <li>7: NTE (Notes and Comments) <b>optional repeating </b></li> 55 * <li>8: RDE_O11_TIMING_ENCODED (a Group object) <b> repeating </b></li> 56 * <li>9: RXR (Pharmacy/Treatment Route) <b> repeating </b></li> 57 * <li>10: RXC (Pharmacy/Treatment Component Order) <b>optional repeating </b></li> 58 * <li>11: RDE_O11_OBSERVATION (a Group object) <b>optional repeating </b></li> 59 * <li>12: FT1 (Financial Transaction) <b>optional repeating </b></li> 60 * <li>13: BLG (Billing) <b>optional </b></li> 61 * <li>14: CTI (Clinical Trial Identification) <b>optional repeating </b></li> 62 * </ul> 63 */ 64 //@SuppressWarnings("unused") 65 public class RDE_O11_ORDER extends AbstractGroup { 66 67 /** 68 * Creates a new RDE_O11_ORDER group 69 */ 70 public RDE_O11_ORDER(Group parent, ModelClassFactory factory) { 71 super(parent, factory); 72 init(factory); 73 } 74 75 private void init(ModelClassFactory factory) { 76 try { 77 this.add(ORC.class, true, false, false); 78 this.add(RDE_O11_TIMING.class, false, true, false); 79 this.add(RDE_O11_ORDER_DETAIL.class, false, false, false); 80 this.add(PRT.class, false, true, false); 81 this.add(RXE.class, true, false, false); 82 this.add(PRT.class, false, true, false); 83 this.add(NTE.class, false, true, false); 84 this.add(RDE_O11_TIMING_ENCODED.class, true, true, false); 85 this.add(RXR.class, true, true, false); 86 this.add(RXC.class, false, true, false); 87 this.add(RDE_O11_OBSERVATION.class, false, true, false); 88 this.add(FT1.class, false, true, false); 89 this.add(BLG.class, false, false, false); 90 this.add(CTI.class, false, true, false); 91 } catch(HL7Exception e) { 92 log.error("Unexpected error creating RDE_O11_ORDER - this is probably a bug in the source code generator.", e); 93 } 94 } 95 96 /** 97 * Returns "2.7" 98 */ 99 public String getVersion() { 100 return "2.7"; 101 } 102 103 104 105 /** 106 * Returns 107 * ORC (Common Order) - creates it if necessary 108 */ 109 public ORC getORC() { 110 ORC retVal = getTyped("ORC", ORC.class); 111 return retVal; 112 } 113 114 115 116 117 /** 118 * Returns 119 * the first repetition of 120 * TIMING (a Group object) - creates it if necessary 121 */ 122 public RDE_O11_TIMING getTIMING() { 123 RDE_O11_TIMING retVal = getTyped("TIMING", RDE_O11_TIMING.class); 124 return retVal; 125 } 126 127 128 /** 129 * Returns a specific repetition of 130 * TIMING (a Group object) - creates it if necessary 131 * 132 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 133 * @throws HL7Exception if the repetition requested is more than one 134 * greater than the number of existing repetitions. 135 */ 136 public RDE_O11_TIMING getTIMING(int rep) { 137 RDE_O11_TIMING retVal = getTyped("TIMING", rep, RDE_O11_TIMING.class); 138 return retVal; 139 } 140 141 /** 142 * Returns the number of existing repetitions of TIMING 143 */ 144 public int getTIMINGReps() { 145 return getReps("TIMING"); 146 } 147 148 /** 149 * <p> 150 * Returns a non-modifiable List containing all current existing repetitions of TIMING. 151 * <p> 152 * <p> 153 * Note that unlike {@link #getTIMING()}, this method will not create any reps 154 * if none are already present, so an empty list may be returned. 155 * </p> 156 */ 157 public java.util.List<RDE_O11_TIMING> getTIMINGAll() throws HL7Exception { 158 return getAllAsList("TIMING", RDE_O11_TIMING.class); 159 } 160 161 /** 162 * Inserts a specific repetition of TIMING (a Group object) 163 * @see AbstractGroup#insertRepetition(Structure, int) 164 */ 165 public void insertTIMING(RDE_O11_TIMING structure, int rep) throws HL7Exception { 166 super.insertRepetition("TIMING", structure, rep); 167 } 168 169 170 /** 171 * Inserts a specific repetition of TIMING (a Group object) 172 * @see AbstractGroup#insertRepetition(Structure, int) 173 */ 174 public RDE_O11_TIMING insertTIMING(int rep) throws HL7Exception { 175 return (RDE_O11_TIMING)super.insertRepetition("TIMING", rep); 176 } 177 178 179 /** 180 * Removes a specific repetition of TIMING (a Group object) 181 * @see AbstractGroup#removeRepetition(String, int) 182 */ 183 public RDE_O11_TIMING removeTIMING(int rep) throws HL7Exception { 184 return (RDE_O11_TIMING)super.removeRepetition("TIMING", rep); 185 } 186 187 188 189 /** 190 * Returns 191 * ORDER_DETAIL (a Group object) - creates it if necessary 192 */ 193 public RDE_O11_ORDER_DETAIL getORDER_DETAIL() { 194 RDE_O11_ORDER_DETAIL retVal = getTyped("ORDER_DETAIL", RDE_O11_ORDER_DETAIL.class); 195 return retVal; 196 } 197 198 199 200 201 /** 202 * Returns 203 * the first repetition of 204 * PRT (Participation Information) - creates it if necessary 205 */ 206 public PRT getPRT() { 207 PRT retVal = getTyped("PRT", PRT.class); 208 return retVal; 209 } 210 211 212 /** 213 * Returns a specific repetition of 214 * PRT (Participation Information) - creates it if necessary 215 * 216 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 217 * @throws HL7Exception if the repetition requested is more than one 218 * greater than the number of existing repetitions. 219 */ 220 public PRT getPRT(int rep) { 221 PRT retVal = getTyped("PRT", rep, PRT.class); 222 return retVal; 223 } 224 225 /** 226 * Returns the number of existing repetitions of PRT 227 */ 228 public int getPRTReps() { 229 return getReps("PRT"); 230 } 231 232 /** 233 * <p> 234 * Returns a non-modifiable List containing all current existing repetitions of PRT. 235 * <p> 236 * <p> 237 * Note that unlike {@link #getPRT()}, this method will not create any reps 238 * if none are already present, so an empty list may be returned. 239 * </p> 240 */ 241 public java.util.List<PRT> getPRTAll() throws HL7Exception { 242 return getAllAsList("PRT", PRT.class); 243 } 244 245 /** 246 * Inserts a specific repetition of PRT (Participation Information) 247 * @see AbstractGroup#insertRepetition(Structure, int) 248 */ 249 public void insertPRT(PRT structure, int rep) throws HL7Exception { 250 super.insertRepetition("PRT", structure, rep); 251 } 252 253 254 /** 255 * Inserts a specific repetition of PRT (Participation Information) 256 * @see AbstractGroup#insertRepetition(Structure, int) 257 */ 258 public PRT insertPRT(int rep) throws HL7Exception { 259 return (PRT)super.insertRepetition("PRT", rep); 260 } 261 262 263 /** 264 * Removes a specific repetition of PRT (Participation Information) 265 * @see AbstractGroup#removeRepetition(String, int) 266 */ 267 public PRT removePRT(int rep) throws HL7Exception { 268 return (PRT)super.removeRepetition("PRT", rep); 269 } 270 271 272 273 /** 274 * Returns 275 * RXE (Pharmacy/Treatment Encoded Order) - creates it if necessary 276 */ 277 public RXE getRXE() { 278 RXE retVal = getTyped("RXE", RXE.class); 279 return retVal; 280 } 281 282 283 284 285 /** 286 * Returns 287 * the first repetition of 288 * PRT2 (Participation Information) - creates it if necessary 289 */ 290 public PRT getPRT2() { 291 PRT retVal = getTyped("PRT2", PRT.class); 292 return retVal; 293 } 294 295 296 /** 297 * Returns a specific repetition of 298 * PRT (Participation Information) - creates it if necessary 299 * 300 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 301 * @throws HL7Exception if the repetition requested is more than one 302 * greater than the number of existing repetitions. 303 */ 304 public PRT getPRT2(int rep) { 305 PRT retVal = getTyped("PRT2", rep, PRT.class); 306 return retVal; 307 } 308 309 /** 310 * Returns the number of existing repetitions of PRT2 311 */ 312 public int getPRT2Reps() { 313 return getReps("PRT2"); 314 } 315 316 /** 317 * <p> 318 * Returns a non-modifiable List containing all current existing repetitions of PRT2. 319 * <p> 320 * <p> 321 * Note that unlike {@link #getPRT2()}, this method will not create any reps 322 * if none are already present, so an empty list may be returned. 323 * </p> 324 */ 325 public java.util.List<PRT> getPRT2All() throws HL7Exception { 326 return getAllAsList("PRT2", PRT.class); 327 } 328 329 /** 330 * Inserts a specific repetition of PRT2 (Participation Information) 331 * @see AbstractGroup#insertRepetition(Structure, int) 332 */ 333 public void insertPRT2(PRT structure, int rep) throws HL7Exception { 334 super.insertRepetition("PRT2", structure, rep); 335 } 336 337 338 /** 339 * Inserts a specific repetition of PRT2 (Participation Information) 340 * @see AbstractGroup#insertRepetition(Structure, int) 341 */ 342 public PRT insertPRT2(int rep) throws HL7Exception { 343 return (PRT)super.insertRepetition("PRT2", rep); 344 } 345 346 347 /** 348 * Removes a specific repetition of PRT2 (Participation Information) 349 * @see AbstractGroup#removeRepetition(String, int) 350 */ 351 public PRT removePRT2(int rep) throws HL7Exception { 352 return (PRT)super.removeRepetition("PRT2", rep); 353 } 354 355 356 357 /** 358 * Returns 359 * the first repetition of 360 * NTE (Notes and Comments) - creates it if necessary 361 */ 362 public NTE getNTE() { 363 NTE retVal = getTyped("NTE", NTE.class); 364 return retVal; 365 } 366 367 368 /** 369 * Returns a specific repetition of 370 * NTE (Notes and Comments) - creates it if necessary 371 * 372 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 373 * @throws HL7Exception if the repetition requested is more than one 374 * greater than the number of existing repetitions. 375 */ 376 public NTE getNTE(int rep) { 377 NTE retVal = getTyped("NTE", rep, NTE.class); 378 return retVal; 379 } 380 381 /** 382 * Returns the number of existing repetitions of NTE 383 */ 384 public int getNTEReps() { 385 return getReps("NTE"); 386 } 387 388 /** 389 * <p> 390 * Returns a non-modifiable List containing all current existing repetitions of NTE. 391 * <p> 392 * <p> 393 * Note that unlike {@link #getNTE()}, this method will not create any reps 394 * if none are already present, so an empty list may be returned. 395 * </p> 396 */ 397 public java.util.List<NTE> getNTEAll() throws HL7Exception { 398 return getAllAsList("NTE", NTE.class); 399 } 400 401 /** 402 * Inserts a specific repetition of NTE (Notes and Comments) 403 * @see AbstractGroup#insertRepetition(Structure, int) 404 */ 405 public void insertNTE(NTE structure, int rep) throws HL7Exception { 406 super.insertRepetition("NTE", structure, rep); 407 } 408 409 410 /** 411 * Inserts a specific repetition of NTE (Notes and Comments) 412 * @see AbstractGroup#insertRepetition(Structure, int) 413 */ 414 public NTE insertNTE(int rep) throws HL7Exception { 415 return (NTE)super.insertRepetition("NTE", rep); 416 } 417 418 419 /** 420 * Removes a specific repetition of NTE (Notes and Comments) 421 * @see AbstractGroup#removeRepetition(String, int) 422 */ 423 public NTE removeNTE(int rep) throws HL7Exception { 424 return (NTE)super.removeRepetition("NTE", rep); 425 } 426 427 428 429 /** 430 * Returns 431 * the first repetition of 432 * TIMING_ENCODED (a Group object) - creates it if necessary 433 */ 434 public RDE_O11_TIMING_ENCODED getTIMING_ENCODED() { 435 RDE_O11_TIMING_ENCODED retVal = getTyped("TIMING_ENCODED", RDE_O11_TIMING_ENCODED.class); 436 return retVal; 437 } 438 439 440 /** 441 * Returns a specific repetition of 442 * TIMING_ENCODED (a Group object) - creates it if necessary 443 * 444 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 445 * @throws HL7Exception if the repetition requested is more than one 446 * greater than the number of existing repetitions. 447 */ 448 public RDE_O11_TIMING_ENCODED getTIMING_ENCODED(int rep) { 449 RDE_O11_TIMING_ENCODED retVal = getTyped("TIMING_ENCODED", rep, RDE_O11_TIMING_ENCODED.class); 450 return retVal; 451 } 452 453 /** 454 * Returns the number of existing repetitions of TIMING_ENCODED 455 */ 456 public int getTIMING_ENCODEDReps() { 457 return getReps("TIMING_ENCODED"); 458 } 459 460 /** 461 * <p> 462 * Returns a non-modifiable List containing all current existing repetitions of TIMING_ENCODED. 463 * <p> 464 * <p> 465 * Note that unlike {@link #getTIMING_ENCODED()}, this method will not create any reps 466 * if none are already present, so an empty list may be returned. 467 * </p> 468 */ 469 public java.util.List<RDE_O11_TIMING_ENCODED> getTIMING_ENCODEDAll() throws HL7Exception { 470 return getAllAsList("TIMING_ENCODED", RDE_O11_TIMING_ENCODED.class); 471 } 472 473 /** 474 * Inserts a specific repetition of TIMING_ENCODED (a Group object) 475 * @see AbstractGroup#insertRepetition(Structure, int) 476 */ 477 public void insertTIMING_ENCODED(RDE_O11_TIMING_ENCODED structure, int rep) throws HL7Exception { 478 super.insertRepetition("TIMING_ENCODED", structure, rep); 479 } 480 481 482 /** 483 * Inserts a specific repetition of TIMING_ENCODED (a Group object) 484 * @see AbstractGroup#insertRepetition(Structure, int) 485 */ 486 public RDE_O11_TIMING_ENCODED insertTIMING_ENCODED(int rep) throws HL7Exception { 487 return (RDE_O11_TIMING_ENCODED)super.insertRepetition("TIMING_ENCODED", rep); 488 } 489 490 491 /** 492 * Removes a specific repetition of TIMING_ENCODED (a Group object) 493 * @see AbstractGroup#removeRepetition(String, int) 494 */ 495 public RDE_O11_TIMING_ENCODED removeTIMING_ENCODED(int rep) throws HL7Exception { 496 return (RDE_O11_TIMING_ENCODED)super.removeRepetition("TIMING_ENCODED", rep); 497 } 498 499 500 501 /** 502 * Returns 503 * the first repetition of 504 * RXR (Pharmacy/Treatment Route) - creates it if necessary 505 */ 506 public RXR getRXR() { 507 RXR retVal = getTyped("RXR", RXR.class); 508 return retVal; 509 } 510 511 512 /** 513 * Returns a specific repetition of 514 * RXR (Pharmacy/Treatment Route) - creates it if necessary 515 * 516 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 517 * @throws HL7Exception if the repetition requested is more than one 518 * greater than the number of existing repetitions. 519 */ 520 public RXR getRXR(int rep) { 521 RXR retVal = getTyped("RXR", rep, RXR.class); 522 return retVal; 523 } 524 525 /** 526 * Returns the number of existing repetitions of RXR 527 */ 528 public int getRXRReps() { 529 return getReps("RXR"); 530 } 531 532 /** 533 * <p> 534 * Returns a non-modifiable List containing all current existing repetitions of RXR. 535 * <p> 536 * <p> 537 * Note that unlike {@link #getRXR()}, this method will not create any reps 538 * if none are already present, so an empty list may be returned. 539 * </p> 540 */ 541 public java.util.List<RXR> getRXRAll() throws HL7Exception { 542 return getAllAsList("RXR", RXR.class); 543 } 544 545 /** 546 * Inserts a specific repetition of RXR (Pharmacy/Treatment Route) 547 * @see AbstractGroup#insertRepetition(Structure, int) 548 */ 549 public void insertRXR(RXR structure, int rep) throws HL7Exception { 550 super.insertRepetition("RXR", structure, rep); 551 } 552 553 554 /** 555 * Inserts a specific repetition of RXR (Pharmacy/Treatment Route) 556 * @see AbstractGroup#insertRepetition(Structure, int) 557 */ 558 public RXR insertRXR(int rep) throws HL7Exception { 559 return (RXR)super.insertRepetition("RXR", rep); 560 } 561 562 563 /** 564 * Removes a specific repetition of RXR (Pharmacy/Treatment Route) 565 * @see AbstractGroup#removeRepetition(String, int) 566 */ 567 public RXR removeRXR(int rep) throws HL7Exception { 568 return (RXR)super.removeRepetition("RXR", rep); 569 } 570 571 572 573 /** 574 * Returns 575 * the first repetition of 576 * RXC (Pharmacy/Treatment Component Order) - creates it if necessary 577 */ 578 public RXC getRXC() { 579 RXC retVal = getTyped("RXC", RXC.class); 580 return retVal; 581 } 582 583 584 /** 585 * Returns a specific repetition of 586 * RXC (Pharmacy/Treatment Component Order) - creates it if necessary 587 * 588 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 589 * @throws HL7Exception if the repetition requested is more than one 590 * greater than the number of existing repetitions. 591 */ 592 public RXC getRXC(int rep) { 593 RXC retVal = getTyped("RXC", rep, RXC.class); 594 return retVal; 595 } 596 597 /** 598 * Returns the number of existing repetitions of RXC 599 */ 600 public int getRXCReps() { 601 return getReps("RXC"); 602 } 603 604 /** 605 * <p> 606 * Returns a non-modifiable List containing all current existing repetitions of RXC. 607 * <p> 608 * <p> 609 * Note that unlike {@link #getRXC()}, this method will not create any reps 610 * if none are already present, so an empty list may be returned. 611 * </p> 612 */ 613 public java.util.List<RXC> getRXCAll() throws HL7Exception { 614 return getAllAsList("RXC", RXC.class); 615 } 616 617 /** 618 * Inserts a specific repetition of RXC (Pharmacy/Treatment Component Order) 619 * @see AbstractGroup#insertRepetition(Structure, int) 620 */ 621 public void insertRXC(RXC structure, int rep) throws HL7Exception { 622 super.insertRepetition("RXC", structure, rep); 623 } 624 625 626 /** 627 * Inserts a specific repetition of RXC (Pharmacy/Treatment Component Order) 628 * @see AbstractGroup#insertRepetition(Structure, int) 629 */ 630 public RXC insertRXC(int rep) throws HL7Exception { 631 return (RXC)super.insertRepetition("RXC", rep); 632 } 633 634 635 /** 636 * Removes a specific repetition of RXC (Pharmacy/Treatment Component Order) 637 * @see AbstractGroup#removeRepetition(String, int) 638 */ 639 public RXC removeRXC(int rep) throws HL7Exception { 640 return (RXC)super.removeRepetition("RXC", rep); 641 } 642 643 644 645 /** 646 * Returns 647 * the first repetition of 648 * OBSERVATION (a Group object) - creates it if necessary 649 */ 650 public RDE_O11_OBSERVATION getOBSERVATION() { 651 RDE_O11_OBSERVATION retVal = getTyped("OBSERVATION", RDE_O11_OBSERVATION.class); 652 return retVal; 653 } 654 655 656 /** 657 * Returns a specific repetition of 658 * OBSERVATION (a Group object) - creates it if necessary 659 * 660 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 661 * @throws HL7Exception if the repetition requested is more than one 662 * greater than the number of existing repetitions. 663 */ 664 public RDE_O11_OBSERVATION getOBSERVATION(int rep) { 665 RDE_O11_OBSERVATION retVal = getTyped("OBSERVATION", rep, RDE_O11_OBSERVATION.class); 666 return retVal; 667 } 668 669 /** 670 * Returns the number of existing repetitions of OBSERVATION 671 */ 672 public int getOBSERVATIONReps() { 673 return getReps("OBSERVATION"); 674 } 675 676 /** 677 * <p> 678 * Returns a non-modifiable List containing all current existing repetitions of OBSERVATION. 679 * <p> 680 * <p> 681 * Note that unlike {@link #getOBSERVATION()}, this method will not create any reps 682 * if none are already present, so an empty list may be returned. 683 * </p> 684 */ 685 public java.util.List<RDE_O11_OBSERVATION> getOBSERVATIONAll() throws HL7Exception { 686 return getAllAsList("OBSERVATION", RDE_O11_OBSERVATION.class); 687 } 688 689 /** 690 * Inserts a specific repetition of OBSERVATION (a Group object) 691 * @see AbstractGroup#insertRepetition(Structure, int) 692 */ 693 public void insertOBSERVATION(RDE_O11_OBSERVATION structure, int rep) throws HL7Exception { 694 super.insertRepetition("OBSERVATION", structure, rep); 695 } 696 697 698 /** 699 * Inserts a specific repetition of OBSERVATION (a Group object) 700 * @see AbstractGroup#insertRepetition(Structure, int) 701 */ 702 public RDE_O11_OBSERVATION insertOBSERVATION(int rep) throws HL7Exception { 703 return (RDE_O11_OBSERVATION)super.insertRepetition("OBSERVATION", rep); 704 } 705 706 707 /** 708 * Removes a specific repetition of OBSERVATION (a Group object) 709 * @see AbstractGroup#removeRepetition(String, int) 710 */ 711 public RDE_O11_OBSERVATION removeOBSERVATION(int rep) throws HL7Exception { 712 return (RDE_O11_OBSERVATION)super.removeRepetition("OBSERVATION", rep); 713 } 714 715 716 717 /** 718 * Returns 719 * the first repetition of 720 * FT1 (Financial Transaction) - creates it if necessary 721 */ 722 public FT1 getFT1() { 723 FT1 retVal = getTyped("FT1", FT1.class); 724 return retVal; 725 } 726 727 728 /** 729 * Returns a specific repetition of 730 * FT1 (Financial Transaction) - creates it if necessary 731 * 732 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 733 * @throws HL7Exception if the repetition requested is more than one 734 * greater than the number of existing repetitions. 735 */ 736 public FT1 getFT1(int rep) { 737 FT1 retVal = getTyped("FT1", rep, FT1.class); 738 return retVal; 739 } 740 741 /** 742 * Returns the number of existing repetitions of FT1 743 */ 744 public int getFT1Reps() { 745 return getReps("FT1"); 746 } 747 748 /** 749 * <p> 750 * Returns a non-modifiable List containing all current existing repetitions of FT1. 751 * <p> 752 * <p> 753 * Note that unlike {@link #getFT1()}, this method will not create any reps 754 * if none are already present, so an empty list may be returned. 755 * </p> 756 */ 757 public java.util.List<FT1> getFT1All() throws HL7Exception { 758 return getAllAsList("FT1", FT1.class); 759 } 760 761 /** 762 * Inserts a specific repetition of FT1 (Financial Transaction) 763 * @see AbstractGroup#insertRepetition(Structure, int) 764 */ 765 public void insertFT1(FT1 structure, int rep) throws HL7Exception { 766 super.insertRepetition("FT1", structure, rep); 767 } 768 769 770 /** 771 * Inserts a specific repetition of FT1 (Financial Transaction) 772 * @see AbstractGroup#insertRepetition(Structure, int) 773 */ 774 public FT1 insertFT1(int rep) throws HL7Exception { 775 return (FT1)super.insertRepetition("FT1", rep); 776 } 777 778 779 /** 780 * Removes a specific repetition of FT1 (Financial Transaction) 781 * @see AbstractGroup#removeRepetition(String, int) 782 */ 783 public FT1 removeFT1(int rep) throws HL7Exception { 784 return (FT1)super.removeRepetition("FT1", rep); 785 } 786 787 788 789 /** 790 * Returns 791 * BLG (Billing) - creates it if necessary 792 */ 793 public BLG getBLG() { 794 BLG retVal = getTyped("BLG", BLG.class); 795 return retVal; 796 } 797 798 799 800 801 /** 802 * Returns 803 * the first repetition of 804 * CTI (Clinical Trial Identification) - creates it if necessary 805 */ 806 public CTI getCTI() { 807 CTI retVal = getTyped("CTI", CTI.class); 808 return retVal; 809 } 810 811 812 /** 813 * Returns a specific repetition of 814 * CTI (Clinical Trial Identification) - creates it if necessary 815 * 816 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 817 * @throws HL7Exception if the repetition requested is more than one 818 * greater than the number of existing repetitions. 819 */ 820 public CTI getCTI(int rep) { 821 CTI retVal = getTyped("CTI", rep, CTI.class); 822 return retVal; 823 } 824 825 /** 826 * Returns the number of existing repetitions of CTI 827 */ 828 public int getCTIReps() { 829 return getReps("CTI"); 830 } 831 832 /** 833 * <p> 834 * Returns a non-modifiable List containing all current existing repetitions of CTI. 835 * <p> 836 * <p> 837 * Note that unlike {@link #getCTI()}, this method will not create any reps 838 * if none are already present, so an empty list may be returned. 839 * </p> 840 */ 841 public java.util.List<CTI> getCTIAll() throws HL7Exception { 842 return getAllAsList("CTI", CTI.class); 843 } 844 845 /** 846 * Inserts a specific repetition of CTI (Clinical Trial Identification) 847 * @see AbstractGroup#insertRepetition(Structure, int) 848 */ 849 public void insertCTI(CTI structure, int rep) throws HL7Exception { 850 super.insertRepetition("CTI", structure, rep); 851 } 852 853 854 /** 855 * Inserts a specific repetition of CTI (Clinical Trial Identification) 856 * @see AbstractGroup#insertRepetition(Structure, int) 857 */ 858 public CTI insertCTI(int rep) throws HL7Exception { 859 return (CTI)super.insertRepetition("CTI", rep); 860 } 861 862 863 /** 864 * Removes a specific repetition of CTI (Clinical Trial Identification) 865 * @see AbstractGroup#removeRepetition(String, int) 866 */ 867 public CTI removeCTI(int rep) throws HL7Exception { 868 return (CTI)super.removeRepetition("CTI", rep); 869 } 870 871 872 873 } 874