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.v22.segment; 035 036// import ca.uhn.hl7v2.model.v22.group.*; 037import ca.uhn.hl7v2.model.v22.datatype.*; 038import ca.uhn.hl7v2.HL7Exception; 039import ca.uhn.hl7v2.parser.ModelClassFactory; 040import ca.uhn.hl7v2.parser.DefaultModelClassFactory; 041import ca.uhn.hl7v2.model.AbstractMessage; 042import ca.uhn.hl7v2.model.Group; 043import ca.uhn.hl7v2.model.Type; 044import ca.uhn.hl7v2.model.AbstractSegment; 045import ca.uhn.hl7v2.model.Varies; 046 047/** 048 *<p>Represents an HL7 OBR message segment (OBSERVATION REQUEST). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>OBR-1: Set ID - Observation Request (SI) <b>optional </b> 052 * <li>OBR-2: Placer Order Number (CM_PLACER) <b>optional </b> 053 * <li>OBR-3: Filler Order Number (CM_FILLER) <b>optional </b> 054 * <li>OBR-4: Universal Service ID (CE) <b> </b> 055 * <li>OBR-5: Priority (not used) (ID) <b>optional </b> 056 * <li>OBR-6: Requested date / time (not used) (TS) <b>optional </b> 057 * <li>OBR-7: Observation date / time (TS) <b>optional </b> 058 * <li>OBR-8: Observation end date / time (TS) <b>optional </b> 059 * <li>OBR-9: Collection Volume (CQ_QUANTITY) <b>optional </b> 060 * <li>OBR-10: Collector Identifier (CN) <b>optional repeating</b> 061 * <li>OBR-11: Specimen action code (ID) <b>optional </b> 062 * <li>OBR-12: Danger Code (CE) <b>optional </b> 063 * <li>OBR-13: Relevant clinical information (ST) <b>optional </b> 064 * <li>OBR-14: Specimen received date / time (TS) <b>optional </b> 065 * <li>OBR-15: Specimen source (CM_SPS) <b>optional </b> 066 * <li>OBR-16: Ordering Provider (CN) <b>optional </b> 067 * <li>OBR-17: Order Callback Phone Number (TN) <b>optional repeating</b> 068 * <li>OBR-18: Placer field 1 (ST) <b>optional </b> 069 * <li>OBR-19: Placer field 2 (ST) <b>optional </b> 070 * <li>OBR-20: Filler Field 1 (ST) <b>optional </b> 071 * <li>OBR-21: Filler Field 2 (ST) <b>optional </b> 072 * <li>OBR-22: Results report / status change - date / time (TS) <b>optional </b> 073 * <li>OBR-23: Charge to Practice (CM_MOC) <b>optional </b> 074 * <li>OBR-24: Diagnostic service section ID (ID) <b>optional </b> 075 * <li>OBR-25: Result Status (ID) <b>optional </b> 076 * <li>OBR-26: Parent Result (CM_PARENT_RESULT) <b>optional </b> 077 * <li>OBR-27: Quantity / timing (TQ) <b>optional repeating</b> 078 * <li>OBR-28: Result Copies To (CN) <b>optional repeating</b> 079 * <li>OBR-29: Parent Number (CM_EIP) <b>optional </b> 080 * <li>OBR-30: Transportation Mode (ID) <b>optional </b> 081 * <li>OBR-31: Reason for Study (CE) <b>optional repeating</b> 082 * <li>OBR-32: Principal Result Interpreter (CM_NDL) <b>optional </b> 083 * <li>OBR-33: Assistant Result Interpreter (CM_NDL) <b>optional repeating</b> 084 * <li>OBR-34: Technician (CM_NDL) <b>optional repeating</b> 085 * <li>OBR-35: Transcriptionist (CM_NDL) <b>optional repeating</b> 086 * <li>OBR-36: Scheduled date / time (TS) <b>optional </b> 087 * </ul> 088 */ 089@SuppressWarnings("unused") 090public class OBR extends AbstractSegment { 091 092 /** 093 * Creates a new OBR segment 094 */ 095 public OBR(Group parent, ModelClassFactory factory) { 096 super(parent, factory); 097 init(factory); 098 } 099 100 private void init(ModelClassFactory factory) { 101 try { 102 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - Observation Request"); 103 this.add(CM_PLACER.class, false, 1, 75, new Object[]{ getMessage() }, "Placer Order Number"); 104 this.add(CM_FILLER.class, false, 1, 75, new Object[]{ getMessage() }, "Filler Order Number"); 105 this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Universal Service ID"); 106 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(0) }, "Priority (not used)"); 107 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Requested date / time (not used)"); 108 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Observation date / time"); 109 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Observation end date / time"); 110 this.add(CQ_QUANTITY.class, false, 1, 20, new Object[]{ getMessage() }, "Collection Volume"); 111 this.add(CN.class, false, 0, 60, new Object[]{ getMessage() }, "Collector Identifier"); 112 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(65) }, "Specimen action code"); 113 this.add(CE.class, false, 1, 60, new Object[]{ getMessage() }, "Danger Code"); 114 this.add(ST.class, false, 1, 300, new Object[]{ getMessage() }, "Relevant clinical information"); 115 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Specimen received date / time"); 116 this.add(CM_SPS.class, false, 1, 300, new Object[]{ getMessage() }, "Specimen source"); 117 this.add(CN.class, false, 1, 80, new Object[]{ getMessage() }, "Ordering Provider"); 118 this.add(TN.class, false, 2, 40, new Object[]{ getMessage() }, "Order Callback Phone Number"); 119 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Placer field 1"); 120 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Placer field 2"); 121 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Filler Field 1"); 122 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "Filler Field 2"); 123 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Results report / status change - date / time"); 124 this.add(CM_MOC.class, false, 1, 40, new Object[]{ getMessage() }, "Charge to Practice"); 125 this.add(ID.class, false, 1, 10, new Object[]{ getMessage(), new Integer(74) }, "Diagnostic service section ID"); 126 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(123) }, "Result Status"); 127 this.add(CM_PARENT_RESULT.class, false, 1, 200, new Object[]{ getMessage() }, "Parent Result"); 128 this.add(TQ.class, false, 0, 200, new Object[]{ getMessage() }, "Quantity / timing"); 129 this.add(CN.class, false, 5, 150, new Object[]{ getMessage() }, "Result Copies To"); 130 this.add(CM_EIP.class, false, 1, 150, new Object[]{ getMessage() }, "Parent Number"); 131 this.add(ID.class, false, 1, 20, new Object[]{ getMessage(), new Integer(124) }, "Transportation Mode"); 132 this.add(CE.class, false, 0, 300, new Object[]{ getMessage() }, "Reason for Study"); 133 this.add(CM_NDL.class, false, 1, 60, new Object[]{ getMessage() }, "Principal Result Interpreter"); 134 this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage() }, "Assistant Result Interpreter"); 135 this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage() }, "Technician"); 136 this.add(CM_NDL.class, false, 0, 60, new Object[]{ getMessage() }, "Transcriptionist"); 137 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Scheduled date / time"); 138 } catch(HL7Exception e) { 139 log.error("Unexpected error creating OBR - this is probably a bug in the source code generator.", e); 140 } 141 } 142 143 144 145 /** 146 * Returns 147 * OBR-1: "Set ID - Observation Request" - creates it if necessary 148 */ 149 public SI getSetIDObservationRequest() { 150 SI retVal = this.getTypedField(1, 0); 151 return retVal; 152 } 153 154 /** 155 * Returns 156 * OBR-1: "Set ID - Observation Request" - creates it if necessary 157 */ 158 public SI getObr1_SetIDObservationRequest() { 159 SI retVal = this.getTypedField(1, 0); 160 return retVal; 161 } 162 163 164 165 /** 166 * Returns 167 * OBR-2: "Placer Order Number" - creates it if necessary 168 */ 169 public CM_PLACER getPlacerOrderNumber() { 170 CM_PLACER retVal = this.getTypedField(2, 0); 171 return retVal; 172 } 173 174 /** 175 * Returns 176 * OBR-2: "Placer Order Number" - creates it if necessary 177 */ 178 public CM_PLACER getObr2_PlacerOrderNumber() { 179 CM_PLACER retVal = this.getTypedField(2, 0); 180 return retVal; 181 } 182 183 184 185 /** 186 * Returns 187 * OBR-3: "Filler Order Number" - creates it if necessary 188 */ 189 public CM_FILLER getFillerOrderNumber() { 190 CM_FILLER retVal = this.getTypedField(3, 0); 191 return retVal; 192 } 193 194 /** 195 * Returns 196 * OBR-3: "Filler Order Number" - creates it if necessary 197 */ 198 public CM_FILLER getObr3_FillerOrderNumber() { 199 CM_FILLER retVal = this.getTypedField(3, 0); 200 return retVal; 201 } 202 203 204 205 /** 206 * Returns 207 * OBR-4: "Universal Service ID" - creates it if necessary 208 */ 209 public CE getUniversalServiceID() { 210 CE retVal = this.getTypedField(4, 0); 211 return retVal; 212 } 213 214 /** 215 * Returns 216 * OBR-4: "Universal Service ID" - creates it if necessary 217 */ 218 public CE getObr4_UniversalServiceID() { 219 CE retVal = this.getTypedField(4, 0); 220 return retVal; 221 } 222 223 224 225 /** 226 * Returns 227 * OBR-5: "Priority (not used)" - creates it if necessary 228 */ 229 public ID getPriorityNotused() { 230 ID retVal = this.getTypedField(5, 0); 231 return retVal; 232 } 233 234 /** 235 * Returns 236 * OBR-5: "Priority (not used)" - creates it if necessary 237 */ 238 public ID getObr5_PriorityNotused() { 239 ID retVal = this.getTypedField(5, 0); 240 return retVal; 241 } 242 243 244 245 /** 246 * Returns 247 * OBR-6: "Requested date / time (not used)" - creates it if necessary 248 */ 249 public TS getRequestedDateTimeNotused() { 250 TS retVal = this.getTypedField(6, 0); 251 return retVal; 252 } 253 254 /** 255 * Returns 256 * OBR-6: "Requested date / time (not used)" - creates it if necessary 257 */ 258 public TS getObr6_RequestedDateTimeNotused() { 259 TS retVal = this.getTypedField(6, 0); 260 return retVal; 261 } 262 263 264 265 /** 266 * Returns 267 * OBR-7: "Observation date / time" - creates it if necessary 268 */ 269 public TS getObservationDateTime() { 270 TS retVal = this.getTypedField(7, 0); 271 return retVal; 272 } 273 274 /** 275 * Returns 276 * OBR-7: "Observation date / time" - creates it if necessary 277 */ 278 public TS getObr7_ObservationDateTime() { 279 TS retVal = this.getTypedField(7, 0); 280 return retVal; 281 } 282 283 284 285 /** 286 * Returns 287 * OBR-8: "Observation end date / time" - creates it if necessary 288 */ 289 public TS getObservationEndDateTime() { 290 TS retVal = this.getTypedField(8, 0); 291 return retVal; 292 } 293 294 /** 295 * Returns 296 * OBR-8: "Observation end date / time" - creates it if necessary 297 */ 298 public TS getObr8_ObservationEndDateTime() { 299 TS retVal = this.getTypedField(8, 0); 300 return retVal; 301 } 302 303 304 305 /** 306 * Returns 307 * OBR-9: "Collection Volume" - creates it if necessary 308 */ 309 public CQ_QUANTITY getCollectionVolume() { 310 CQ_QUANTITY retVal = this.getTypedField(9, 0); 311 return retVal; 312 } 313 314 /** 315 * Returns 316 * OBR-9: "Collection Volume" - creates it if necessary 317 */ 318 public CQ_QUANTITY getObr9_CollectionVolume() { 319 CQ_QUANTITY retVal = this.getTypedField(9, 0); 320 return retVal; 321 } 322 323 324 /** 325 * Returns all repetitions of Collector Identifier (OBR-10). 326 */ 327 public CN[] getCollectorIdentifier() { 328 CN[] retVal = this.getTypedField(10, new CN[0]); 329 return retVal; 330 } 331 332 333 /** 334 * Returns all repetitions of Collector Identifier (OBR-10). 335 */ 336 public CN[] getObr10_CollectorIdentifier() { 337 CN[] retVal = this.getTypedField(10, new CN[0]); 338 return retVal; 339 } 340 341 342 /** 343 * Returns a count of the current number of repetitions of Collector Identifier (OBR-10). 344 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 345 * it will return zero. 346 */ 347 public int getCollectorIdentifierReps() { 348 return this.getReps(10); 349 } 350 351 352 /** 353 * Returns a specific repetition of 354 * OBR-10: "Collector Identifier" - creates it if necessary 355 * 356 * @param rep The repetition index (0-indexed) 357 */ 358 public CN getCollectorIdentifier(int rep) { 359 CN retVal = this.getTypedField(10, rep); 360 return retVal; 361 } 362 363 /** 364 * Returns a specific repetition of 365 * OBR-10: "Collector Identifier" - creates it if necessary 366 * 367 * @param rep The repetition index (0-indexed) 368 */ 369 public CN getObr10_CollectorIdentifier(int rep) { 370 CN retVal = this.getTypedField(10, rep); 371 return retVal; 372 } 373 374 /** 375 * Returns a count of the current number of repetitions of Collector Identifier (OBR-10). 376 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 377 * it will return zero. 378 */ 379 public int getObr10_CollectorIdentifierReps() { 380 return this.getReps(10); 381 } 382 383 384 /** 385 * Inserts a repetition of 386 * OBR-10: "Collector Identifier" at a specific index 387 * 388 * @param rep The repetition index (0-indexed) 389 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 390 */ 391 public CN insertCollectorIdentifier(int rep) throws HL7Exception { 392 return (CN) super.insertRepetition(10, rep); 393 } 394 395 396 /** 397 * Inserts a repetition of 398 * OBR-10: "Collector Identifier" at a specific index 399 * 400 * @param rep The repetition index (0-indexed) 401 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 402 */ 403 public CN insertObr10_CollectorIdentifier(int rep) throws HL7Exception { 404 return (CN) super.insertRepetition(10, rep); 405 } 406 407 408 /** 409 * Removes a repetition of 410 * OBR-10: "Collector Identifier" at a specific index 411 * 412 * @param rep The repetition index (0-indexed) 413 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 414 */ 415 public CN removeCollectorIdentifier(int rep) throws HL7Exception { 416 return (CN) super.removeRepetition(10, rep); 417 } 418 419 420 /** 421 * Removes a repetition of 422 * OBR-10: "Collector Identifier" at a specific index 423 * 424 * @param rep The repetition index (0-indexed) 425 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 426 */ 427 public CN removeObr10_CollectorIdentifier(int rep) throws HL7Exception { 428 return (CN) super.removeRepetition(10, rep); 429 } 430 431 432 433 434 /** 435 * Returns 436 * OBR-11: "Specimen action code" - creates it if necessary 437 */ 438 public ID getSpecimenActionCode() { 439 ID retVal = this.getTypedField(11, 0); 440 return retVal; 441 } 442 443 /** 444 * Returns 445 * OBR-11: "Specimen action code" - creates it if necessary 446 */ 447 public ID getObr11_SpecimenActionCode() { 448 ID retVal = this.getTypedField(11, 0); 449 return retVal; 450 } 451 452 453 454 /** 455 * Returns 456 * OBR-12: "Danger Code" - creates it if necessary 457 */ 458 public CE getDangerCode() { 459 CE retVal = this.getTypedField(12, 0); 460 return retVal; 461 } 462 463 /** 464 * Returns 465 * OBR-12: "Danger Code" - creates it if necessary 466 */ 467 public CE getObr12_DangerCode() { 468 CE retVal = this.getTypedField(12, 0); 469 return retVal; 470 } 471 472 473 474 /** 475 * Returns 476 * OBR-13: "Relevant clinical information" - creates it if necessary 477 */ 478 public ST getRelevantClinicalInformation() { 479 ST retVal = this.getTypedField(13, 0); 480 return retVal; 481 } 482 483 /** 484 * Returns 485 * OBR-13: "Relevant clinical information" - creates it if necessary 486 */ 487 public ST getObr13_RelevantClinicalInformation() { 488 ST retVal = this.getTypedField(13, 0); 489 return retVal; 490 } 491 492 493 494 /** 495 * Returns 496 * OBR-14: "Specimen received date / time" - creates it if necessary 497 */ 498 public TS getSpecimenReceivedDateTime() { 499 TS retVal = this.getTypedField(14, 0); 500 return retVal; 501 } 502 503 /** 504 * Returns 505 * OBR-14: "Specimen received date / time" - creates it if necessary 506 */ 507 public TS getObr14_SpecimenReceivedDateTime() { 508 TS retVal = this.getTypedField(14, 0); 509 return retVal; 510 } 511 512 513 514 /** 515 * Returns 516 * OBR-15: "Specimen source" - creates it if necessary 517 */ 518 public CM_SPS getSpecimenSource() { 519 CM_SPS retVal = this.getTypedField(15, 0); 520 return retVal; 521 } 522 523 /** 524 * Returns 525 * OBR-15: "Specimen source" - creates it if necessary 526 */ 527 public CM_SPS getObr15_SpecimenSource() { 528 CM_SPS retVal = this.getTypedField(15, 0); 529 return retVal; 530 } 531 532 533 534 /** 535 * Returns 536 * OBR-16: "Ordering Provider" - creates it if necessary 537 */ 538 public CN getOrderingProvider() { 539 CN retVal = this.getTypedField(16, 0); 540 return retVal; 541 } 542 543 /** 544 * Returns 545 * OBR-16: "Ordering Provider" - creates it if necessary 546 */ 547 public CN getObr16_OrderingProvider() { 548 CN retVal = this.getTypedField(16, 0); 549 return retVal; 550 } 551 552 553 /** 554 * Returns all repetitions of Order Callback Phone Number (OBR-17). 555 */ 556 public TN[] getOrderCallbackPhoneNumber() { 557 TN[] retVal = this.getTypedField(17, new TN[0]); 558 return retVal; 559 } 560 561 562 /** 563 * Returns all repetitions of Order Callback Phone Number (OBR-17). 564 */ 565 public TN[] getObr17_OrderCallbackPhoneNumber() { 566 TN[] retVal = this.getTypedField(17, new TN[0]); 567 return retVal; 568 } 569 570 571 /** 572 * Returns a count of the current number of repetitions of Order Callback Phone Number (OBR-17). 573 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 574 * it will return zero. 575 */ 576 public int getOrderCallbackPhoneNumberReps() { 577 return this.getReps(17); 578 } 579 580 581 /** 582 * Returns a specific repetition of 583 * OBR-17: "Order Callback Phone Number" - creates it if necessary 584 * 585 * @param rep The repetition index (0-indexed) 586 */ 587 public TN getOrderCallbackPhoneNumber(int rep) { 588 TN retVal = this.getTypedField(17, rep); 589 return retVal; 590 } 591 592 /** 593 * Returns a specific repetition of 594 * OBR-17: "Order Callback Phone Number" - creates it if necessary 595 * 596 * @param rep The repetition index (0-indexed) 597 */ 598 public TN getObr17_OrderCallbackPhoneNumber(int rep) { 599 TN retVal = this.getTypedField(17, rep); 600 return retVal; 601 } 602 603 /** 604 * Returns a count of the current number of repetitions of Order Callback Phone Number (OBR-17). 605 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 606 * it will return zero. 607 */ 608 public int getObr17_OrderCallbackPhoneNumberReps() { 609 return this.getReps(17); 610 } 611 612 613 /** 614 * Inserts a repetition of 615 * OBR-17: "Order Callback Phone Number" at a specific index 616 * 617 * @param rep The repetition index (0-indexed) 618 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 619 */ 620 public TN insertOrderCallbackPhoneNumber(int rep) throws HL7Exception { 621 return (TN) super.insertRepetition(17, rep); 622 } 623 624 625 /** 626 * Inserts a repetition of 627 * OBR-17: "Order Callback Phone Number" at a specific index 628 * 629 * @param rep The repetition index (0-indexed) 630 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 631 */ 632 public TN insertObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception { 633 return (TN) super.insertRepetition(17, rep); 634 } 635 636 637 /** 638 * Removes a repetition of 639 * OBR-17: "Order Callback Phone Number" at a specific index 640 * 641 * @param rep The repetition index (0-indexed) 642 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 643 */ 644 public TN removeOrderCallbackPhoneNumber(int rep) throws HL7Exception { 645 return (TN) super.removeRepetition(17, rep); 646 } 647 648 649 /** 650 * Removes a repetition of 651 * OBR-17: "Order Callback Phone Number" at a specific index 652 * 653 * @param rep The repetition index (0-indexed) 654 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 655 */ 656 public TN removeObr17_OrderCallbackPhoneNumber(int rep) throws HL7Exception { 657 return (TN) super.removeRepetition(17, rep); 658 } 659 660 661 662 663 /** 664 * Returns 665 * OBR-18: "Placer field 1" - creates it if necessary 666 */ 667 public ST getPlacerField1() { 668 ST retVal = this.getTypedField(18, 0); 669 return retVal; 670 } 671 672 /** 673 * Returns 674 * OBR-18: "Placer field 1" - creates it if necessary 675 */ 676 public ST getObr18_PlacerField1() { 677 ST retVal = this.getTypedField(18, 0); 678 return retVal; 679 } 680 681 682 683 /** 684 * Returns 685 * OBR-19: "Placer field 2" - creates it if necessary 686 */ 687 public ST getPlacerField2() { 688 ST retVal = this.getTypedField(19, 0); 689 return retVal; 690 } 691 692 /** 693 * Returns 694 * OBR-19: "Placer field 2" - creates it if necessary 695 */ 696 public ST getObr19_PlacerField2() { 697 ST retVal = this.getTypedField(19, 0); 698 return retVal; 699 } 700 701 702 703 /** 704 * Returns 705 * OBR-20: "Filler Field 1" - creates it if necessary 706 */ 707 public ST getFillerField1() { 708 ST retVal = this.getTypedField(20, 0); 709 return retVal; 710 } 711 712 /** 713 * Returns 714 * OBR-20: "Filler Field 1" - creates it if necessary 715 */ 716 public ST getObr20_FillerField1() { 717 ST retVal = this.getTypedField(20, 0); 718 return retVal; 719 } 720 721 722 723 /** 724 * Returns 725 * OBR-21: "Filler Field 2" - creates it if necessary 726 */ 727 public ST getFillerField2() { 728 ST retVal = this.getTypedField(21, 0); 729 return retVal; 730 } 731 732 /** 733 * Returns 734 * OBR-21: "Filler Field 2" - creates it if necessary 735 */ 736 public ST getObr21_FillerField2() { 737 ST retVal = this.getTypedField(21, 0); 738 return retVal; 739 } 740 741 742 743 /** 744 * Returns 745 * OBR-22: "Results report / status change - date / time" - creates it if necessary 746 */ 747 public TS getResultsReportStatusChangeDateTime() { 748 TS retVal = this.getTypedField(22, 0); 749 return retVal; 750 } 751 752 /** 753 * Returns 754 * OBR-22: "Results report / status change - date / time" - creates it if necessary 755 */ 756 public TS getObr22_ResultsReportStatusChangeDateTime() { 757 TS retVal = this.getTypedField(22, 0); 758 return retVal; 759 } 760 761 762 763 /** 764 * Returns 765 * OBR-23: "Charge to Practice" - creates it if necessary 766 */ 767 public CM_MOC getChargeToPractice() { 768 CM_MOC retVal = this.getTypedField(23, 0); 769 return retVal; 770 } 771 772 /** 773 * Returns 774 * OBR-23: "Charge to Practice" - creates it if necessary 775 */ 776 public CM_MOC getObr23_ChargeToPractice() { 777 CM_MOC retVal = this.getTypedField(23, 0); 778 return retVal; 779 } 780 781 782 783 /** 784 * Returns 785 * OBR-24: "Diagnostic service section ID" - creates it if necessary 786 */ 787 public ID getDiagnosticServiceSectionID() { 788 ID retVal = this.getTypedField(24, 0); 789 return retVal; 790 } 791 792 /** 793 * Returns 794 * OBR-24: "Diagnostic service section ID" - creates it if necessary 795 */ 796 public ID getObr24_DiagnosticServiceSectionID() { 797 ID retVal = this.getTypedField(24, 0); 798 return retVal; 799 } 800 801 802 803 /** 804 * Returns 805 * OBR-25: "Result Status" - creates it if necessary 806 */ 807 public ID getResultStatus() { 808 ID retVal = this.getTypedField(25, 0); 809 return retVal; 810 } 811 812 /** 813 * Returns 814 * OBR-25: "Result Status" - creates it if necessary 815 */ 816 public ID getObr25_ResultStatus() { 817 ID retVal = this.getTypedField(25, 0); 818 return retVal; 819 } 820 821 822 823 /** 824 * Returns 825 * OBR-26: "Parent Result" - creates it if necessary 826 */ 827 public CM_PARENT_RESULT getParentResult() { 828 CM_PARENT_RESULT retVal = this.getTypedField(26, 0); 829 return retVal; 830 } 831 832 /** 833 * Returns 834 * OBR-26: "Parent Result" - creates it if necessary 835 */ 836 public CM_PARENT_RESULT getObr26_ParentResult() { 837 CM_PARENT_RESULT retVal = this.getTypedField(26, 0); 838 return retVal; 839 } 840 841 842 /** 843 * Returns all repetitions of Quantity / timing (OBR-27). 844 */ 845 public TQ[] getQuantityTiming() { 846 TQ[] retVal = this.getTypedField(27, new TQ[0]); 847 return retVal; 848 } 849 850 851 /** 852 * Returns all repetitions of Quantity / timing (OBR-27). 853 */ 854 public TQ[] getObr27_QuantityTiming() { 855 TQ[] retVal = this.getTypedField(27, new TQ[0]); 856 return retVal; 857 } 858 859 860 /** 861 * Returns a count of the current number of repetitions of Quantity / timing (OBR-27). 862 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 863 * it will return zero. 864 */ 865 public int getQuantityTimingReps() { 866 return this.getReps(27); 867 } 868 869 870 /** 871 * Returns a specific repetition of 872 * OBR-27: "Quantity / timing" - creates it if necessary 873 * 874 * @param rep The repetition index (0-indexed) 875 */ 876 public TQ getQuantityTiming(int rep) { 877 TQ retVal = this.getTypedField(27, rep); 878 return retVal; 879 } 880 881 /** 882 * Returns a specific repetition of 883 * OBR-27: "Quantity / timing" - creates it if necessary 884 * 885 * @param rep The repetition index (0-indexed) 886 */ 887 public TQ getObr27_QuantityTiming(int rep) { 888 TQ retVal = this.getTypedField(27, rep); 889 return retVal; 890 } 891 892 /** 893 * Returns a count of the current number of repetitions of Quantity / timing (OBR-27). 894 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 895 * it will return zero. 896 */ 897 public int getObr27_QuantityTimingReps() { 898 return this.getReps(27); 899 } 900 901 902 /** 903 * Inserts a repetition of 904 * OBR-27: "Quantity / timing" at a specific index 905 * 906 * @param rep The repetition index (0-indexed) 907 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 908 */ 909 public TQ insertQuantityTiming(int rep) throws HL7Exception { 910 return (TQ) super.insertRepetition(27, rep); 911 } 912 913 914 /** 915 * Inserts a repetition of 916 * OBR-27: "Quantity / timing" at a specific index 917 * 918 * @param rep The repetition index (0-indexed) 919 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 920 */ 921 public TQ insertObr27_QuantityTiming(int rep) throws HL7Exception { 922 return (TQ) super.insertRepetition(27, rep); 923 } 924 925 926 /** 927 * Removes a repetition of 928 * OBR-27: "Quantity / timing" at a specific index 929 * 930 * @param rep The repetition index (0-indexed) 931 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 932 */ 933 public TQ removeQuantityTiming(int rep) throws HL7Exception { 934 return (TQ) super.removeRepetition(27, rep); 935 } 936 937 938 /** 939 * Removes a repetition of 940 * OBR-27: "Quantity / timing" at a specific index 941 * 942 * @param rep The repetition index (0-indexed) 943 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 944 */ 945 public TQ removeObr27_QuantityTiming(int rep) throws HL7Exception { 946 return (TQ) super.removeRepetition(27, rep); 947 } 948 949 950 951 /** 952 * Returns all repetitions of Result Copies To (OBR-28). 953 */ 954 public CN[] getResultCopiesTo() { 955 CN[] retVal = this.getTypedField(28, new CN[0]); 956 return retVal; 957 } 958 959 960 /** 961 * Returns all repetitions of Result Copies To (OBR-28). 962 */ 963 public CN[] getObr28_ResultCopiesTo() { 964 CN[] retVal = this.getTypedField(28, new CN[0]); 965 return retVal; 966 } 967 968 969 /** 970 * Returns a count of the current number of repetitions of Result Copies To (OBR-28). 971 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 972 * it will return zero. 973 */ 974 public int getResultCopiesToReps() { 975 return this.getReps(28); 976 } 977 978 979 /** 980 * Returns a specific repetition of 981 * OBR-28: "Result Copies To" - creates it if necessary 982 * 983 * @param rep The repetition index (0-indexed) 984 */ 985 public CN getResultCopiesTo(int rep) { 986 CN retVal = this.getTypedField(28, rep); 987 return retVal; 988 } 989 990 /** 991 * Returns a specific repetition of 992 * OBR-28: "Result Copies To" - creates it if necessary 993 * 994 * @param rep The repetition index (0-indexed) 995 */ 996 public CN getObr28_ResultCopiesTo(int rep) { 997 CN retVal = this.getTypedField(28, rep); 998 return retVal; 999 } 1000 1001 /** 1002 * Returns a count of the current number of repetitions of Result Copies To (OBR-28). 1003 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1004 * it will return zero. 1005 */ 1006 public int getObr28_ResultCopiesToReps() { 1007 return this.getReps(28); 1008 } 1009 1010 1011 /** 1012 * Inserts a repetition of 1013 * OBR-28: "Result Copies To" at a specific index 1014 * 1015 * @param rep The repetition index (0-indexed) 1016 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1017 */ 1018 public CN insertResultCopiesTo(int rep) throws HL7Exception { 1019 return (CN) super.insertRepetition(28, rep); 1020 } 1021 1022 1023 /** 1024 * Inserts a repetition of 1025 * OBR-28: "Result Copies To" at a specific index 1026 * 1027 * @param rep The repetition index (0-indexed) 1028 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1029 */ 1030 public CN insertObr28_ResultCopiesTo(int rep) throws HL7Exception { 1031 return (CN) super.insertRepetition(28, rep); 1032 } 1033 1034 1035 /** 1036 * Removes a repetition of 1037 * OBR-28: "Result Copies To" at a specific index 1038 * 1039 * @param rep The repetition index (0-indexed) 1040 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1041 */ 1042 public CN removeResultCopiesTo(int rep) throws HL7Exception { 1043 return (CN) super.removeRepetition(28, rep); 1044 } 1045 1046 1047 /** 1048 * Removes a repetition of 1049 * OBR-28: "Result Copies To" at a specific index 1050 * 1051 * @param rep The repetition index (0-indexed) 1052 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1053 */ 1054 public CN removeObr28_ResultCopiesTo(int rep) throws HL7Exception { 1055 return (CN) super.removeRepetition(28, rep); 1056 } 1057 1058 1059 1060 1061 /** 1062 * Returns 1063 * OBR-29: "Parent Number" - creates it if necessary 1064 */ 1065 public CM_EIP getParentNumber() { 1066 CM_EIP retVal = this.getTypedField(29, 0); 1067 return retVal; 1068 } 1069 1070 /** 1071 * Returns 1072 * OBR-29: "Parent Number" - creates it if necessary 1073 */ 1074 public CM_EIP getObr29_ParentNumber() { 1075 CM_EIP retVal = this.getTypedField(29, 0); 1076 return retVal; 1077 } 1078 1079 1080 1081 /** 1082 * Returns 1083 * OBR-30: "Transportation Mode" - creates it if necessary 1084 */ 1085 public ID getTransportationMode() { 1086 ID retVal = this.getTypedField(30, 0); 1087 return retVal; 1088 } 1089 1090 /** 1091 * Returns 1092 * OBR-30: "Transportation Mode" - creates it if necessary 1093 */ 1094 public ID getObr30_TransportationMode() { 1095 ID retVal = this.getTypedField(30, 0); 1096 return retVal; 1097 } 1098 1099 1100 /** 1101 * Returns all repetitions of Reason for Study (OBR-31). 1102 */ 1103 public CE[] getReasonForStudy() { 1104 CE[] retVal = this.getTypedField(31, new CE[0]); 1105 return retVal; 1106 } 1107 1108 1109 /** 1110 * Returns all repetitions of Reason for Study (OBR-31). 1111 */ 1112 public CE[] getObr31_ReasonForStudy() { 1113 CE[] retVal = this.getTypedField(31, new CE[0]); 1114 return retVal; 1115 } 1116 1117 1118 /** 1119 * Returns a count of the current number of repetitions of Reason for Study (OBR-31). 1120 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1121 * it will return zero. 1122 */ 1123 public int getReasonForStudyReps() { 1124 return this.getReps(31); 1125 } 1126 1127 1128 /** 1129 * Returns a specific repetition of 1130 * OBR-31: "Reason for Study" - creates it if necessary 1131 * 1132 * @param rep The repetition index (0-indexed) 1133 */ 1134 public CE getReasonForStudy(int rep) { 1135 CE retVal = this.getTypedField(31, rep); 1136 return retVal; 1137 } 1138 1139 /** 1140 * Returns a specific repetition of 1141 * OBR-31: "Reason for Study" - creates it if necessary 1142 * 1143 * @param rep The repetition index (0-indexed) 1144 */ 1145 public CE getObr31_ReasonForStudy(int rep) { 1146 CE retVal = this.getTypedField(31, rep); 1147 return retVal; 1148 } 1149 1150 /** 1151 * Returns a count of the current number of repetitions of Reason for Study (OBR-31). 1152 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1153 * it will return zero. 1154 */ 1155 public int getObr31_ReasonForStudyReps() { 1156 return this.getReps(31); 1157 } 1158 1159 1160 /** 1161 * Inserts a repetition of 1162 * OBR-31: "Reason for Study" at a specific index 1163 * 1164 * @param rep The repetition index (0-indexed) 1165 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1166 */ 1167 public CE insertReasonForStudy(int rep) throws HL7Exception { 1168 return (CE) super.insertRepetition(31, rep); 1169 } 1170 1171 1172 /** 1173 * Inserts a repetition of 1174 * OBR-31: "Reason for Study" at a specific index 1175 * 1176 * @param rep The repetition index (0-indexed) 1177 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1178 */ 1179 public CE insertObr31_ReasonForStudy(int rep) throws HL7Exception { 1180 return (CE) super.insertRepetition(31, rep); 1181 } 1182 1183 1184 /** 1185 * Removes a repetition of 1186 * OBR-31: "Reason for Study" at a specific index 1187 * 1188 * @param rep The repetition index (0-indexed) 1189 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1190 */ 1191 public CE removeReasonForStudy(int rep) throws HL7Exception { 1192 return (CE) super.removeRepetition(31, rep); 1193 } 1194 1195 1196 /** 1197 * Removes a repetition of 1198 * OBR-31: "Reason for Study" at a specific index 1199 * 1200 * @param rep The repetition index (0-indexed) 1201 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1202 */ 1203 public CE removeObr31_ReasonForStudy(int rep) throws HL7Exception { 1204 return (CE) super.removeRepetition(31, rep); 1205 } 1206 1207 1208 1209 1210 /** 1211 * Returns 1212 * OBR-32: "Principal Result Interpreter" - creates it if necessary 1213 */ 1214 public CM_NDL getPrincipalResultInterpreter() { 1215 CM_NDL retVal = this.getTypedField(32, 0); 1216 return retVal; 1217 } 1218 1219 /** 1220 * Returns 1221 * OBR-32: "Principal Result Interpreter" - creates it if necessary 1222 */ 1223 public CM_NDL getObr32_PrincipalResultInterpreter() { 1224 CM_NDL retVal = this.getTypedField(32, 0); 1225 return retVal; 1226 } 1227 1228 1229 /** 1230 * Returns all repetitions of Assistant Result Interpreter (OBR-33). 1231 */ 1232 public CM_NDL[] getAssistantResultInterpreter() { 1233 CM_NDL[] retVal = this.getTypedField(33, new CM_NDL[0]); 1234 return retVal; 1235 } 1236 1237 1238 /** 1239 * Returns all repetitions of Assistant Result Interpreter (OBR-33). 1240 */ 1241 public CM_NDL[] getObr33_AssistantResultInterpreter() { 1242 CM_NDL[] retVal = this.getTypedField(33, new CM_NDL[0]); 1243 return retVal; 1244 } 1245 1246 1247 /** 1248 * Returns a count of the current number of repetitions of Assistant Result Interpreter (OBR-33). 1249 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1250 * it will return zero. 1251 */ 1252 public int getAssistantResultInterpreterReps() { 1253 return this.getReps(33); 1254 } 1255 1256 1257 /** 1258 * Returns a specific repetition of 1259 * OBR-33: "Assistant Result Interpreter" - creates it if necessary 1260 * 1261 * @param rep The repetition index (0-indexed) 1262 */ 1263 public CM_NDL getAssistantResultInterpreter(int rep) { 1264 CM_NDL retVal = this.getTypedField(33, rep); 1265 return retVal; 1266 } 1267 1268 /** 1269 * Returns a specific repetition of 1270 * OBR-33: "Assistant Result Interpreter" - creates it if necessary 1271 * 1272 * @param rep The repetition index (0-indexed) 1273 */ 1274 public CM_NDL getObr33_AssistantResultInterpreter(int rep) { 1275 CM_NDL retVal = this.getTypedField(33, rep); 1276 return retVal; 1277 } 1278 1279 /** 1280 * Returns a count of the current number of repetitions of Assistant Result Interpreter (OBR-33). 1281 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1282 * it will return zero. 1283 */ 1284 public int getObr33_AssistantResultInterpreterReps() { 1285 return this.getReps(33); 1286 } 1287 1288 1289 /** 1290 * Inserts a repetition of 1291 * OBR-33: "Assistant Result Interpreter" at a specific index 1292 * 1293 * @param rep The repetition index (0-indexed) 1294 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1295 */ 1296 public CM_NDL insertAssistantResultInterpreter(int rep) throws HL7Exception { 1297 return (CM_NDL) super.insertRepetition(33, rep); 1298 } 1299 1300 1301 /** 1302 * Inserts a repetition of 1303 * OBR-33: "Assistant Result Interpreter" at a specific index 1304 * 1305 * @param rep The repetition index (0-indexed) 1306 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1307 */ 1308 public CM_NDL insertObr33_AssistantResultInterpreter(int rep) throws HL7Exception { 1309 return (CM_NDL) super.insertRepetition(33, rep); 1310 } 1311 1312 1313 /** 1314 * Removes a repetition of 1315 * OBR-33: "Assistant Result Interpreter" at a specific index 1316 * 1317 * @param rep The repetition index (0-indexed) 1318 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1319 */ 1320 public CM_NDL removeAssistantResultInterpreter(int rep) throws HL7Exception { 1321 return (CM_NDL) super.removeRepetition(33, rep); 1322 } 1323 1324 1325 /** 1326 * Removes a repetition of 1327 * OBR-33: "Assistant Result Interpreter" at a specific index 1328 * 1329 * @param rep The repetition index (0-indexed) 1330 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1331 */ 1332 public CM_NDL removeObr33_AssistantResultInterpreter(int rep) throws HL7Exception { 1333 return (CM_NDL) super.removeRepetition(33, rep); 1334 } 1335 1336 1337 1338 /** 1339 * Returns all repetitions of Technician (OBR-34). 1340 */ 1341 public CM_NDL[] getTechnician() { 1342 CM_NDL[] retVal = this.getTypedField(34, new CM_NDL[0]); 1343 return retVal; 1344 } 1345 1346 1347 /** 1348 * Returns all repetitions of Technician (OBR-34). 1349 */ 1350 public CM_NDL[] getObr34_Technician() { 1351 CM_NDL[] retVal = this.getTypedField(34, new CM_NDL[0]); 1352 return retVal; 1353 } 1354 1355 1356 /** 1357 * Returns a count of the current number of repetitions of Technician (OBR-34). 1358 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1359 * it will return zero. 1360 */ 1361 public int getTechnicianReps() { 1362 return this.getReps(34); 1363 } 1364 1365 1366 /** 1367 * Returns a specific repetition of 1368 * OBR-34: "Technician" - creates it if necessary 1369 * 1370 * @param rep The repetition index (0-indexed) 1371 */ 1372 public CM_NDL getTechnician(int rep) { 1373 CM_NDL retVal = this.getTypedField(34, rep); 1374 return retVal; 1375 } 1376 1377 /** 1378 * Returns a specific repetition of 1379 * OBR-34: "Technician" - creates it if necessary 1380 * 1381 * @param rep The repetition index (0-indexed) 1382 */ 1383 public CM_NDL getObr34_Technician(int rep) { 1384 CM_NDL retVal = this.getTypedField(34, rep); 1385 return retVal; 1386 } 1387 1388 /** 1389 * Returns a count of the current number of repetitions of Technician (OBR-34). 1390 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1391 * it will return zero. 1392 */ 1393 public int getObr34_TechnicianReps() { 1394 return this.getReps(34); 1395 } 1396 1397 1398 /** 1399 * Inserts a repetition of 1400 * OBR-34: "Technician" at a specific index 1401 * 1402 * @param rep The repetition index (0-indexed) 1403 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1404 */ 1405 public CM_NDL insertTechnician(int rep) throws HL7Exception { 1406 return (CM_NDL) super.insertRepetition(34, rep); 1407 } 1408 1409 1410 /** 1411 * Inserts a repetition of 1412 * OBR-34: "Technician" at a specific index 1413 * 1414 * @param rep The repetition index (0-indexed) 1415 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1416 */ 1417 public CM_NDL insertObr34_Technician(int rep) throws HL7Exception { 1418 return (CM_NDL) super.insertRepetition(34, rep); 1419 } 1420 1421 1422 /** 1423 * Removes a repetition of 1424 * OBR-34: "Technician" at a specific index 1425 * 1426 * @param rep The repetition index (0-indexed) 1427 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1428 */ 1429 public CM_NDL removeTechnician(int rep) throws HL7Exception { 1430 return (CM_NDL) super.removeRepetition(34, rep); 1431 } 1432 1433 1434 /** 1435 * Removes a repetition of 1436 * OBR-34: "Technician" at a specific index 1437 * 1438 * @param rep The repetition index (0-indexed) 1439 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1440 */ 1441 public CM_NDL removeObr34_Technician(int rep) throws HL7Exception { 1442 return (CM_NDL) super.removeRepetition(34, rep); 1443 } 1444 1445 1446 1447 /** 1448 * Returns all repetitions of Transcriptionist (OBR-35). 1449 */ 1450 public CM_NDL[] getTranscriptionist() { 1451 CM_NDL[] retVal = this.getTypedField(35, new CM_NDL[0]); 1452 return retVal; 1453 } 1454 1455 1456 /** 1457 * Returns all repetitions of Transcriptionist (OBR-35). 1458 */ 1459 public CM_NDL[] getObr35_Transcriptionist() { 1460 CM_NDL[] retVal = this.getTypedField(35, new CM_NDL[0]); 1461 return retVal; 1462 } 1463 1464 1465 /** 1466 * Returns a count of the current number of repetitions of Transcriptionist (OBR-35). 1467 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1468 * it will return zero. 1469 */ 1470 public int getTranscriptionistReps() { 1471 return this.getReps(35); 1472 } 1473 1474 1475 /** 1476 * Returns a specific repetition of 1477 * OBR-35: "Transcriptionist" - creates it if necessary 1478 * 1479 * @param rep The repetition index (0-indexed) 1480 */ 1481 public CM_NDL getTranscriptionist(int rep) { 1482 CM_NDL retVal = this.getTypedField(35, rep); 1483 return retVal; 1484 } 1485 1486 /** 1487 * Returns a specific repetition of 1488 * OBR-35: "Transcriptionist" - creates it if necessary 1489 * 1490 * @param rep The repetition index (0-indexed) 1491 */ 1492 public CM_NDL getObr35_Transcriptionist(int rep) { 1493 CM_NDL retVal = this.getTypedField(35, rep); 1494 return retVal; 1495 } 1496 1497 /** 1498 * Returns a count of the current number of repetitions of Transcriptionist (OBR-35). 1499 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1500 * it will return zero. 1501 */ 1502 public int getObr35_TranscriptionistReps() { 1503 return this.getReps(35); 1504 } 1505 1506 1507 /** 1508 * Inserts a repetition of 1509 * OBR-35: "Transcriptionist" at a specific index 1510 * 1511 * @param rep The repetition index (0-indexed) 1512 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1513 */ 1514 public CM_NDL insertTranscriptionist(int rep) throws HL7Exception { 1515 return (CM_NDL) super.insertRepetition(35, rep); 1516 } 1517 1518 1519 /** 1520 * Inserts a repetition of 1521 * OBR-35: "Transcriptionist" at a specific index 1522 * 1523 * @param rep The repetition index (0-indexed) 1524 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1525 */ 1526 public CM_NDL insertObr35_Transcriptionist(int rep) throws HL7Exception { 1527 return (CM_NDL) super.insertRepetition(35, rep); 1528 } 1529 1530 1531 /** 1532 * Removes a repetition of 1533 * OBR-35: "Transcriptionist" at a specific index 1534 * 1535 * @param rep The repetition index (0-indexed) 1536 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1537 */ 1538 public CM_NDL removeTranscriptionist(int rep) throws HL7Exception { 1539 return (CM_NDL) super.removeRepetition(35, rep); 1540 } 1541 1542 1543 /** 1544 * Removes a repetition of 1545 * OBR-35: "Transcriptionist" at a specific index 1546 * 1547 * @param rep The repetition index (0-indexed) 1548 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1549 */ 1550 public CM_NDL removeObr35_Transcriptionist(int rep) throws HL7Exception { 1551 return (CM_NDL) super.removeRepetition(35, rep); 1552 } 1553 1554 1555 1556 1557 /** 1558 * Returns 1559 * OBR-36: "Scheduled date / time" - creates it if necessary 1560 */ 1561 public TS getScheduledDateTime() { 1562 TS retVal = this.getTypedField(36, 0); 1563 return retVal; 1564 } 1565 1566 /** 1567 * Returns 1568 * OBR-36: "Scheduled date / time" - creates it if necessary 1569 */ 1570 public TS getObr36_ScheduledDateTime() { 1571 TS retVal = this.getTypedField(36, 0); 1572 return retVal; 1573 } 1574 1575 1576 1577 1578 1579 /** {@inheritDoc} */ 1580 protected Type createNewTypeWithoutReflection(int field) { 1581 switch (field) { 1582 case 0: return new SI(getMessage()); 1583 case 1: return new CM_PLACER(getMessage()); 1584 case 2: return new CM_FILLER(getMessage()); 1585 case 3: return new CE(getMessage()); 1586 case 4: return new ID(getMessage(), new Integer( 0 )); 1587 case 5: return new TS(getMessage()); 1588 case 6: return new TS(getMessage()); 1589 case 7: return new TS(getMessage()); 1590 case 8: return new CQ_QUANTITY(getMessage()); 1591 case 9: return new CN(getMessage()); 1592 case 10: return new ID(getMessage(), new Integer( 65 )); 1593 case 11: return new CE(getMessage()); 1594 case 12: return new ST(getMessage()); 1595 case 13: return new TS(getMessage()); 1596 case 14: return new CM_SPS(getMessage()); 1597 case 15: return new CN(getMessage()); 1598 case 16: return new TN(getMessage()); 1599 case 17: return new ST(getMessage()); 1600 case 18: return new ST(getMessage()); 1601 case 19: return new ST(getMessage()); 1602 case 20: return new ST(getMessage()); 1603 case 21: return new TS(getMessage()); 1604 case 22: return new CM_MOC(getMessage()); 1605 case 23: return new ID(getMessage(), new Integer( 74 )); 1606 case 24: return new ID(getMessage(), new Integer( 123 )); 1607 case 25: return new CM_PARENT_RESULT(getMessage()); 1608 case 26: return new TQ(getMessage()); 1609 case 27: return new CN(getMessage()); 1610 case 28: return new CM_EIP(getMessage()); 1611 case 29: return new ID(getMessage(), new Integer( 124 )); 1612 case 30: return new CE(getMessage()); 1613 case 31: return new CM_NDL(getMessage()); 1614 case 32: return new CM_NDL(getMessage()); 1615 case 33: return new CM_NDL(getMessage()); 1616 case 34: return new CM_NDL(getMessage()); 1617 case 35: return new TS(getMessage()); 1618 default: return null; 1619 } 1620 } 1621 1622 1623} 1624