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