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 RF1 message segment (Referral Information). 050 * This segment has the following fields:</p> 051 * <ul> 052 * <li>RF1-1: Referral Status (CWE) <b>optional </b> 053 * <li>RF1-2: Referral Priority (CWE) <b>optional </b> 054 * <li>RF1-3: Referral Type (CWE) <b>optional </b> 055 * <li>RF1-4: Referral Disposition (CWE) <b>optional repeating</b> 056 * <li>RF1-5: Referral Category (CWE) <b>optional </b> 057 * <li>RF1-6: Originating Referral Identifier (EI) <b> </b> 058 * <li>RF1-7: Effective Date (DTM) <b>optional </b> 059 * <li>RF1-8: Expiration Date (DTM) <b>optional </b> 060 * <li>RF1-9: Process Date (DTM) <b>optional </b> 061 * <li>RF1-10: Referral Reason (CWE) <b>optional repeating</b> 062 * <li>RF1-11: External Referral Identifier (EI) <b>optional repeating</b> 063 * <li>RF1-12: Referral Documentation Completion Status (CWE) <b>optional </b> 064 * <li>RF1-13: Planned Treatment Stop Date (DTM) <b>optional </b> 065 * <li>RF1-14: Referral Reason Text (ST) <b>optional </b> 066 * <li>RF1-15: Number of Authorized Treatments/Units (CQ) <b>optional </b> 067 * <li>RF1-16: Number of Used Treatments/Units (CQ) <b>optional </b> 068 * <li>RF1-17: Number of Schedule Treatments/Units (CQ) <b>optional </b> 069 * <li>RF1-18: Remaining Benefit Amount (MO) <b>optional </b> 070 * <li>RF1-19: Authorized Provider (XON) <b>optional </b> 071 * <li>RF1-20: Authorized Health Professional (XCN) <b>optional </b> 072 * <li>RF1-21: Source Text (ST) <b>optional </b> 073 * <li>RF1-22: Source Date (DTM) <b>optional </b> 074 * <li>RF1-23: Source Phone (XTN) <b>optional </b> 075 * <li>RF1-24: Comment (ST) <b>optional </b> 076 * <li>RF1-25: Action Code (ID) <b>optional </b> 077 * </ul> 078 */ 079@SuppressWarnings("unused") 080public class RF1 extends AbstractSegment { 081 082 /** 083 * Creates a new RF1 segment 084 */ 085 public RF1(Group parent, ModelClassFactory factory) { 086 super(parent, factory); 087 init(factory); 088 } 089 090 private void init(ModelClassFactory factory) { 091 try { 092 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Status"); 093 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Priority"); 094 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Type"); 095 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Referral Disposition"); 096 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Category"); 097 this.add(EI.class, true, 1, 0, new Object[]{ getMessage() }, "Originating Referral Identifier"); 098 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Effective Date"); 099 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Expiration Date"); 100 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Process Date"); 101 this.add(CWE.class, false, 0, 0, new Object[]{ getMessage() }, "Referral Reason"); 102 this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "External Referral Identifier"); 103 this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Documentation Completion Status"); 104 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Planned Treatment Stop Date"); 105 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Referral Reason Text"); 106 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Authorized Treatments/Units"); 107 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Used Treatments/Units"); 108 this.add(CQ.class, false, 1, 0, new Object[]{ getMessage() }, "Number of Schedule Treatments/Units"); 109 this.add(MO.class, false, 1, 0, new Object[]{ getMessage() }, "Remaining Benefit Amount"); 110 this.add(XON.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Provider"); 111 this.add(XCN.class, false, 1, 0, new Object[]{ getMessage() }, "Authorized Health Professional"); 112 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Source Text"); 113 this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Source Date"); 114 this.add(XTN.class, false, 1, 0, new Object[]{ getMessage() }, "Source Phone"); 115 this.add(ST.class, false, 1, 0, new Object[]{ getMessage() }, "Comment"); 116 this.add(ID.class, false, 1, 0, new Object[]{ getMessage(), new Integer(206) }, "Action Code"); 117 } catch(HL7Exception e) { 118 log.error("Unexpected error creating RF1 - this is probably a bug in the source code generator.", e); 119 } 120 } 121 122 123 124 /** 125 * Returns 126 * RF1-1: "Referral Status" - creates it if necessary 127 */ 128 public CWE getReferralStatus() { 129 CWE retVal = this.getTypedField(1, 0); 130 return retVal; 131 } 132 133 /** 134 * Returns 135 * RF1-1: "Referral Status" - creates it if necessary 136 */ 137 public CWE getRf11_ReferralStatus() { 138 CWE retVal = this.getTypedField(1, 0); 139 return retVal; 140 } 141 142 143 144 /** 145 * Returns 146 * RF1-2: "Referral Priority" - creates it if necessary 147 */ 148 public CWE getReferralPriority() { 149 CWE retVal = this.getTypedField(2, 0); 150 return retVal; 151 } 152 153 /** 154 * Returns 155 * RF1-2: "Referral Priority" - creates it if necessary 156 */ 157 public CWE getRf12_ReferralPriority() { 158 CWE retVal = this.getTypedField(2, 0); 159 return retVal; 160 } 161 162 163 164 /** 165 * Returns 166 * RF1-3: "Referral Type" - creates it if necessary 167 */ 168 public CWE getReferralType() { 169 CWE retVal = this.getTypedField(3, 0); 170 return retVal; 171 } 172 173 /** 174 * Returns 175 * RF1-3: "Referral Type" - creates it if necessary 176 */ 177 public CWE getRf13_ReferralType() { 178 CWE retVal = this.getTypedField(3, 0); 179 return retVal; 180 } 181 182 183 /** 184 * Returns all repetitions of Referral Disposition (RF1-4). 185 */ 186 public CWE[] getReferralDisposition() { 187 CWE[] retVal = this.getTypedField(4, new CWE[0]); 188 return retVal; 189 } 190 191 192 /** 193 * Returns all repetitions of Referral Disposition (RF1-4). 194 */ 195 public CWE[] getRf14_ReferralDisposition() { 196 CWE[] retVal = this.getTypedField(4, new CWE[0]); 197 return retVal; 198 } 199 200 201 /** 202 * Returns a count of the current number of repetitions of Referral Disposition (RF1-4). 203 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 204 * it will return zero. 205 */ 206 public int getReferralDispositionReps() { 207 return this.getReps(4); 208 } 209 210 211 /** 212 * Returns a specific repetition of 213 * RF1-4: "Referral Disposition" - creates it if necessary 214 * 215 * @param rep The repetition index (0-indexed) 216 */ 217 public CWE getReferralDisposition(int rep) { 218 CWE retVal = this.getTypedField(4, rep); 219 return retVal; 220 } 221 222 /** 223 * Returns a specific repetition of 224 * RF1-4: "Referral Disposition" - creates it if necessary 225 * 226 * @param rep The repetition index (0-indexed) 227 */ 228 public CWE getRf14_ReferralDisposition(int rep) { 229 CWE retVal = this.getTypedField(4, rep); 230 return retVal; 231 } 232 233 /** 234 * Returns a count of the current number of repetitions of Referral Disposition (RF1-4). 235 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 236 * it will return zero. 237 */ 238 public int getRf14_ReferralDispositionReps() { 239 return this.getReps(4); 240 } 241 242 243 /** 244 * Inserts a repetition of 245 * RF1-4: "Referral Disposition" at a specific index 246 * 247 * @param rep The repetition index (0-indexed) 248 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 249 */ 250 public CWE insertReferralDisposition(int rep) throws HL7Exception { 251 return (CWE) super.insertRepetition(4, rep); 252 } 253 254 255 /** 256 * Inserts a repetition of 257 * RF1-4: "Referral Disposition" at a specific index 258 * 259 * @param rep The repetition index (0-indexed) 260 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 261 */ 262 public CWE insertRf14_ReferralDisposition(int rep) throws HL7Exception { 263 return (CWE) super.insertRepetition(4, rep); 264 } 265 266 267 /** 268 * Removes a repetition of 269 * RF1-4: "Referral Disposition" at a specific index 270 * 271 * @param rep The repetition index (0-indexed) 272 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 273 */ 274 public CWE removeReferralDisposition(int rep) throws HL7Exception { 275 return (CWE) super.removeRepetition(4, rep); 276 } 277 278 279 /** 280 * Removes a repetition of 281 * RF1-4: "Referral Disposition" at a specific index 282 * 283 * @param rep The repetition index (0-indexed) 284 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 285 */ 286 public CWE removeRf14_ReferralDisposition(int rep) throws HL7Exception { 287 return (CWE) super.removeRepetition(4, rep); 288 } 289 290 291 292 293 /** 294 * Returns 295 * RF1-5: "Referral Category" - creates it if necessary 296 */ 297 public CWE getReferralCategory() { 298 CWE retVal = this.getTypedField(5, 0); 299 return retVal; 300 } 301 302 /** 303 * Returns 304 * RF1-5: "Referral Category" - creates it if necessary 305 */ 306 public CWE getRf15_ReferralCategory() { 307 CWE retVal = this.getTypedField(5, 0); 308 return retVal; 309 } 310 311 312 313 /** 314 * Returns 315 * RF1-6: "Originating Referral Identifier" - creates it if necessary 316 */ 317 public EI getOriginatingReferralIdentifier() { 318 EI retVal = this.getTypedField(6, 0); 319 return retVal; 320 } 321 322 /** 323 * Returns 324 * RF1-6: "Originating Referral Identifier" - creates it if necessary 325 */ 326 public EI getRf16_OriginatingReferralIdentifier() { 327 EI retVal = this.getTypedField(6, 0); 328 return retVal; 329 } 330 331 332 333 /** 334 * Returns 335 * RF1-7: "Effective Date" - creates it if necessary 336 */ 337 public DTM getEffectiveDate() { 338 DTM retVal = this.getTypedField(7, 0); 339 return retVal; 340 } 341 342 /** 343 * Returns 344 * RF1-7: "Effective Date" - creates it if necessary 345 */ 346 public DTM getRf17_EffectiveDate() { 347 DTM retVal = this.getTypedField(7, 0); 348 return retVal; 349 } 350 351 352 353 /** 354 * Returns 355 * RF1-8: "Expiration Date" - creates it if necessary 356 */ 357 public DTM getExpirationDate() { 358 DTM retVal = this.getTypedField(8, 0); 359 return retVal; 360 } 361 362 /** 363 * Returns 364 * RF1-8: "Expiration Date" - creates it if necessary 365 */ 366 public DTM getRf18_ExpirationDate() { 367 DTM retVal = this.getTypedField(8, 0); 368 return retVal; 369 } 370 371 372 373 /** 374 * Returns 375 * RF1-9: "Process Date" - creates it if necessary 376 */ 377 public DTM getProcessDate() { 378 DTM retVal = this.getTypedField(9, 0); 379 return retVal; 380 } 381 382 /** 383 * Returns 384 * RF1-9: "Process Date" - creates it if necessary 385 */ 386 public DTM getRf19_ProcessDate() { 387 DTM retVal = this.getTypedField(9, 0); 388 return retVal; 389 } 390 391 392 /** 393 * Returns all repetitions of Referral Reason (RF1-10). 394 */ 395 public CWE[] getReferralReason() { 396 CWE[] retVal = this.getTypedField(10, new CWE[0]); 397 return retVal; 398 } 399 400 401 /** 402 * Returns all repetitions of Referral Reason (RF1-10). 403 */ 404 public CWE[] getRf110_ReferralReason() { 405 CWE[] retVal = this.getTypedField(10, new CWE[0]); 406 return retVal; 407 } 408 409 410 /** 411 * Returns a count of the current number of repetitions of Referral Reason (RF1-10). 412 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 413 * it will return zero. 414 */ 415 public int getReferralReasonReps() { 416 return this.getReps(10); 417 } 418 419 420 /** 421 * Returns a specific repetition of 422 * RF1-10: "Referral Reason" - creates it if necessary 423 * 424 * @param rep The repetition index (0-indexed) 425 */ 426 public CWE getReferralReason(int rep) { 427 CWE retVal = this.getTypedField(10, rep); 428 return retVal; 429 } 430 431 /** 432 * Returns a specific repetition of 433 * RF1-10: "Referral Reason" - creates it if necessary 434 * 435 * @param rep The repetition index (0-indexed) 436 */ 437 public CWE getRf110_ReferralReason(int rep) { 438 CWE retVal = this.getTypedField(10, rep); 439 return retVal; 440 } 441 442 /** 443 * Returns a count of the current number of repetitions of Referral Reason (RF1-10). 444 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 445 * it will return zero. 446 */ 447 public int getRf110_ReferralReasonReps() { 448 return this.getReps(10); 449 } 450 451 452 /** 453 * Inserts a repetition of 454 * RF1-10: "Referral Reason" at a specific index 455 * 456 * @param rep The repetition index (0-indexed) 457 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 458 */ 459 public CWE insertReferralReason(int rep) throws HL7Exception { 460 return (CWE) super.insertRepetition(10, rep); 461 } 462 463 464 /** 465 * Inserts a repetition of 466 * RF1-10: "Referral Reason" at a specific index 467 * 468 * @param rep The repetition index (0-indexed) 469 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 470 */ 471 public CWE insertRf110_ReferralReason(int rep) throws HL7Exception { 472 return (CWE) super.insertRepetition(10, rep); 473 } 474 475 476 /** 477 * Removes a repetition of 478 * RF1-10: "Referral Reason" at a specific index 479 * 480 * @param rep The repetition index (0-indexed) 481 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 482 */ 483 public CWE removeReferralReason(int rep) throws HL7Exception { 484 return (CWE) super.removeRepetition(10, rep); 485 } 486 487 488 /** 489 * Removes a repetition of 490 * RF1-10: "Referral Reason" at a specific index 491 * 492 * @param rep The repetition index (0-indexed) 493 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 494 */ 495 public CWE removeRf110_ReferralReason(int rep) throws HL7Exception { 496 return (CWE) super.removeRepetition(10, rep); 497 } 498 499 500 501 /** 502 * Returns all repetitions of External Referral Identifier (RF1-11). 503 */ 504 public EI[] getExternalReferralIdentifier() { 505 EI[] retVal = this.getTypedField(11, new EI[0]); 506 return retVal; 507 } 508 509 510 /** 511 * Returns all repetitions of External Referral Identifier (RF1-11). 512 */ 513 public EI[] getRf111_ExternalReferralIdentifier() { 514 EI[] retVal = this.getTypedField(11, new EI[0]); 515 return retVal; 516 } 517 518 519 /** 520 * Returns a count of the current number of repetitions of External Referral Identifier (RF1-11). 521 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 522 * it will return zero. 523 */ 524 public int getExternalReferralIdentifierReps() { 525 return this.getReps(11); 526 } 527 528 529 /** 530 * Returns a specific repetition of 531 * RF1-11: "External Referral Identifier" - creates it if necessary 532 * 533 * @param rep The repetition index (0-indexed) 534 */ 535 public EI getExternalReferralIdentifier(int rep) { 536 EI retVal = this.getTypedField(11, rep); 537 return retVal; 538 } 539 540 /** 541 * Returns a specific repetition of 542 * RF1-11: "External Referral Identifier" - creates it if necessary 543 * 544 * @param rep The repetition index (0-indexed) 545 */ 546 public EI getRf111_ExternalReferralIdentifier(int rep) { 547 EI retVal = this.getTypedField(11, rep); 548 return retVal; 549 } 550 551 /** 552 * Returns a count of the current number of repetitions of External Referral Identifier (RF1-11). 553 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 554 * it will return zero. 555 */ 556 public int getRf111_ExternalReferralIdentifierReps() { 557 return this.getReps(11); 558 } 559 560 561 /** 562 * Inserts a repetition of 563 * RF1-11: "External Referral Identifier" at a specific index 564 * 565 * @param rep The repetition index (0-indexed) 566 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 567 */ 568 public EI insertExternalReferralIdentifier(int rep) throws HL7Exception { 569 return (EI) super.insertRepetition(11, rep); 570 } 571 572 573 /** 574 * Inserts a repetition of 575 * RF1-11: "External Referral Identifier" at a specific index 576 * 577 * @param rep The repetition index (0-indexed) 578 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 579 */ 580 public EI insertRf111_ExternalReferralIdentifier(int rep) throws HL7Exception { 581 return (EI) super.insertRepetition(11, rep); 582 } 583 584 585 /** 586 * Removes a repetition of 587 * RF1-11: "External Referral Identifier" at a specific index 588 * 589 * @param rep The repetition index (0-indexed) 590 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 591 */ 592 public EI removeExternalReferralIdentifier(int rep) throws HL7Exception { 593 return (EI) super.removeRepetition(11, rep); 594 } 595 596 597 /** 598 * Removes a repetition of 599 * RF1-11: "External Referral Identifier" at a specific index 600 * 601 * @param rep The repetition index (0-indexed) 602 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 603 */ 604 public EI removeRf111_ExternalReferralIdentifier(int rep) throws HL7Exception { 605 return (EI) super.removeRepetition(11, rep); 606 } 607 608 609 610 611 /** 612 * Returns 613 * RF1-12: "Referral Documentation Completion Status" - creates it if necessary 614 */ 615 public CWE getReferralDocumentationCompletionStatus() { 616 CWE retVal = this.getTypedField(12, 0); 617 return retVal; 618 } 619 620 /** 621 * Returns 622 * RF1-12: "Referral Documentation Completion Status" - creates it if necessary 623 */ 624 public CWE getRf112_ReferralDocumentationCompletionStatus() { 625 CWE retVal = this.getTypedField(12, 0); 626 return retVal; 627 } 628 629 630 631 /** 632 * Returns 633 * RF1-13: "Planned Treatment Stop Date" - creates it if necessary 634 */ 635 public DTM getPlannedTreatmentStopDate() { 636 DTM retVal = this.getTypedField(13, 0); 637 return retVal; 638 } 639 640 /** 641 * Returns 642 * RF1-13: "Planned Treatment Stop Date" - creates it if necessary 643 */ 644 public DTM getRf113_PlannedTreatmentStopDate() { 645 DTM retVal = this.getTypedField(13, 0); 646 return retVal; 647 } 648 649 650 651 /** 652 * Returns 653 * RF1-14: "Referral Reason Text" - creates it if necessary 654 */ 655 public ST getReferralReasonText() { 656 ST retVal = this.getTypedField(14, 0); 657 return retVal; 658 } 659 660 /** 661 * Returns 662 * RF1-14: "Referral Reason Text" - creates it if necessary 663 */ 664 public ST getRf114_ReferralReasonText() { 665 ST retVal = this.getTypedField(14, 0); 666 return retVal; 667 } 668 669 670 671 /** 672 * Returns 673 * RF1-15: "Number of Authorized Treatments/Units" - creates it if necessary 674 */ 675 public CQ getNumberOfAuthorizedTreatmentsUnits() { 676 CQ retVal = this.getTypedField(15, 0); 677 return retVal; 678 } 679 680 /** 681 * Returns 682 * RF1-15: "Number of Authorized Treatments/Units" - creates it if necessary 683 */ 684 public CQ getRf115_NumberOfAuthorizedTreatmentsUnits() { 685 CQ retVal = this.getTypedField(15, 0); 686 return retVal; 687 } 688 689 690 691 /** 692 * Returns 693 * RF1-16: "Number of Used Treatments/Units" - creates it if necessary 694 */ 695 public CQ getNumberOfUsedTreatmentsUnits() { 696 CQ retVal = this.getTypedField(16, 0); 697 return retVal; 698 } 699 700 /** 701 * Returns 702 * RF1-16: "Number of Used Treatments/Units" - creates it if necessary 703 */ 704 public CQ getRf116_NumberOfUsedTreatmentsUnits() { 705 CQ retVal = this.getTypedField(16, 0); 706 return retVal; 707 } 708 709 710 711 /** 712 * Returns 713 * RF1-17: "Number of Schedule Treatments/Units" - creates it if necessary 714 */ 715 public CQ getNumberOfScheduleTreatmentsUnits() { 716 CQ retVal = this.getTypedField(17, 0); 717 return retVal; 718 } 719 720 /** 721 * Returns 722 * RF1-17: "Number of Schedule Treatments/Units" - creates it if necessary 723 */ 724 public CQ getRf117_NumberOfScheduleTreatmentsUnits() { 725 CQ retVal = this.getTypedField(17, 0); 726 return retVal; 727 } 728 729 730 731 /** 732 * Returns 733 * RF1-18: "Remaining Benefit Amount" - creates it if necessary 734 */ 735 public MO getRemainingBenefitAmount() { 736 MO retVal = this.getTypedField(18, 0); 737 return retVal; 738 } 739 740 /** 741 * Returns 742 * RF1-18: "Remaining Benefit Amount" - creates it if necessary 743 */ 744 public MO getRf118_RemainingBenefitAmount() { 745 MO retVal = this.getTypedField(18, 0); 746 return retVal; 747 } 748 749 750 751 /** 752 * Returns 753 * RF1-19: "Authorized Provider" - creates it if necessary 754 */ 755 public XON getAuthorizedProvider() { 756 XON retVal = this.getTypedField(19, 0); 757 return retVal; 758 } 759 760 /** 761 * Returns 762 * RF1-19: "Authorized Provider" - creates it if necessary 763 */ 764 public XON getRf119_AuthorizedProvider() { 765 XON retVal = this.getTypedField(19, 0); 766 return retVal; 767 } 768 769 770 771 /** 772 * Returns 773 * RF1-20: "Authorized Health Professional" - creates it if necessary 774 */ 775 public XCN getAuthorizedHealthProfessional() { 776 XCN retVal = this.getTypedField(20, 0); 777 return retVal; 778 } 779 780 /** 781 * Returns 782 * RF1-20: "Authorized Health Professional" - creates it if necessary 783 */ 784 public XCN getRf120_AuthorizedHealthProfessional() { 785 XCN retVal = this.getTypedField(20, 0); 786 return retVal; 787 } 788 789 790 791 /** 792 * Returns 793 * RF1-21: "Source Text" - creates it if necessary 794 */ 795 public ST getSourceText() { 796 ST retVal = this.getTypedField(21, 0); 797 return retVal; 798 } 799 800 /** 801 * Returns 802 * RF1-21: "Source Text" - creates it if necessary 803 */ 804 public ST getRf121_SourceText() { 805 ST retVal = this.getTypedField(21, 0); 806 return retVal; 807 } 808 809 810 811 /** 812 * Returns 813 * RF1-22: "Source Date" - creates it if necessary 814 */ 815 public DTM getSourceDate() { 816 DTM retVal = this.getTypedField(22, 0); 817 return retVal; 818 } 819 820 /** 821 * Returns 822 * RF1-22: "Source Date" - creates it if necessary 823 */ 824 public DTM getRf122_SourceDate() { 825 DTM retVal = this.getTypedField(22, 0); 826 return retVal; 827 } 828 829 830 831 /** 832 * Returns 833 * RF1-23: "Source Phone" - creates it if necessary 834 */ 835 public XTN getSourcePhone() { 836 XTN retVal = this.getTypedField(23, 0); 837 return retVal; 838 } 839 840 /** 841 * Returns 842 * RF1-23: "Source Phone" - creates it if necessary 843 */ 844 public XTN getRf123_SourcePhone() { 845 XTN retVal = this.getTypedField(23, 0); 846 return retVal; 847 } 848 849 850 851 /** 852 * Returns 853 * RF1-24: "Comment" - creates it if necessary 854 */ 855 public ST getComment() { 856 ST retVal = this.getTypedField(24, 0); 857 return retVal; 858 } 859 860 /** 861 * Returns 862 * RF1-24: "Comment" - creates it if necessary 863 */ 864 public ST getRf124_Comment() { 865 ST retVal = this.getTypedField(24, 0); 866 return retVal; 867 } 868 869 870 871 /** 872 * Returns 873 * RF1-25: "Action Code" - creates it if necessary 874 */ 875 public ID getActionCode() { 876 ID retVal = this.getTypedField(25, 0); 877 return retVal; 878 } 879 880 /** 881 * Returns 882 * RF1-25: "Action Code" - creates it if necessary 883 */ 884 public ID getRf125_ActionCode() { 885 ID retVal = this.getTypedField(25, 0); 886 return retVal; 887 } 888 889 890 891 892 893 /** {@inheritDoc} */ 894 protected Type createNewTypeWithoutReflection(int field) { 895 switch (field) { 896 case 0: return new CWE(getMessage()); 897 case 1: return new CWE(getMessage()); 898 case 2: return new CWE(getMessage()); 899 case 3: return new CWE(getMessage()); 900 case 4: return new CWE(getMessage()); 901 case 5: return new EI(getMessage()); 902 case 6: return new DTM(getMessage()); 903 case 7: return new DTM(getMessage()); 904 case 8: return new DTM(getMessage()); 905 case 9: return new CWE(getMessage()); 906 case 10: return new EI(getMessage()); 907 case 11: return new CWE(getMessage()); 908 case 12: return new DTM(getMessage()); 909 case 13: return new ST(getMessage()); 910 case 14: return new CQ(getMessage()); 911 case 15: return new CQ(getMessage()); 912 case 16: return new CQ(getMessage()); 913 case 17: return new MO(getMessage()); 914 case 18: return new XON(getMessage()); 915 case 19: return new XCN(getMessage()); 916 case 20: return new ST(getMessage()); 917 case 21: return new DTM(getMessage()); 918 case 22: return new XTN(getMessage()); 919 case 23: return new ST(getMessage()); 920 case 24: return new ID(getMessage(), new Integer( 206 )); 921 default: return null; 922 } 923 } 924 925 926} 927