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.v26.segment; 035 036// import ca.uhn.hl7v2.model.v26.group.*; 037import ca.uhn.hl7v2.model.v26.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 OBX message segment (Observation/Result). 050 * This segment has the following fields:</p> 051 * <ul> 052 * <li>OBX-1: Set ID - OBX (SI) <b>optional </b> 053 * <li>OBX-2: Value Type (ID) <b>optional </b> 054 * <li>OBX-3: Observation Identifier (CWE) <b> </b> 055 * <li>OBX-4: Observation Sub-ID (ST) <b>optional </b> 056 * <li>OBX-5: Observation Value (Varies) <b>optional repeating</b> 057 * <li>OBX-6: Units (CWE) <b>optional </b> 058 * <li>OBX-7: References Range (ST) <b>optional </b> 059 * <li>OBX-8: Abnormal Flags (IS) <b>optional repeating</b> 060 * <li>OBX-9: Probability (NM) <b>optional </b> 061 * <li>OBX-10: Nature of Abnormal Test (ID) <b>optional repeating</b> 062 * <li>OBX-11: Observation Result Status (ID) <b> </b> 063 * <li>OBX-12: Effective Date of Reference Range (DTM) <b>optional </b> 064 * <li>OBX-13: User Defined Access Checks (ST) <b>optional </b> 065 * <li>OBX-14: Date/Time of the Observation (DTM) <b>optional </b> 066 * <li>OBX-15: Producer's ID (CWE) <b>optional </b> 067 * <li>OBX-16: Responsible Observer (XCN) <b>optional repeating</b> 068 * <li>OBX-17: Observation Method (CWE) <b>optional repeating</b> 069 * <li>OBX-18: Equipment Instance Identifier (EI) <b>optional repeating</b> 070 * <li>OBX-19: Date/Time of the Analysis (DTM) <b>optional </b> 071 * <li>OBX-20: Observation Site (CWE) <b>optional repeating</b> 072 * <li>OBX-21: Observation Instance Identifier (EI) <b>optional </b> 073 * <li>OBX-22: Mood Code (CNE) <b>optional </b> 074 * <li>OBX-23: Performing Organization Name (XON) <b>optional </b> 075 * <li>OBX-24: Performing Organization Address (XAD) <b>optional </b> 076 * <li>OBX-25: Performing Organization Medical Director (XCN) <b>optional </b> 077 * </ul> 078 */ 079@SuppressWarnings("unused") 080public class OBX extends AbstractSegment { 081 082 /** 083 * Creates a new OBX segment 084 */ 085 public OBX(Group parent, ModelClassFactory factory) { 086 super(parent, factory); 087 init(factory); 088 } 089 090 private void init(ModelClassFactory factory) { 091 try { 092 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - OBX"); 093 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(125) }, "Value Type"); 094 this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Observation Identifier"); 095 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Observation Sub-ID"); 096 this.add(Varies.class, false, 0, 65536, new Object[]{ getMessage() }, "Observation Value"); 097 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Units"); 098 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "References Range"); 099 this.add(IS.class, false, 0, 5, new Object[]{ getMessage(), new Integer(78) }, "Abnormal Flags"); 100 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Probability"); 101 this.add(ID.class, false, 0, 2, new Object[]{ getMessage(), new Integer(80) }, "Nature of Abnormal Test"); 102 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(85) }, "Observation Result Status"); 103 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Effective Date of Reference Range"); 104 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "User Defined Access Checks"); 105 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Date/Time of the Observation"); 106 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Producer's ID"); 107 this.add(XCN.class, false, 0, 3220, new Object[]{ getMessage() }, "Responsible Observer"); 108 this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Observation Method"); 109 this.add(EI.class, false, 0, 427, new Object[]{ getMessage() }, "Equipment Instance Identifier"); 110 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Date/Time of the Analysis"); 111 this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Observation Site"); 112 this.add(EI.class, false, 1, 427, new Object[]{ getMessage() }, "Observation Instance Identifier"); 113 this.add(CNE.class, false, 1, 705, new Object[]{ getMessage() }, "Mood Code"); 114 this.add(XON.class, false, 1, 570, new Object[]{ getMessage() }, "Performing Organization Name"); 115 this.add(XAD.class, false, 1, 2915, new Object[]{ getMessage() }, "Performing Organization Address"); 116 this.add(XCN.class, false, 1, 3220, new Object[]{ getMessage() }, "Performing Organization Medical Director"); 117 } catch(HL7Exception e) { 118 log.error("Unexpected error creating OBX - this is probably a bug in the source code generator.", e); 119 } 120 } 121 122 123 124 /** 125 * Returns 126 * OBX-1: "Set ID - OBX" - creates it if necessary 127 */ 128 public SI getSetIDOBX() { 129 SI retVal = this.getTypedField(1, 0); 130 return retVal; 131 } 132 133 /** 134 * Returns 135 * OBX-1: "Set ID - OBX" - creates it if necessary 136 */ 137 public SI getObx1_SetIDOBX() { 138 SI retVal = this.getTypedField(1, 0); 139 return retVal; 140 } 141 142 143 144 /** 145 * Returns 146 * OBX-2: "Value Type" - creates it if necessary 147 */ 148 public ID getValueType() { 149 ID retVal = this.getTypedField(2, 0); 150 return retVal; 151 } 152 153 /** 154 * Returns 155 * OBX-2: "Value Type" - creates it if necessary 156 */ 157 public ID getObx2_ValueType() { 158 ID retVal = this.getTypedField(2, 0); 159 return retVal; 160 } 161 162 163 164 /** 165 * Returns 166 * OBX-3: "Observation Identifier" - creates it if necessary 167 */ 168 public CWE getObservationIdentifier() { 169 CWE retVal = this.getTypedField(3, 0); 170 return retVal; 171 } 172 173 /** 174 * Returns 175 * OBX-3: "Observation Identifier" - creates it if necessary 176 */ 177 public CWE getObx3_ObservationIdentifier() { 178 CWE retVal = this.getTypedField(3, 0); 179 return retVal; 180 } 181 182 183 184 /** 185 * Returns 186 * OBX-4: "Observation Sub-ID" - creates it if necessary 187 */ 188 public ST getObservationSubID() { 189 ST retVal = this.getTypedField(4, 0); 190 return retVal; 191 } 192 193 /** 194 * Returns 195 * OBX-4: "Observation Sub-ID" - creates it if necessary 196 */ 197 public ST getObx4_ObservationSubID() { 198 ST retVal = this.getTypedField(4, 0); 199 return retVal; 200 } 201 202 203 /** 204 * Returns all repetitions of Observation Value (OBX-5). 205 */ 206 public Varies[] getObservationValue() { 207 Varies[] retVal = this.getTypedField(5, new Varies[0]); 208 return retVal; 209 } 210 211 212 /** 213 * Returns all repetitions of Observation Value (OBX-5). 214 */ 215 public Varies[] getObx5_ObservationValue() { 216 Varies[] retVal = this.getTypedField(5, new Varies[0]); 217 return retVal; 218 } 219 220 221 /** 222 * Returns a count of the current number of repetitions of Observation Value (OBX-5). 223 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 224 * it will return zero. 225 */ 226 public int getObservationValueReps() { 227 return this.getReps(5); 228 } 229 230 231 /** 232 * Returns a specific repetition of 233 * OBX-5: "Observation Value" - creates it if necessary 234 * 235 * @param rep The repetition index (0-indexed) 236 */ 237 public Varies getObservationValue(int rep) { 238 Varies retVal = this.getTypedField(5, rep); 239 return retVal; 240 } 241 242 /** 243 * Returns a specific repetition of 244 * OBX-5: "Observation Value" - creates it if necessary 245 * 246 * @param rep The repetition index (0-indexed) 247 */ 248 public Varies getObx5_ObservationValue(int rep) { 249 Varies retVal = this.getTypedField(5, rep); 250 return retVal; 251 } 252 253 /** 254 * Returns a count of the current number of repetitions of Observation Value (OBX-5). 255 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 256 * it will return zero. 257 */ 258 public int getObx5_ObservationValueReps() { 259 return this.getReps(5); 260 } 261 262 263 /** 264 * Inserts a repetition of 265 * OBX-5: "Observation Value" at a specific index 266 * 267 * @param rep The repetition index (0-indexed) 268 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 269 */ 270 public Varies insertObservationValue(int rep) throws HL7Exception { 271 return (Varies) super.insertRepetition(5, rep); 272 } 273 274 275 /** 276 * Inserts a repetition of 277 * OBX-5: "Observation Value" at a specific index 278 * 279 * @param rep The repetition index (0-indexed) 280 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 281 */ 282 public Varies insertObx5_ObservationValue(int rep) throws HL7Exception { 283 return (Varies) super.insertRepetition(5, rep); 284 } 285 286 287 /** 288 * Removes a repetition of 289 * OBX-5: "Observation Value" at a specific index 290 * 291 * @param rep The repetition index (0-indexed) 292 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 293 */ 294 public Varies removeObservationValue(int rep) throws HL7Exception { 295 return (Varies) super.removeRepetition(5, rep); 296 } 297 298 299 /** 300 * Removes a repetition of 301 * OBX-5: "Observation Value" at a specific index 302 * 303 * @param rep The repetition index (0-indexed) 304 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 305 */ 306 public Varies removeObx5_ObservationValue(int rep) throws HL7Exception { 307 return (Varies) super.removeRepetition(5, rep); 308 } 309 310 311 312 313 /** 314 * Returns 315 * OBX-6: "Units" - creates it if necessary 316 */ 317 public CWE getUnits() { 318 CWE retVal = this.getTypedField(6, 0); 319 return retVal; 320 } 321 322 /** 323 * Returns 324 * OBX-6: "Units" - creates it if necessary 325 */ 326 public CWE getObx6_Units() { 327 CWE retVal = this.getTypedField(6, 0); 328 return retVal; 329 } 330 331 332 333 /** 334 * Returns 335 * OBX-7: "References Range" - creates it if necessary 336 */ 337 public ST getReferencesRange() { 338 ST retVal = this.getTypedField(7, 0); 339 return retVal; 340 } 341 342 /** 343 * Returns 344 * OBX-7: "References Range" - creates it if necessary 345 */ 346 public ST getObx7_ReferencesRange() { 347 ST retVal = this.getTypedField(7, 0); 348 return retVal; 349 } 350 351 352 /** 353 * Returns all repetitions of Abnormal Flags (OBX-8). 354 */ 355 public IS[] getAbnormalFlags() { 356 IS[] retVal = this.getTypedField(8, new IS[0]); 357 return retVal; 358 } 359 360 361 /** 362 * Returns all repetitions of Abnormal Flags (OBX-8). 363 */ 364 public IS[] getObx8_AbnormalFlags() { 365 IS[] retVal = this.getTypedField(8, new IS[0]); 366 return retVal; 367 } 368 369 370 /** 371 * Returns a count of the current number of repetitions of Abnormal Flags (OBX-8). 372 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 373 * it will return zero. 374 */ 375 public int getAbnormalFlagsReps() { 376 return this.getReps(8); 377 } 378 379 380 /** 381 * Returns a specific repetition of 382 * OBX-8: "Abnormal Flags" - creates it if necessary 383 * 384 * @param rep The repetition index (0-indexed) 385 */ 386 public IS getAbnormalFlags(int rep) { 387 IS retVal = this.getTypedField(8, rep); 388 return retVal; 389 } 390 391 /** 392 * Returns a specific repetition of 393 * OBX-8: "Abnormal Flags" - creates it if necessary 394 * 395 * @param rep The repetition index (0-indexed) 396 */ 397 public IS getObx8_AbnormalFlags(int rep) { 398 IS retVal = this.getTypedField(8, rep); 399 return retVal; 400 } 401 402 /** 403 * Returns a count of the current number of repetitions of Abnormal Flags (OBX-8). 404 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 405 * it will return zero. 406 */ 407 public int getObx8_AbnormalFlagsReps() { 408 return this.getReps(8); 409 } 410 411 412 /** 413 * Inserts a repetition of 414 * OBX-8: "Abnormal Flags" at a specific index 415 * 416 * @param rep The repetition index (0-indexed) 417 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 418 */ 419 public IS insertAbnormalFlags(int rep) throws HL7Exception { 420 return (IS) super.insertRepetition(8, rep); 421 } 422 423 424 /** 425 * Inserts a repetition of 426 * OBX-8: "Abnormal Flags" at a specific index 427 * 428 * @param rep The repetition index (0-indexed) 429 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 430 */ 431 public IS insertObx8_AbnormalFlags(int rep) throws HL7Exception { 432 return (IS) super.insertRepetition(8, rep); 433 } 434 435 436 /** 437 * Removes a repetition of 438 * OBX-8: "Abnormal Flags" at a specific index 439 * 440 * @param rep The repetition index (0-indexed) 441 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 442 */ 443 public IS removeAbnormalFlags(int rep) throws HL7Exception { 444 return (IS) super.removeRepetition(8, rep); 445 } 446 447 448 /** 449 * Removes a repetition of 450 * OBX-8: "Abnormal Flags" at a specific index 451 * 452 * @param rep The repetition index (0-indexed) 453 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 454 */ 455 public IS removeObx8_AbnormalFlags(int rep) throws HL7Exception { 456 return (IS) super.removeRepetition(8, rep); 457 } 458 459 460 461 462 /** 463 * Returns 464 * OBX-9: "Probability" - creates it if necessary 465 */ 466 public NM getProbability() { 467 NM retVal = this.getTypedField(9, 0); 468 return retVal; 469 } 470 471 /** 472 * Returns 473 * OBX-9: "Probability" - creates it if necessary 474 */ 475 public NM getObx9_Probability() { 476 NM retVal = this.getTypedField(9, 0); 477 return retVal; 478 } 479 480 481 /** 482 * Returns all repetitions of Nature of Abnormal Test (OBX-10). 483 */ 484 public ID[] getNatureOfAbnormalTest() { 485 ID[] retVal = this.getTypedField(10, new ID[0]); 486 return retVal; 487 } 488 489 490 /** 491 * Returns all repetitions of Nature of Abnormal Test (OBX-10). 492 */ 493 public ID[] getObx10_NatureOfAbnormalTest() { 494 ID[] retVal = this.getTypedField(10, new ID[0]); 495 return retVal; 496 } 497 498 499 /** 500 * Returns a count of the current number of repetitions of Nature of Abnormal Test (OBX-10). 501 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 502 * it will return zero. 503 */ 504 public int getNatureOfAbnormalTestReps() { 505 return this.getReps(10); 506 } 507 508 509 /** 510 * Returns a specific repetition of 511 * OBX-10: "Nature of Abnormal Test" - creates it if necessary 512 * 513 * @param rep The repetition index (0-indexed) 514 */ 515 public ID getNatureOfAbnormalTest(int rep) { 516 ID retVal = this.getTypedField(10, rep); 517 return retVal; 518 } 519 520 /** 521 * Returns a specific repetition of 522 * OBX-10: "Nature of Abnormal Test" - creates it if necessary 523 * 524 * @param rep The repetition index (0-indexed) 525 */ 526 public ID getObx10_NatureOfAbnormalTest(int rep) { 527 ID retVal = this.getTypedField(10, rep); 528 return retVal; 529 } 530 531 /** 532 * Returns a count of the current number of repetitions of Nature of Abnormal Test (OBX-10). 533 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 534 * it will return zero. 535 */ 536 public int getObx10_NatureOfAbnormalTestReps() { 537 return this.getReps(10); 538 } 539 540 541 /** 542 * Inserts a repetition of 543 * OBX-10: "Nature of Abnormal Test" at a specific index 544 * 545 * @param rep The repetition index (0-indexed) 546 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 547 */ 548 public ID insertNatureOfAbnormalTest(int rep) throws HL7Exception { 549 return (ID) super.insertRepetition(10, rep); 550 } 551 552 553 /** 554 * Inserts a repetition of 555 * OBX-10: "Nature of Abnormal Test" at a specific index 556 * 557 * @param rep The repetition index (0-indexed) 558 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 559 */ 560 public ID insertObx10_NatureOfAbnormalTest(int rep) throws HL7Exception { 561 return (ID) super.insertRepetition(10, rep); 562 } 563 564 565 /** 566 * Removes a repetition of 567 * OBX-10: "Nature of Abnormal Test" at a specific index 568 * 569 * @param rep The repetition index (0-indexed) 570 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 571 */ 572 public ID removeNatureOfAbnormalTest(int rep) throws HL7Exception { 573 return (ID) super.removeRepetition(10, rep); 574 } 575 576 577 /** 578 * Removes a repetition of 579 * OBX-10: "Nature of Abnormal Test" at a specific index 580 * 581 * @param rep The repetition index (0-indexed) 582 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 583 */ 584 public ID removeObx10_NatureOfAbnormalTest(int rep) throws HL7Exception { 585 return (ID) super.removeRepetition(10, rep); 586 } 587 588 589 590 591 /** 592 * Returns 593 * OBX-11: "Observation Result Status" - creates it if necessary 594 */ 595 public ID getObservationResultStatus() { 596 ID retVal = this.getTypedField(11, 0); 597 return retVal; 598 } 599 600 /** 601 * Returns 602 * OBX-11: "Observation Result Status" - creates it if necessary 603 */ 604 public ID getObx11_ObservationResultStatus() { 605 ID retVal = this.getTypedField(11, 0); 606 return retVal; 607 } 608 609 610 611 /** 612 * Returns 613 * OBX-12: "Effective Date of Reference Range" - creates it if necessary 614 */ 615 public DTM getEffectiveDateOfReferenceRange() { 616 DTM retVal = this.getTypedField(12, 0); 617 return retVal; 618 } 619 620 /** 621 * Returns 622 * OBX-12: "Effective Date of Reference Range" - creates it if necessary 623 */ 624 public DTM getObx12_EffectiveDateOfReferenceRange() { 625 DTM retVal = this.getTypedField(12, 0); 626 return retVal; 627 } 628 629 630 631 /** 632 * Returns 633 * OBX-13: "User Defined Access Checks" - creates it if necessary 634 */ 635 public ST getUserDefinedAccessChecks() { 636 ST retVal = this.getTypedField(13, 0); 637 return retVal; 638 } 639 640 /** 641 * Returns 642 * OBX-13: "User Defined Access Checks" - creates it if necessary 643 */ 644 public ST getObx13_UserDefinedAccessChecks() { 645 ST retVal = this.getTypedField(13, 0); 646 return retVal; 647 } 648 649 650 651 /** 652 * Returns 653 * OBX-14: "Date/Time of the Observation" - creates it if necessary 654 */ 655 public DTM getDateTimeOfTheObservation() { 656 DTM retVal = this.getTypedField(14, 0); 657 return retVal; 658 } 659 660 /** 661 * Returns 662 * OBX-14: "Date/Time of the Observation" - creates it if necessary 663 */ 664 public DTM getObx14_DateTimeOfTheObservation() { 665 DTM retVal = this.getTypedField(14, 0); 666 return retVal; 667 } 668 669 670 671 /** 672 * Returns 673 * OBX-15: "Producer's ID" - creates it if necessary 674 */ 675 public CWE getProducerSID() { 676 CWE retVal = this.getTypedField(15, 0); 677 return retVal; 678 } 679 680 /** 681 * Returns 682 * OBX-15: "Producer's ID" - creates it if necessary 683 */ 684 public CWE getObx15_ProducerSID() { 685 CWE retVal = this.getTypedField(15, 0); 686 return retVal; 687 } 688 689 690 /** 691 * Returns all repetitions of Responsible Observer (OBX-16). 692 */ 693 public XCN[] getResponsibleObserver() { 694 XCN[] retVal = this.getTypedField(16, new XCN[0]); 695 return retVal; 696 } 697 698 699 /** 700 * Returns all repetitions of Responsible Observer (OBX-16). 701 */ 702 public XCN[] getObx16_ResponsibleObserver() { 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 Responsible Observer (OBX-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 getResponsibleObserverReps() { 714 return this.getReps(16); 715 } 716 717 718 /** 719 * Returns a specific repetition of 720 * OBX-16: "Responsible Observer" - creates it if necessary 721 * 722 * @param rep The repetition index (0-indexed) 723 */ 724 public XCN getResponsibleObserver(int rep) { 725 XCN retVal = this.getTypedField(16, rep); 726 return retVal; 727 } 728 729 /** 730 * Returns a specific repetition of 731 * OBX-16: "Responsible Observer" - creates it if necessary 732 * 733 * @param rep The repetition index (0-indexed) 734 */ 735 public XCN getObx16_ResponsibleObserver(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 Responsible Observer (OBX-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 getObx16_ResponsibleObserverReps() { 746 return this.getReps(16); 747 } 748 749 750 /** 751 * Inserts a repetition of 752 * OBX-16: "Responsible Observer" 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 insertResponsibleObserver(int rep) throws HL7Exception { 758 return (XCN) super.insertRepetition(16, rep); 759 } 760 761 762 /** 763 * Inserts a repetition of 764 * OBX-16: "Responsible Observer" 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 insertObx16_ResponsibleObserver(int rep) throws HL7Exception { 770 return (XCN) super.insertRepetition(16, rep); 771 } 772 773 774 /** 775 * Removes a repetition of 776 * OBX-16: "Responsible Observer" 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 removeResponsibleObserver(int rep) throws HL7Exception { 782 return (XCN) super.removeRepetition(16, rep); 783 } 784 785 786 /** 787 * Removes a repetition of 788 * OBX-16: "Responsible Observer" 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 removeObx16_ResponsibleObserver(int rep) throws HL7Exception { 794 return (XCN) super.removeRepetition(16, rep); 795 } 796 797 798 799 /** 800 * Returns all repetitions of Observation Method (OBX-17). 801 */ 802 public CWE[] getObservationMethod() { 803 CWE[] retVal = this.getTypedField(17, new CWE[0]); 804 return retVal; 805 } 806 807 808 /** 809 * Returns all repetitions of Observation Method (OBX-17). 810 */ 811 public CWE[] getObx17_ObservationMethod() { 812 CWE[] retVal = this.getTypedField(17, new CWE[0]); 813 return retVal; 814 } 815 816 817 /** 818 * Returns a count of the current number of repetitions of Observation Method (OBX-17). 819 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 820 * it will return zero. 821 */ 822 public int getObservationMethodReps() { 823 return this.getReps(17); 824 } 825 826 827 /** 828 * Returns a specific repetition of 829 * OBX-17: "Observation Method" - creates it if necessary 830 * 831 * @param rep The repetition index (0-indexed) 832 */ 833 public CWE getObservationMethod(int rep) { 834 CWE retVal = this.getTypedField(17, rep); 835 return retVal; 836 } 837 838 /** 839 * Returns a specific repetition of 840 * OBX-17: "Observation Method" - creates it if necessary 841 * 842 * @param rep The repetition index (0-indexed) 843 */ 844 public CWE getObx17_ObservationMethod(int rep) { 845 CWE retVal = this.getTypedField(17, rep); 846 return retVal; 847 } 848 849 /** 850 * Returns a count of the current number of repetitions of Observation Method (OBX-17). 851 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 852 * it will return zero. 853 */ 854 public int getObx17_ObservationMethodReps() { 855 return this.getReps(17); 856 } 857 858 859 /** 860 * Inserts a repetition of 861 * OBX-17: "Observation Method" at a specific index 862 * 863 * @param rep The repetition index (0-indexed) 864 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 865 */ 866 public CWE insertObservationMethod(int rep) throws HL7Exception { 867 return (CWE) super.insertRepetition(17, rep); 868 } 869 870 871 /** 872 * Inserts a repetition of 873 * OBX-17: "Observation Method" at a specific index 874 * 875 * @param rep The repetition index (0-indexed) 876 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 877 */ 878 public CWE insertObx17_ObservationMethod(int rep) throws HL7Exception { 879 return (CWE) super.insertRepetition(17, rep); 880 } 881 882 883 /** 884 * Removes a repetition of 885 * OBX-17: "Observation Method" at a specific index 886 * 887 * @param rep The repetition index (0-indexed) 888 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 889 */ 890 public CWE removeObservationMethod(int rep) throws HL7Exception { 891 return (CWE) super.removeRepetition(17, rep); 892 } 893 894 895 /** 896 * Removes a repetition of 897 * OBX-17: "Observation Method" at a specific index 898 * 899 * @param rep The repetition index (0-indexed) 900 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 901 */ 902 public CWE removeObx17_ObservationMethod(int rep) throws HL7Exception { 903 return (CWE) super.removeRepetition(17, rep); 904 } 905 906 907 908 /** 909 * Returns all repetitions of Equipment Instance Identifier (OBX-18). 910 */ 911 public EI[] getEquipmentInstanceIdentifier() { 912 EI[] retVal = this.getTypedField(18, new EI[0]); 913 return retVal; 914 } 915 916 917 /** 918 * Returns all repetitions of Equipment Instance Identifier (OBX-18). 919 */ 920 public EI[] getObx18_EquipmentInstanceIdentifier() { 921 EI[] retVal = this.getTypedField(18, new EI[0]); 922 return retVal; 923 } 924 925 926 /** 927 * Returns a count of the current number of repetitions of Equipment Instance Identifier (OBX-18). 928 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 929 * it will return zero. 930 */ 931 public int getEquipmentInstanceIdentifierReps() { 932 return this.getReps(18); 933 } 934 935 936 /** 937 * Returns a specific repetition of 938 * OBX-18: "Equipment Instance Identifier" - creates it if necessary 939 * 940 * @param rep The repetition index (0-indexed) 941 */ 942 public EI getEquipmentInstanceIdentifier(int rep) { 943 EI retVal = this.getTypedField(18, rep); 944 return retVal; 945 } 946 947 /** 948 * Returns a specific repetition of 949 * OBX-18: "Equipment Instance Identifier" - creates it if necessary 950 * 951 * @param rep The repetition index (0-indexed) 952 */ 953 public EI getObx18_EquipmentInstanceIdentifier(int rep) { 954 EI retVal = this.getTypedField(18, rep); 955 return retVal; 956 } 957 958 /** 959 * Returns a count of the current number of repetitions of Equipment Instance Identifier (OBX-18). 960 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 961 * it will return zero. 962 */ 963 public int getObx18_EquipmentInstanceIdentifierReps() { 964 return this.getReps(18); 965 } 966 967 968 /** 969 * Inserts a repetition of 970 * OBX-18: "Equipment Instance Identifier" at a specific index 971 * 972 * @param rep The repetition index (0-indexed) 973 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 974 */ 975 public EI insertEquipmentInstanceIdentifier(int rep) throws HL7Exception { 976 return (EI) super.insertRepetition(18, rep); 977 } 978 979 980 /** 981 * Inserts a repetition of 982 * OBX-18: "Equipment Instance Identifier" at a specific index 983 * 984 * @param rep The repetition index (0-indexed) 985 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 986 */ 987 public EI insertObx18_EquipmentInstanceIdentifier(int rep) throws HL7Exception { 988 return (EI) super.insertRepetition(18, rep); 989 } 990 991 992 /** 993 * Removes a repetition of 994 * OBX-18: "Equipment Instance Identifier" at a specific index 995 * 996 * @param rep The repetition index (0-indexed) 997 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 998 */ 999 public EI removeEquipmentInstanceIdentifier(int rep) throws HL7Exception { 1000 return (EI) super.removeRepetition(18, rep); 1001 } 1002 1003 1004 /** 1005 * Removes a repetition of 1006 * OBX-18: "Equipment Instance Identifier" at a specific index 1007 * 1008 * @param rep The repetition index (0-indexed) 1009 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1010 */ 1011 public EI removeObx18_EquipmentInstanceIdentifier(int rep) throws HL7Exception { 1012 return (EI) super.removeRepetition(18, rep); 1013 } 1014 1015 1016 1017 1018 /** 1019 * Returns 1020 * OBX-19: "Date/Time of the Analysis" - creates it if necessary 1021 */ 1022 public DTM getDateTimeOfTheAnalysis() { 1023 DTM retVal = this.getTypedField(19, 0); 1024 return retVal; 1025 } 1026 1027 /** 1028 * Returns 1029 * OBX-19: "Date/Time of the Analysis" - creates it if necessary 1030 */ 1031 public DTM getObx19_DateTimeOfTheAnalysis() { 1032 DTM retVal = this.getTypedField(19, 0); 1033 return retVal; 1034 } 1035 1036 1037 /** 1038 * Returns all repetitions of Observation Site (OBX-20). 1039 */ 1040 public CWE[] getObservationSite() { 1041 CWE[] retVal = this.getTypedField(20, new CWE[0]); 1042 return retVal; 1043 } 1044 1045 1046 /** 1047 * Returns all repetitions of Observation Site (OBX-20). 1048 */ 1049 public CWE[] getObx20_ObservationSite() { 1050 CWE[] retVal = this.getTypedField(20, new CWE[0]); 1051 return retVal; 1052 } 1053 1054 1055 /** 1056 * Returns a count of the current number of repetitions of Observation Site (OBX-20). 1057 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1058 * it will return zero. 1059 */ 1060 public int getObservationSiteReps() { 1061 return this.getReps(20); 1062 } 1063 1064 1065 /** 1066 * Returns a specific repetition of 1067 * OBX-20: "Observation Site" - creates it if necessary 1068 * 1069 * @param rep The repetition index (0-indexed) 1070 */ 1071 public CWE getObservationSite(int rep) { 1072 CWE retVal = this.getTypedField(20, rep); 1073 return retVal; 1074 } 1075 1076 /** 1077 * Returns a specific repetition of 1078 * OBX-20: "Observation Site" - creates it if necessary 1079 * 1080 * @param rep The repetition index (0-indexed) 1081 */ 1082 public CWE getObx20_ObservationSite(int rep) { 1083 CWE retVal = this.getTypedField(20, rep); 1084 return retVal; 1085 } 1086 1087 /** 1088 * Returns a count of the current number of repetitions of Observation Site (OBX-20). 1089 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1090 * it will return zero. 1091 */ 1092 public int getObx20_ObservationSiteReps() { 1093 return this.getReps(20); 1094 } 1095 1096 1097 /** 1098 * Inserts a repetition of 1099 * OBX-20: "Observation Site" at a specific index 1100 * 1101 * @param rep The repetition index (0-indexed) 1102 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1103 */ 1104 public CWE insertObservationSite(int rep) throws HL7Exception { 1105 return (CWE) super.insertRepetition(20, rep); 1106 } 1107 1108 1109 /** 1110 * Inserts a repetition of 1111 * OBX-20: "Observation Site" at a specific index 1112 * 1113 * @param rep The repetition index (0-indexed) 1114 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1115 */ 1116 public CWE insertObx20_ObservationSite(int rep) throws HL7Exception { 1117 return (CWE) super.insertRepetition(20, rep); 1118 } 1119 1120 1121 /** 1122 * Removes a repetition of 1123 * OBX-20: "Observation Site" at a specific index 1124 * 1125 * @param rep The repetition index (0-indexed) 1126 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1127 */ 1128 public CWE removeObservationSite(int rep) throws HL7Exception { 1129 return (CWE) super.removeRepetition(20, rep); 1130 } 1131 1132 1133 /** 1134 * Removes a repetition of 1135 * OBX-20: "Observation Site" at a specific index 1136 * 1137 * @param rep The repetition index (0-indexed) 1138 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1139 */ 1140 public CWE removeObx20_ObservationSite(int rep) throws HL7Exception { 1141 return (CWE) super.removeRepetition(20, rep); 1142 } 1143 1144 1145 1146 1147 /** 1148 * Returns 1149 * OBX-21: "Observation Instance Identifier" - creates it if necessary 1150 */ 1151 public EI getObservationInstanceIdentifier() { 1152 EI retVal = this.getTypedField(21, 0); 1153 return retVal; 1154 } 1155 1156 /** 1157 * Returns 1158 * OBX-21: "Observation Instance Identifier" - creates it if necessary 1159 */ 1160 public EI getObx21_ObservationInstanceIdentifier() { 1161 EI retVal = this.getTypedField(21, 0); 1162 return retVal; 1163 } 1164 1165 1166 1167 /** 1168 * Returns 1169 * OBX-22: "Mood Code" - creates it if necessary 1170 */ 1171 public CNE getMoodCode() { 1172 CNE retVal = this.getTypedField(22, 0); 1173 return retVal; 1174 } 1175 1176 /** 1177 * Returns 1178 * OBX-22: "Mood Code" - creates it if necessary 1179 */ 1180 public CNE getObx22_MoodCode() { 1181 CNE retVal = this.getTypedField(22, 0); 1182 return retVal; 1183 } 1184 1185 1186 1187 /** 1188 * Returns 1189 * OBX-23: "Performing Organization Name" - creates it if necessary 1190 */ 1191 public XON getPerformingOrganizationName() { 1192 XON retVal = this.getTypedField(23, 0); 1193 return retVal; 1194 } 1195 1196 /** 1197 * Returns 1198 * OBX-23: "Performing Organization Name" - creates it if necessary 1199 */ 1200 public XON getObx23_PerformingOrganizationName() { 1201 XON retVal = this.getTypedField(23, 0); 1202 return retVal; 1203 } 1204 1205 1206 1207 /** 1208 * Returns 1209 * OBX-24: "Performing Organization Address" - creates it if necessary 1210 */ 1211 public XAD getPerformingOrganizationAddress() { 1212 XAD retVal = this.getTypedField(24, 0); 1213 return retVal; 1214 } 1215 1216 /** 1217 * Returns 1218 * OBX-24: "Performing Organization Address" - creates it if necessary 1219 */ 1220 public XAD getObx24_PerformingOrganizationAddress() { 1221 XAD retVal = this.getTypedField(24, 0); 1222 return retVal; 1223 } 1224 1225 1226 1227 /** 1228 * Returns 1229 * OBX-25: "Performing Organization Medical Director" - creates it if necessary 1230 */ 1231 public XCN getPerformingOrganizationMedicalDirector() { 1232 XCN retVal = this.getTypedField(25, 0); 1233 return retVal; 1234 } 1235 1236 /** 1237 * Returns 1238 * OBX-25: "Performing Organization Medical Director" - creates it if necessary 1239 */ 1240 public XCN getObx25_PerformingOrganizationMedicalDirector() { 1241 XCN 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 SI(getMessage()); 1253 case 1: return new ID(getMessage(), new Integer( 125 )); 1254 case 2: return new CWE(getMessage()); 1255 case 3: return new ST(getMessage()); 1256 case 4: return new Varies(getMessage()); 1257 case 5: return new CWE(getMessage()); 1258 case 6: return new ST(getMessage()); 1259 case 7: return new IS(getMessage(), new Integer( 78 )); 1260 case 8: return new NM(getMessage()); 1261 case 9: return new ID(getMessage(), new Integer( 80 )); 1262 case 10: return new ID(getMessage(), new Integer( 85 )); 1263 case 11: return new DTM(getMessage()); 1264 case 12: return new ST(getMessage()); 1265 case 13: return new DTM(getMessage()); 1266 case 14: return new CWE(getMessage()); 1267 case 15: return new XCN(getMessage()); 1268 case 16: return new CWE(getMessage()); 1269 case 17: return new EI(getMessage()); 1270 case 18: return new DTM(getMessage()); 1271 case 19: return new CWE(getMessage()); 1272 case 20: return new EI(getMessage()); 1273 case 21: return new CNE(getMessage()); 1274 case 22: return new XON(getMessage()); 1275 case 23: return new XAD(getMessage()); 1276 case 24: return new XCN(getMessage()); 1277 default: return null; 1278 } 1279 } 1280 1281 1282} 1283