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 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: UAC (User Authentication Credential Segment) <b>optional </b></li> 053 * <li>4: EVN (Event Type) <b> </b></li> 054 * <li>5: PID (Patient Identification) <b> </b></li> 055 * <li>6: PD1 (Patient Additional Demographic) <b>optional </b></li> 056 * <li>7: ARV (Access Restriction) <b>optional repeating</b></li> 057 * <li>8: ROL (Role) <b>optional repeating</b></li> 058 * <li>9: MRG (Merge Patient Information) <b>optional </b></li> 059 * <li>10: NK1 (Next of Kin / Associated Parties) <b>optional repeating</b></li> 060 * <li>11: PV1 (Patient Visit) <b> </b></li> 061 * <li>12: PV2 (Patient Visit - Additional Information) <b>optional </b></li> 062 * <li>13: ARV (Access Restriction) <b>optional repeating</b></li> 063 * <li>14: ROL (Role) <b>optional repeating</b></li> 064 * <li>15: DB1 (Disability) <b>optional repeating</b></li> 065 * <li>16: OBX (Observation/Result) <b>optional repeating</b></li> 066 * <li>17: AL1 (Patient Allergy Information) <b>optional repeating</b></li> 067 * <li>18: DG1 (Diagnosis) <b>optional repeating</b></li> 068 * <li>19: DRG (Diagnosis Related Group) <b>optional </b></li> 069 * <li>20: ADT_A06_PROCEDURE (a Group object) <b>optional repeating</b></li> 070 * <li>21: GT1 (Guarantor) <b>optional repeating</b></li> 071 * <li>22: ADT_A06_INSURANCE (a Group object) <b>optional repeating</b></li> 072 * <li>23: ACC (Accident) <b>optional </b></li> 073 * <li>24: UB1 (UB82) <b>optional </b></li> 074 * <li>25: UB2 (UB92 Data) <b>optional </b></li> 075 * </ul> 076 */ 077@SuppressWarnings("unused") 078public class ADT_A06 extends AbstractMessage { 079 080 /** 081 * Creates a new ADT_A06 message with DefaultModelClassFactory. 082 */ 083 public ADT_A06() { 084 this(new DefaultModelClassFactory()); 085 } 086 087 /** 088 * Creates a new ADT_A06 message with custom ModelClassFactory. 089 */ 090 public ADT_A06(ModelClassFactory factory) { 091 super(factory); 092 init(factory); 093 } 094 095 private void init(ModelClassFactory factory) { 096 try { 097 this.add(MSH.class, true, false); 098 this.add(SFT.class, false, true); 099 this.add(UAC.class, false, false); 100 this.add(EVN.class, true, false); 101 this.add(PID.class, true, false); 102 this.add(PD1.class, false, false); 103 this.add(ARV.class, false, true); 104 this.add(ROL.class, false, true); 105 this.add(MRG.class, false, false); 106 this.add(NK1.class, false, true); 107 this.add(PV1.class, true, false); 108 this.add(PV2.class, false, false); 109 this.add(ARV.class, false, true); 110 this.add(ROL.class, false, true); 111 this.add(DB1.class, false, true); 112 this.add(OBX.class, false, true); 113 this.add(AL1.class, false, true); 114 this.add(DG1.class, false, true); 115 this.add(DRG.class, false, false); 116 this.add(ADT_A06_PROCEDURE.class, false, true); 117 this.add(GT1.class, false, true); 118 this.add(ADT_A06_INSURANCE.class, false, true); 119 this.add(ACC.class, false, false); 120 this.add(UB1.class, false, false); 121 this.add(UB2.class, false, false); 122 } catch(HL7Exception e) { 123 log.error("Unexpected error creating ADT_A06 - this is probably a bug in the source code generator.", e); 124 } 125 } 126 127 /** 128 * Returns "2.6" 129 */ 130 public String getVersion() { 131 return "2.6"; 132 } 133 134 135 136 /** 137 * Returns 138 * MSH (Message Header) - creates it if necessary 139 */ 140 public MSH getMSH() { 141 return getTyped("MSH", MSH.class); 142 } 143 144 145 146 147 /** 148 * Returns 149 * the first repetition of 150 * SFT (Software Segment) - creates it if necessary 151 */ 152 public SFT getSFT() { 153 return getTyped("SFT", SFT.class); 154 } 155 156 157 /** 158 * Returns a specific repetition of 159 * SFT (Software Segment) - creates it if necessary 160 * 161 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 162 * @throws HL7Exception if the repetition requested is more than one 163 * greater than the number of existing repetitions. 164 */ 165 public SFT getSFT(int rep) { 166 return getTyped("SFT", rep, SFT.class); 167 } 168 169 /** 170 * Returns the number of existing repetitions of SFT 171 */ 172 public int getSFTReps() { 173 return getReps("SFT"); 174 } 175 176 /** 177 * <p> 178 * Returns a non-modifiable List containing all current existing repetitions of SFT. 179 * <p> 180 * <p> 181 * Note that unlike {@link #getSFT()}, this method will not create any reps 182 * if none are already present, so an empty list may be returned. 183 * </p> 184 */ 185 public List<SFT> getSFTAll() throws HL7Exception { 186 return getAllAsList("SFT", SFT.class); 187 } 188 189 /** 190 * Inserts a specific repetition of SFT (Software Segment) 191 * @see AbstractGroup#insertRepetition(Structure, int) 192 */ 193 public void insertSFT(SFT structure, int rep) throws HL7Exception { 194 super.insertRepetition( "SFT", structure, rep); 195 } 196 197 198 /** 199 * Inserts a specific repetition of SFT (Software Segment) 200 * @see AbstractGroup#insertRepetition(Structure, int) 201 */ 202 public SFT insertSFT(int rep) throws HL7Exception { 203 return (SFT)super.insertRepetition("SFT", rep); 204 } 205 206 207 /** 208 * Removes a specific repetition of SFT (Software Segment) 209 * @see AbstractGroup#removeRepetition(String, int) 210 */ 211 public SFT removeSFT(int rep) throws HL7Exception { 212 return (SFT)super.removeRepetition("SFT", rep); 213 } 214 215 216 217 /** 218 * Returns 219 * UAC (User Authentication Credential Segment) - creates it if necessary 220 */ 221 public UAC getUAC() { 222 return getTyped("UAC", UAC.class); 223 } 224 225 226 227 228 /** 229 * Returns 230 * EVN (Event Type) - creates it if necessary 231 */ 232 public EVN getEVN() { 233 return getTyped("EVN", EVN.class); 234 } 235 236 237 238 239 /** 240 * Returns 241 * PID (Patient Identification) - creates it if necessary 242 */ 243 public PID getPID() { 244 return getTyped("PID", PID.class); 245 } 246 247 248 249 250 /** 251 * Returns 252 * PD1 (Patient Additional Demographic) - creates it if necessary 253 */ 254 public PD1 getPD1() { 255 return getTyped("PD1", PD1.class); 256 } 257 258 259 260 261 /** 262 * Returns 263 * the first repetition of 264 * ARV (Access Restriction) - creates it if necessary 265 */ 266 public ARV getARV() { 267 return getTyped("ARV", ARV.class); 268 } 269 270 271 /** 272 * Returns a specific repetition of 273 * ARV (Access Restriction) - creates it if necessary 274 * 275 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 276 * @throws HL7Exception if the repetition requested is more than one 277 * greater than the number of existing repetitions. 278 */ 279 public ARV getARV(int rep) { 280 return getTyped("ARV", rep, ARV.class); 281 } 282 283 /** 284 * Returns the number of existing repetitions of ARV 285 */ 286 public int getARVReps() { 287 return getReps("ARV"); 288 } 289 290 /** 291 * <p> 292 * Returns a non-modifiable List containing all current existing repetitions of ARV. 293 * <p> 294 * <p> 295 * Note that unlike {@link #getARV()}, this method will not create any reps 296 * if none are already present, so an empty list may be returned. 297 * </p> 298 */ 299 public List<ARV> getARVAll() throws HL7Exception { 300 return getAllAsList("ARV", ARV.class); 301 } 302 303 /** 304 * Inserts a specific repetition of ARV (Access Restriction) 305 * @see AbstractGroup#insertRepetition(Structure, int) 306 */ 307 public void insertARV(ARV structure, int rep) throws HL7Exception { 308 super.insertRepetition( "ARV", structure, rep); 309 } 310 311 312 /** 313 * Inserts a specific repetition of ARV (Access Restriction) 314 * @see AbstractGroup#insertRepetition(Structure, int) 315 */ 316 public ARV insertARV(int rep) throws HL7Exception { 317 return (ARV)super.insertRepetition("ARV", rep); 318 } 319 320 321 /** 322 * Removes a specific repetition of ARV (Access Restriction) 323 * @see AbstractGroup#removeRepetition(String, int) 324 */ 325 public ARV removeARV(int rep) throws HL7Exception { 326 return (ARV)super.removeRepetition("ARV", rep); 327 } 328 329 330 331 /** 332 * Returns 333 * the first repetition of 334 * ROL (Role) - creates it if necessary 335 */ 336 public ROL getROL() { 337 return getTyped("ROL", ROL.class); 338 } 339 340 341 /** 342 * Returns a specific repetition of 343 * ROL (Role) - creates it if necessary 344 * 345 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 346 * @throws HL7Exception if the repetition requested is more than one 347 * greater than the number of existing repetitions. 348 */ 349 public ROL getROL(int rep) { 350 return getTyped("ROL", rep, ROL.class); 351 } 352 353 /** 354 * Returns the number of existing repetitions of ROL 355 */ 356 public int getROLReps() { 357 return getReps("ROL"); 358 } 359 360 /** 361 * <p> 362 * Returns a non-modifiable List containing all current existing repetitions of ROL. 363 * <p> 364 * <p> 365 * Note that unlike {@link #getROL()}, this method will not create any reps 366 * if none are already present, so an empty list may be returned. 367 * </p> 368 */ 369 public List<ROL> getROLAll() throws HL7Exception { 370 return getAllAsList("ROL", ROL.class); 371 } 372 373 /** 374 * Inserts a specific repetition of ROL (Role) 375 * @see AbstractGroup#insertRepetition(Structure, int) 376 */ 377 public void insertROL(ROL structure, int rep) throws HL7Exception { 378 super.insertRepetition( "ROL", structure, rep); 379 } 380 381 382 /** 383 * Inserts a specific repetition of ROL (Role) 384 * @see AbstractGroup#insertRepetition(Structure, int) 385 */ 386 public ROL insertROL(int rep) throws HL7Exception { 387 return (ROL)super.insertRepetition("ROL", rep); 388 } 389 390 391 /** 392 * Removes a specific repetition of ROL (Role) 393 * @see AbstractGroup#removeRepetition(String, int) 394 */ 395 public ROL removeROL(int rep) throws HL7Exception { 396 return (ROL)super.removeRepetition("ROL", rep); 397 } 398 399 400 401 /** 402 * Returns 403 * MRG (Merge Patient Information) - creates it if necessary 404 */ 405 public MRG getMRG() { 406 return getTyped("MRG", MRG.class); 407 } 408 409 410 411 412 /** 413 * Returns 414 * the first repetition of 415 * NK1 (Next of Kin / Associated Parties) - creates it if necessary 416 */ 417 public NK1 getNK1() { 418 return getTyped("NK1", NK1.class); 419 } 420 421 422 /** 423 * Returns a specific repetition of 424 * NK1 (Next of Kin / Associated Parties) - creates it if necessary 425 * 426 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 427 * @throws HL7Exception if the repetition requested is more than one 428 * greater than the number of existing repetitions. 429 */ 430 public NK1 getNK1(int rep) { 431 return getTyped("NK1", rep, NK1.class); 432 } 433 434 /** 435 * Returns the number of existing repetitions of NK1 436 */ 437 public int getNK1Reps() { 438 return getReps("NK1"); 439 } 440 441 /** 442 * <p> 443 * Returns a non-modifiable List containing all current existing repetitions of NK1. 444 * <p> 445 * <p> 446 * Note that unlike {@link #getNK1()}, this method will not create any reps 447 * if none are already present, so an empty list may be returned. 448 * </p> 449 */ 450 public List<NK1> getNK1All() throws HL7Exception { 451 return getAllAsList("NK1", NK1.class); 452 } 453 454 /** 455 * Inserts a specific repetition of NK1 (Next of Kin / Associated Parties) 456 * @see AbstractGroup#insertRepetition(Structure, int) 457 */ 458 public void insertNK1(NK1 structure, int rep) throws HL7Exception { 459 super.insertRepetition( "NK1", structure, rep); 460 } 461 462 463 /** 464 * Inserts a specific repetition of NK1 (Next of Kin / Associated Parties) 465 * @see AbstractGroup#insertRepetition(Structure, int) 466 */ 467 public NK1 insertNK1(int rep) throws HL7Exception { 468 return (NK1)super.insertRepetition("NK1", rep); 469 } 470 471 472 /** 473 * Removes a specific repetition of NK1 (Next of Kin / Associated Parties) 474 * @see AbstractGroup#removeRepetition(String, int) 475 */ 476 public NK1 removeNK1(int rep) throws HL7Exception { 477 return (NK1)super.removeRepetition("NK1", rep); 478 } 479 480 481 482 /** 483 * Returns 484 * PV1 (Patient Visit) - creates it if necessary 485 */ 486 public PV1 getPV1() { 487 return getTyped("PV1", PV1.class); 488 } 489 490 491 492 493 /** 494 * Returns 495 * PV2 (Patient Visit - Additional Information) - creates it if necessary 496 */ 497 public PV2 getPV2() { 498 return getTyped("PV2", PV2.class); 499 } 500 501 502 503 504 /** 505 * Returns 506 * the first repetition of 507 * ARV2 (Access Restriction) - creates it if necessary 508 */ 509 public ARV getARV2() { 510 return getTyped("ARV2", ARV.class); 511 } 512 513 514 /** 515 * Returns a specific repetition of 516 * ARV2 (Access Restriction) - creates it if necessary 517 * 518 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 519 * @throws HL7Exception if the repetition requested is more than one 520 * greater than the number of existing repetitions. 521 */ 522 public ARV getARV2(int rep) { 523 return getTyped("ARV2", rep, ARV.class); 524 } 525 526 /** 527 * Returns the number of existing repetitions of ARV2 528 */ 529 public int getARV2Reps() { 530 return getReps("ARV2"); 531 } 532 533 /** 534 * <p> 535 * Returns a non-modifiable List containing all current existing repetitions of ARV2. 536 * <p> 537 * <p> 538 * Note that unlike {@link #getARV2()}, this method will not create any reps 539 * if none are already present, so an empty list may be returned. 540 * </p> 541 */ 542 public List<ARV> getARV2All() throws HL7Exception { 543 return getAllAsList("ARV2", ARV.class); 544 } 545 546 /** 547 * Inserts a specific repetition of ARV2 (Access Restriction) 548 * @see AbstractGroup#insertRepetition(Structure, int) 549 */ 550 public void insertARV2(ARV structure, int rep) throws HL7Exception { 551 super.insertRepetition( "ARV2", structure, rep); 552 } 553 554 555 /** 556 * Inserts a specific repetition of ARV2 (Access Restriction) 557 * @see AbstractGroup#insertRepetition(Structure, int) 558 */ 559 public ARV insertARV2(int rep) throws HL7Exception { 560 return (ARV)super.insertRepetition("ARV2", rep); 561 } 562 563 564 /** 565 * Removes a specific repetition of ARV2 (Access Restriction) 566 * @see AbstractGroup#removeRepetition(String, int) 567 */ 568 public ARV removeARV2(int rep) throws HL7Exception { 569 return (ARV)super.removeRepetition("ARV2", rep); 570 } 571 572 573 574 /** 575 * Returns 576 * the first repetition of 577 * ROL2 (Role) - creates it if necessary 578 */ 579 public ROL getROL2() { 580 return getTyped("ROL2", ROL.class); 581 } 582 583 584 /** 585 * Returns a specific repetition of 586 * ROL2 (Role) - 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 ROL getROL2(int rep) { 593 return getTyped("ROL2", rep, ROL.class); 594 } 595 596 /** 597 * Returns the number of existing repetitions of ROL2 598 */ 599 public int getROL2Reps() { 600 return getReps("ROL2"); 601 } 602 603 /** 604 * <p> 605 * Returns a non-modifiable List containing all current existing repetitions of ROL2. 606 * <p> 607 * <p> 608 * Note that unlike {@link #getROL2()}, this method will not create any reps 609 * if none are already present, so an empty list may be returned. 610 * </p> 611 */ 612 public List<ROL> getROL2All() throws HL7Exception { 613 return getAllAsList("ROL2", ROL.class); 614 } 615 616 /** 617 * Inserts a specific repetition of ROL2 (Role) 618 * @see AbstractGroup#insertRepetition(Structure, int) 619 */ 620 public void insertROL2(ROL structure, int rep) throws HL7Exception { 621 super.insertRepetition( "ROL2", structure, rep); 622 } 623 624 625 /** 626 * Inserts a specific repetition of ROL2 (Role) 627 * @see AbstractGroup#insertRepetition(Structure, int) 628 */ 629 public ROL insertROL2(int rep) throws HL7Exception { 630 return (ROL)super.insertRepetition("ROL2", rep); 631 } 632 633 634 /** 635 * Removes a specific repetition of ROL2 (Role) 636 * @see AbstractGroup#removeRepetition(String, int) 637 */ 638 public ROL removeROL2(int rep) throws HL7Exception { 639 return (ROL)super.removeRepetition("ROL2", rep); 640 } 641 642 643 644 /** 645 * Returns 646 * the first repetition of 647 * DB1 (Disability) - creates it if necessary 648 */ 649 public DB1 getDB1() { 650 return getTyped("DB1", DB1.class); 651 } 652 653 654 /** 655 * Returns a specific repetition of 656 * DB1 (Disability) - creates it if necessary 657 * 658 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 659 * @throws HL7Exception if the repetition requested is more than one 660 * greater than the number of existing repetitions. 661 */ 662 public DB1 getDB1(int rep) { 663 return getTyped("DB1", rep, DB1.class); 664 } 665 666 /** 667 * Returns the number of existing repetitions of DB1 668 */ 669 public int getDB1Reps() { 670 return getReps("DB1"); 671 } 672 673 /** 674 * <p> 675 * Returns a non-modifiable List containing all current existing repetitions of DB1. 676 * <p> 677 * <p> 678 * Note that unlike {@link #getDB1()}, this method will not create any reps 679 * if none are already present, so an empty list may be returned. 680 * </p> 681 */ 682 public List<DB1> getDB1All() throws HL7Exception { 683 return getAllAsList("DB1", DB1.class); 684 } 685 686 /** 687 * Inserts a specific repetition of DB1 (Disability) 688 * @see AbstractGroup#insertRepetition(Structure, int) 689 */ 690 public void insertDB1(DB1 structure, int rep) throws HL7Exception { 691 super.insertRepetition( "DB1", structure, rep); 692 } 693 694 695 /** 696 * Inserts a specific repetition of DB1 (Disability) 697 * @see AbstractGroup#insertRepetition(Structure, int) 698 */ 699 public DB1 insertDB1(int rep) throws HL7Exception { 700 return (DB1)super.insertRepetition("DB1", rep); 701 } 702 703 704 /** 705 * Removes a specific repetition of DB1 (Disability) 706 * @see AbstractGroup#removeRepetition(String, int) 707 */ 708 public DB1 removeDB1(int rep) throws HL7Exception { 709 return (DB1)super.removeRepetition("DB1", rep); 710 } 711 712 713 714 /** 715 * Returns 716 * the first repetition of 717 * OBX (Observation/Result) - creates it if necessary 718 */ 719 public OBX getOBX() { 720 return getTyped("OBX", OBX.class); 721 } 722 723 724 /** 725 * Returns a specific repetition of 726 * OBX (Observation/Result) - creates it if necessary 727 * 728 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 729 * @throws HL7Exception if the repetition requested is more than one 730 * greater than the number of existing repetitions. 731 */ 732 public OBX getOBX(int rep) { 733 return getTyped("OBX", rep, OBX.class); 734 } 735 736 /** 737 * Returns the number of existing repetitions of OBX 738 */ 739 public int getOBXReps() { 740 return getReps("OBX"); 741 } 742 743 /** 744 * <p> 745 * Returns a non-modifiable List containing all current existing repetitions of OBX. 746 * <p> 747 * <p> 748 * Note that unlike {@link #getOBX()}, this method will not create any reps 749 * if none are already present, so an empty list may be returned. 750 * </p> 751 */ 752 public List<OBX> getOBXAll() throws HL7Exception { 753 return getAllAsList("OBX", OBX.class); 754 } 755 756 /** 757 * Inserts a specific repetition of OBX (Observation/Result) 758 * @see AbstractGroup#insertRepetition(Structure, int) 759 */ 760 public void insertOBX(OBX structure, int rep) throws HL7Exception { 761 super.insertRepetition( "OBX", structure, rep); 762 } 763 764 765 /** 766 * Inserts a specific repetition of OBX (Observation/Result) 767 * @see AbstractGroup#insertRepetition(Structure, int) 768 */ 769 public OBX insertOBX(int rep) throws HL7Exception { 770 return (OBX)super.insertRepetition("OBX", rep); 771 } 772 773 774 /** 775 * Removes a specific repetition of OBX (Observation/Result) 776 * @see AbstractGroup#removeRepetition(String, int) 777 */ 778 public OBX removeOBX(int rep) throws HL7Exception { 779 return (OBX)super.removeRepetition("OBX", rep); 780 } 781 782 783 784 /** 785 * Returns 786 * the first repetition of 787 * AL1 (Patient Allergy Information) - creates it if necessary 788 */ 789 public AL1 getAL1() { 790 return getTyped("AL1", AL1.class); 791 } 792 793 794 /** 795 * Returns a specific repetition of 796 * AL1 (Patient Allergy Information) - creates it if necessary 797 * 798 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 799 * @throws HL7Exception if the repetition requested is more than one 800 * greater than the number of existing repetitions. 801 */ 802 public AL1 getAL1(int rep) { 803 return getTyped("AL1", rep, AL1.class); 804 } 805 806 /** 807 * Returns the number of existing repetitions of AL1 808 */ 809 public int getAL1Reps() { 810 return getReps("AL1"); 811 } 812 813 /** 814 * <p> 815 * Returns a non-modifiable List containing all current existing repetitions of AL1. 816 * <p> 817 * <p> 818 * Note that unlike {@link #getAL1()}, this method will not create any reps 819 * if none are already present, so an empty list may be returned. 820 * </p> 821 */ 822 public List<AL1> getAL1All() throws HL7Exception { 823 return getAllAsList("AL1", AL1.class); 824 } 825 826 /** 827 * Inserts a specific repetition of AL1 (Patient Allergy Information) 828 * @see AbstractGroup#insertRepetition(Structure, int) 829 */ 830 public void insertAL1(AL1 structure, int rep) throws HL7Exception { 831 super.insertRepetition( "AL1", structure, rep); 832 } 833 834 835 /** 836 * Inserts a specific repetition of AL1 (Patient Allergy Information) 837 * @see AbstractGroup#insertRepetition(Structure, int) 838 */ 839 public AL1 insertAL1(int rep) throws HL7Exception { 840 return (AL1)super.insertRepetition("AL1", rep); 841 } 842 843 844 /** 845 * Removes a specific repetition of AL1 (Patient Allergy Information) 846 * @see AbstractGroup#removeRepetition(String, int) 847 */ 848 public AL1 removeAL1(int rep) throws HL7Exception { 849 return (AL1)super.removeRepetition("AL1", rep); 850 } 851 852 853 854 /** 855 * Returns 856 * the first repetition of 857 * DG1 (Diagnosis) - creates it if necessary 858 */ 859 public DG1 getDG1() { 860 return getTyped("DG1", DG1.class); 861 } 862 863 864 /** 865 * Returns a specific repetition of 866 * DG1 (Diagnosis) - creates it if necessary 867 * 868 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 869 * @throws HL7Exception if the repetition requested is more than one 870 * greater than the number of existing repetitions. 871 */ 872 public DG1 getDG1(int rep) { 873 return getTyped("DG1", rep, DG1.class); 874 } 875 876 /** 877 * Returns the number of existing repetitions of DG1 878 */ 879 public int getDG1Reps() { 880 return getReps("DG1"); 881 } 882 883 /** 884 * <p> 885 * Returns a non-modifiable List containing all current existing repetitions of DG1. 886 * <p> 887 * <p> 888 * Note that unlike {@link #getDG1()}, this method will not create any reps 889 * if none are already present, so an empty list may be returned. 890 * </p> 891 */ 892 public List<DG1> getDG1All() throws HL7Exception { 893 return getAllAsList("DG1", DG1.class); 894 } 895 896 /** 897 * Inserts a specific repetition of DG1 (Diagnosis) 898 * @see AbstractGroup#insertRepetition(Structure, int) 899 */ 900 public void insertDG1(DG1 structure, int rep) throws HL7Exception { 901 super.insertRepetition( "DG1", structure, rep); 902 } 903 904 905 /** 906 * Inserts a specific repetition of DG1 (Diagnosis) 907 * @see AbstractGroup#insertRepetition(Structure, int) 908 */ 909 public DG1 insertDG1(int rep) throws HL7Exception { 910 return (DG1)super.insertRepetition("DG1", rep); 911 } 912 913 914 /** 915 * Removes a specific repetition of DG1 (Diagnosis) 916 * @see AbstractGroup#removeRepetition(String, int) 917 */ 918 public DG1 removeDG1(int rep) throws HL7Exception { 919 return (DG1)super.removeRepetition("DG1", rep); 920 } 921 922 923 924 /** 925 * Returns 926 * DRG (Diagnosis Related Group) - creates it if necessary 927 */ 928 public DRG getDRG() { 929 return getTyped("DRG", DRG.class); 930 } 931 932 933 934 935 /** 936 * Returns 937 * the first repetition of 938 * PROCEDURE (a Group object) - creates it if necessary 939 */ 940 public ADT_A06_PROCEDURE getPROCEDURE() { 941 return getTyped("PROCEDURE", ADT_A06_PROCEDURE.class); 942 } 943 944 945 /** 946 * Returns a specific repetition of 947 * PROCEDURE (a Group object) - creates it if necessary 948 * 949 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 950 * @throws HL7Exception if the repetition requested is more than one 951 * greater than the number of existing repetitions. 952 */ 953 public ADT_A06_PROCEDURE getPROCEDURE(int rep) { 954 return getTyped("PROCEDURE", rep, ADT_A06_PROCEDURE.class); 955 } 956 957 /** 958 * Returns the number of existing repetitions of PROCEDURE 959 */ 960 public int getPROCEDUREReps() { 961 return getReps("PROCEDURE"); 962 } 963 964 /** 965 * <p> 966 * Returns a non-modifiable List containing all current existing repetitions of PROCEDURE. 967 * <p> 968 * <p> 969 * Note that unlike {@link #getPROCEDURE()}, this method will not create any reps 970 * if none are already present, so an empty list may be returned. 971 * </p> 972 */ 973 public List<ADT_A06_PROCEDURE> getPROCEDUREAll() throws HL7Exception { 974 return getAllAsList("PROCEDURE", ADT_A06_PROCEDURE.class); 975 } 976 977 /** 978 * Inserts a specific repetition of PROCEDURE (a Group object) 979 * @see AbstractGroup#insertRepetition(Structure, int) 980 */ 981 public void insertPROCEDURE(ADT_A06_PROCEDURE structure, int rep) throws HL7Exception { 982 super.insertRepetition( "PROCEDURE", structure, rep); 983 } 984 985 986 /** 987 * Inserts a specific repetition of PROCEDURE (a Group object) 988 * @see AbstractGroup#insertRepetition(Structure, int) 989 */ 990 public ADT_A06_PROCEDURE insertPROCEDURE(int rep) throws HL7Exception { 991 return (ADT_A06_PROCEDURE)super.insertRepetition("PROCEDURE", rep); 992 } 993 994 995 /** 996 * Removes a specific repetition of PROCEDURE (a Group object) 997 * @see AbstractGroup#removeRepetition(String, int) 998 */ 999 public ADT_A06_PROCEDURE removePROCEDURE(int rep) throws HL7Exception { 1000 return (ADT_A06_PROCEDURE)super.removeRepetition("PROCEDURE", rep); 1001 } 1002 1003 1004 1005 /** 1006 * Returns 1007 * the first repetition of 1008 * GT1 (Guarantor) - creates it if necessary 1009 */ 1010 public GT1 getGT1() { 1011 return getTyped("GT1", GT1.class); 1012 } 1013 1014 1015 /** 1016 * Returns a specific repetition of 1017 * GT1 (Guarantor) - creates it if necessary 1018 * 1019 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 1020 * @throws HL7Exception if the repetition requested is more than one 1021 * greater than the number of existing repetitions. 1022 */ 1023 public GT1 getGT1(int rep) { 1024 return getTyped("GT1", rep, GT1.class); 1025 } 1026 1027 /** 1028 * Returns the number of existing repetitions of GT1 1029 */ 1030 public int getGT1Reps() { 1031 return getReps("GT1"); 1032 } 1033 1034 /** 1035 * <p> 1036 * Returns a non-modifiable List containing all current existing repetitions of GT1. 1037 * <p> 1038 * <p> 1039 * Note that unlike {@link #getGT1()}, this method will not create any reps 1040 * if none are already present, so an empty list may be returned. 1041 * </p> 1042 */ 1043 public List<GT1> getGT1All() throws HL7Exception { 1044 return getAllAsList("GT1", GT1.class); 1045 } 1046 1047 /** 1048 * Inserts a specific repetition of GT1 (Guarantor) 1049 * @see AbstractGroup#insertRepetition(Structure, int) 1050 */ 1051 public void insertGT1(GT1 structure, int rep) throws HL7Exception { 1052 super.insertRepetition( "GT1", structure, rep); 1053 } 1054 1055 1056 /** 1057 * Inserts a specific repetition of GT1 (Guarantor) 1058 * @see AbstractGroup#insertRepetition(Structure, int) 1059 */ 1060 public GT1 insertGT1(int rep) throws HL7Exception { 1061 return (GT1)super.insertRepetition("GT1", rep); 1062 } 1063 1064 1065 /** 1066 * Removes a specific repetition of GT1 (Guarantor) 1067 * @see AbstractGroup#removeRepetition(String, int) 1068 */ 1069 public GT1 removeGT1(int rep) throws HL7Exception { 1070 return (GT1)super.removeRepetition("GT1", rep); 1071 } 1072 1073 1074 1075 /** 1076 * Returns 1077 * the first repetition of 1078 * INSURANCE (a Group object) - creates it if necessary 1079 */ 1080 public ADT_A06_INSURANCE getINSURANCE() { 1081 return getTyped("INSURANCE", ADT_A06_INSURANCE.class); 1082 } 1083 1084 1085 /** 1086 * Returns a specific repetition of 1087 * INSURANCE (a Group object) - creates it if necessary 1088 * 1089 * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0) 1090 * @throws HL7Exception if the repetition requested is more than one 1091 * greater than the number of existing repetitions. 1092 */ 1093 public ADT_A06_INSURANCE getINSURANCE(int rep) { 1094 return getTyped("INSURANCE", rep, ADT_A06_INSURANCE.class); 1095 } 1096 1097 /** 1098 * Returns the number of existing repetitions of INSURANCE 1099 */ 1100 public int getINSURANCEReps() { 1101 return getReps("INSURANCE"); 1102 } 1103 1104 /** 1105 * <p> 1106 * Returns a non-modifiable List containing all current existing repetitions of INSURANCE. 1107 * <p> 1108 * <p> 1109 * Note that unlike {@link #getINSURANCE()}, this method will not create any reps 1110 * if none are already present, so an empty list may be returned. 1111 * </p> 1112 */ 1113 public List<ADT_A06_INSURANCE> getINSURANCEAll() throws HL7Exception { 1114 return getAllAsList("INSURANCE", ADT_A06_INSURANCE.class); 1115 } 1116 1117 /** 1118 * Inserts a specific repetition of INSURANCE (a Group object) 1119 * @see AbstractGroup#insertRepetition(Structure, int) 1120 */ 1121 public void insertINSURANCE(ADT_A06_INSURANCE structure, int rep) throws HL7Exception { 1122 super.insertRepetition( "INSURANCE", structure, rep); 1123 } 1124 1125 1126 /** 1127 * Inserts a specific repetition of INSURANCE (a Group object) 1128 * @see AbstractGroup#insertRepetition(Structure, int) 1129 */ 1130 public ADT_A06_INSURANCE insertINSURANCE(int rep) throws HL7Exception { 1131 return (ADT_A06_INSURANCE)super.insertRepetition("INSURANCE", rep); 1132 } 1133 1134 1135 /** 1136 * Removes a specific repetition of INSURANCE (a Group object) 1137 * @see AbstractGroup#removeRepetition(String, int) 1138 */ 1139 public ADT_A06_INSURANCE removeINSURANCE(int rep) throws HL7Exception { 1140 return (ADT_A06_INSURANCE)super.removeRepetition("INSURANCE", rep); 1141 } 1142 1143 1144 1145 /** 1146 * Returns 1147 * ACC (Accident) - creates it if necessary 1148 */ 1149 public ACC getACC() { 1150 return getTyped("ACC", ACC.class); 1151 } 1152 1153 1154 1155 1156 /** 1157 * Returns 1158 * UB1 (UB82) - creates it if necessary 1159 */ 1160 public UB1 getUB1() { 1161 return getTyped("UB1", UB1.class); 1162 } 1163 1164 1165 1166 1167 /** 1168 * Returns 1169 * UB2 (UB92 Data) - creates it if necessary 1170 */ 1171 public UB2 getUB2() { 1172 return getTyped("UB2", UB2.class); 1173 } 1174 1175 1176 1177 1178} 1179