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