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