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.v28.segment; 035 036// import ca.uhn.hl7v2.model.v28.group.*; 037import ca.uhn.hl7v2.model.v28.datatype.*; 038import ca.uhn.hl7v2.HL7Exception; 039import ca.uhn.hl7v2.parser.ModelClassFactory; 040import ca.uhn.hl7v2.parser.DefaultModelClassFactory; 041import ca.uhn.hl7v2.model.AbstractMessage; 042import ca.uhn.hl7v2.model.Group; 043import ca.uhn.hl7v2.model.Type; 044import ca.uhn.hl7v2.model.AbstractSegment; 045import ca.uhn.hl7v2.model.Varies; 046 047 048/** 049 *<p>Represents an HL7 ORC message segment (Common Order). 050 * This segment has the following fields:</p> 051 * <ul> 052 * <li>ORC-1: Order Control (ID) <b> </b> 053 * <li>ORC-2: Placer Order Number (EI) <b>optional </b> 054 * <li>ORC-3: Filler Order Number (EI) <b>optional </b> 055 * <li>ORC-4: Placer Group Number (EIP) <b>optional </b> 056 * <li>ORC-5: Order Status (ID) <b>optional </b> 057 * <li>ORC-6: Response Flag (ID) <b>optional </b> 058 * <li>ORC-7: Quantity/Timing (NULLDT) <b>optional repeating</b> 059 * <li>ORC-8: Parent Order (EIP) <b>optional </b> 060 * <li>ORC-9: Date/Time of Transaction (DTM) <b>optional </b> 061 * <li>ORC-10: Entered By (XCN) <b>optional repeating</b> 062 * <li>ORC-11: Verified By (XCN) <b>optional repeating</b> 063 * <li>ORC-12: Ordering Provider (XCN) <b>optional repeating</b> 064 * <li>ORC-13: Enterer's Location (PL) <b>optional </b> 065 * <li>ORC-14: Call Back Phone Number (XTN) <b>optional repeating</b> 066 * <li>ORC-15: Order Effective Date/Time (DTM) <b>optional </b> 067 * <li>ORC-16: Order Control Code Reason (CWE) <b>optional </b> 068 * <li>ORC-17: Entering Organization (CWE) <b>optional </b> 069 * <li>ORC-18: Entering Device (CWE) <b>optional </b> 070 * <li>ORC-19: Action By (XCN) <b>optional repeating</b> 071 * <li>ORC-20: Advanced Beneficiary Notice Code (CWE) <b>optional </b> 072 * <li>ORC-21: Ordering Facility Name (XON) <b>optional repeating</b> 073 * <li>ORC-22: Ordering Facility Address (XAD) <b>optional repeating</b> 074 * <li>ORC-23: Ordering Facility Phone Number (XTN) <b>optional repeating</b> 075 * <li>ORC-24: Ordering Provider Address (XAD) <b>optional repeating</b> 076 * <li>ORC-25: Order Status Modifier (CWE) <b>optional </b> 077 * <li>ORC-26: Advanced Beneficiary Notice Override Reason (CWE) <b>optional </b> 078 * <li>ORC-27: Filler's Expected Availability Date/Time (DTM) <b>optional </b> 079 * <li>ORC-28: Confidentiality Code (CWE) <b>optional </b> 080 * <li>ORC-29: Order Type (CWE) <b>optional </b> 081 * <li>ORC-30: Enterer Authorization Mode (CNE) <b>optional </b> 082 * <li>ORC-31: Parent Universal Service Identifier (CWE) <b>optional </b> 083 * <li>ORC-32: Advanced Beneficiary Notice Date (DT) <b>optional </b> 084 * <li>ORC-33: Alternate Placer Order Number (CX) <b>optional repeating</b> 085 * <li>ORC-34: Order Workflow Profile (CWE) <b>optional repeating</b> 086 * </ul> 087 */ 088@SuppressWarnings("unused") 089public class ORC extends AbstractSegment { 090 091 /** 092 * Creates a new ORC segment 093 */ 094 public ORC(Group parent, ModelClassFactory factory) { 095 super(parent, factory); 096 init(factory); 097 } 098 099 private void init(ModelClassFactory factory) { 100 try { 101 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(119) }, "Order Control"); 102 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Placer Order Number"); 103 this.add(EI.class, false, 1, 0, new Object[]{ getMessage() }, "Filler Order Number"); 104 this.add(EIP.class, false, 1, 0, new Object[]{ getMessage() }, "Placer Group Number"); 105 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(38) }, "Order Status"); 106 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(121) }, "Response Flag"); 107 this.add(NULLDT.class, false, 0, 0, new Object[]{ getMessage() }, "Quantity/Timing"); 108 this.add(EIP.class, false, 1, 0, new Object[]{ getMessage() }, "Parent Order"); 109 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Date/Time of Transaction"); 110 this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Entered By"); 111 this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Verified By"); 112 this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Ordering Provider"); 113 this.add(PL.class, false, 1, 0, new Object[]{ getMessage() }, "Enterer's Location"); 114 this.add(XTN.class, false, 2, 0, new Object[]{ getMessage() }, "Call Back Phone Number"); 115 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Order Effective Date/Time"); 116 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Order Control Code Reason"); 117 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Entering Organization"); 118 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Entering Device"); 119 this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Action By"); 120 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Advanced Beneficiary Notice Code"); 121 this.add(XON.class, false, 0, 0, new Object[]{ getMessage() }, "Ordering Facility Name"); 122 this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Ordering Facility Address"); 123 this.add(XTN.class, false, 0, 0, new Object[]{ getMessage() }, "Ordering Facility Phone Number"); 124 this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Ordering Provider Address"); 125 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Order Status Modifier"); 126 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Advanced Beneficiary Notice Override Reason"); 127 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Filler's Expected Availability Date/Time"); 128 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Confidentiality Code"); 129 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Order Type"); 130 this.add(CNE.class, false, 1, 0, new Object[]{ getMessage() }, "Enterer Authorization Mode"); 131 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Parent Universal Service Identifier"); 132 this.add(DT.class, false, 1, 0, new Object[]{ getMessage() }, "Advanced Beneficiary Notice Date"); 133 this.add(CX.class, false, 0, 0, new Object[]{ getMessage() }, "Alternate Placer Order Number"); 134 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Order Workflow Profile"); 135 } catch(HL7Exception e) { 136 log.error("Unexpected error creating ORC - this is probably a bug in the source code generator.", e); 137 } 138 } 139 140 141 142 /** 143 * Returns 144 * ORC-1: "Order Control" - creates it if necessary 145 */ 146 public ID getOrderControl() { 147 ID retVal = this.getTypedField(1, 0); 148 return retVal; 149 } 150 151 /** 152 * Returns 153 * ORC-1: "Order Control" - creates it if necessary 154 */ 155 public ID getOrc1_OrderControl() { 156 ID retVal = this.getTypedField(1, 0); 157 return retVal; 158 } 159 160 161 162 /** 163 * Returns 164 * ORC-2: "Placer Order Number" - creates it if necessary 165 */ 166 public EI getPlacerOrderNumber() { 167 EI retVal = this.getTypedField(2, 0); 168 return retVal; 169 } 170 171 /** 172 * Returns 173 * ORC-2: "Placer Order Number" - creates it if necessary 174 */ 175 public EI getOrc2_PlacerOrderNumber() { 176 EI retVal = this.getTypedField(2, 0); 177 return retVal; 178 } 179 180 181 182 /** 183 * Returns 184 * ORC-3: "Filler Order Number" - creates it if necessary 185 */ 186 public EI getFillerOrderNumber() { 187 EI retVal = this.getTypedField(3, 0); 188 return retVal; 189 } 190 191 /** 192 * Returns 193 * ORC-3: "Filler Order Number" - creates it if necessary 194 */ 195 public EI getOrc3_FillerOrderNumber() { 196 EI retVal = this.getTypedField(3, 0); 197 return retVal; 198 } 199 200 201 202 /** 203 * Returns 204 * ORC-4: "Placer Group Number" - creates it if necessary 205 */ 206 public EIP getPlacerGroupNumber() { 207 EIP retVal = this.getTypedField(4, 0); 208 return retVal; 209 } 210 211 /** 212 * Returns 213 * ORC-4: "Placer Group Number" - creates it if necessary 214 */ 215 public EIP getOrc4_PlacerGroupNumber() { 216 EIP retVal = this.getTypedField(4, 0); 217 return retVal; 218 } 219 220 221 222 /** 223 * Returns 224 * ORC-5: "Order Status" - creates it if necessary 225 */ 226 public ID getOrderStatus() { 227 ID retVal = this.getTypedField(5, 0); 228 return retVal; 229 } 230 231 /** 232 * Returns 233 * ORC-5: "Order Status" - creates it if necessary 234 */ 235 public ID getOrc5_OrderStatus() { 236 ID retVal = this.getTypedField(5, 0); 237 return retVal; 238 } 239 240 241 242 /** 243 * Returns 244 * ORC-6: "Response Flag" - creates it if necessary 245 */ 246 public ID getResponseFlag() { 247 ID retVal = this.getTypedField(6, 0); 248 return retVal; 249 } 250 251 /** 252 * Returns 253 * ORC-6: "Response Flag" - creates it if necessary 254 */ 255 public ID getOrc6_ResponseFlag() { 256 ID retVal = this.getTypedField(6, 0); 257 return retVal; 258 } 259 260 261 /** 262 * Returns all repetitions of Quantity/Timing (ORC-7). 263 */ 264 public NULLDT[] getQuantityTiming() { 265 NULLDT[] retVal = this.getTypedField(7, new NULLDT[0]); 266 return retVal; 267 } 268 269 270 /** 271 * Returns all repetitions of Quantity/Timing (ORC-7). 272 */ 273 public NULLDT[] getOrc7_QuantityTiming() { 274 NULLDT[] retVal = this.getTypedField(7, new NULLDT[0]); 275 return retVal; 276 } 277 278 279 /** 280 * Returns a count of the current number of repetitions of Quantity/Timing (ORC-7). 281 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 282 * it will return zero. 283 */ 284 public int getQuantityTimingReps() { 285 return this.getReps(7); 286 } 287 288 289 /** 290 * Returns a specific repetition of 291 * ORC-7: "Quantity/Timing" - creates it if necessary 292 * 293 * @param rep The repetition index (0-indexed) 294 */ 295 public NULLDT getQuantityTiming(int rep) { 296 NULLDT retVal = this.getTypedField(7, rep); 297 return retVal; 298 } 299 300 /** 301 * Returns a specific repetition of 302 * ORC-7: "Quantity/Timing" - creates it if necessary 303 * 304 * @param rep The repetition index (0-indexed) 305 */ 306 public NULLDT getOrc7_QuantityTiming(int rep) { 307 NULLDT retVal = this.getTypedField(7, rep); 308 return retVal; 309 } 310 311 /** 312 * Returns a count of the current number of repetitions of Quantity/Timing (ORC-7). 313 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 314 * it will return zero. 315 */ 316 public int getOrc7_QuantityTimingReps() { 317 return this.getReps(7); 318 } 319 320 321 /** 322 * Inserts a repetition of 323 * ORC-7: "Quantity/Timing" at a specific index 324 * 325 * @param rep The repetition index (0-indexed) 326 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 327 */ 328 public NULLDT insertQuantityTiming(int rep) throws HL7Exception { 329 return (NULLDT) super.insertRepetition(7, rep); 330 } 331 332 333 /** 334 * Inserts a repetition of 335 * ORC-7: "Quantity/Timing" at a specific index 336 * 337 * @param rep The repetition index (0-indexed) 338 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 339 */ 340 public NULLDT insertOrc7_QuantityTiming(int rep) throws HL7Exception { 341 return (NULLDT) super.insertRepetition(7, rep); 342 } 343 344 345 /** 346 * Removes a repetition of 347 * ORC-7: "Quantity/Timing" at a specific index 348 * 349 * @param rep The repetition index (0-indexed) 350 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 351 */ 352 public NULLDT removeQuantityTiming(int rep) throws HL7Exception { 353 return (NULLDT) super.removeRepetition(7, rep); 354 } 355 356 357 /** 358 * Removes a repetition of 359 * ORC-7: "Quantity/Timing" at a specific index 360 * 361 * @param rep The repetition index (0-indexed) 362 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 363 */ 364 public NULLDT removeOrc7_QuantityTiming(int rep) throws HL7Exception { 365 return (NULLDT) super.removeRepetition(7, rep); 366 } 367 368 369 370 371 /** 372 * Returns 373 * ORC-8: "Parent Order" - creates it if necessary 374 */ 375 public EIP getParentOrder() { 376 EIP retVal = this.getTypedField(8, 0); 377 return retVal; 378 } 379 380 /** 381 * Returns 382 * ORC-8: "Parent Order" - creates it if necessary 383 */ 384 public EIP getOrc8_ParentOrder() { 385 EIP retVal = this.getTypedField(8, 0); 386 return retVal; 387 } 388 389 390 391 /** 392 * Returns 393 * ORC-9: "Date/Time of Transaction" - creates it if necessary 394 */ 395 public DTM getDateTimeOfTransaction() { 396 DTM retVal = this.getTypedField(9, 0); 397 return retVal; 398 } 399 400 /** 401 * Returns 402 * ORC-9: "Date/Time of Transaction" - creates it if necessary 403 */ 404 public DTM getOrc9_DateTimeOfTransaction() { 405 DTM retVal = this.getTypedField(9, 0); 406 return retVal; 407 } 408 409 410 /** 411 * Returns all repetitions of Entered By (ORC-10). 412 */ 413 public XCN[] getEnteredBy() { 414 XCN[] retVal = this.getTypedField(10, new XCN[0]); 415 return retVal; 416 } 417 418 419 /** 420 * Returns all repetitions of Entered By (ORC-10). 421 */ 422 public XCN[] getOrc10_EnteredBy() { 423 XCN[] retVal = this.getTypedField(10, new XCN[0]); 424 return retVal; 425 } 426 427 428 /** 429 * Returns a count of the current number of repetitions of Entered By (ORC-10). 430 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 431 * it will return zero. 432 */ 433 public int getEnteredByReps() { 434 return this.getReps(10); 435 } 436 437 438 /** 439 * Returns a specific repetition of 440 * ORC-10: "Entered By" - creates it if necessary 441 * 442 * @param rep The repetition index (0-indexed) 443 */ 444 public XCN getEnteredBy(int rep) { 445 XCN retVal = this.getTypedField(10, rep); 446 return retVal; 447 } 448 449 /** 450 * Returns a specific repetition of 451 * ORC-10: "Entered By" - creates it if necessary 452 * 453 * @param rep The repetition index (0-indexed) 454 */ 455 public XCN getOrc10_EnteredBy(int rep) { 456 XCN retVal = this.getTypedField(10, rep); 457 return retVal; 458 } 459 460 /** 461 * Returns a count of the current number of repetitions of Entered By (ORC-10). 462 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 463 * it will return zero. 464 */ 465 public int getOrc10_EnteredByReps() { 466 return this.getReps(10); 467 } 468 469 470 /** 471 * Inserts a repetition of 472 * ORC-10: "Entered By" at a specific index 473 * 474 * @param rep The repetition index (0-indexed) 475 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 476 */ 477 public XCN insertEnteredBy(int rep) throws HL7Exception { 478 return (XCN) super.insertRepetition(10, rep); 479 } 480 481 482 /** 483 * Inserts a repetition of 484 * ORC-10: "Entered By" at a specific index 485 * 486 * @param rep The repetition index (0-indexed) 487 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 488 */ 489 public XCN insertOrc10_EnteredBy(int rep) throws HL7Exception { 490 return (XCN) super.insertRepetition(10, rep); 491 } 492 493 494 /** 495 * Removes a repetition of 496 * ORC-10: "Entered By" at a specific index 497 * 498 * @param rep The repetition index (0-indexed) 499 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 500 */ 501 public XCN removeEnteredBy(int rep) throws HL7Exception { 502 return (XCN) super.removeRepetition(10, rep); 503 } 504 505 506 /** 507 * Removes a repetition of 508 * ORC-10: "Entered By" at a specific index 509 * 510 * @param rep The repetition index (0-indexed) 511 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 512 */ 513 public XCN removeOrc10_EnteredBy(int rep) throws HL7Exception { 514 return (XCN) super.removeRepetition(10, rep); 515 } 516 517 518 519 /** 520 * Returns all repetitions of Verified By (ORC-11). 521 */ 522 public XCN[] getVerifiedBy() { 523 XCN[] retVal = this.getTypedField(11, new XCN[0]); 524 return retVal; 525 } 526 527 528 /** 529 * Returns all repetitions of Verified By (ORC-11). 530 */ 531 public XCN[] getOrc11_VerifiedBy() { 532 XCN[] retVal = this.getTypedField(11, new XCN[0]); 533 return retVal; 534 } 535 536 537 /** 538 * Returns a count of the current number of repetitions of Verified By (ORC-11). 539 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 540 * it will return zero. 541 */ 542 public int getVerifiedByReps() { 543 return this.getReps(11); 544 } 545 546 547 /** 548 * Returns a specific repetition of 549 * ORC-11: "Verified By" - creates it if necessary 550 * 551 * @param rep The repetition index (0-indexed) 552 */ 553 public XCN getVerifiedBy(int rep) { 554 XCN retVal = this.getTypedField(11, rep); 555 return retVal; 556 } 557 558 /** 559 * Returns a specific repetition of 560 * ORC-11: "Verified By" - creates it if necessary 561 * 562 * @param rep The repetition index (0-indexed) 563 */ 564 public XCN getOrc11_VerifiedBy(int rep) { 565 XCN retVal = this.getTypedField(11, rep); 566 return retVal; 567 } 568 569 /** 570 * Returns a count of the current number of repetitions of Verified By (ORC-11). 571 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 572 * it will return zero. 573 */ 574 public int getOrc11_VerifiedByReps() { 575 return this.getReps(11); 576 } 577 578 579 /** 580 * Inserts a repetition of 581 * ORC-11: "Verified By" at a specific index 582 * 583 * @param rep The repetition index (0-indexed) 584 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 585 */ 586 public XCN insertVerifiedBy(int rep) throws HL7Exception { 587 return (XCN) super.insertRepetition(11, rep); 588 } 589 590 591 /** 592 * Inserts a repetition of 593 * ORC-11: "Verified By" at a specific index 594 * 595 * @param rep The repetition index (0-indexed) 596 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 597 */ 598 public XCN insertOrc11_VerifiedBy(int rep) throws HL7Exception { 599 return (XCN) super.insertRepetition(11, rep); 600 } 601 602 603 /** 604 * Removes a repetition of 605 * ORC-11: "Verified By" at a specific index 606 * 607 * @param rep The repetition index (0-indexed) 608 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 609 */ 610 public XCN removeVerifiedBy(int rep) throws HL7Exception { 611 return (XCN) super.removeRepetition(11, rep); 612 } 613 614 615 /** 616 * Removes a repetition of 617 * ORC-11: "Verified By" at a specific index 618 * 619 * @param rep The repetition index (0-indexed) 620 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 621 */ 622 public XCN removeOrc11_VerifiedBy(int rep) throws HL7Exception { 623 return (XCN) super.removeRepetition(11, rep); 624 } 625 626 627 628 /** 629 * Returns all repetitions of Ordering Provider (ORC-12). 630 */ 631 public XCN[] getOrderingProvider() { 632 XCN[] retVal = this.getTypedField(12, new XCN[0]); 633 return retVal; 634 } 635 636 637 /** 638 * Returns all repetitions of Ordering Provider (ORC-12). 639 */ 640 public XCN[] getOrc12_OrderingProvider() { 641 XCN[] retVal = this.getTypedField(12, new XCN[0]); 642 return retVal; 643 } 644 645 646 /** 647 * Returns a count of the current number of repetitions of Ordering Provider (ORC-12). 648 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 649 * it will return zero. 650 */ 651 public int getOrderingProviderReps() { 652 return this.getReps(12); 653 } 654 655 656 /** 657 * Returns a specific repetition of 658 * ORC-12: "Ordering Provider" - creates it if necessary 659 * 660 * @param rep The repetition index (0-indexed) 661 */ 662 public XCN getOrderingProvider(int rep) { 663 XCN retVal = this.getTypedField(12, rep); 664 return retVal; 665 } 666 667 /** 668 * Returns a specific repetition of 669 * ORC-12: "Ordering Provider" - creates it if necessary 670 * 671 * @param rep The repetition index (0-indexed) 672 */ 673 public XCN getOrc12_OrderingProvider(int rep) { 674 XCN retVal = this.getTypedField(12, rep); 675 return retVal; 676 } 677 678 /** 679 * Returns a count of the current number of repetitions of Ordering Provider (ORC-12). 680 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 681 * it will return zero. 682 */ 683 public int getOrc12_OrderingProviderReps() { 684 return this.getReps(12); 685 } 686 687 688 /** 689 * Inserts a repetition of 690 * ORC-12: "Ordering Provider" at a specific index 691 * 692 * @param rep The repetition index (0-indexed) 693 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 694 */ 695 public XCN insertOrderingProvider(int rep) throws HL7Exception { 696 return (XCN) super.insertRepetition(12, rep); 697 } 698 699 700 /** 701 * Inserts a repetition of 702 * ORC-12: "Ordering Provider" at a specific index 703 * 704 * @param rep The repetition index (0-indexed) 705 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 706 */ 707 public XCN insertOrc12_OrderingProvider(int rep) throws HL7Exception { 708 return (XCN) super.insertRepetition(12, rep); 709 } 710 711 712 /** 713 * Removes a repetition of 714 * ORC-12: "Ordering Provider" at a specific index 715 * 716 * @param rep The repetition index (0-indexed) 717 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 718 */ 719 public XCN removeOrderingProvider(int rep) throws HL7Exception { 720 return (XCN) super.removeRepetition(12, rep); 721 } 722 723 724 /** 725 * Removes a repetition of 726 * ORC-12: "Ordering Provider" at a specific index 727 * 728 * @param rep The repetition index (0-indexed) 729 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 730 */ 731 public XCN removeOrc12_OrderingProvider(int rep) throws HL7Exception { 732 return (XCN) super.removeRepetition(12, rep); 733 } 734 735 736 737 738 /** 739 * Returns 740 * ORC-13: "Enterer's Location" - creates it if necessary 741 */ 742 public PL getEntererSLocation() { 743 PL retVal = this.getTypedField(13, 0); 744 return retVal; 745 } 746 747 /** 748 * Returns 749 * ORC-13: "Enterer's Location" - creates it if necessary 750 */ 751 public PL getOrc13_EntererSLocation() { 752 PL retVal = this.getTypedField(13, 0); 753 return retVal; 754 } 755 756 757 /** 758 * Returns all repetitions of Call Back Phone Number (ORC-14). 759 */ 760 public XTN[] getCallBackPhoneNumber() { 761 XTN[] retVal = this.getTypedField(14, new XTN[0]); 762 return retVal; 763 } 764 765 766 /** 767 * Returns all repetitions of Call Back Phone Number (ORC-14). 768 */ 769 public XTN[] getOrc14_CallBackPhoneNumber() { 770 XTN[] retVal = this.getTypedField(14, new XTN[0]); 771 return retVal; 772 } 773 774 775 /** 776 * Returns a count of the current number of repetitions of Call Back Phone Number (ORC-14). 777 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 778 * it will return zero. 779 */ 780 public int getCallBackPhoneNumberReps() { 781 return this.getReps(14); 782 } 783 784 785 /** 786 * Returns a specific repetition of 787 * ORC-14: "Call Back Phone Number" - creates it if necessary 788 * 789 * @param rep The repetition index (0-indexed) 790 */ 791 public XTN getCallBackPhoneNumber(int rep) { 792 XTN retVal = this.getTypedField(14, rep); 793 return retVal; 794 } 795 796 /** 797 * Returns a specific repetition of 798 * ORC-14: "Call Back Phone Number" - creates it if necessary 799 * 800 * @param rep The repetition index (0-indexed) 801 */ 802 public XTN getOrc14_CallBackPhoneNumber(int rep) { 803 XTN retVal = this.getTypedField(14, rep); 804 return retVal; 805 } 806 807 /** 808 * Returns a count of the current number of repetitions of Call Back Phone Number (ORC-14). 809 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 810 * it will return zero. 811 */ 812 public int getOrc14_CallBackPhoneNumberReps() { 813 return this.getReps(14); 814 } 815 816 817 /** 818 * Inserts a repetition of 819 * ORC-14: "Call Back Phone Number" at a specific index 820 * 821 * @param rep The repetition index (0-indexed) 822 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 823 */ 824 public XTN insertCallBackPhoneNumber(int rep) throws HL7Exception { 825 return (XTN) super.insertRepetition(14, rep); 826 } 827 828 829 /** 830 * Inserts a repetition of 831 * ORC-14: "Call Back Phone Number" at a specific index 832 * 833 * @param rep The repetition index (0-indexed) 834 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 835 */ 836 public XTN insertOrc14_CallBackPhoneNumber(int rep) throws HL7Exception { 837 return (XTN) super.insertRepetition(14, rep); 838 } 839 840 841 /** 842 * Removes a repetition of 843 * ORC-14: "Call Back Phone Number" at a specific index 844 * 845 * @param rep The repetition index (0-indexed) 846 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 847 */ 848 public XTN removeCallBackPhoneNumber(int rep) throws HL7Exception { 849 return (XTN) super.removeRepetition(14, rep); 850 } 851 852 853 /** 854 * Removes a repetition of 855 * ORC-14: "Call Back Phone Number" at a specific index 856 * 857 * @param rep The repetition index (0-indexed) 858 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 859 */ 860 public XTN removeOrc14_CallBackPhoneNumber(int rep) throws HL7Exception { 861 return (XTN) super.removeRepetition(14, rep); 862 } 863 864 865 866 867 /** 868 * Returns 869 * ORC-15: "Order Effective Date/Time" - creates it if necessary 870 */ 871 public DTM getOrderEffectiveDateTime() { 872 DTM retVal = this.getTypedField(15, 0); 873 return retVal; 874 } 875 876 /** 877 * Returns 878 * ORC-15: "Order Effective Date/Time" - creates it if necessary 879 */ 880 public DTM getOrc15_OrderEffectiveDateTime() { 881 DTM retVal = this.getTypedField(15, 0); 882 return retVal; 883 } 884 885 886 887 /** 888 * Returns 889 * ORC-16: "Order Control Code Reason" - creates it if necessary 890 */ 891 public CWE getOrderControlCodeReason() { 892 CWE retVal = this.getTypedField(16, 0); 893 return retVal; 894 } 895 896 /** 897 * Returns 898 * ORC-16: "Order Control Code Reason" - creates it if necessary 899 */ 900 public CWE getOrc16_OrderControlCodeReason() { 901 CWE retVal = this.getTypedField(16, 0); 902 return retVal; 903 } 904 905 906 907 /** 908 * Returns 909 * ORC-17: "Entering Organization" - creates it if necessary 910 */ 911 public CWE getEnteringOrganization() { 912 CWE retVal = this.getTypedField(17, 0); 913 return retVal; 914 } 915 916 /** 917 * Returns 918 * ORC-17: "Entering Organization" - creates it if necessary 919 */ 920 public CWE getOrc17_EnteringOrganization() { 921 CWE retVal = this.getTypedField(17, 0); 922 return retVal; 923 } 924 925 926 927 /** 928 * Returns 929 * ORC-18: "Entering Device" - creates it if necessary 930 */ 931 public CWE getEnteringDevice() { 932 CWE retVal = this.getTypedField(18, 0); 933 return retVal; 934 } 935 936 /** 937 * Returns 938 * ORC-18: "Entering Device" - creates it if necessary 939 */ 940 public CWE getOrc18_EnteringDevice() { 941 CWE retVal = this.getTypedField(18, 0); 942 return retVal; 943 } 944 945 946 /** 947 * Returns all repetitions of Action By (ORC-19). 948 */ 949 public XCN[] getActionBy() { 950 XCN[] retVal = this.getTypedField(19, new XCN[0]); 951 return retVal; 952 } 953 954 955 /** 956 * Returns all repetitions of Action By (ORC-19). 957 */ 958 public XCN[] getOrc19_ActionBy() { 959 XCN[] retVal = this.getTypedField(19, new XCN[0]); 960 return retVal; 961 } 962 963 964 /** 965 * Returns a count of the current number of repetitions of Action By (ORC-19). 966 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 967 * it will return zero. 968 */ 969 public int getActionByReps() { 970 return this.getReps(19); 971 } 972 973 974 /** 975 * Returns a specific repetition of 976 * ORC-19: "Action By" - creates it if necessary 977 * 978 * @param rep The repetition index (0-indexed) 979 */ 980 public XCN getActionBy(int rep) { 981 XCN retVal = this.getTypedField(19, rep); 982 return retVal; 983 } 984 985 /** 986 * Returns a specific repetition of 987 * ORC-19: "Action By" - creates it if necessary 988 * 989 * @param rep The repetition index (0-indexed) 990 */ 991 public XCN getOrc19_ActionBy(int rep) { 992 XCN retVal = this.getTypedField(19, rep); 993 return retVal; 994 } 995 996 /** 997 * Returns a count of the current number of repetitions of Action By (ORC-19). 998 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 999 * it will return zero. 1000 */ 1001 public int getOrc19_ActionByReps() { 1002 return this.getReps(19); 1003 } 1004 1005 1006 /** 1007 * Inserts a repetition of 1008 * ORC-19: "Action By" at a specific index 1009 * 1010 * @param rep The repetition index (0-indexed) 1011 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1012 */ 1013 public XCN insertActionBy(int rep) throws HL7Exception { 1014 return (XCN) super.insertRepetition(19, rep); 1015 } 1016 1017 1018 /** 1019 * Inserts a repetition of 1020 * ORC-19: "Action By" at a specific index 1021 * 1022 * @param rep The repetition index (0-indexed) 1023 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1024 */ 1025 public XCN insertOrc19_ActionBy(int rep) throws HL7Exception { 1026 return (XCN) super.insertRepetition(19, rep); 1027 } 1028 1029 1030 /** 1031 * Removes a repetition of 1032 * ORC-19: "Action By" at a specific index 1033 * 1034 * @param rep The repetition index (0-indexed) 1035 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1036 */ 1037 public XCN removeActionBy(int rep) throws HL7Exception { 1038 return (XCN) super.removeRepetition(19, rep); 1039 } 1040 1041 1042 /** 1043 * Removes a repetition of 1044 * ORC-19: "Action By" at a specific index 1045 * 1046 * @param rep The repetition index (0-indexed) 1047 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1048 */ 1049 public XCN removeOrc19_ActionBy(int rep) throws HL7Exception { 1050 return (XCN) super.removeRepetition(19, rep); 1051 } 1052 1053 1054 1055 1056 /** 1057 * Returns 1058 * ORC-20: "Advanced Beneficiary Notice Code" - creates it if necessary 1059 */ 1060 public CWE getAdvancedBeneficiaryNoticeCode() { 1061 CWE retVal = this.getTypedField(20, 0); 1062 return retVal; 1063 } 1064 1065 /** 1066 * Returns 1067 * ORC-20: "Advanced Beneficiary Notice Code" - creates it if necessary 1068 */ 1069 public CWE getOrc20_AdvancedBeneficiaryNoticeCode() { 1070 CWE retVal = this.getTypedField(20, 0); 1071 return retVal; 1072 } 1073 1074 1075 /** 1076 * Returns all repetitions of Ordering Facility Name (ORC-21). 1077 */ 1078 public XON[] getOrderingFacilityName() { 1079 XON[] retVal = this.getTypedField(21, new XON[0]); 1080 return retVal; 1081 } 1082 1083 1084 /** 1085 * Returns all repetitions of Ordering Facility Name (ORC-21). 1086 */ 1087 public XON[] getOrc21_OrderingFacilityName() { 1088 XON[] retVal = this.getTypedField(21, new XON[0]); 1089 return retVal; 1090 } 1091 1092 1093 /** 1094 * Returns a count of the current number of repetitions of Ordering Facility Name (ORC-21). 1095 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1096 * it will return zero. 1097 */ 1098 public int getOrderingFacilityNameReps() { 1099 return this.getReps(21); 1100 } 1101 1102 1103 /** 1104 * Returns a specific repetition of 1105 * ORC-21: "Ordering Facility Name" - creates it if necessary 1106 * 1107 * @param rep The repetition index (0-indexed) 1108 */ 1109 public XON getOrderingFacilityName(int rep) { 1110 XON retVal = this.getTypedField(21, rep); 1111 return retVal; 1112 } 1113 1114 /** 1115 * Returns a specific repetition of 1116 * ORC-21: "Ordering Facility Name" - creates it if necessary 1117 * 1118 * @param rep The repetition index (0-indexed) 1119 */ 1120 public XON getOrc21_OrderingFacilityName(int rep) { 1121 XON retVal = this.getTypedField(21, rep); 1122 return retVal; 1123 } 1124 1125 /** 1126 * Returns a count of the current number of repetitions of Ordering Facility Name (ORC-21). 1127 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1128 * it will return zero. 1129 */ 1130 public int getOrc21_OrderingFacilityNameReps() { 1131 return this.getReps(21); 1132 } 1133 1134 1135 /** 1136 * Inserts a repetition of 1137 * ORC-21: "Ordering Facility Name" at a specific index 1138 * 1139 * @param rep The repetition index (0-indexed) 1140 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1141 */ 1142 public XON insertOrderingFacilityName(int rep) throws HL7Exception { 1143 return (XON) super.insertRepetition(21, rep); 1144 } 1145 1146 1147 /** 1148 * Inserts a repetition of 1149 * ORC-21: "Ordering Facility Name" at a specific index 1150 * 1151 * @param rep The repetition index (0-indexed) 1152 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1153 */ 1154 public XON insertOrc21_OrderingFacilityName(int rep) throws HL7Exception { 1155 return (XON) super.insertRepetition(21, rep); 1156 } 1157 1158 1159 /** 1160 * Removes a repetition of 1161 * ORC-21: "Ordering Facility Name" at a specific index 1162 * 1163 * @param rep The repetition index (0-indexed) 1164 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1165 */ 1166 public XON removeOrderingFacilityName(int rep) throws HL7Exception { 1167 return (XON) super.removeRepetition(21, rep); 1168 } 1169 1170 1171 /** 1172 * Removes a repetition of 1173 * ORC-21: "Ordering Facility Name" at a specific index 1174 * 1175 * @param rep The repetition index (0-indexed) 1176 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1177 */ 1178 public XON removeOrc21_OrderingFacilityName(int rep) throws HL7Exception { 1179 return (XON) super.removeRepetition(21, rep); 1180 } 1181 1182 1183 1184 /** 1185 * Returns all repetitions of Ordering Facility Address (ORC-22). 1186 */ 1187 public XAD[] getOrderingFacilityAddress() { 1188 XAD[] retVal = this.getTypedField(22, new XAD[0]); 1189 return retVal; 1190 } 1191 1192 1193 /** 1194 * Returns all repetitions of Ordering Facility Address (ORC-22). 1195 */ 1196 public XAD[] getOrc22_OrderingFacilityAddress() { 1197 XAD[] retVal = this.getTypedField(22, new XAD[0]); 1198 return retVal; 1199 } 1200 1201 1202 /** 1203 * Returns a count of the current number of repetitions of Ordering Facility Address (ORC-22). 1204 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1205 * it will return zero. 1206 */ 1207 public int getOrderingFacilityAddressReps() { 1208 return this.getReps(22); 1209 } 1210 1211 1212 /** 1213 * Returns a specific repetition of 1214 * ORC-22: "Ordering Facility Address" - creates it if necessary 1215 * 1216 * @param rep The repetition index (0-indexed) 1217 */ 1218 public XAD getOrderingFacilityAddress(int rep) { 1219 XAD retVal = this.getTypedField(22, rep); 1220 return retVal; 1221 } 1222 1223 /** 1224 * Returns a specific repetition of 1225 * ORC-22: "Ordering Facility Address" - creates it if necessary 1226 * 1227 * @param rep The repetition index (0-indexed) 1228 */ 1229 public XAD getOrc22_OrderingFacilityAddress(int rep) { 1230 XAD retVal = this.getTypedField(22, rep); 1231 return retVal; 1232 } 1233 1234 /** 1235 * Returns a count of the current number of repetitions of Ordering Facility Address (ORC-22). 1236 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1237 * it will return zero. 1238 */ 1239 public int getOrc22_OrderingFacilityAddressReps() { 1240 return this.getReps(22); 1241 } 1242 1243 1244 /** 1245 * Inserts a repetition of 1246 * ORC-22: "Ordering Facility Address" at a specific index 1247 * 1248 * @param rep The repetition index (0-indexed) 1249 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1250 */ 1251 public XAD insertOrderingFacilityAddress(int rep) throws HL7Exception { 1252 return (XAD) super.insertRepetition(22, rep); 1253 } 1254 1255 1256 /** 1257 * Inserts a repetition of 1258 * ORC-22: "Ordering Facility Address" at a specific index 1259 * 1260 * @param rep The repetition index (0-indexed) 1261 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1262 */ 1263 public XAD insertOrc22_OrderingFacilityAddress(int rep) throws HL7Exception { 1264 return (XAD) super.insertRepetition(22, rep); 1265 } 1266 1267 1268 /** 1269 * Removes a repetition of 1270 * ORC-22: "Ordering Facility Address" at a specific index 1271 * 1272 * @param rep The repetition index (0-indexed) 1273 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1274 */ 1275 public XAD removeOrderingFacilityAddress(int rep) throws HL7Exception { 1276 return (XAD) super.removeRepetition(22, rep); 1277 } 1278 1279 1280 /** 1281 * Removes a repetition of 1282 * ORC-22: "Ordering Facility Address" at a specific index 1283 * 1284 * @param rep The repetition index (0-indexed) 1285 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1286 */ 1287 public XAD removeOrc22_OrderingFacilityAddress(int rep) throws HL7Exception { 1288 return (XAD) super.removeRepetition(22, rep); 1289 } 1290 1291 1292 1293 /** 1294 * Returns all repetitions of Ordering Facility Phone Number (ORC-23). 1295 */ 1296 public XTN[] getOrderingFacilityPhoneNumber() { 1297 XTN[] retVal = this.getTypedField(23, new XTN[0]); 1298 return retVal; 1299 } 1300 1301 1302 /** 1303 * Returns all repetitions of Ordering Facility Phone Number (ORC-23). 1304 */ 1305 public XTN[] getOrc23_OrderingFacilityPhoneNumber() { 1306 XTN[] retVal = this.getTypedField(23, new XTN[0]); 1307 return retVal; 1308 } 1309 1310 1311 /** 1312 * Returns a count of the current number of repetitions of Ordering Facility Phone Number (ORC-23). 1313 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1314 * it will return zero. 1315 */ 1316 public int getOrderingFacilityPhoneNumberReps() { 1317 return this.getReps(23); 1318 } 1319 1320 1321 /** 1322 * Returns a specific repetition of 1323 * ORC-23: "Ordering Facility Phone Number" - creates it if necessary 1324 * 1325 * @param rep The repetition index (0-indexed) 1326 */ 1327 public XTN getOrderingFacilityPhoneNumber(int rep) { 1328 XTN retVal = this.getTypedField(23, rep); 1329 return retVal; 1330 } 1331 1332 /** 1333 * Returns a specific repetition of 1334 * ORC-23: "Ordering Facility Phone Number" - creates it if necessary 1335 * 1336 * @param rep The repetition index (0-indexed) 1337 */ 1338 public XTN getOrc23_OrderingFacilityPhoneNumber(int rep) { 1339 XTN retVal = this.getTypedField(23, rep); 1340 return retVal; 1341 } 1342 1343 /** 1344 * Returns a count of the current number of repetitions of Ordering Facility Phone Number (ORC-23). 1345 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1346 * it will return zero. 1347 */ 1348 public int getOrc23_OrderingFacilityPhoneNumberReps() { 1349 return this.getReps(23); 1350 } 1351 1352 1353 /** 1354 * Inserts a repetition of 1355 * ORC-23: "Ordering Facility Phone Number" at a specific index 1356 * 1357 * @param rep The repetition index (0-indexed) 1358 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1359 */ 1360 public XTN insertOrderingFacilityPhoneNumber(int rep) throws HL7Exception { 1361 return (XTN) super.insertRepetition(23, rep); 1362 } 1363 1364 1365 /** 1366 * Inserts a repetition of 1367 * ORC-23: "Ordering Facility Phone Number" at a specific index 1368 * 1369 * @param rep The repetition index (0-indexed) 1370 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1371 */ 1372 public XTN insertOrc23_OrderingFacilityPhoneNumber(int rep) throws HL7Exception { 1373 return (XTN) super.insertRepetition(23, rep); 1374 } 1375 1376 1377 /** 1378 * Removes a repetition of 1379 * ORC-23: "Ordering Facility Phone Number" at a specific index 1380 * 1381 * @param rep The repetition index (0-indexed) 1382 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1383 */ 1384 public XTN removeOrderingFacilityPhoneNumber(int rep) throws HL7Exception { 1385 return (XTN) super.removeRepetition(23, rep); 1386 } 1387 1388 1389 /** 1390 * Removes a repetition of 1391 * ORC-23: "Ordering Facility Phone Number" at a specific index 1392 * 1393 * @param rep The repetition index (0-indexed) 1394 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1395 */ 1396 public XTN removeOrc23_OrderingFacilityPhoneNumber(int rep) throws HL7Exception { 1397 return (XTN) super.removeRepetition(23, rep); 1398 } 1399 1400 1401 1402 /** 1403 * Returns all repetitions of Ordering Provider Address (ORC-24). 1404 */ 1405 public XAD[] getOrderingProviderAddress() { 1406 XAD[] retVal = this.getTypedField(24, new XAD[0]); 1407 return retVal; 1408 } 1409 1410 1411 /** 1412 * Returns all repetitions of Ordering Provider Address (ORC-24). 1413 */ 1414 public XAD[] getOrc24_OrderingProviderAddress() { 1415 XAD[] retVal = this.getTypedField(24, new XAD[0]); 1416 return retVal; 1417 } 1418 1419 1420 /** 1421 * Returns a count of the current number of repetitions of Ordering Provider Address (ORC-24). 1422 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1423 * it will return zero. 1424 */ 1425 public int getOrderingProviderAddressReps() { 1426 return this.getReps(24); 1427 } 1428 1429 1430 /** 1431 * Returns a specific repetition of 1432 * ORC-24: "Ordering Provider Address" - creates it if necessary 1433 * 1434 * @param rep The repetition index (0-indexed) 1435 */ 1436 public XAD getOrderingProviderAddress(int rep) { 1437 XAD retVal = this.getTypedField(24, rep); 1438 return retVal; 1439 } 1440 1441 /** 1442 * Returns a specific repetition of 1443 * ORC-24: "Ordering Provider Address" - creates it if necessary 1444 * 1445 * @param rep The repetition index (0-indexed) 1446 */ 1447 public XAD getOrc24_OrderingProviderAddress(int rep) { 1448 XAD retVal = this.getTypedField(24, rep); 1449 return retVal; 1450 } 1451 1452 /** 1453 * Returns a count of the current number of repetitions of Ordering Provider Address (ORC-24). 1454 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1455 * it will return zero. 1456 */ 1457 public int getOrc24_OrderingProviderAddressReps() { 1458 return this.getReps(24); 1459 } 1460 1461 1462 /** 1463 * Inserts a repetition of 1464 * ORC-24: "Ordering Provider Address" at a specific index 1465 * 1466 * @param rep The repetition index (0-indexed) 1467 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1468 */ 1469 public XAD insertOrderingProviderAddress(int rep) throws HL7Exception { 1470 return (XAD) super.insertRepetition(24, rep); 1471 } 1472 1473 1474 /** 1475 * Inserts a repetition of 1476 * ORC-24: "Ordering Provider Address" at a specific index 1477 * 1478 * @param rep The repetition index (0-indexed) 1479 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1480 */ 1481 public XAD insertOrc24_OrderingProviderAddress(int rep) throws HL7Exception { 1482 return (XAD) super.insertRepetition(24, rep); 1483 } 1484 1485 1486 /** 1487 * Removes a repetition of 1488 * ORC-24: "Ordering Provider Address" at a specific index 1489 * 1490 * @param rep The repetition index (0-indexed) 1491 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1492 */ 1493 public XAD removeOrderingProviderAddress(int rep) throws HL7Exception { 1494 return (XAD) super.removeRepetition(24, rep); 1495 } 1496 1497 1498 /** 1499 * Removes a repetition of 1500 * ORC-24: "Ordering Provider Address" at a specific index 1501 * 1502 * @param rep The repetition index (0-indexed) 1503 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1504 */ 1505 public XAD removeOrc24_OrderingProviderAddress(int rep) throws HL7Exception { 1506 return (XAD) super.removeRepetition(24, rep); 1507 } 1508 1509 1510 1511 1512 /** 1513 * Returns 1514 * ORC-25: "Order Status Modifier" - creates it if necessary 1515 */ 1516 public CWE getOrderStatusModifier() { 1517 CWE retVal = this.getTypedField(25, 0); 1518 return retVal; 1519 } 1520 1521 /** 1522 * Returns 1523 * ORC-25: "Order Status Modifier" - creates it if necessary 1524 */ 1525 public CWE getOrc25_OrderStatusModifier() { 1526 CWE retVal = this.getTypedField(25, 0); 1527 return retVal; 1528 } 1529 1530 1531 1532 /** 1533 * Returns 1534 * ORC-26: "Advanced Beneficiary Notice Override Reason" - creates it if necessary 1535 */ 1536 public CWE getAdvancedBeneficiaryNoticeOverrideReason() { 1537 CWE retVal = this.getTypedField(26, 0); 1538 return retVal; 1539 } 1540 1541 /** 1542 * Returns 1543 * ORC-26: "Advanced Beneficiary Notice Override Reason" - creates it if necessary 1544 */ 1545 public CWE getOrc26_AdvancedBeneficiaryNoticeOverrideReason() { 1546 CWE retVal = this.getTypedField(26, 0); 1547 return retVal; 1548 } 1549 1550 1551 1552 /** 1553 * Returns 1554 * ORC-27: "Filler's Expected Availability Date/Time" - creates it if necessary 1555 */ 1556 public DTM getFillerSExpectedAvailabilityDateTime() { 1557 DTM retVal = this.getTypedField(27, 0); 1558 return retVal; 1559 } 1560 1561 /** 1562 * Returns 1563 * ORC-27: "Filler's Expected Availability Date/Time" - creates it if necessary 1564 */ 1565 public DTM getOrc27_FillerSExpectedAvailabilityDateTime() { 1566 DTM retVal = this.getTypedField(27, 0); 1567 return retVal; 1568 } 1569 1570 1571 1572 /** 1573 * Returns 1574 * ORC-28: "Confidentiality Code" - creates it if necessary 1575 */ 1576 public CWE getConfidentialityCode() { 1577 CWE retVal = this.getTypedField(28, 0); 1578 return retVal; 1579 } 1580 1581 /** 1582 * Returns 1583 * ORC-28: "Confidentiality Code" - creates it if necessary 1584 */ 1585 public CWE getOrc28_ConfidentialityCode() { 1586 CWE retVal = this.getTypedField(28, 0); 1587 return retVal; 1588 } 1589 1590 1591 1592 /** 1593 * Returns 1594 * ORC-29: "Order Type" - creates it if necessary 1595 */ 1596 public CWE getOrderType() { 1597 CWE retVal = this.getTypedField(29, 0); 1598 return retVal; 1599 } 1600 1601 /** 1602 * Returns 1603 * ORC-29: "Order Type" - creates it if necessary 1604 */ 1605 public CWE getOrc29_OrderType() { 1606 CWE retVal = this.getTypedField(29, 0); 1607 return retVal; 1608 } 1609 1610 1611 1612 /** 1613 * Returns 1614 * ORC-30: "Enterer Authorization Mode" - creates it if necessary 1615 */ 1616 public CNE getEntererAuthorizationMode() { 1617 CNE retVal = this.getTypedField(30, 0); 1618 return retVal; 1619 } 1620 1621 /** 1622 * Returns 1623 * ORC-30: "Enterer Authorization Mode" - creates it if necessary 1624 */ 1625 public CNE getOrc30_EntererAuthorizationMode() { 1626 CNE retVal = this.getTypedField(30, 0); 1627 return retVal; 1628 } 1629 1630 1631 1632 /** 1633 * Returns 1634 * ORC-31: "Parent Universal Service Identifier" - creates it if necessary 1635 */ 1636 public CWE getParentUniversalServiceIdentifier() { 1637 CWE retVal = this.getTypedField(31, 0); 1638 return retVal; 1639 } 1640 1641 /** 1642 * Returns 1643 * ORC-31: "Parent Universal Service Identifier" - creates it if necessary 1644 */ 1645 public CWE getOrc31_ParentUniversalServiceIdentifier() { 1646 CWE retVal = this.getTypedField(31, 0); 1647 return retVal; 1648 } 1649 1650 1651 1652 /** 1653 * Returns 1654 * ORC-32: "Advanced Beneficiary Notice Date" - creates it if necessary 1655 */ 1656 public DT getAdvancedBeneficiaryNoticeDate() { 1657 DT retVal = this.getTypedField(32, 0); 1658 return retVal; 1659 } 1660 1661 /** 1662 * Returns 1663 * ORC-32: "Advanced Beneficiary Notice Date" - creates it if necessary 1664 */ 1665 public DT getOrc32_AdvancedBeneficiaryNoticeDate() { 1666 DT retVal = this.getTypedField(32, 0); 1667 return retVal; 1668 } 1669 1670 1671 /** 1672 * Returns all repetitions of Alternate Placer Order Number (ORC-33). 1673 */ 1674 public CX[] getAlternatePlacerOrderNumber() { 1675 CX[] retVal = this.getTypedField(33, new CX[0]); 1676 return retVal; 1677 } 1678 1679 1680 /** 1681 * Returns all repetitions of Alternate Placer Order Number (ORC-33). 1682 */ 1683 public CX[] getOrc33_AlternatePlacerOrderNumber() { 1684 CX[] retVal = this.getTypedField(33, new CX[0]); 1685 return retVal; 1686 } 1687 1688 1689 /** 1690 * Returns a count of the current number of repetitions of Alternate Placer Order Number (ORC-33). 1691 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1692 * it will return zero. 1693 */ 1694 public int getAlternatePlacerOrderNumberReps() { 1695 return this.getReps(33); 1696 } 1697 1698 1699 /** 1700 * Returns a specific repetition of 1701 * ORC-33: "Alternate Placer Order Number" - creates it if necessary 1702 * 1703 * @param rep The repetition index (0-indexed) 1704 */ 1705 public CX getAlternatePlacerOrderNumber(int rep) { 1706 CX retVal = this.getTypedField(33, rep); 1707 return retVal; 1708 } 1709 1710 /** 1711 * Returns a specific repetition of 1712 * ORC-33: "Alternate Placer Order Number" - creates it if necessary 1713 * 1714 * @param rep The repetition index (0-indexed) 1715 */ 1716 public CX getOrc33_AlternatePlacerOrderNumber(int rep) { 1717 CX retVal = this.getTypedField(33, rep); 1718 return retVal; 1719 } 1720 1721 /** 1722 * Returns a count of the current number of repetitions of Alternate Placer Order Number (ORC-33). 1723 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1724 * it will return zero. 1725 */ 1726 public int getOrc33_AlternatePlacerOrderNumberReps() { 1727 return this.getReps(33); 1728 } 1729 1730 1731 /** 1732 * Inserts a repetition of 1733 * ORC-33: "Alternate Placer Order Number" at a specific index 1734 * 1735 * @param rep The repetition index (0-indexed) 1736 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1737 */ 1738 public CX insertAlternatePlacerOrderNumber(int rep) throws HL7Exception { 1739 return (CX) super.insertRepetition(33, rep); 1740 } 1741 1742 1743 /** 1744 * Inserts a repetition of 1745 * ORC-33: "Alternate Placer Order Number" at a specific index 1746 * 1747 * @param rep The repetition index (0-indexed) 1748 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1749 */ 1750 public CX insertOrc33_AlternatePlacerOrderNumber(int rep) throws HL7Exception { 1751 return (CX) super.insertRepetition(33, rep); 1752 } 1753 1754 1755 /** 1756 * Removes a repetition of 1757 * ORC-33: "Alternate Placer Order Number" at a specific index 1758 * 1759 * @param rep The repetition index (0-indexed) 1760 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1761 */ 1762 public CX removeAlternatePlacerOrderNumber(int rep) throws HL7Exception { 1763 return (CX) super.removeRepetition(33, rep); 1764 } 1765 1766 1767 /** 1768 * Removes a repetition of 1769 * ORC-33: "Alternate Placer Order Number" at a specific index 1770 * 1771 * @param rep The repetition index (0-indexed) 1772 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1773 */ 1774 public CX removeOrc33_AlternatePlacerOrderNumber(int rep) throws HL7Exception { 1775 return (CX) super.removeRepetition(33, rep); 1776 } 1777 1778 1779 1780 /** 1781 * Returns all repetitions of Order Workflow Profile (ORC-34). 1782 */ 1783 public CWE[] getOrderWorkflowProfile() { 1784 CWE[] retVal = this.getTypedField(34, new CWE[0]); 1785 return retVal; 1786 } 1787 1788 1789 /** 1790 * Returns all repetitions of Order Workflow Profile (ORC-34). 1791 */ 1792 public CWE[] getOrc34_OrderWorkflowProfile() { 1793 CWE[] retVal = this.getTypedField(34, new CWE[0]); 1794 return retVal; 1795 } 1796 1797 1798 /** 1799 * Returns a count of the current number of repetitions of Order Workflow Profile (ORC-34). 1800 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1801 * it will return zero. 1802 */ 1803 public int getOrderWorkflowProfileReps() { 1804 return this.getReps(34); 1805 } 1806 1807 1808 /** 1809 * Returns a specific repetition of 1810 * ORC-34: "Order Workflow Profile" - creates it if necessary 1811 * 1812 * @param rep The repetition index (0-indexed) 1813 */ 1814 public CWE getOrderWorkflowProfile(int rep) { 1815 CWE retVal = this.getTypedField(34, rep); 1816 return retVal; 1817 } 1818 1819 /** 1820 * Returns a specific repetition of 1821 * ORC-34: "Order Workflow Profile" - creates it if necessary 1822 * 1823 * @param rep The repetition index (0-indexed) 1824 */ 1825 public CWE getOrc34_OrderWorkflowProfile(int rep) { 1826 CWE retVal = this.getTypedField(34, rep); 1827 return retVal; 1828 } 1829 1830 /** 1831 * Returns a count of the current number of repetitions of Order Workflow Profile (ORC-34). 1832 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1833 * it will return zero. 1834 */ 1835 public int getOrc34_OrderWorkflowProfileReps() { 1836 return this.getReps(34); 1837 } 1838 1839 1840 /** 1841 * Inserts a repetition of 1842 * ORC-34: "Order Workflow Profile" at a specific index 1843 * 1844 * @param rep The repetition index (0-indexed) 1845 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1846 */ 1847 public CWE insertOrderWorkflowProfile(int rep) throws HL7Exception { 1848 return (CWE) super.insertRepetition(34, rep); 1849 } 1850 1851 1852 /** 1853 * Inserts a repetition of 1854 * ORC-34: "Order Workflow Profile" at a specific index 1855 * 1856 * @param rep The repetition index (0-indexed) 1857 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1858 */ 1859 public CWE insertOrc34_OrderWorkflowProfile(int rep) throws HL7Exception { 1860 return (CWE) super.insertRepetition(34, rep); 1861 } 1862 1863 1864 /** 1865 * Removes a repetition of 1866 * ORC-34: "Order Workflow Profile" at a specific index 1867 * 1868 * @param rep The repetition index (0-indexed) 1869 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1870 */ 1871 public CWE removeOrderWorkflowProfile(int rep) throws HL7Exception { 1872 return (CWE) super.removeRepetition(34, rep); 1873 } 1874 1875 1876 /** 1877 * Removes a repetition of 1878 * ORC-34: "Order Workflow Profile" at a specific index 1879 * 1880 * @param rep The repetition index (0-indexed) 1881 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1882 */ 1883 public CWE removeOrc34_OrderWorkflowProfile(int rep) throws HL7Exception { 1884 return (CWE) super.removeRepetition(34, rep); 1885 } 1886 1887 1888 1889 1890 1891 1892 /** {@inheritDoc} */ 1893 protected Type createNewTypeWithoutReflection(int field) { 1894 switch (field) { 1895 case 0: return new ID(getMessage(), new Integer( 119 )); 1896 case 1: return new EI(getMessage()); 1897 case 2: return new EI(getMessage()); 1898 case 3: return new EIP(getMessage()); 1899 case 4: return new ID(getMessage(), new Integer( 38 )); 1900 case 5: return new ID(getMessage(), new Integer( 121 )); 1901 case 6: return new NULLDT(getMessage()); 1902 case 7: return new EIP(getMessage()); 1903 case 8: return new DTM(getMessage()); 1904 case 9: return new XCN(getMessage()); 1905 case 10: return new XCN(getMessage()); 1906 case 11: return new XCN(getMessage()); 1907 case 12: return new PL(getMessage()); 1908 case 13: return new XTN(getMessage()); 1909 case 14: return new DTM(getMessage()); 1910 case 15: return new CWE(getMessage()); 1911 case 16: return new CWE(getMessage()); 1912 case 17: return new CWE(getMessage()); 1913 case 18: return new XCN(getMessage()); 1914 case 19: return new CWE(getMessage()); 1915 case 20: return new XON(getMessage()); 1916 case 21: return new XAD(getMessage()); 1917 case 22: return new XTN(getMessage()); 1918 case 23: return new XAD(getMessage()); 1919 case 24: return new CWE(getMessage()); 1920 case 25: return new CWE(getMessage()); 1921 case 26: return new DTM(getMessage()); 1922 case 27: return new CWE(getMessage()); 1923 case 28: return new CWE(getMessage()); 1924 case 29: return new CNE(getMessage()); 1925 case 30: return new CWE(getMessage()); 1926 case 31: return new DT(getMessage()); 1927 case 32: return new CX(getMessage()); 1928 case 33: return new CWE(getMessage()); 1929 default: return null; 1930 } 1931 } 1932 1933 1934} 1935