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/** 049 *<p>Represents an HL7 SCH message segment (SCH - schedule activity information segment). 050 * This segment has the following fields:</p> 051 * <ul> 052 * <li>SCH-1: Placer Appointment ID (EI) <b>optional </b> 053 * <li>SCH-2: Filler Appointment ID (EI) <b>optional </b> 054 * <li>SCH-3: Occurrence Number (NM) <b>optional </b> 055 * <li>SCH-4: Placer Group Number (EI) <b>optional </b> 056 * <li>SCH-5: Schedule ID (CE) <b>optional </b> 057 * <li>SCH-6: Event Reason (CE) <b> </b> 058 * <li>SCH-7: Appointment Reason (CE) <b>optional </b> 059 * <li>SCH-8: Appointment Type (CE) <b>optional </b> 060 * <li>SCH-9: Appointment Duration (NM) <b>optional </b> 061 * <li>SCH-10: Appointment Duration Units (CE) <b>optional </b> 062 * <li>SCH-11: Appointment Timing Quantity (TQ) <b> repeating</b> 063 * <li>SCH-12: Placer Contact Person (XCN) <b>optional repeating</b> 064 * <li>SCH-13: Placer Contact Phone Number (XTN) <b>optional </b> 065 * <li>SCH-14: Placer Contact Address (XAD) <b>optional repeating</b> 066 * <li>SCH-15: Placer Contact Location (PL) <b>optional </b> 067 * <li>SCH-16: Filler Contact Person (XCN) <b> repeating</b> 068 * <li>SCH-17: Filler Contact Phone Number (XTN) <b>optional </b> 069 * <li>SCH-18: Filler Contact Address (XAD) <b>optional repeating</b> 070 * <li>SCH-19: Filler Contact Location (PL) <b>optional </b> 071 * <li>SCH-20: Entered by Person (XCN) <b> repeating</b> 072 * <li>SCH-21: Entered by Phone Number (XTN) <b>optional repeating</b> 073 * <li>SCH-22: Entered by Location (PL) <b>optional </b> 074 * <li>SCH-23: Parent Placer Appointment ID (EI) <b>optional </b> 075 * <li>SCH-24: Parent Filler Appointment ID (EI) <b>optional </b> 076 * <li>SCH-25: Filler Status Code (CE) <b>optional </b> 077 * </ul> 078 */ 079@SuppressWarnings("unused") 080public class SCH extends AbstractSegment { 081 082 /** 083 * Creates a new SCH segment 084 */ 085 public SCH(Group parent, ModelClassFactory factory) { 086 super(parent, factory); 087 init(factory); 088 } 089 090 private void init(ModelClassFactory factory) { 091 try { 092 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Placer Appointment ID"); 093 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Filler Appointment ID"); 094 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Occurrence Number"); 095 this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Placer Group Number"); 096 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Schedule ID"); 097 this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Event Reason"); 098 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Reason"); 099 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Type"); 100 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Appointment Duration"); 101 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Appointment Duration Units"); 102 this.add(TQ.class, true, 0, 200, new Object[]{ getMessage() }, "Appointment Timing Quantity"); 103 this.add(XCN.class, false, 0, 48, new Object[]{ getMessage() }, "Placer Contact Person"); 104 this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Placer Contact Phone Number"); 105 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Placer Contact Address"); 106 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Placer Contact Location"); 107 this.add(XCN.class, true, 0, 38, new Object[]{ getMessage() }, "Filler Contact Person"); 108 this.add(XTN.class, false, 1, 40, new Object[]{ getMessage() }, "Filler Contact Phone Number"); 109 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Filler Contact Address"); 110 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Filler Contact Location"); 111 this.add(XCN.class, true, 0, 48, new Object[]{ getMessage() }, "Entered by Person"); 112 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Entered by Phone Number"); 113 this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Entered by Location"); 114 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Placer Appointment ID"); 115 this.add(EI.class, false, 1, 75, new Object[]{ getMessage() }, "Parent Filler Appointment ID"); 116 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Filler Status Code"); 117 } catch(HL7Exception e) { 118 log.error("Unexpected error creating SCH - this is probably a bug in the source code generator.", e); 119 } 120 } 121 122 123 124 /** 125 * Returns 126 * SCH-1: "Placer Appointment ID" - creates it if necessary 127 */ 128 public EI getPlacerAppointmentID() { 129 EI retVal = this.getTypedField(1, 0); 130 return retVal; 131 } 132 133 /** 134 * Returns 135 * SCH-1: "Placer Appointment ID" - creates it if necessary 136 */ 137 public EI getSch1_PlacerAppointmentID() { 138 EI retVal = this.getTypedField(1, 0); 139 return retVal; 140 } 141 142 143 144 /** 145 * Returns 146 * SCH-2: "Filler Appointment ID" - creates it if necessary 147 */ 148 public EI getFillerAppointmentID() { 149 EI retVal = this.getTypedField(2, 0); 150 return retVal; 151 } 152 153 /** 154 * Returns 155 * SCH-2: "Filler Appointment ID" - creates it if necessary 156 */ 157 public EI getSch2_FillerAppointmentID() { 158 EI retVal = this.getTypedField(2, 0); 159 return retVal; 160 } 161 162 163 164 /** 165 * Returns 166 * SCH-3: "Occurrence Number" - creates it if necessary 167 */ 168 public NM getOccurrenceNumber() { 169 NM retVal = this.getTypedField(3, 0); 170 return retVal; 171 } 172 173 /** 174 * Returns 175 * SCH-3: "Occurrence Number" - creates it if necessary 176 */ 177 public NM getSch3_OccurrenceNumber() { 178 NM retVal = this.getTypedField(3, 0); 179 return retVal; 180 } 181 182 183 184 /** 185 * Returns 186 * SCH-4: "Placer Group Number" - creates it if necessary 187 */ 188 public EI getPlacerGroupNumber() { 189 EI retVal = this.getTypedField(4, 0); 190 return retVal; 191 } 192 193 /** 194 * Returns 195 * SCH-4: "Placer Group Number" - creates it if necessary 196 */ 197 public EI getSch4_PlacerGroupNumber() { 198 EI retVal = this.getTypedField(4, 0); 199 return retVal; 200 } 201 202 203 204 /** 205 * Returns 206 * SCH-5: "Schedule ID" - creates it if necessary 207 */ 208 public CE getScheduleID() { 209 CE retVal = this.getTypedField(5, 0); 210 return retVal; 211 } 212 213 /** 214 * Returns 215 * SCH-5: "Schedule ID" - creates it if necessary 216 */ 217 public CE getSch5_ScheduleID() { 218 CE retVal = this.getTypedField(5, 0); 219 return retVal; 220 } 221 222 223 224 /** 225 * Returns 226 * SCH-6: "Event Reason" - creates it if necessary 227 */ 228 public CE getEventReason() { 229 CE retVal = this.getTypedField(6, 0); 230 return retVal; 231 } 232 233 /** 234 * Returns 235 * SCH-6: "Event Reason" - creates it if necessary 236 */ 237 public CE getSch6_EventReason() { 238 CE retVal = this.getTypedField(6, 0); 239 return retVal; 240 } 241 242 243 244 /** 245 * Returns 246 * SCH-7: "Appointment Reason" - creates it if necessary 247 */ 248 public CE getAppointmentReason() { 249 CE retVal = this.getTypedField(7, 0); 250 return retVal; 251 } 252 253 /** 254 * Returns 255 * SCH-7: "Appointment Reason" - creates it if necessary 256 */ 257 public CE getSch7_AppointmentReason() { 258 CE retVal = this.getTypedField(7, 0); 259 return retVal; 260 } 261 262 263 264 /** 265 * Returns 266 * SCH-8: "Appointment Type" - creates it if necessary 267 */ 268 public CE getAppointmentType() { 269 CE retVal = this.getTypedField(8, 0); 270 return retVal; 271 } 272 273 /** 274 * Returns 275 * SCH-8: "Appointment Type" - creates it if necessary 276 */ 277 public CE getSch8_AppointmentType() { 278 CE retVal = this.getTypedField(8, 0); 279 return retVal; 280 } 281 282 283 284 /** 285 * Returns 286 * SCH-9: "Appointment Duration" - creates it if necessary 287 */ 288 public NM getAppointmentDuration() { 289 NM retVal = this.getTypedField(9, 0); 290 return retVal; 291 } 292 293 /** 294 * Returns 295 * SCH-9: "Appointment Duration" - creates it if necessary 296 */ 297 public NM getSch9_AppointmentDuration() { 298 NM retVal = this.getTypedField(9, 0); 299 return retVal; 300 } 301 302 303 304 /** 305 * Returns 306 * SCH-10: "Appointment Duration Units" - creates it if necessary 307 */ 308 public CE getAppointmentDurationUnits() { 309 CE retVal = this.getTypedField(10, 0); 310 return retVal; 311 } 312 313 /** 314 * Returns 315 * SCH-10: "Appointment Duration Units" - creates it if necessary 316 */ 317 public CE getSch10_AppointmentDurationUnits() { 318 CE retVal = this.getTypedField(10, 0); 319 return retVal; 320 } 321 322 323 /** 324 * Returns all repetitions of Appointment Timing Quantity (SCH-11). 325 */ 326 public TQ[] getAppointmentTimingQuantity() { 327 TQ[] retVal = this.getTypedField(11, new TQ[0]); 328 return retVal; 329 } 330 331 332 /** 333 * Returns all repetitions of Appointment Timing Quantity (SCH-11). 334 */ 335 public TQ[] getSch11_AppointmentTimingQuantity() { 336 TQ[] retVal = this.getTypedField(11, new TQ[0]); 337 return retVal; 338 } 339 340 341 /** 342 * Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11). 343 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 344 * it will return zero. 345 */ 346 public int getAppointmentTimingQuantityReps() { 347 return this.getReps(11); 348 } 349 350 351 /** 352 * Returns a specific repetition of 353 * SCH-11: "Appointment Timing Quantity" - creates it if necessary 354 * 355 * @param rep The repetition index (0-indexed) 356 */ 357 public TQ getAppointmentTimingQuantity(int rep) { 358 TQ retVal = this.getTypedField(11, rep); 359 return retVal; 360 } 361 362 /** 363 * Returns a specific repetition of 364 * SCH-11: "Appointment Timing Quantity" - creates it if necessary 365 * 366 * @param rep The repetition index (0-indexed) 367 */ 368 public TQ getSch11_AppointmentTimingQuantity(int rep) { 369 TQ retVal = this.getTypedField(11, rep); 370 return retVal; 371 } 372 373 /** 374 * Returns a count of the current number of repetitions of Appointment Timing Quantity (SCH-11). 375 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 376 * it will return zero. 377 */ 378 public int getSch11_AppointmentTimingQuantityReps() { 379 return this.getReps(11); 380 } 381 382 383 /** 384 * Inserts a repetition of 385 * SCH-11: "Appointment Timing Quantity" at a specific index 386 * 387 * @param rep The repetition index (0-indexed) 388 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 389 */ 390 public TQ insertAppointmentTimingQuantity(int rep) throws HL7Exception { 391 return (TQ) super.insertRepetition(11, rep); 392 } 393 394 395 /** 396 * Inserts a repetition of 397 * SCH-11: "Appointment Timing Quantity" at a specific index 398 * 399 * @param rep The repetition index (0-indexed) 400 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 401 */ 402 public TQ insertSch11_AppointmentTimingQuantity(int rep) throws HL7Exception { 403 return (TQ) super.insertRepetition(11, rep); 404 } 405 406 407 /** 408 * Removes a repetition of 409 * SCH-11: "Appointment Timing Quantity" at a specific index 410 * 411 * @param rep The repetition index (0-indexed) 412 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 413 */ 414 public TQ removeAppointmentTimingQuantity(int rep) throws HL7Exception { 415 return (TQ) super.removeRepetition(11, rep); 416 } 417 418 419 /** 420 * Removes a repetition of 421 * SCH-11: "Appointment Timing Quantity" at a specific index 422 * 423 * @param rep The repetition index (0-indexed) 424 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 425 */ 426 public TQ removeSch11_AppointmentTimingQuantity(int rep) throws HL7Exception { 427 return (TQ) super.removeRepetition(11, rep); 428 } 429 430 431 432 /** 433 * Returns all repetitions of Placer Contact Person (SCH-12). 434 */ 435 public XCN[] getPlacerContactPerson() { 436 XCN[] retVal = this.getTypedField(12, new XCN[0]); 437 return retVal; 438 } 439 440 441 /** 442 * Returns all repetitions of Placer Contact Person (SCH-12). 443 */ 444 public XCN[] getSch12_PlacerContactPerson() { 445 XCN[] retVal = this.getTypedField(12, new XCN[0]); 446 return retVal; 447 } 448 449 450 /** 451 * Returns a count of the current number of repetitions of Placer Contact Person (SCH-12). 452 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 453 * it will return zero. 454 */ 455 public int getPlacerContactPersonReps() { 456 return this.getReps(12); 457 } 458 459 460 /** 461 * Returns a specific repetition of 462 * SCH-12: "Placer Contact Person" - creates it if necessary 463 * 464 * @param rep The repetition index (0-indexed) 465 */ 466 public XCN getPlacerContactPerson(int rep) { 467 XCN retVal = this.getTypedField(12, rep); 468 return retVal; 469 } 470 471 /** 472 * Returns a specific repetition of 473 * SCH-12: "Placer Contact Person" - creates it if necessary 474 * 475 * @param rep The repetition index (0-indexed) 476 */ 477 public XCN getSch12_PlacerContactPerson(int rep) { 478 XCN retVal = this.getTypedField(12, rep); 479 return retVal; 480 } 481 482 /** 483 * Returns a count of the current number of repetitions of Placer Contact Person (SCH-12). 484 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 485 * it will return zero. 486 */ 487 public int getSch12_PlacerContactPersonReps() { 488 return this.getReps(12); 489 } 490 491 492 /** 493 * Inserts a repetition of 494 * SCH-12: "Placer Contact Person" at a specific index 495 * 496 * @param rep The repetition index (0-indexed) 497 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 498 */ 499 public XCN insertPlacerContactPerson(int rep) throws HL7Exception { 500 return (XCN) super.insertRepetition(12, rep); 501 } 502 503 504 /** 505 * Inserts a repetition of 506 * SCH-12: "Placer Contact Person" at a specific index 507 * 508 * @param rep The repetition index (0-indexed) 509 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 510 */ 511 public XCN insertSch12_PlacerContactPerson(int rep) throws HL7Exception { 512 return (XCN) super.insertRepetition(12, rep); 513 } 514 515 516 /** 517 * Removes a repetition of 518 * SCH-12: "Placer Contact Person" at a specific index 519 * 520 * @param rep The repetition index (0-indexed) 521 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 522 */ 523 public XCN removePlacerContactPerson(int rep) throws HL7Exception { 524 return (XCN) super.removeRepetition(12, rep); 525 } 526 527 528 /** 529 * Removes a repetition of 530 * SCH-12: "Placer Contact Person" at a specific index 531 * 532 * @param rep The repetition index (0-indexed) 533 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 534 */ 535 public XCN removeSch12_PlacerContactPerson(int rep) throws HL7Exception { 536 return (XCN) super.removeRepetition(12, rep); 537 } 538 539 540 541 542 /** 543 * Returns 544 * SCH-13: "Placer Contact Phone Number" - creates it if necessary 545 */ 546 public XTN getPlacerContactPhoneNumber() { 547 XTN retVal = this.getTypedField(13, 0); 548 return retVal; 549 } 550 551 /** 552 * Returns 553 * SCH-13: "Placer Contact Phone Number" - creates it if necessary 554 */ 555 public XTN getSch13_PlacerContactPhoneNumber() { 556 XTN retVal = this.getTypedField(13, 0); 557 return retVal; 558 } 559 560 561 /** 562 * Returns all repetitions of Placer Contact Address (SCH-14). 563 */ 564 public XAD[] getPlacerContactAddress() { 565 XAD[] retVal = this.getTypedField(14, new XAD[0]); 566 return retVal; 567 } 568 569 570 /** 571 * Returns all repetitions of Placer Contact Address (SCH-14). 572 */ 573 public XAD[] getSch14_PlacerContactAddress() { 574 XAD[] retVal = this.getTypedField(14, new XAD[0]); 575 return retVal; 576 } 577 578 579 /** 580 * Returns a count of the current number of repetitions of Placer Contact Address (SCH-14). 581 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 582 * it will return zero. 583 */ 584 public int getPlacerContactAddressReps() { 585 return this.getReps(14); 586 } 587 588 589 /** 590 * Returns a specific repetition of 591 * SCH-14: "Placer Contact Address" - creates it if necessary 592 * 593 * @param rep The repetition index (0-indexed) 594 */ 595 public XAD getPlacerContactAddress(int rep) { 596 XAD retVal = this.getTypedField(14, rep); 597 return retVal; 598 } 599 600 /** 601 * Returns a specific repetition of 602 * SCH-14: "Placer Contact Address" - creates it if necessary 603 * 604 * @param rep The repetition index (0-indexed) 605 */ 606 public XAD getSch14_PlacerContactAddress(int rep) { 607 XAD retVal = this.getTypedField(14, rep); 608 return retVal; 609 } 610 611 /** 612 * Returns a count of the current number of repetitions of Placer Contact Address (SCH-14). 613 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 614 * it will return zero. 615 */ 616 public int getSch14_PlacerContactAddressReps() { 617 return this.getReps(14); 618 } 619 620 621 /** 622 * Inserts a repetition of 623 * SCH-14: "Placer Contact Address" at a specific index 624 * 625 * @param rep The repetition index (0-indexed) 626 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 627 */ 628 public XAD insertPlacerContactAddress(int rep) throws HL7Exception { 629 return (XAD) super.insertRepetition(14, rep); 630 } 631 632 633 /** 634 * Inserts a repetition of 635 * SCH-14: "Placer Contact Address" at a specific index 636 * 637 * @param rep The repetition index (0-indexed) 638 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 639 */ 640 public XAD insertSch14_PlacerContactAddress(int rep) throws HL7Exception { 641 return (XAD) super.insertRepetition(14, rep); 642 } 643 644 645 /** 646 * Removes a repetition of 647 * SCH-14: "Placer Contact Address" at a specific index 648 * 649 * @param rep The repetition index (0-indexed) 650 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 651 */ 652 public XAD removePlacerContactAddress(int rep) throws HL7Exception { 653 return (XAD) super.removeRepetition(14, rep); 654 } 655 656 657 /** 658 * Removes a repetition of 659 * SCH-14: "Placer Contact Address" at a specific index 660 * 661 * @param rep The repetition index (0-indexed) 662 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 663 */ 664 public XAD removeSch14_PlacerContactAddress(int rep) throws HL7Exception { 665 return (XAD) super.removeRepetition(14, rep); 666 } 667 668 669 670 671 /** 672 * Returns 673 * SCH-15: "Placer Contact Location" - creates it if necessary 674 */ 675 public PL getPlacerContactLocation() { 676 PL retVal = this.getTypedField(15, 0); 677 return retVal; 678 } 679 680 /** 681 * Returns 682 * SCH-15: "Placer Contact Location" - creates it if necessary 683 */ 684 public PL getSch15_PlacerContactLocation() { 685 PL retVal = this.getTypedField(15, 0); 686 return retVal; 687 } 688 689 690 /** 691 * Returns all repetitions of Filler Contact Person (SCH-16). 692 */ 693 public XCN[] getFillerContactPerson() { 694 XCN[] retVal = this.getTypedField(16, new XCN[0]); 695 return retVal; 696 } 697 698 699 /** 700 * Returns all repetitions of Filler Contact Person (SCH-16). 701 */ 702 public XCN[] getSch16_FillerContactPerson() { 703 XCN[] retVal = this.getTypedField(16, new XCN[0]); 704 return retVal; 705 } 706 707 708 /** 709 * Returns a count of the current number of repetitions of Filler Contact Person (SCH-16). 710 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 711 * it will return zero. 712 */ 713 public int getFillerContactPersonReps() { 714 return this.getReps(16); 715 } 716 717 718 /** 719 * Returns a specific repetition of 720 * SCH-16: "Filler Contact Person" - creates it if necessary 721 * 722 * @param rep The repetition index (0-indexed) 723 */ 724 public XCN getFillerContactPerson(int rep) { 725 XCN retVal = this.getTypedField(16, rep); 726 return retVal; 727 } 728 729 /** 730 * Returns a specific repetition of 731 * SCH-16: "Filler Contact Person" - creates it if necessary 732 * 733 * @param rep The repetition index (0-indexed) 734 */ 735 public XCN getSch16_FillerContactPerson(int rep) { 736 XCN retVal = this.getTypedField(16, rep); 737 return retVal; 738 } 739 740 /** 741 * Returns a count of the current number of repetitions of Filler Contact Person (SCH-16). 742 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 743 * it will return zero. 744 */ 745 public int getSch16_FillerContactPersonReps() { 746 return this.getReps(16); 747 } 748 749 750 /** 751 * Inserts a repetition of 752 * SCH-16: "Filler Contact Person" at a specific index 753 * 754 * @param rep The repetition index (0-indexed) 755 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 756 */ 757 public XCN insertFillerContactPerson(int rep) throws HL7Exception { 758 return (XCN) super.insertRepetition(16, rep); 759 } 760 761 762 /** 763 * Inserts a repetition of 764 * SCH-16: "Filler Contact Person" at a specific index 765 * 766 * @param rep The repetition index (0-indexed) 767 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 768 */ 769 public XCN insertSch16_FillerContactPerson(int rep) throws HL7Exception { 770 return (XCN) super.insertRepetition(16, rep); 771 } 772 773 774 /** 775 * Removes a repetition of 776 * SCH-16: "Filler Contact Person" at a specific index 777 * 778 * @param rep The repetition index (0-indexed) 779 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 780 */ 781 public XCN removeFillerContactPerson(int rep) throws HL7Exception { 782 return (XCN) super.removeRepetition(16, rep); 783 } 784 785 786 /** 787 * Removes a repetition of 788 * SCH-16: "Filler Contact Person" at a specific index 789 * 790 * @param rep The repetition index (0-indexed) 791 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 792 */ 793 public XCN removeSch16_FillerContactPerson(int rep) throws HL7Exception { 794 return (XCN) super.removeRepetition(16, rep); 795 } 796 797 798 799 800 /** 801 * Returns 802 * SCH-17: "Filler Contact Phone Number" - creates it if necessary 803 */ 804 public XTN getFillerContactPhoneNumber() { 805 XTN retVal = this.getTypedField(17, 0); 806 return retVal; 807 } 808 809 /** 810 * Returns 811 * SCH-17: "Filler Contact Phone Number" - creates it if necessary 812 */ 813 public XTN getSch17_FillerContactPhoneNumber() { 814 XTN retVal = this.getTypedField(17, 0); 815 return retVal; 816 } 817 818 819 /** 820 * Returns all repetitions of Filler Contact Address (SCH-18). 821 */ 822 public XAD[] getFillerContactAddress() { 823 XAD[] retVal = this.getTypedField(18, new XAD[0]); 824 return retVal; 825 } 826 827 828 /** 829 * Returns all repetitions of Filler Contact Address (SCH-18). 830 */ 831 public XAD[] getSch18_FillerContactAddress() { 832 XAD[] retVal = this.getTypedField(18, new XAD[0]); 833 return retVal; 834 } 835 836 837 /** 838 * Returns a count of the current number of repetitions of Filler Contact Address (SCH-18). 839 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 840 * it will return zero. 841 */ 842 public int getFillerContactAddressReps() { 843 return this.getReps(18); 844 } 845 846 847 /** 848 * Returns a specific repetition of 849 * SCH-18: "Filler Contact Address" - creates it if necessary 850 * 851 * @param rep The repetition index (0-indexed) 852 */ 853 public XAD getFillerContactAddress(int rep) { 854 XAD retVal = this.getTypedField(18, rep); 855 return retVal; 856 } 857 858 /** 859 * Returns a specific repetition of 860 * SCH-18: "Filler Contact Address" - creates it if necessary 861 * 862 * @param rep The repetition index (0-indexed) 863 */ 864 public XAD getSch18_FillerContactAddress(int rep) { 865 XAD retVal = this.getTypedField(18, rep); 866 return retVal; 867 } 868 869 /** 870 * Returns a count of the current number of repetitions of Filler Contact Address (SCH-18). 871 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 872 * it will return zero. 873 */ 874 public int getSch18_FillerContactAddressReps() { 875 return this.getReps(18); 876 } 877 878 879 /** 880 * Inserts a repetition of 881 * SCH-18: "Filler Contact Address" at a specific index 882 * 883 * @param rep The repetition index (0-indexed) 884 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 885 */ 886 public XAD insertFillerContactAddress(int rep) throws HL7Exception { 887 return (XAD) super.insertRepetition(18, rep); 888 } 889 890 891 /** 892 * Inserts a repetition of 893 * SCH-18: "Filler Contact Address" at a specific index 894 * 895 * @param rep The repetition index (0-indexed) 896 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 897 */ 898 public XAD insertSch18_FillerContactAddress(int rep) throws HL7Exception { 899 return (XAD) super.insertRepetition(18, rep); 900 } 901 902 903 /** 904 * Removes a repetition of 905 * SCH-18: "Filler Contact Address" at a specific index 906 * 907 * @param rep The repetition index (0-indexed) 908 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 909 */ 910 public XAD removeFillerContactAddress(int rep) throws HL7Exception { 911 return (XAD) super.removeRepetition(18, rep); 912 } 913 914 915 /** 916 * Removes a repetition of 917 * SCH-18: "Filler Contact Address" at a specific index 918 * 919 * @param rep The repetition index (0-indexed) 920 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 921 */ 922 public XAD removeSch18_FillerContactAddress(int rep) throws HL7Exception { 923 return (XAD) super.removeRepetition(18, rep); 924 } 925 926 927 928 929 /** 930 * Returns 931 * SCH-19: "Filler Contact Location" - creates it if necessary 932 */ 933 public PL getFillerContactLocation() { 934 PL retVal = this.getTypedField(19, 0); 935 return retVal; 936 } 937 938 /** 939 * Returns 940 * SCH-19: "Filler Contact Location" - creates it if necessary 941 */ 942 public PL getSch19_FillerContactLocation() { 943 PL retVal = this.getTypedField(19, 0); 944 return retVal; 945 } 946 947 948 /** 949 * Returns all repetitions of Entered by Person (SCH-20). 950 */ 951 public XCN[] getEnteredByPerson() { 952 XCN[] retVal = this.getTypedField(20, new XCN[0]); 953 return retVal; 954 } 955 956 957 /** 958 * Returns all repetitions of Entered by Person (SCH-20). 959 */ 960 public XCN[] getSch20_EnteredByPerson() { 961 XCN[] retVal = this.getTypedField(20, new XCN[0]); 962 return retVal; 963 } 964 965 966 /** 967 * Returns a count of the current number of repetitions of Entered by Person (SCH-20). 968 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 969 * it will return zero. 970 */ 971 public int getEnteredByPersonReps() { 972 return this.getReps(20); 973 } 974 975 976 /** 977 * Returns a specific repetition of 978 * SCH-20: "Entered by Person" - creates it if necessary 979 * 980 * @param rep The repetition index (0-indexed) 981 */ 982 public XCN getEnteredByPerson(int rep) { 983 XCN retVal = this.getTypedField(20, rep); 984 return retVal; 985 } 986 987 /** 988 * Returns a specific repetition of 989 * SCH-20: "Entered by Person" - creates it if necessary 990 * 991 * @param rep The repetition index (0-indexed) 992 */ 993 public XCN getSch20_EnteredByPerson(int rep) { 994 XCN retVal = this.getTypedField(20, rep); 995 return retVal; 996 } 997 998 /** 999 * Returns a count of the current number of repetitions of Entered by Person (SCH-20). 1000 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1001 * it will return zero. 1002 */ 1003 public int getSch20_EnteredByPersonReps() { 1004 return this.getReps(20); 1005 } 1006 1007 1008 /** 1009 * Inserts a repetition of 1010 * SCH-20: "Entered by Person" at a specific index 1011 * 1012 * @param rep The repetition index (0-indexed) 1013 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1014 */ 1015 public XCN insertEnteredByPerson(int rep) throws HL7Exception { 1016 return (XCN) super.insertRepetition(20, rep); 1017 } 1018 1019 1020 /** 1021 * Inserts a repetition of 1022 * SCH-20: "Entered by Person" at a specific index 1023 * 1024 * @param rep The repetition index (0-indexed) 1025 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1026 */ 1027 public XCN insertSch20_EnteredByPerson(int rep) throws HL7Exception { 1028 return (XCN) super.insertRepetition(20, rep); 1029 } 1030 1031 1032 /** 1033 * Removes a repetition of 1034 * SCH-20: "Entered by Person" at a specific index 1035 * 1036 * @param rep The repetition index (0-indexed) 1037 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1038 */ 1039 public XCN removeEnteredByPerson(int rep) throws HL7Exception { 1040 return (XCN) super.removeRepetition(20, rep); 1041 } 1042 1043 1044 /** 1045 * Removes a repetition of 1046 * SCH-20: "Entered by Person" at a specific index 1047 * 1048 * @param rep The repetition index (0-indexed) 1049 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1050 */ 1051 public XCN removeSch20_EnteredByPerson(int rep) throws HL7Exception { 1052 return (XCN) super.removeRepetition(20, rep); 1053 } 1054 1055 1056 1057 /** 1058 * Returns all repetitions of Entered by Phone Number (SCH-21). 1059 */ 1060 public XTN[] getEnteredByPhoneNumber() { 1061 XTN[] retVal = this.getTypedField(21, new XTN[0]); 1062 return retVal; 1063 } 1064 1065 1066 /** 1067 * Returns all repetitions of Entered by Phone Number (SCH-21). 1068 */ 1069 public XTN[] getSch21_EnteredByPhoneNumber() { 1070 XTN[] retVal = this.getTypedField(21, new XTN[0]); 1071 return retVal; 1072 } 1073 1074 1075 /** 1076 * Returns a count of the current number of repetitions of Entered by Phone Number (SCH-21). 1077 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1078 * it will return zero. 1079 */ 1080 public int getEnteredByPhoneNumberReps() { 1081 return this.getReps(21); 1082 } 1083 1084 1085 /** 1086 * Returns a specific repetition of 1087 * SCH-21: "Entered by Phone Number" - creates it if necessary 1088 * 1089 * @param rep The repetition index (0-indexed) 1090 */ 1091 public XTN getEnteredByPhoneNumber(int rep) { 1092 XTN retVal = this.getTypedField(21, rep); 1093 return retVal; 1094 } 1095 1096 /** 1097 * Returns a specific repetition of 1098 * SCH-21: "Entered by Phone Number" - creates it if necessary 1099 * 1100 * @param rep The repetition index (0-indexed) 1101 */ 1102 public XTN getSch21_EnteredByPhoneNumber(int rep) { 1103 XTN retVal = this.getTypedField(21, rep); 1104 return retVal; 1105 } 1106 1107 /** 1108 * Returns a count of the current number of repetitions of Entered by Phone Number (SCH-21). 1109 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1110 * it will return zero. 1111 */ 1112 public int getSch21_EnteredByPhoneNumberReps() { 1113 return this.getReps(21); 1114 } 1115 1116 1117 /** 1118 * Inserts a repetition of 1119 * SCH-21: "Entered by Phone Number" at a specific index 1120 * 1121 * @param rep The repetition index (0-indexed) 1122 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1123 */ 1124 public XTN insertEnteredByPhoneNumber(int rep) throws HL7Exception { 1125 return (XTN) super.insertRepetition(21, rep); 1126 } 1127 1128 1129 /** 1130 * Inserts a repetition of 1131 * SCH-21: "Entered by Phone Number" at a specific index 1132 * 1133 * @param rep The repetition index (0-indexed) 1134 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1135 */ 1136 public XTN insertSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 1137 return (XTN) super.insertRepetition(21, rep); 1138 } 1139 1140 1141 /** 1142 * Removes a repetition of 1143 * SCH-21: "Entered by Phone Number" at a specific index 1144 * 1145 * @param rep The repetition index (0-indexed) 1146 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1147 */ 1148 public XTN removeEnteredByPhoneNumber(int rep) throws HL7Exception { 1149 return (XTN) super.removeRepetition(21, rep); 1150 } 1151 1152 1153 /** 1154 * Removes a repetition of 1155 * SCH-21: "Entered by Phone Number" at a specific index 1156 * 1157 * @param rep The repetition index (0-indexed) 1158 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1159 */ 1160 public XTN removeSch21_EnteredByPhoneNumber(int rep) throws HL7Exception { 1161 return (XTN) super.removeRepetition(21, rep); 1162 } 1163 1164 1165 1166 1167 /** 1168 * Returns 1169 * SCH-22: "Entered by Location" - creates it if necessary 1170 */ 1171 public PL getEnteredByLocation() { 1172 PL retVal = this.getTypedField(22, 0); 1173 return retVal; 1174 } 1175 1176 /** 1177 * Returns 1178 * SCH-22: "Entered by Location" - creates it if necessary 1179 */ 1180 public PL getSch22_EnteredByLocation() { 1181 PL retVal = this.getTypedField(22, 0); 1182 return retVal; 1183 } 1184 1185 1186 1187 /** 1188 * Returns 1189 * SCH-23: "Parent Placer Appointment ID" - creates it if necessary 1190 */ 1191 public EI getParentPlacerAppointmentID() { 1192 EI retVal = this.getTypedField(23, 0); 1193 return retVal; 1194 } 1195 1196 /** 1197 * Returns 1198 * SCH-23: "Parent Placer Appointment ID" - creates it if necessary 1199 */ 1200 public EI getSch23_ParentPlacerAppointmentID() { 1201 EI retVal = this.getTypedField(23, 0); 1202 return retVal; 1203 } 1204 1205 1206 1207 /** 1208 * Returns 1209 * SCH-24: "Parent Filler Appointment ID" - creates it if necessary 1210 */ 1211 public EI getParentFillerAppointmentID() { 1212 EI retVal = this.getTypedField(24, 0); 1213 return retVal; 1214 } 1215 1216 /** 1217 * Returns 1218 * SCH-24: "Parent Filler Appointment ID" - creates it if necessary 1219 */ 1220 public EI getSch24_ParentFillerAppointmentID() { 1221 EI retVal = this.getTypedField(24, 0); 1222 return retVal; 1223 } 1224 1225 1226 1227 /** 1228 * Returns 1229 * SCH-25: "Filler Status Code" - creates it if necessary 1230 */ 1231 public CE getFillerStatusCode() { 1232 CE retVal = this.getTypedField(25, 0); 1233 return retVal; 1234 } 1235 1236 /** 1237 * Returns 1238 * SCH-25: "Filler Status Code" - creates it if necessary 1239 */ 1240 public CE getSch25_FillerStatusCode() { 1241 CE retVal = this.getTypedField(25, 0); 1242 return retVal; 1243 } 1244 1245 1246 1247 1248 1249 /** {@inheritDoc} */ 1250 protected Type createNewTypeWithoutReflection(int field) { 1251 switch (field) { 1252 case 0: return new EI(getMessage()); 1253 case 1: return new EI(getMessage()); 1254 case 2: return new NM(getMessage()); 1255 case 3: return new EI(getMessage()); 1256 case 4: return new CE(getMessage()); 1257 case 5: return new CE(getMessage()); 1258 case 6: return new CE(getMessage()); 1259 case 7: return new CE(getMessage()); 1260 case 8: return new NM(getMessage()); 1261 case 9: return new CE(getMessage()); 1262 case 10: return new TQ(getMessage()); 1263 case 11: return new XCN(getMessage()); 1264 case 12: return new XTN(getMessage()); 1265 case 13: return new XAD(getMessage()); 1266 case 14: return new PL(getMessage()); 1267 case 15: return new XCN(getMessage()); 1268 case 16: return new XTN(getMessage()); 1269 case 17: return new XAD(getMessage()); 1270 case 18: return new PL(getMessage()); 1271 case 19: return new XCN(getMessage()); 1272 case 20: return new XTN(getMessage()); 1273 case 21: return new PL(getMessage()); 1274 case 22: return new EI(getMessage()); 1275 case 23: return new EI(getMessage()); 1276 case 24: return new CE(getMessage()); 1277 default: return null; 1278 } 1279 } 1280 1281 1282} 1283