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.v231.segment; 035 036// import ca.uhn.hl7v2.model.v231.group.*; 037import ca.uhn.hl7v2.model.v231.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 *<p>Represents an HL7 RXO message segment (RXO - pharmacy/treatment order segment). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>RXO-1: Requested Give Code (CE) <b>optional </b> 052 * <li>RXO-2: Requested Give Amount - Minimum (NM) <b>optional </b> 053 * <li>RXO-3: Requested Give Amount - Maximum (NM) <b>optional </b> 054 * <li>RXO-4: Requested Give Units (CE) <b>optional </b> 055 * <li>RXO-5: Requested Dosage Form (CE) <b>optional </b> 056 * <li>RXO-6: Provider’s Pharmacy/Treatment Instructions (CE) <b>optional repeating</b> 057 * <li>RXO-7: Provider’s Administration Instructions (CE) <b>optional repeating</b> 058 * <li>RXO-8: Deliver-to Location (LA1) <b>optional </b> 059 * <li>RXO-9: Allow Substitutions (ID) <b>optional </b> 060 * <li>RXO-10: Requested Dispense Code (CE) <b>optional </b> 061 * <li>RXO-11: Requested Dispense Amount (NM) <b>optional </b> 062 * <li>RXO-12: Requested Dispense Units (CE) <b>optional </b> 063 * <li>RXO-13: Number Of Refills (NM) <b>optional </b> 064 * <li>RXO-14: Ordering Provider’s DEA Number (XCN) <b>optional repeating</b> 065 * <li>RXO-15: Pharmacist/Treatment Supplier’s Verifier ID (XCN) <b>optional repeating</b> 066 * <li>RXO-16: Needs Human Review (ID) <b>optional </b> 067 * <li>RXO-17: Requested Give Per (Time Unit) (ST) <b>optional </b> 068 * <li>RXO-18: Requested Give Strength (NM) <b>optional </b> 069 * <li>RXO-19: Requested Give Strength Units (CE) <b>optional </b> 070 * <li>RXO-20: Indication (CE) <b>optional repeating</b> 071 * <li>RXO-21: Requested Give Rate Amount (ST) <b>optional </b> 072 * <li>RXO-22: Requested Give Rate Units (CE) <b>optional </b> 073 * <li>RXO-23: Total Daily Dose (CQ) <b>optional </b> 074 * </ul> 075 */ 076@SuppressWarnings("unused") 077public class RXO extends AbstractSegment { 078 079 /** 080 * Creates a new RXO segment 081 */ 082 public RXO(Group parent, ModelClassFactory factory) { 083 super(parent, factory); 084 init(factory); 085 } 086 087 private void init(ModelClassFactory factory) { 088 try { 089 this.add(CE.class, false, 1, 100, new Object[]{ getMessage() }, "Requested Give Code"); 090 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Minimum"); 091 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Amount - Maximum"); 092 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Units"); 093 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Dosage Form"); 094 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Provider’s Pharmacy/Treatment Instructions"); 095 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Provider’s Administration Instructions"); 096 this.add(LA1.class, false, 1, 200, new Object[]{ getMessage() }, "Deliver-to Location"); 097 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(161) }, "Allow Substitutions"); 098 this.add(CE.class, false, 1, 100, new Object[]{ getMessage() }, "Requested Dispense Code"); 099 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Dispense Amount"); 100 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Dispense Units"); 101 this.add(NM.class, false, 1, 3, new Object[]{ getMessage() }, "Number Of Refills"); 102 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Ordering Provider’s DEA Number"); 103 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Pharmacist/Treatment Supplier’s Verifier ID"); 104 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Needs Human Review"); 105 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Per (Time Unit)"); 106 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Requested Give Strength"); 107 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Strength Units"); 108 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Indication"); 109 this.add(ST.class, false, 1, 6, new Object[]{ getMessage() }, "Requested Give Rate Amount"); 110 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Requested Give Rate Units"); 111 this.add(CQ.class, false, 1, 10, new Object[]{ getMessage() }, "Total Daily Dose"); 112 } catch(HL7Exception e) { 113 log.error("Unexpected error creating RXO - this is probably a bug in the source code generator.", e); 114 } 115 } 116 117 118 119 /** 120 * Returns 121 * RXO-1: "Requested Give Code" - creates it if necessary 122 */ 123 public CE getRequestedGiveCode() { 124 CE retVal = this.getTypedField(1, 0); 125 return retVal; 126 } 127 128 /** 129 * Returns 130 * RXO-1: "Requested Give Code" - creates it if necessary 131 */ 132 public CE getRxo1_RequestedGiveCode() { 133 CE retVal = this.getTypedField(1, 0); 134 return retVal; 135 } 136 137 138 139 /** 140 * Returns 141 * RXO-2: "Requested Give Amount - Minimum" - creates it if necessary 142 */ 143 public NM getRequestedGiveAmountMinimum() { 144 NM retVal = this.getTypedField(2, 0); 145 return retVal; 146 } 147 148 /** 149 * Returns 150 * RXO-2: "Requested Give Amount - Minimum" - creates it if necessary 151 */ 152 public NM getRxo2_RequestedGiveAmountMinimum() { 153 NM retVal = this.getTypedField(2, 0); 154 return retVal; 155 } 156 157 158 159 /** 160 * Returns 161 * RXO-3: "Requested Give Amount - Maximum" - creates it if necessary 162 */ 163 public NM getRequestedGiveAmountMaximum() { 164 NM retVal = this.getTypedField(3, 0); 165 return retVal; 166 } 167 168 /** 169 * Returns 170 * RXO-3: "Requested Give Amount - Maximum" - creates it if necessary 171 */ 172 public NM getRxo3_RequestedGiveAmountMaximum() { 173 NM retVal = this.getTypedField(3, 0); 174 return retVal; 175 } 176 177 178 179 /** 180 * Returns 181 * RXO-4: "Requested Give Units" - creates it if necessary 182 */ 183 public CE getRequestedGiveUnits() { 184 CE retVal = this.getTypedField(4, 0); 185 return retVal; 186 } 187 188 /** 189 * Returns 190 * RXO-4: "Requested Give Units" - creates it if necessary 191 */ 192 public CE getRxo4_RequestedGiveUnits() { 193 CE retVal = this.getTypedField(4, 0); 194 return retVal; 195 } 196 197 198 199 /** 200 * Returns 201 * RXO-5: "Requested Dosage Form" - creates it if necessary 202 */ 203 public CE getRequestedDosageForm() { 204 CE retVal = this.getTypedField(5, 0); 205 return retVal; 206 } 207 208 /** 209 * Returns 210 * RXO-5: "Requested Dosage Form" - creates it if necessary 211 */ 212 public CE getRxo5_RequestedDosageForm() { 213 CE retVal = this.getTypedField(5, 0); 214 return retVal; 215 } 216 217 218 /** 219 * Returns all repetitions of Provider’s Pharmacy/Treatment Instructions (RXO-6). 220 */ 221 public CE[] getProviderSPharmacyTreatmentInstructions() { 222 CE[] retVal = this.getTypedField(6, new CE[0]); 223 return retVal; 224 } 225 226 227 /** 228 * Returns all repetitions of Provider’s Pharmacy/Treatment Instructions (RXO-6). 229 */ 230 public CE[] getRxo6_ProviderSPharmacyTreatmentInstructions() { 231 CE[] retVal = this.getTypedField(6, new CE[0]); 232 return retVal; 233 } 234 235 236 /** 237 * Returns a count of the current number of repetitions of Provider’s Pharmacy/Treatment Instructions (RXO-6). 238 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 239 * it will return zero. 240 */ 241 public int getProviderSPharmacyTreatmentInstructionsReps() { 242 return this.getReps(6); 243 } 244 245 246 /** 247 * Returns a specific repetition of 248 * RXO-6: "Provider’s Pharmacy/Treatment Instructions" - creates it if necessary 249 * 250 * @param rep The repetition index (0-indexed) 251 */ 252 public CE getProviderSPharmacyTreatmentInstructions(int rep) { 253 CE retVal = this.getTypedField(6, rep); 254 return retVal; 255 } 256 257 /** 258 * Returns a specific repetition of 259 * RXO-6: "Provider’s Pharmacy/Treatment Instructions" - creates it if necessary 260 * 261 * @param rep The repetition index (0-indexed) 262 */ 263 public CE getRxo6_ProviderSPharmacyTreatmentInstructions(int rep) { 264 CE retVal = this.getTypedField(6, rep); 265 return retVal; 266 } 267 268 /** 269 * Returns a count of the current number of repetitions of Provider’s Pharmacy/Treatment Instructions (RXO-6). 270 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 271 * it will return zero. 272 */ 273 public int getRxo6_ProviderSPharmacyTreatmentInstructionsReps() { 274 return this.getReps(6); 275 } 276 277 278 /** 279 * Inserts a repetition of 280 * RXO-6: "Provider’s Pharmacy/Treatment Instructions" at a specific index 281 * 282 * @param rep The repetition index (0-indexed) 283 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 284 */ 285 public CE insertProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 286 return (CE) super.insertRepetition(6, rep); 287 } 288 289 290 /** 291 * Inserts a repetition of 292 * RXO-6: "Provider’s Pharmacy/Treatment Instructions" at a specific index 293 * 294 * @param rep The repetition index (0-indexed) 295 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 296 */ 297 public CE insertRxo6_ProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 298 return (CE) super.insertRepetition(6, rep); 299 } 300 301 302 /** 303 * Removes a repetition of 304 * RXO-6: "Provider’s Pharmacy/Treatment Instructions" at a specific index 305 * 306 * @param rep The repetition index (0-indexed) 307 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 308 */ 309 public CE removeProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 310 return (CE) super.removeRepetition(6, rep); 311 } 312 313 314 /** 315 * Removes a repetition of 316 * RXO-6: "Provider’s Pharmacy/Treatment Instructions" at a specific index 317 * 318 * @param rep The repetition index (0-indexed) 319 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 320 */ 321 public CE removeRxo6_ProviderSPharmacyTreatmentInstructions(int rep) throws HL7Exception { 322 return (CE) super.removeRepetition(6, rep); 323 } 324 325 326 327 /** 328 * Returns all repetitions of Provider’s Administration Instructions (RXO-7). 329 */ 330 public CE[] getProviderSAdministrationInstructions() { 331 CE[] retVal = this.getTypedField(7, new CE[0]); 332 return retVal; 333 } 334 335 336 /** 337 * Returns all repetitions of Provider’s Administration Instructions (RXO-7). 338 */ 339 public CE[] getRxo7_ProviderSAdministrationInstructions() { 340 CE[] retVal = this.getTypedField(7, new CE[0]); 341 return retVal; 342 } 343 344 345 /** 346 * Returns a count of the current number of repetitions of Provider’s Administration Instructions (RXO-7). 347 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 348 * it will return zero. 349 */ 350 public int getProviderSAdministrationInstructionsReps() { 351 return this.getReps(7); 352 } 353 354 355 /** 356 * Returns a specific repetition of 357 * RXO-7: "Provider’s Administration Instructions" - creates it if necessary 358 * 359 * @param rep The repetition index (0-indexed) 360 */ 361 public CE getProviderSAdministrationInstructions(int rep) { 362 CE retVal = this.getTypedField(7, rep); 363 return retVal; 364 } 365 366 /** 367 * Returns a specific repetition of 368 * RXO-7: "Provider’s Administration Instructions" - creates it if necessary 369 * 370 * @param rep The repetition index (0-indexed) 371 */ 372 public CE getRxo7_ProviderSAdministrationInstructions(int rep) { 373 CE retVal = this.getTypedField(7, rep); 374 return retVal; 375 } 376 377 /** 378 * Returns a count of the current number of repetitions of Provider’s Administration Instructions (RXO-7). 379 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 380 * it will return zero. 381 */ 382 public int getRxo7_ProviderSAdministrationInstructionsReps() { 383 return this.getReps(7); 384 } 385 386 387 /** 388 * Inserts a repetition of 389 * RXO-7: "Provider’s Administration Instructions" at a specific index 390 * 391 * @param rep The repetition index (0-indexed) 392 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 393 */ 394 public CE insertProviderSAdministrationInstructions(int rep) throws HL7Exception { 395 return (CE) super.insertRepetition(7, rep); 396 } 397 398 399 /** 400 * Inserts a repetition of 401 * RXO-7: "Provider’s Administration Instructions" at a specific index 402 * 403 * @param rep The repetition index (0-indexed) 404 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 405 */ 406 public CE insertRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 407 return (CE) super.insertRepetition(7, rep); 408 } 409 410 411 /** 412 * Removes a repetition of 413 * RXO-7: "Provider’s Administration Instructions" at a specific index 414 * 415 * @param rep The repetition index (0-indexed) 416 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 417 */ 418 public CE removeProviderSAdministrationInstructions(int rep) throws HL7Exception { 419 return (CE) super.removeRepetition(7, rep); 420 } 421 422 423 /** 424 * Removes a repetition of 425 * RXO-7: "Provider’s Administration Instructions" at a specific index 426 * 427 * @param rep The repetition index (0-indexed) 428 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 429 */ 430 public CE removeRxo7_ProviderSAdministrationInstructions(int rep) throws HL7Exception { 431 return (CE) super.removeRepetition(7, rep); 432 } 433 434 435 436 437 /** 438 * Returns 439 * RXO-8: "Deliver-to Location" - creates it if necessary 440 */ 441 public LA1 getDeliverToLocation() { 442 LA1 retVal = this.getTypedField(8, 0); 443 return retVal; 444 } 445 446 /** 447 * Returns 448 * RXO-8: "Deliver-to Location" - creates it if necessary 449 */ 450 public LA1 getRxo8_DeliverToLocation() { 451 LA1 retVal = this.getTypedField(8, 0); 452 return retVal; 453 } 454 455 456 457 /** 458 * Returns 459 * RXO-9: "Allow Substitutions" - creates it if necessary 460 */ 461 public ID getAllowSubstitutions() { 462 ID retVal = this.getTypedField(9, 0); 463 return retVal; 464 } 465 466 /** 467 * Returns 468 * RXO-9: "Allow Substitutions" - creates it if necessary 469 */ 470 public ID getRxo9_AllowSubstitutions() { 471 ID retVal = this.getTypedField(9, 0); 472 return retVal; 473 } 474 475 476 477 /** 478 * Returns 479 * RXO-10: "Requested Dispense Code" - creates it if necessary 480 */ 481 public CE getRequestedDispenseCode() { 482 CE retVal = this.getTypedField(10, 0); 483 return retVal; 484 } 485 486 /** 487 * Returns 488 * RXO-10: "Requested Dispense Code" - creates it if necessary 489 */ 490 public CE getRxo10_RequestedDispenseCode() { 491 CE retVal = this.getTypedField(10, 0); 492 return retVal; 493 } 494 495 496 497 /** 498 * Returns 499 * RXO-11: "Requested Dispense Amount" - creates it if necessary 500 */ 501 public NM getRequestedDispenseAmount() { 502 NM retVal = this.getTypedField(11, 0); 503 return retVal; 504 } 505 506 /** 507 * Returns 508 * RXO-11: "Requested Dispense Amount" - creates it if necessary 509 */ 510 public NM getRxo11_RequestedDispenseAmount() { 511 NM retVal = this.getTypedField(11, 0); 512 return retVal; 513 } 514 515 516 517 /** 518 * Returns 519 * RXO-12: "Requested Dispense Units" - creates it if necessary 520 */ 521 public CE getRequestedDispenseUnits() { 522 CE retVal = this.getTypedField(12, 0); 523 return retVal; 524 } 525 526 /** 527 * Returns 528 * RXO-12: "Requested Dispense Units" - creates it if necessary 529 */ 530 public CE getRxo12_RequestedDispenseUnits() { 531 CE retVal = this.getTypedField(12, 0); 532 return retVal; 533 } 534 535 536 537 /** 538 * Returns 539 * RXO-13: "Number Of Refills" - creates it if necessary 540 */ 541 public NM getNumberOfRefills() { 542 NM retVal = this.getTypedField(13, 0); 543 return retVal; 544 } 545 546 /** 547 * Returns 548 * RXO-13: "Number Of Refills" - creates it if necessary 549 */ 550 public NM getRxo13_NumberOfRefills() { 551 NM retVal = this.getTypedField(13, 0); 552 return retVal; 553 } 554 555 556 /** 557 * Returns all repetitions of Ordering Provider’s DEA Number (RXO-14). 558 */ 559 public XCN[] getOrderingProviderSDEANumber() { 560 XCN[] retVal = this.getTypedField(14, new XCN[0]); 561 return retVal; 562 } 563 564 565 /** 566 * Returns all repetitions of Ordering Provider’s DEA Number (RXO-14). 567 */ 568 public XCN[] getRxo14_OrderingProviderSDEANumber() { 569 XCN[] retVal = this.getTypedField(14, new XCN[0]); 570 return retVal; 571 } 572 573 574 /** 575 * Returns a count of the current number of repetitions of Ordering Provider’s DEA Number (RXO-14). 576 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 577 * it will return zero. 578 */ 579 public int getOrderingProviderSDEANumberReps() { 580 return this.getReps(14); 581 } 582 583 584 /** 585 * Returns a specific repetition of 586 * RXO-14: "Ordering Provider’s DEA Number" - creates it if necessary 587 * 588 * @param rep The repetition index (0-indexed) 589 */ 590 public XCN getOrderingProviderSDEANumber(int rep) { 591 XCN retVal = this.getTypedField(14, rep); 592 return retVal; 593 } 594 595 /** 596 * Returns a specific repetition of 597 * RXO-14: "Ordering Provider’s DEA Number" - creates it if necessary 598 * 599 * @param rep The repetition index (0-indexed) 600 */ 601 public XCN getRxo14_OrderingProviderSDEANumber(int rep) { 602 XCN retVal = this.getTypedField(14, rep); 603 return retVal; 604 } 605 606 /** 607 * Returns a count of the current number of repetitions of Ordering Provider’s DEA Number (RXO-14). 608 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 609 * it will return zero. 610 */ 611 public int getRxo14_OrderingProviderSDEANumberReps() { 612 return this.getReps(14); 613 } 614 615 616 /** 617 * Inserts a repetition of 618 * RXO-14: "Ordering Provider’s DEA Number" at a specific index 619 * 620 * @param rep The repetition index (0-indexed) 621 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 622 */ 623 public XCN insertOrderingProviderSDEANumber(int rep) throws HL7Exception { 624 return (XCN) super.insertRepetition(14, rep); 625 } 626 627 628 /** 629 * Inserts a repetition of 630 * RXO-14: "Ordering Provider’s DEA Number" at a specific index 631 * 632 * @param rep The repetition index (0-indexed) 633 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 634 */ 635 public XCN insertRxo14_OrderingProviderSDEANumber(int rep) throws HL7Exception { 636 return (XCN) super.insertRepetition(14, rep); 637 } 638 639 640 /** 641 * Removes a repetition of 642 * RXO-14: "Ordering Provider’s DEA Number" at a specific index 643 * 644 * @param rep The repetition index (0-indexed) 645 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 646 */ 647 public XCN removeOrderingProviderSDEANumber(int rep) throws HL7Exception { 648 return (XCN) super.removeRepetition(14, rep); 649 } 650 651 652 /** 653 * Removes a repetition of 654 * RXO-14: "Ordering Provider’s DEA Number" at a specific index 655 * 656 * @param rep The repetition index (0-indexed) 657 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 658 */ 659 public XCN removeRxo14_OrderingProviderSDEANumber(int rep) throws HL7Exception { 660 return (XCN) super.removeRepetition(14, rep); 661 } 662 663 664 665 /** 666 * Returns all repetitions of Pharmacist/Treatment Supplier’s Verifier ID (RXO-15). 667 */ 668 public XCN[] getPharmacistTreatmentSupplierSVerifierID() { 669 XCN[] retVal = this.getTypedField(15, new XCN[0]); 670 return retVal; 671 } 672 673 674 /** 675 * Returns all repetitions of Pharmacist/Treatment Supplier’s Verifier ID (RXO-15). 676 */ 677 public XCN[] getRxo15_PharmacistTreatmentSupplierSVerifierID() { 678 XCN[] retVal = this.getTypedField(15, new XCN[0]); 679 return retVal; 680 } 681 682 683 /** 684 * Returns a count of the current number of repetitions of Pharmacist/Treatment Supplier’s Verifier ID (RXO-15). 685 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 686 * it will return zero. 687 */ 688 public int getPharmacistTreatmentSupplierSVerifierIDReps() { 689 return this.getReps(15); 690 } 691 692 693 /** 694 * Returns a specific repetition of 695 * RXO-15: "Pharmacist/Treatment Supplier’s Verifier ID" - creates it if necessary 696 * 697 * @param rep The repetition index (0-indexed) 698 */ 699 public XCN getPharmacistTreatmentSupplierSVerifierID(int rep) { 700 XCN retVal = this.getTypedField(15, rep); 701 return retVal; 702 } 703 704 /** 705 * Returns a specific repetition of 706 * RXO-15: "Pharmacist/Treatment Supplier’s Verifier ID" - creates it if necessary 707 * 708 * @param rep The repetition index (0-indexed) 709 */ 710 public XCN getRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) { 711 XCN retVal = this.getTypedField(15, rep); 712 return retVal; 713 } 714 715 /** 716 * Returns a count of the current number of repetitions of Pharmacist/Treatment Supplier’s Verifier ID (RXO-15). 717 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 718 * it will return zero. 719 */ 720 public int getRxo15_PharmacistTreatmentSupplierSVerifierIDReps() { 721 return this.getReps(15); 722 } 723 724 725 /** 726 * Inserts a repetition of 727 * RXO-15: "Pharmacist/Treatment Supplier’s Verifier ID" at a specific index 728 * 729 * @param rep The repetition index (0-indexed) 730 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 731 */ 732 public XCN insertPharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 733 return (XCN) super.insertRepetition(15, rep); 734 } 735 736 737 /** 738 * Inserts a repetition of 739 * RXO-15: "Pharmacist/Treatment Supplier’s Verifier ID" at a specific index 740 * 741 * @param rep The repetition index (0-indexed) 742 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 743 */ 744 public XCN insertRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 745 return (XCN) super.insertRepetition(15, rep); 746 } 747 748 749 /** 750 * Removes a repetition of 751 * RXO-15: "Pharmacist/Treatment Supplier’s Verifier ID" at a specific index 752 * 753 * @param rep The repetition index (0-indexed) 754 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 755 */ 756 public XCN removePharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 757 return (XCN) super.removeRepetition(15, rep); 758 } 759 760 761 /** 762 * Removes a repetition of 763 * RXO-15: "Pharmacist/Treatment Supplier’s Verifier ID" at a specific index 764 * 765 * @param rep The repetition index (0-indexed) 766 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 767 */ 768 public XCN removeRxo15_PharmacistTreatmentSupplierSVerifierID(int rep) throws HL7Exception { 769 return (XCN) super.removeRepetition(15, rep); 770 } 771 772 773 774 775 /** 776 * Returns 777 * RXO-16: "Needs Human Review" - creates it if necessary 778 */ 779 public ID getNeedsHumanReview() { 780 ID retVal = this.getTypedField(16, 0); 781 return retVal; 782 } 783 784 /** 785 * Returns 786 * RXO-16: "Needs Human Review" - creates it if necessary 787 */ 788 public ID getRxo16_NeedsHumanReview() { 789 ID retVal = this.getTypedField(16, 0); 790 return retVal; 791 } 792 793 794 795 /** 796 * Returns 797 * RXO-17: "Requested Give Per (Time Unit)" - creates it if necessary 798 */ 799 public ST getRequestedGivePerTimeUnit() { 800 ST retVal = this.getTypedField(17, 0); 801 return retVal; 802 } 803 804 /** 805 * Returns 806 * RXO-17: "Requested Give Per (Time Unit)" - creates it if necessary 807 */ 808 public ST getRxo17_RequestedGivePerTimeUnit() { 809 ST retVal = this.getTypedField(17, 0); 810 return retVal; 811 } 812 813 814 815 /** 816 * Returns 817 * RXO-18: "Requested Give Strength" - creates it if necessary 818 */ 819 public NM getRequestedGiveStrength() { 820 NM retVal = this.getTypedField(18, 0); 821 return retVal; 822 } 823 824 /** 825 * Returns 826 * RXO-18: "Requested Give Strength" - creates it if necessary 827 */ 828 public NM getRxo18_RequestedGiveStrength() { 829 NM retVal = this.getTypedField(18, 0); 830 return retVal; 831 } 832 833 834 835 /** 836 * Returns 837 * RXO-19: "Requested Give Strength Units" - creates it if necessary 838 */ 839 public CE getRequestedGiveStrengthUnits() { 840 CE retVal = this.getTypedField(19, 0); 841 return retVal; 842 } 843 844 /** 845 * Returns 846 * RXO-19: "Requested Give Strength Units" - creates it if necessary 847 */ 848 public CE getRxo19_RequestedGiveStrengthUnits() { 849 CE retVal = this.getTypedField(19, 0); 850 return retVal; 851 } 852 853 854 /** 855 * Returns all repetitions of Indication (RXO-20). 856 */ 857 public CE[] getIndication() { 858 CE[] retVal = this.getTypedField(20, new CE[0]); 859 return retVal; 860 } 861 862 863 /** 864 * Returns all repetitions of Indication (RXO-20). 865 */ 866 public CE[] getRxo20_Indication() { 867 CE[] retVal = this.getTypedField(20, new CE[0]); 868 return retVal; 869 } 870 871 872 /** 873 * Returns a count of the current number of repetitions of Indication (RXO-20). 874 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 875 * it will return zero. 876 */ 877 public int getIndicationReps() { 878 return this.getReps(20); 879 } 880 881 882 /** 883 * Returns a specific repetition of 884 * RXO-20: "Indication" - creates it if necessary 885 * 886 * @param rep The repetition index (0-indexed) 887 */ 888 public CE getIndication(int rep) { 889 CE retVal = this.getTypedField(20, rep); 890 return retVal; 891 } 892 893 /** 894 * Returns a specific repetition of 895 * RXO-20: "Indication" - creates it if necessary 896 * 897 * @param rep The repetition index (0-indexed) 898 */ 899 public CE getRxo20_Indication(int rep) { 900 CE retVal = this.getTypedField(20, rep); 901 return retVal; 902 } 903 904 /** 905 * Returns a count of the current number of repetitions of Indication (RXO-20). 906 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 907 * it will return zero. 908 */ 909 public int getRxo20_IndicationReps() { 910 return this.getReps(20); 911 } 912 913 914 /** 915 * Inserts a repetition of 916 * RXO-20: "Indication" at a specific index 917 * 918 * @param rep The repetition index (0-indexed) 919 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 920 */ 921 public CE insertIndication(int rep) throws HL7Exception { 922 return (CE) super.insertRepetition(20, rep); 923 } 924 925 926 /** 927 * Inserts a repetition of 928 * RXO-20: "Indication" at a specific index 929 * 930 * @param rep The repetition index (0-indexed) 931 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 932 */ 933 public CE insertRxo20_Indication(int rep) throws HL7Exception { 934 return (CE) super.insertRepetition(20, rep); 935 } 936 937 938 /** 939 * Removes a repetition of 940 * RXO-20: "Indication" at a specific index 941 * 942 * @param rep The repetition index (0-indexed) 943 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 944 */ 945 public CE removeIndication(int rep) throws HL7Exception { 946 return (CE) super.removeRepetition(20, rep); 947 } 948 949 950 /** 951 * Removes a repetition of 952 * RXO-20: "Indication" at a specific index 953 * 954 * @param rep The repetition index (0-indexed) 955 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 956 */ 957 public CE removeRxo20_Indication(int rep) throws HL7Exception { 958 return (CE) super.removeRepetition(20, rep); 959 } 960 961 962 963 964 /** 965 * Returns 966 * RXO-21: "Requested Give Rate Amount" - creates it if necessary 967 */ 968 public ST getRequestedGiveRateAmount() { 969 ST retVal = this.getTypedField(21, 0); 970 return retVal; 971 } 972 973 /** 974 * Returns 975 * RXO-21: "Requested Give Rate Amount" - creates it if necessary 976 */ 977 public ST getRxo21_RequestedGiveRateAmount() { 978 ST retVal = this.getTypedField(21, 0); 979 return retVal; 980 } 981 982 983 984 /** 985 * Returns 986 * RXO-22: "Requested Give Rate Units" - creates it if necessary 987 */ 988 public CE getRequestedGiveRateUnits() { 989 CE retVal = this.getTypedField(22, 0); 990 return retVal; 991 } 992 993 /** 994 * Returns 995 * RXO-22: "Requested Give Rate Units" - creates it if necessary 996 */ 997 public CE getRxo22_RequestedGiveRateUnits() { 998 CE retVal = this.getTypedField(22, 0); 999 return retVal; 1000 } 1001 1002 1003 1004 /** 1005 * Returns 1006 * RXO-23: "Total Daily Dose" - creates it if necessary 1007 */ 1008 public CQ getTotalDailyDose() { 1009 CQ retVal = this.getTypedField(23, 0); 1010 return retVal; 1011 } 1012 1013 /** 1014 * Returns 1015 * RXO-23: "Total Daily Dose" - creates it if necessary 1016 */ 1017 public CQ getRxo23_TotalDailyDose() { 1018 CQ retVal = this.getTypedField(23, 0); 1019 return retVal; 1020 } 1021 1022 1023 1024 1025 1026 /** {@inheritDoc} */ 1027 protected Type createNewTypeWithoutReflection(int field) { 1028 switch (field) { 1029 case 0: return new CE(getMessage()); 1030 case 1: return new NM(getMessage()); 1031 case 2: return new NM(getMessage()); 1032 case 3: return new CE(getMessage()); 1033 case 4: return new CE(getMessage()); 1034 case 5: return new CE(getMessage()); 1035 case 6: return new CE(getMessage()); 1036 case 7: return new LA1(getMessage()); 1037 case 8: return new ID(getMessage(), new Integer( 161 )); 1038 case 9: return new CE(getMessage()); 1039 case 10: return new NM(getMessage()); 1040 case 11: return new CE(getMessage()); 1041 case 12: return new NM(getMessage()); 1042 case 13: return new XCN(getMessage()); 1043 case 14: return new XCN(getMessage()); 1044 case 15: return new ID(getMessage(), new Integer( 136 )); 1045 case 16: return new ST(getMessage()); 1046 case 17: return new NM(getMessage()); 1047 case 18: return new CE(getMessage()); 1048 case 19: return new CE(getMessage()); 1049 case 20: return new ST(getMessage()); 1050 case 21: return new CE(getMessage()); 1051 case 22: return new CQ(getMessage()); 1052 default: return null; 1053 } 1054 } 1055 1056 1057} 1058