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 OM1 message segment (GENERAL - fields that apply to most observations). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>OM1-1: Segment Type ID (ST) <b>optional </b> 052 * <li>OM1-2: Sequence Number - Test/ Observation Master File (NM) <b>optional </b> 053 * <li>OM1-3: Producer's test / observation ID (CE) <b> </b> 054 * <li>OM1-4: Permitted Data Types (ID) <b>optional repeating</b> 055 * <li>OM1-5: Specimen Required (ID) <b> </b> 056 * <li>OM1-6: Producer ID (CE) <b> </b> 057 * <li>OM1-7: Observation Description (TX) <b>optional </b> 058 * <li>OM1-8: Other test / observation IDs for the observation (CE) <b>optional </b> 059 * <li>OM1-9: Other Names (ST) <b> repeating</b> 060 * <li>OM1-10: Preferred Report Name for the Observation (ST) <b>optional </b> 061 * <li>OM1-11: Preferred Short Name or Mnemonic for Observation (ST) <b>optional </b> 062 * <li>OM1-12: Preferred Long Name for the Observation (ST) <b>optional </b> 063 * <li>OM1-13: Orderability (ID) <b>optional </b> 064 * <li>OM1-14: Identity of instrument used to perform this study (CE) <b>optional repeating</b> 065 * <li>OM1-15: Coded Representation of Method (CE) <b>optional repeating</b> 066 * <li>OM1-16: Portable (ID) <b>optional </b> 067 * <li>OM1-17: Observation producing department / section (ID) <b>optional repeating</b> 068 * <li>OM1-18: Telephone Number of Section (TN) <b>optional </b> 069 * <li>OM1-19: Nature of test / observation (ID) <b> </b> 070 * <li>OM1-20: Report Subheader (CE) <b>optional </b> 071 * <li>OM1-21: Report Display Order (ST) <b>optional </b> 072 * <li>OM1-22: Date / time stamp for any change in definition for obs (TS) <b> </b> 073 * <li>OM1-23: Effective date / time of change (TS) <b>optional </b> 074 * <li>OM1-24: Typical Turn-around Time (NM) <b>optional </b> 075 * <li>OM1-25: Processing Time (NM) <b>optional </b> 076 * <li>OM1-26: Processing Priority (ID) <b>optional repeating</b> 077 * <li>OM1-27: Reporting Priority (ID) <b>optional </b> 078 * <li>OM1-28: Outside Site(s) Where Observation may be Performed (CE) <b>optional repeating</b> 079 * <li>OM1-29: Address of Outside Site(s) (AD) <b>optional repeating</b> 080 * <li>OM1-30: Phone Number of Outside Site (TN) <b>optional repeating</b> 081 * <li>OM1-31: Confidentiality Code (ID) <b>optional </b> 082 * <li>OM1-32: Observations required to interpret the observation (CE) <b>optional repeating</b> 083 * <li>OM1-33: Interpretation of Observations (TX) <b>optional </b> 084 * <li>OM1-34: Contraindications to Observations (CE) <b>optional repeating</b> 085 * <li>OM1-35: Reflex tests / observations (CE) <b>optional repeating</b> 086 * <li>OM1-36: Rules that Trigger Reflex Testing (ST) <b>optional </b> 087 * <li>OM1-37: Fixed Canned Message (CE) <b>optional repeating</b> 088 * <li>OM1-38: Patient Preparation (TX) <b>optional </b> 089 * <li>OM1-39: Procedure Medication (CE) <b>optional </b> 090 * <li>OM1-40: Factors that may affect the observation (TX) <b>optional </b> 091 * <li>OM1-41: Test / observation performance schedule (ST) <b>optional repeating</b> 092 * <li>OM1-42: Description of Test Methods (TX) <b>optional </b> 093 * </ul> 094 */ 095@SuppressWarnings("unused") 096public class OM1 extends AbstractSegment { 097 098 /** 099 * Creates a new OM1 segment 100 */ 101 public OM1(Group parent, ModelClassFactory factory) { 102 super(parent, factory); 103 init(factory); 104 } 105 106 private void init(ModelClassFactory factory) { 107 try { 108 this.add(ST.class, false, 1, 3, new Object[]{ getMessage() }, "Segment Type ID"); 109 this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "Sequence Number - Test/ Observation Master File"); 110 this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Producer's test / observation ID"); 111 this.add(ID.class, false, 0, 12, new Object[]{ getMessage(), new Integer(125) }, "Permitted Data Types"); 112 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Specimen Required"); 113 this.add(CE.class, true, 1, 200, new Object[]{ getMessage() }, "Producer ID"); 114 this.add(TX.class, false, 1, 200, new Object[]{ getMessage() }, "Observation Description"); 115 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Other test / observation IDs for the observation"); 116 this.add(ST.class, true, 0, 200, new Object[]{ getMessage() }, "Other Names"); 117 this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Preferred Report Name for the Observation"); 118 this.add(ST.class, false, 1, 8, new Object[]{ getMessage() }, "Preferred Short Name or Mnemonic for Observation"); 119 this.add(ST.class, false, 1, 200, new Object[]{ getMessage() }, "Preferred Long Name for the Observation"); 120 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Orderability"); 121 this.add(CE.class, false, 0, 60, new Object[]{ getMessage() }, "Identity of instrument used to perform this study"); 122 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Coded Representation of Method"); 123 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(136) }, "Portable"); 124 this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(0) }, "Observation producing department / section"); 125 this.add(TN.class, false, 1, 40, new Object[]{ getMessage() }, "Telephone Number of Section"); 126 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(174) }, "Nature of test / observation"); 127 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Report Subheader"); 128 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Report Display Order"); 129 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Date / time stamp for any change in definition for obs"); 130 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Effective date / time of change"); 131 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Typical Turn-around Time"); 132 this.add(NM.class, false, 1, 20, new Object[]{ getMessage() }, "Processing Time"); 133 this.add(ID.class, false, 0, 40, new Object[]{ getMessage(), new Integer(168) }, "Processing Priority"); 134 this.add(ID.class, false, 1, 5, new Object[]{ getMessage(), new Integer(169) }, "Reporting Priority"); 135 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Outside Site(s) Where Observation may be Performed"); 136 this.add(AD.class, false, 0, 1000, new Object[]{ getMessage() }, "Address of Outside Site(s)"); 137 this.add(TN.class, false, 0, 400, new Object[]{ getMessage() }, "Phone Number of Outside Site"); 138 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(177) }, "Confidentiality Code"); 139 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Observations required to interpret the observation"); 140 this.add(TX.class, false, 1, 65536, new Object[]{ getMessage() }, "Interpretation of Observations"); 141 this.add(CE.class, false, 0, 65536, new Object[]{ getMessage() }, "Contraindications to Observations"); 142 this.add(CE.class, false, 0, 200, new Object[]{ getMessage() }, "Reflex tests / observations"); 143 this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Rules that Trigger Reflex Testing"); 144 this.add(CE.class, false, 0, 65536, new Object[]{ getMessage() }, "Fixed Canned Message"); 145 this.add(TX.class, false, 1, 200, new Object[]{ getMessage() }, "Patient Preparation"); 146 this.add(CE.class, false, 1, 200, new Object[]{ getMessage() }, "Procedure Medication"); 147 this.add(TX.class, false, 1, 200, new Object[]{ getMessage() }, "Factors that may affect the observation"); 148 this.add(ST.class, false, 0, 60, new Object[]{ getMessage() }, "Test / observation performance schedule"); 149 this.add(TX.class, false, 1, 65536, new Object[]{ getMessage() }, "Description of Test Methods"); 150 } catch(HL7Exception e) { 151 log.error("Unexpected error creating OM1 - this is probably a bug in the source code generator.", e); 152 } 153 } 154 155 156 157 /** 158 * Returns 159 * OM1-1: "Segment Type ID" - creates it if necessary 160 */ 161 public ST getSegmentTypeID() { 162 ST retVal = this.getTypedField(1, 0); 163 return retVal; 164 } 165 166 /** 167 * Returns 168 * OM1-1: "Segment Type ID" - creates it if necessary 169 */ 170 public ST getOm11_SegmentTypeID() { 171 ST retVal = this.getTypedField(1, 0); 172 return retVal; 173 } 174 175 176 177 /** 178 * Returns 179 * OM1-2: "Sequence Number - Test/ Observation Master File" - creates it if necessary 180 */ 181 public NM getSequenceNumberTestObservationMasterFile() { 182 NM retVal = this.getTypedField(2, 0); 183 return retVal; 184 } 185 186 /** 187 * Returns 188 * OM1-2: "Sequence Number - Test/ Observation Master File" - creates it if necessary 189 */ 190 public NM getOm12_SequenceNumberTestObservationMasterFile() { 191 NM retVal = this.getTypedField(2, 0); 192 return retVal; 193 } 194 195 196 197 /** 198 * Returns 199 * OM1-3: "Producer's test / observation ID" - creates it if necessary 200 */ 201 public CE getProducerSTestObservationID() { 202 CE retVal = this.getTypedField(3, 0); 203 return retVal; 204 } 205 206 /** 207 * Returns 208 * OM1-3: "Producer's test / observation ID" - creates it if necessary 209 */ 210 public CE getOm13_ProducerSTestObservationID() { 211 CE retVal = this.getTypedField(3, 0); 212 return retVal; 213 } 214 215 216 /** 217 * Returns all repetitions of Permitted Data Types (OM1-4). 218 */ 219 public ID[] getPermittedDataTypes() { 220 ID[] retVal = this.getTypedField(4, new ID[0]); 221 return retVal; 222 } 223 224 225 /** 226 * Returns all repetitions of Permitted Data Types (OM1-4). 227 */ 228 public ID[] getOm14_PermittedDataTypes() { 229 ID[] retVal = this.getTypedField(4, new ID[0]); 230 return retVal; 231 } 232 233 234 /** 235 * Returns a count of the current number of repetitions of Permitted Data Types (OM1-4). 236 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 237 * it will return zero. 238 */ 239 public int getPermittedDataTypesReps() { 240 return this.getReps(4); 241 } 242 243 244 /** 245 * Returns a specific repetition of 246 * OM1-4: "Permitted Data Types" - creates it if necessary 247 * 248 * @param rep The repetition index (0-indexed) 249 */ 250 public ID getPermittedDataTypes(int rep) { 251 ID retVal = this.getTypedField(4, rep); 252 return retVal; 253 } 254 255 /** 256 * Returns a specific repetition of 257 * OM1-4: "Permitted Data Types" - creates it if necessary 258 * 259 * @param rep The repetition index (0-indexed) 260 */ 261 public ID getOm14_PermittedDataTypes(int rep) { 262 ID retVal = this.getTypedField(4, rep); 263 return retVal; 264 } 265 266 /** 267 * Returns a count of the current number of repetitions of Permitted Data Types (OM1-4). 268 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 269 * it will return zero. 270 */ 271 public int getOm14_PermittedDataTypesReps() { 272 return this.getReps(4); 273 } 274 275 276 /** 277 * Inserts a repetition of 278 * OM1-4: "Permitted Data Types" at a specific index 279 * 280 * @param rep The repetition index (0-indexed) 281 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 282 */ 283 public ID insertPermittedDataTypes(int rep) throws HL7Exception { 284 return (ID) super.insertRepetition(4, rep); 285 } 286 287 288 /** 289 * Inserts a repetition of 290 * OM1-4: "Permitted Data Types" at a specific index 291 * 292 * @param rep The repetition index (0-indexed) 293 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 294 */ 295 public ID insertOm14_PermittedDataTypes(int rep) throws HL7Exception { 296 return (ID) super.insertRepetition(4, rep); 297 } 298 299 300 /** 301 * Removes a repetition of 302 * OM1-4: "Permitted Data Types" at a specific index 303 * 304 * @param rep The repetition index (0-indexed) 305 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 306 */ 307 public ID removePermittedDataTypes(int rep) throws HL7Exception { 308 return (ID) super.removeRepetition(4, rep); 309 } 310 311 312 /** 313 * Removes a repetition of 314 * OM1-4: "Permitted Data Types" at a specific index 315 * 316 * @param rep The repetition index (0-indexed) 317 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 318 */ 319 public ID removeOm14_PermittedDataTypes(int rep) throws HL7Exception { 320 return (ID) super.removeRepetition(4, rep); 321 } 322 323 324 325 326 /** 327 * Returns 328 * OM1-5: "Specimen Required" - creates it if necessary 329 */ 330 public ID getSpecimenRequired() { 331 ID retVal = this.getTypedField(5, 0); 332 return retVal; 333 } 334 335 /** 336 * Returns 337 * OM1-5: "Specimen Required" - creates it if necessary 338 */ 339 public ID getOm15_SpecimenRequired() { 340 ID retVal = this.getTypedField(5, 0); 341 return retVal; 342 } 343 344 345 346 /** 347 * Returns 348 * OM1-6: "Producer ID" - creates it if necessary 349 */ 350 public CE getProducerID() { 351 CE retVal = this.getTypedField(6, 0); 352 return retVal; 353 } 354 355 /** 356 * Returns 357 * OM1-6: "Producer ID" - creates it if necessary 358 */ 359 public CE getOm16_ProducerID() { 360 CE retVal = this.getTypedField(6, 0); 361 return retVal; 362 } 363 364 365 366 /** 367 * Returns 368 * OM1-7: "Observation Description" - creates it if necessary 369 */ 370 public TX getObservationDescription() { 371 TX retVal = this.getTypedField(7, 0); 372 return retVal; 373 } 374 375 /** 376 * Returns 377 * OM1-7: "Observation Description" - creates it if necessary 378 */ 379 public TX getOm17_ObservationDescription() { 380 TX retVal = this.getTypedField(7, 0); 381 return retVal; 382 } 383 384 385 386 /** 387 * Returns 388 * OM1-8: "Other test / observation IDs for the observation" - creates it if necessary 389 */ 390 public CE getOtherTestObservationIDsForTheObservation() { 391 CE retVal = this.getTypedField(8, 0); 392 return retVal; 393 } 394 395 /** 396 * Returns 397 * OM1-8: "Other test / observation IDs for the observation" - creates it if necessary 398 */ 399 public CE getOm18_OtherTestObservationIDsForTheObservation() { 400 CE retVal = this.getTypedField(8, 0); 401 return retVal; 402 } 403 404 405 /** 406 * Returns all repetitions of Other Names (OM1-9). 407 */ 408 public ST[] getOtherNames() { 409 ST[] retVal = this.getTypedField(9, new ST[0]); 410 return retVal; 411 } 412 413 414 /** 415 * Returns all repetitions of Other Names (OM1-9). 416 */ 417 public ST[] getOm19_OtherNames() { 418 ST[] retVal = this.getTypedField(9, new ST[0]); 419 return retVal; 420 } 421 422 423 /** 424 * Returns a count of the current number of repetitions of Other Names (OM1-9). 425 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 426 * it will return zero. 427 */ 428 public int getOtherNamesReps() { 429 return this.getReps(9); 430 } 431 432 433 /** 434 * Returns a specific repetition of 435 * OM1-9: "Other Names" - creates it if necessary 436 * 437 * @param rep The repetition index (0-indexed) 438 */ 439 public ST getOtherNames(int rep) { 440 ST retVal = this.getTypedField(9, rep); 441 return retVal; 442 } 443 444 /** 445 * Returns a specific repetition of 446 * OM1-9: "Other Names" - creates it if necessary 447 * 448 * @param rep The repetition index (0-indexed) 449 */ 450 public ST getOm19_OtherNames(int rep) { 451 ST retVal = this.getTypedField(9, rep); 452 return retVal; 453 } 454 455 /** 456 * Returns a count of the current number of repetitions of Other Names (OM1-9). 457 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 458 * it will return zero. 459 */ 460 public int getOm19_OtherNamesReps() { 461 return this.getReps(9); 462 } 463 464 465 /** 466 * Inserts a repetition of 467 * OM1-9: "Other Names" at a specific index 468 * 469 * @param rep The repetition index (0-indexed) 470 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 471 */ 472 public ST insertOtherNames(int rep) throws HL7Exception { 473 return (ST) super.insertRepetition(9, rep); 474 } 475 476 477 /** 478 * Inserts a repetition of 479 * OM1-9: "Other Names" at a specific index 480 * 481 * @param rep The repetition index (0-indexed) 482 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 483 */ 484 public ST insertOm19_OtherNames(int rep) throws HL7Exception { 485 return (ST) super.insertRepetition(9, rep); 486 } 487 488 489 /** 490 * Removes a repetition of 491 * OM1-9: "Other Names" at a specific index 492 * 493 * @param rep The repetition index (0-indexed) 494 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 495 */ 496 public ST removeOtherNames(int rep) throws HL7Exception { 497 return (ST) super.removeRepetition(9, rep); 498 } 499 500 501 /** 502 * Removes a repetition of 503 * OM1-9: "Other Names" at a specific index 504 * 505 * @param rep The repetition index (0-indexed) 506 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 507 */ 508 public ST removeOm19_OtherNames(int rep) throws HL7Exception { 509 return (ST) super.removeRepetition(9, rep); 510 } 511 512 513 514 515 /** 516 * Returns 517 * OM1-10: "Preferred Report Name for the Observation" - creates it if necessary 518 */ 519 public ST getPreferredReportNameForTheObservation() { 520 ST retVal = this.getTypedField(10, 0); 521 return retVal; 522 } 523 524 /** 525 * Returns 526 * OM1-10: "Preferred Report Name for the Observation" - creates it if necessary 527 */ 528 public ST getOm110_PreferredReportNameForTheObservation() { 529 ST retVal = this.getTypedField(10, 0); 530 return retVal; 531 } 532 533 534 535 /** 536 * Returns 537 * OM1-11: "Preferred Short Name or Mnemonic for Observation" - creates it if necessary 538 */ 539 public ST getPreferredShortNameOrMnemonicForObservation() { 540 ST retVal = this.getTypedField(11, 0); 541 return retVal; 542 } 543 544 /** 545 * Returns 546 * OM1-11: "Preferred Short Name or Mnemonic for Observation" - creates it if necessary 547 */ 548 public ST getOm111_PreferredShortNameOrMnemonicForObservation() { 549 ST retVal = this.getTypedField(11, 0); 550 return retVal; 551 } 552 553 554 555 /** 556 * Returns 557 * OM1-12: "Preferred Long Name for the Observation" - creates it if necessary 558 */ 559 public ST getPreferredLongNameForTheObservation() { 560 ST retVal = this.getTypedField(12, 0); 561 return retVal; 562 } 563 564 /** 565 * Returns 566 * OM1-12: "Preferred Long Name for the Observation" - creates it if necessary 567 */ 568 public ST getOm112_PreferredLongNameForTheObservation() { 569 ST retVal = this.getTypedField(12, 0); 570 return retVal; 571 } 572 573 574 575 /** 576 * Returns 577 * OM1-13: "Orderability" - creates it if necessary 578 */ 579 public ID getOrderability() { 580 ID retVal = this.getTypedField(13, 0); 581 return retVal; 582 } 583 584 /** 585 * Returns 586 * OM1-13: "Orderability" - creates it if necessary 587 */ 588 public ID getOm113_Orderability() { 589 ID retVal = this.getTypedField(13, 0); 590 return retVal; 591 } 592 593 594 /** 595 * Returns all repetitions of Identity of instrument used to perform this study (OM1-14). 596 */ 597 public CE[] getIdentityOfInstrumentUsedToPerformThisStudy() { 598 CE[] retVal = this.getTypedField(14, new CE[0]); 599 return retVal; 600 } 601 602 603 /** 604 * Returns all repetitions of Identity of instrument used to perform this study (OM1-14). 605 */ 606 public CE[] getOm114_IdentityOfInstrumentUsedToPerformThisStudy() { 607 CE[] retVal = this.getTypedField(14, new CE[0]); 608 return retVal; 609 } 610 611 612 /** 613 * Returns a count of the current number of repetitions of Identity of instrument used to perform this study (OM1-14). 614 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 615 * it will return zero. 616 */ 617 public int getIdentityOfInstrumentUsedToPerformThisStudyReps() { 618 return this.getReps(14); 619 } 620 621 622 /** 623 * Returns a specific repetition of 624 * OM1-14: "Identity of instrument used to perform this study" - creates it if necessary 625 * 626 * @param rep The repetition index (0-indexed) 627 */ 628 public CE getIdentityOfInstrumentUsedToPerformThisStudy(int rep) { 629 CE retVal = this.getTypedField(14, rep); 630 return retVal; 631 } 632 633 /** 634 * Returns a specific repetition of 635 * OM1-14: "Identity of instrument used to perform this study" - creates it if necessary 636 * 637 * @param rep The repetition index (0-indexed) 638 */ 639 public CE getOm114_IdentityOfInstrumentUsedToPerformThisStudy(int rep) { 640 CE retVal = this.getTypedField(14, rep); 641 return retVal; 642 } 643 644 /** 645 * Returns a count of the current number of repetitions of Identity of instrument used to perform this study (OM1-14). 646 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 647 * it will return zero. 648 */ 649 public int getOm114_IdentityOfInstrumentUsedToPerformThisStudyReps() { 650 return this.getReps(14); 651 } 652 653 654 /** 655 * Inserts a repetition of 656 * OM1-14: "Identity of instrument used to perform this study" at a specific index 657 * 658 * @param rep The repetition index (0-indexed) 659 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 660 */ 661 public CE insertIdentityOfInstrumentUsedToPerformThisStudy(int rep) throws HL7Exception { 662 return (CE) super.insertRepetition(14, rep); 663 } 664 665 666 /** 667 * Inserts a repetition of 668 * OM1-14: "Identity of instrument used to perform this study" at a specific index 669 * 670 * @param rep The repetition index (0-indexed) 671 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 672 */ 673 public CE insertOm114_IdentityOfInstrumentUsedToPerformThisStudy(int rep) throws HL7Exception { 674 return (CE) super.insertRepetition(14, rep); 675 } 676 677 678 /** 679 * Removes a repetition of 680 * OM1-14: "Identity of instrument used to perform this study" at a specific index 681 * 682 * @param rep The repetition index (0-indexed) 683 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 684 */ 685 public CE removeIdentityOfInstrumentUsedToPerformThisStudy(int rep) throws HL7Exception { 686 return (CE) super.removeRepetition(14, rep); 687 } 688 689 690 /** 691 * Removes a repetition of 692 * OM1-14: "Identity of instrument used to perform this study" at a specific index 693 * 694 * @param rep The repetition index (0-indexed) 695 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 696 */ 697 public CE removeOm114_IdentityOfInstrumentUsedToPerformThisStudy(int rep) throws HL7Exception { 698 return (CE) super.removeRepetition(14, rep); 699 } 700 701 702 703 /** 704 * Returns all repetitions of Coded Representation of Method (OM1-15). 705 */ 706 public CE[] getCodedRepresentationOfMethod() { 707 CE[] retVal = this.getTypedField(15, new CE[0]); 708 return retVal; 709 } 710 711 712 /** 713 * Returns all repetitions of Coded Representation of Method (OM1-15). 714 */ 715 public CE[] getOm115_CodedRepresentationOfMethod() { 716 CE[] retVal = this.getTypedField(15, new CE[0]); 717 return retVal; 718 } 719 720 721 /** 722 * Returns a count of the current number of repetitions of Coded Representation of Method (OM1-15). 723 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 724 * it will return zero. 725 */ 726 public int getCodedRepresentationOfMethodReps() { 727 return this.getReps(15); 728 } 729 730 731 /** 732 * Returns a specific repetition of 733 * OM1-15: "Coded Representation of Method" - creates it if necessary 734 * 735 * @param rep The repetition index (0-indexed) 736 */ 737 public CE getCodedRepresentationOfMethod(int rep) { 738 CE retVal = this.getTypedField(15, rep); 739 return retVal; 740 } 741 742 /** 743 * Returns a specific repetition of 744 * OM1-15: "Coded Representation of Method" - creates it if necessary 745 * 746 * @param rep The repetition index (0-indexed) 747 */ 748 public CE getOm115_CodedRepresentationOfMethod(int rep) { 749 CE retVal = this.getTypedField(15, rep); 750 return retVal; 751 } 752 753 /** 754 * Returns a count of the current number of repetitions of Coded Representation of Method (OM1-15). 755 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 756 * it will return zero. 757 */ 758 public int getOm115_CodedRepresentationOfMethodReps() { 759 return this.getReps(15); 760 } 761 762 763 /** 764 * Inserts a repetition of 765 * OM1-15: "Coded Representation of Method" at a specific index 766 * 767 * @param rep The repetition index (0-indexed) 768 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 769 */ 770 public CE insertCodedRepresentationOfMethod(int rep) throws HL7Exception { 771 return (CE) super.insertRepetition(15, rep); 772 } 773 774 775 /** 776 * Inserts a repetition of 777 * OM1-15: "Coded Representation of Method" at a specific index 778 * 779 * @param rep The repetition index (0-indexed) 780 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 781 */ 782 public CE insertOm115_CodedRepresentationOfMethod(int rep) throws HL7Exception { 783 return (CE) super.insertRepetition(15, rep); 784 } 785 786 787 /** 788 * Removes a repetition of 789 * OM1-15: "Coded Representation of Method" at a specific index 790 * 791 * @param rep The repetition index (0-indexed) 792 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 793 */ 794 public CE removeCodedRepresentationOfMethod(int rep) throws HL7Exception { 795 return (CE) super.removeRepetition(15, rep); 796 } 797 798 799 /** 800 * Removes a repetition of 801 * OM1-15: "Coded Representation of Method" at a specific index 802 * 803 * @param rep The repetition index (0-indexed) 804 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 805 */ 806 public CE removeOm115_CodedRepresentationOfMethod(int rep) throws HL7Exception { 807 return (CE) super.removeRepetition(15, rep); 808 } 809 810 811 812 813 /** 814 * Returns 815 * OM1-16: "Portable" - creates it if necessary 816 */ 817 public ID getPortable() { 818 ID retVal = this.getTypedField(16, 0); 819 return retVal; 820 } 821 822 /** 823 * Returns 824 * OM1-16: "Portable" - creates it if necessary 825 */ 826 public ID getOm116_Portable() { 827 ID retVal = this.getTypedField(16, 0); 828 return retVal; 829 } 830 831 832 /** 833 * Returns all repetitions of Observation producing department / section (OM1-17). 834 */ 835 public ID[] getObservationProducingDepartmentSection() { 836 ID[] retVal = this.getTypedField(17, new ID[0]); 837 return retVal; 838 } 839 840 841 /** 842 * Returns all repetitions of Observation producing department / section (OM1-17). 843 */ 844 public ID[] getOm117_ObservationProducingDepartmentSection() { 845 ID[] retVal = this.getTypedField(17, new ID[0]); 846 return retVal; 847 } 848 849 850 /** 851 * Returns a count of the current number of repetitions of Observation producing department / section (OM1-17). 852 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 853 * it will return zero. 854 */ 855 public int getObservationProducingDepartmentSectionReps() { 856 return this.getReps(17); 857 } 858 859 860 /** 861 * Returns a specific repetition of 862 * OM1-17: "Observation producing department / section" - creates it if necessary 863 * 864 * @param rep The repetition index (0-indexed) 865 */ 866 public ID getObservationProducingDepartmentSection(int rep) { 867 ID retVal = this.getTypedField(17, rep); 868 return retVal; 869 } 870 871 /** 872 * Returns a specific repetition of 873 * OM1-17: "Observation producing department / section" - creates it if necessary 874 * 875 * @param rep The repetition index (0-indexed) 876 */ 877 public ID getOm117_ObservationProducingDepartmentSection(int rep) { 878 ID retVal = this.getTypedField(17, rep); 879 return retVal; 880 } 881 882 /** 883 * Returns a count of the current number of repetitions of Observation producing department / section (OM1-17). 884 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 885 * it will return zero. 886 */ 887 public int getOm117_ObservationProducingDepartmentSectionReps() { 888 return this.getReps(17); 889 } 890 891 892 /** 893 * Inserts a repetition of 894 * OM1-17: "Observation producing department / section" at a specific index 895 * 896 * @param rep The repetition index (0-indexed) 897 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 898 */ 899 public ID insertObservationProducingDepartmentSection(int rep) throws HL7Exception { 900 return (ID) super.insertRepetition(17, rep); 901 } 902 903 904 /** 905 * Inserts a repetition of 906 * OM1-17: "Observation producing department / section" at a specific index 907 * 908 * @param rep The repetition index (0-indexed) 909 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 910 */ 911 public ID insertOm117_ObservationProducingDepartmentSection(int rep) throws HL7Exception { 912 return (ID) super.insertRepetition(17, rep); 913 } 914 915 916 /** 917 * Removes a repetition of 918 * OM1-17: "Observation producing department / section" at a specific index 919 * 920 * @param rep The repetition index (0-indexed) 921 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 922 */ 923 public ID removeObservationProducingDepartmentSection(int rep) throws HL7Exception { 924 return (ID) super.removeRepetition(17, rep); 925 } 926 927 928 /** 929 * Removes a repetition of 930 * OM1-17: "Observation producing department / section" at a specific index 931 * 932 * @param rep The repetition index (0-indexed) 933 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 934 */ 935 public ID removeOm117_ObservationProducingDepartmentSection(int rep) throws HL7Exception { 936 return (ID) super.removeRepetition(17, rep); 937 } 938 939 940 941 942 /** 943 * Returns 944 * OM1-18: "Telephone Number of Section" - creates it if necessary 945 */ 946 public TN getTelephoneNumberOfSection() { 947 TN retVal = this.getTypedField(18, 0); 948 return retVal; 949 } 950 951 /** 952 * Returns 953 * OM1-18: "Telephone Number of Section" - creates it if necessary 954 */ 955 public TN getOm118_TelephoneNumberOfSection() { 956 TN retVal = this.getTypedField(18, 0); 957 return retVal; 958 } 959 960 961 962 /** 963 * Returns 964 * OM1-19: "Nature of test / observation" - creates it if necessary 965 */ 966 public ID getNatureOfTestObservation() { 967 ID retVal = this.getTypedField(19, 0); 968 return retVal; 969 } 970 971 /** 972 * Returns 973 * OM1-19: "Nature of test / observation" - creates it if necessary 974 */ 975 public ID getOm119_NatureOfTestObservation() { 976 ID retVal = this.getTypedField(19, 0); 977 return retVal; 978 } 979 980 981 982 /** 983 * Returns 984 * OM1-20: "Report Subheader" - creates it if necessary 985 */ 986 public CE getReportSubheader() { 987 CE retVal = this.getTypedField(20, 0); 988 return retVal; 989 } 990 991 /** 992 * Returns 993 * OM1-20: "Report Subheader" - creates it if necessary 994 */ 995 public CE getOm120_ReportSubheader() { 996 CE retVal = this.getTypedField(20, 0); 997 return retVal; 998 } 999 1000 1001 1002 /** 1003 * Returns 1004 * OM1-21: "Report Display Order" - creates it if necessary 1005 */ 1006 public ST getReportDisplayOrder() { 1007 ST retVal = this.getTypedField(21, 0); 1008 return retVal; 1009 } 1010 1011 /** 1012 * Returns 1013 * OM1-21: "Report Display Order" - creates it if necessary 1014 */ 1015 public ST getOm121_ReportDisplayOrder() { 1016 ST retVal = this.getTypedField(21, 0); 1017 return retVal; 1018 } 1019 1020 1021 1022 /** 1023 * Returns 1024 * OM1-22: "Date / time stamp for any change in definition for obs" - creates it if necessary 1025 */ 1026 public TS getDateTimeStampForAnyChangeInDefinitionForObs() { 1027 TS retVal = this.getTypedField(22, 0); 1028 return retVal; 1029 } 1030 1031 /** 1032 * Returns 1033 * OM1-22: "Date / time stamp for any change in definition for obs" - creates it if necessary 1034 */ 1035 public TS getOm122_DateTimeStampForAnyChangeInDefinitionForObs() { 1036 TS retVal = this.getTypedField(22, 0); 1037 return retVal; 1038 } 1039 1040 1041 1042 /** 1043 * Returns 1044 * OM1-23: "Effective date / time of change" - creates it if necessary 1045 */ 1046 public TS getEffectiveDateTimeOfChange() { 1047 TS retVal = this.getTypedField(23, 0); 1048 return retVal; 1049 } 1050 1051 /** 1052 * Returns 1053 * OM1-23: "Effective date / time of change" - creates it if necessary 1054 */ 1055 public TS getOm123_EffectiveDateTimeOfChange() { 1056 TS retVal = this.getTypedField(23, 0); 1057 return retVal; 1058 } 1059 1060 1061 1062 /** 1063 * Returns 1064 * OM1-24: "Typical Turn-around Time" - creates it if necessary 1065 */ 1066 public NM getTypicalTurnAroundTime() { 1067 NM retVal = this.getTypedField(24, 0); 1068 return retVal; 1069 } 1070 1071 /** 1072 * Returns 1073 * OM1-24: "Typical Turn-around Time" - creates it if necessary 1074 */ 1075 public NM getOm124_TypicalTurnAroundTime() { 1076 NM retVal = this.getTypedField(24, 0); 1077 return retVal; 1078 } 1079 1080 1081 1082 /** 1083 * Returns 1084 * OM1-25: "Processing Time" - creates it if necessary 1085 */ 1086 public NM getProcessingTime() { 1087 NM retVal = this.getTypedField(25, 0); 1088 return retVal; 1089 } 1090 1091 /** 1092 * Returns 1093 * OM1-25: "Processing Time" - creates it if necessary 1094 */ 1095 public NM getOm125_ProcessingTime() { 1096 NM retVal = this.getTypedField(25, 0); 1097 return retVal; 1098 } 1099 1100 1101 /** 1102 * Returns all repetitions of Processing Priority (OM1-26). 1103 */ 1104 public ID[] getProcessingPriority() { 1105 ID[] retVal = this.getTypedField(26, new ID[0]); 1106 return retVal; 1107 } 1108 1109 1110 /** 1111 * Returns all repetitions of Processing Priority (OM1-26). 1112 */ 1113 public ID[] getOm126_ProcessingPriority() { 1114 ID[] retVal = this.getTypedField(26, new ID[0]); 1115 return retVal; 1116 } 1117 1118 1119 /** 1120 * Returns a count of the current number of repetitions of Processing Priority (OM1-26). 1121 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1122 * it will return zero. 1123 */ 1124 public int getProcessingPriorityReps() { 1125 return this.getReps(26); 1126 } 1127 1128 1129 /** 1130 * Returns a specific repetition of 1131 * OM1-26: "Processing Priority" - creates it if necessary 1132 * 1133 * @param rep The repetition index (0-indexed) 1134 */ 1135 public ID getProcessingPriority(int rep) { 1136 ID retVal = this.getTypedField(26, rep); 1137 return retVal; 1138 } 1139 1140 /** 1141 * Returns a specific repetition of 1142 * OM1-26: "Processing Priority" - creates it if necessary 1143 * 1144 * @param rep The repetition index (0-indexed) 1145 */ 1146 public ID getOm126_ProcessingPriority(int rep) { 1147 ID retVal = this.getTypedField(26, rep); 1148 return retVal; 1149 } 1150 1151 /** 1152 * Returns a count of the current number of repetitions of Processing Priority (OM1-26). 1153 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1154 * it will return zero. 1155 */ 1156 public int getOm126_ProcessingPriorityReps() { 1157 return this.getReps(26); 1158 } 1159 1160 1161 /** 1162 * Inserts a repetition of 1163 * OM1-26: "Processing Priority" at a specific index 1164 * 1165 * @param rep The repetition index (0-indexed) 1166 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1167 */ 1168 public ID insertProcessingPriority(int rep) throws HL7Exception { 1169 return (ID) super.insertRepetition(26, rep); 1170 } 1171 1172 1173 /** 1174 * Inserts a repetition of 1175 * OM1-26: "Processing Priority" at a specific index 1176 * 1177 * @param rep The repetition index (0-indexed) 1178 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1179 */ 1180 public ID insertOm126_ProcessingPriority(int rep) throws HL7Exception { 1181 return (ID) super.insertRepetition(26, rep); 1182 } 1183 1184 1185 /** 1186 * Removes a repetition of 1187 * OM1-26: "Processing Priority" at a specific index 1188 * 1189 * @param rep The repetition index (0-indexed) 1190 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1191 */ 1192 public ID removeProcessingPriority(int rep) throws HL7Exception { 1193 return (ID) super.removeRepetition(26, rep); 1194 } 1195 1196 1197 /** 1198 * Removes a repetition of 1199 * OM1-26: "Processing Priority" at a specific index 1200 * 1201 * @param rep The repetition index (0-indexed) 1202 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1203 */ 1204 public ID removeOm126_ProcessingPriority(int rep) throws HL7Exception { 1205 return (ID) super.removeRepetition(26, rep); 1206 } 1207 1208 1209 1210 1211 /** 1212 * Returns 1213 * OM1-27: "Reporting Priority" - creates it if necessary 1214 */ 1215 public ID getReportingPriority() { 1216 ID retVal = this.getTypedField(27, 0); 1217 return retVal; 1218 } 1219 1220 /** 1221 * Returns 1222 * OM1-27: "Reporting Priority" - creates it if necessary 1223 */ 1224 public ID getOm127_ReportingPriority() { 1225 ID retVal = this.getTypedField(27, 0); 1226 return retVal; 1227 } 1228 1229 1230 /** 1231 * Returns all repetitions of Outside Site(s) Where Observation may be Performed (OM1-28). 1232 */ 1233 public CE[] getOutsideSiteSWhereObservationMayBePerformed() { 1234 CE[] retVal = this.getTypedField(28, new CE[0]); 1235 return retVal; 1236 } 1237 1238 1239 /** 1240 * Returns all repetitions of Outside Site(s) Where Observation may be Performed (OM1-28). 1241 */ 1242 public CE[] getOm128_OutsideSiteSWhereObservationMayBePerformed() { 1243 CE[] retVal = this.getTypedField(28, new CE[0]); 1244 return retVal; 1245 } 1246 1247 1248 /** 1249 * Returns a count of the current number of repetitions of Outside Site(s) Where Observation may be Performed (OM1-28). 1250 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1251 * it will return zero. 1252 */ 1253 public int getOutsideSiteSWhereObservationMayBePerformedReps() { 1254 return this.getReps(28); 1255 } 1256 1257 1258 /** 1259 * Returns a specific repetition of 1260 * OM1-28: "Outside Site(s) Where Observation may be Performed" - creates it if necessary 1261 * 1262 * @param rep The repetition index (0-indexed) 1263 */ 1264 public CE getOutsideSiteSWhereObservationMayBePerformed(int rep) { 1265 CE retVal = this.getTypedField(28, rep); 1266 return retVal; 1267 } 1268 1269 /** 1270 * Returns a specific repetition of 1271 * OM1-28: "Outside Site(s) Where Observation may be Performed" - creates it if necessary 1272 * 1273 * @param rep The repetition index (0-indexed) 1274 */ 1275 public CE getOm128_OutsideSiteSWhereObservationMayBePerformed(int rep) { 1276 CE retVal = this.getTypedField(28, rep); 1277 return retVal; 1278 } 1279 1280 /** 1281 * Returns a count of the current number of repetitions of Outside Site(s) Where Observation may be Performed (OM1-28). 1282 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1283 * it will return zero. 1284 */ 1285 public int getOm128_OutsideSiteSWhereObservationMayBePerformedReps() { 1286 return this.getReps(28); 1287 } 1288 1289 1290 /** 1291 * Inserts a repetition of 1292 * OM1-28: "Outside Site(s) Where Observation may be Performed" at a specific index 1293 * 1294 * @param rep The repetition index (0-indexed) 1295 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1296 */ 1297 public CE insertOutsideSiteSWhereObservationMayBePerformed(int rep) throws HL7Exception { 1298 return (CE) super.insertRepetition(28, rep); 1299 } 1300 1301 1302 /** 1303 * Inserts a repetition of 1304 * OM1-28: "Outside Site(s) Where Observation may be Performed" at a specific index 1305 * 1306 * @param rep The repetition index (0-indexed) 1307 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1308 */ 1309 public CE insertOm128_OutsideSiteSWhereObservationMayBePerformed(int rep) throws HL7Exception { 1310 return (CE) super.insertRepetition(28, rep); 1311 } 1312 1313 1314 /** 1315 * Removes a repetition of 1316 * OM1-28: "Outside Site(s) Where Observation may be Performed" at a specific index 1317 * 1318 * @param rep The repetition index (0-indexed) 1319 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1320 */ 1321 public CE removeOutsideSiteSWhereObservationMayBePerformed(int rep) throws HL7Exception { 1322 return (CE) super.removeRepetition(28, rep); 1323 } 1324 1325 1326 /** 1327 * Removes a repetition of 1328 * OM1-28: "Outside Site(s) Where Observation may be Performed" at a specific index 1329 * 1330 * @param rep The repetition index (0-indexed) 1331 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1332 */ 1333 public CE removeOm128_OutsideSiteSWhereObservationMayBePerformed(int rep) throws HL7Exception { 1334 return (CE) super.removeRepetition(28, rep); 1335 } 1336 1337 1338 1339 /** 1340 * Returns all repetitions of Address of Outside Site(s) (OM1-29). 1341 */ 1342 public AD[] getAddressOfOutsideSiteS() { 1343 AD[] retVal = this.getTypedField(29, new AD[0]); 1344 return retVal; 1345 } 1346 1347 1348 /** 1349 * Returns all repetitions of Address of Outside Site(s) (OM1-29). 1350 */ 1351 public AD[] getOm129_AddressOfOutsideSiteS() { 1352 AD[] retVal = this.getTypedField(29, new AD[0]); 1353 return retVal; 1354 } 1355 1356 1357 /** 1358 * Returns a count of the current number of repetitions of Address of Outside Site(s) (OM1-29). 1359 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1360 * it will return zero. 1361 */ 1362 public int getAddressOfOutsideSiteSReps() { 1363 return this.getReps(29); 1364 } 1365 1366 1367 /** 1368 * Returns a specific repetition of 1369 * OM1-29: "Address of Outside Site(s)" - creates it if necessary 1370 * 1371 * @param rep The repetition index (0-indexed) 1372 */ 1373 public AD getAddressOfOutsideSiteS(int rep) { 1374 AD retVal = this.getTypedField(29, rep); 1375 return retVal; 1376 } 1377 1378 /** 1379 * Returns a specific repetition of 1380 * OM1-29: "Address of Outside Site(s)" - creates it if necessary 1381 * 1382 * @param rep The repetition index (0-indexed) 1383 */ 1384 public AD getOm129_AddressOfOutsideSiteS(int rep) { 1385 AD retVal = this.getTypedField(29, rep); 1386 return retVal; 1387 } 1388 1389 /** 1390 * Returns a count of the current number of repetitions of Address of Outside Site(s) (OM1-29). 1391 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1392 * it will return zero. 1393 */ 1394 public int getOm129_AddressOfOutsideSiteSReps() { 1395 return this.getReps(29); 1396 } 1397 1398 1399 /** 1400 * Inserts a repetition of 1401 * OM1-29: "Address of Outside Site(s)" at a specific index 1402 * 1403 * @param rep The repetition index (0-indexed) 1404 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1405 */ 1406 public AD insertAddressOfOutsideSiteS(int rep) throws HL7Exception { 1407 return (AD) super.insertRepetition(29, rep); 1408 } 1409 1410 1411 /** 1412 * Inserts a repetition of 1413 * OM1-29: "Address of Outside Site(s)" at a specific index 1414 * 1415 * @param rep The repetition index (0-indexed) 1416 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1417 */ 1418 public AD insertOm129_AddressOfOutsideSiteS(int rep) throws HL7Exception { 1419 return (AD) super.insertRepetition(29, rep); 1420 } 1421 1422 1423 /** 1424 * Removes a repetition of 1425 * OM1-29: "Address of Outside Site(s)" at a specific index 1426 * 1427 * @param rep The repetition index (0-indexed) 1428 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1429 */ 1430 public AD removeAddressOfOutsideSiteS(int rep) throws HL7Exception { 1431 return (AD) super.removeRepetition(29, rep); 1432 } 1433 1434 1435 /** 1436 * Removes a repetition of 1437 * OM1-29: "Address of Outside Site(s)" at a specific index 1438 * 1439 * @param rep The repetition index (0-indexed) 1440 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1441 */ 1442 public AD removeOm129_AddressOfOutsideSiteS(int rep) throws HL7Exception { 1443 return (AD) super.removeRepetition(29, rep); 1444 } 1445 1446 1447 1448 /** 1449 * Returns all repetitions of Phone Number of Outside Site (OM1-30). 1450 */ 1451 public TN[] getPhoneNumberOfOutsideSite() { 1452 TN[] retVal = this.getTypedField(30, new TN[0]); 1453 return retVal; 1454 } 1455 1456 1457 /** 1458 * Returns all repetitions of Phone Number of Outside Site (OM1-30). 1459 */ 1460 public TN[] getOm130_PhoneNumberOfOutsideSite() { 1461 TN[] retVal = this.getTypedField(30, new TN[0]); 1462 return retVal; 1463 } 1464 1465 1466 /** 1467 * Returns a count of the current number of repetitions of Phone Number of Outside Site (OM1-30). 1468 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1469 * it will return zero. 1470 */ 1471 public int getPhoneNumberOfOutsideSiteReps() { 1472 return this.getReps(30); 1473 } 1474 1475 1476 /** 1477 * Returns a specific repetition of 1478 * OM1-30: "Phone Number of Outside Site" - creates it if necessary 1479 * 1480 * @param rep The repetition index (0-indexed) 1481 */ 1482 public TN getPhoneNumberOfOutsideSite(int rep) { 1483 TN retVal = this.getTypedField(30, rep); 1484 return retVal; 1485 } 1486 1487 /** 1488 * Returns a specific repetition of 1489 * OM1-30: "Phone Number of Outside Site" - creates it if necessary 1490 * 1491 * @param rep The repetition index (0-indexed) 1492 */ 1493 public TN getOm130_PhoneNumberOfOutsideSite(int rep) { 1494 TN retVal = this.getTypedField(30, rep); 1495 return retVal; 1496 } 1497 1498 /** 1499 * Returns a count of the current number of repetitions of Phone Number of Outside Site (OM1-30). 1500 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1501 * it will return zero. 1502 */ 1503 public int getOm130_PhoneNumberOfOutsideSiteReps() { 1504 return this.getReps(30); 1505 } 1506 1507 1508 /** 1509 * Inserts a repetition of 1510 * OM1-30: "Phone Number of Outside Site" at a specific index 1511 * 1512 * @param rep The repetition index (0-indexed) 1513 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1514 */ 1515 public TN insertPhoneNumberOfOutsideSite(int rep) throws HL7Exception { 1516 return (TN) super.insertRepetition(30, rep); 1517 } 1518 1519 1520 /** 1521 * Inserts a repetition of 1522 * OM1-30: "Phone Number of Outside Site" at a specific index 1523 * 1524 * @param rep The repetition index (0-indexed) 1525 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1526 */ 1527 public TN insertOm130_PhoneNumberOfOutsideSite(int rep) throws HL7Exception { 1528 return (TN) super.insertRepetition(30, rep); 1529 } 1530 1531 1532 /** 1533 * Removes a repetition of 1534 * OM1-30: "Phone Number of Outside Site" at a specific index 1535 * 1536 * @param rep The repetition index (0-indexed) 1537 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1538 */ 1539 public TN removePhoneNumberOfOutsideSite(int rep) throws HL7Exception { 1540 return (TN) super.removeRepetition(30, rep); 1541 } 1542 1543 1544 /** 1545 * Removes a repetition of 1546 * OM1-30: "Phone Number of Outside Site" at a specific index 1547 * 1548 * @param rep The repetition index (0-indexed) 1549 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1550 */ 1551 public TN removeOm130_PhoneNumberOfOutsideSite(int rep) throws HL7Exception { 1552 return (TN) super.removeRepetition(30, rep); 1553 } 1554 1555 1556 1557 1558 /** 1559 * Returns 1560 * OM1-31: "Confidentiality Code" - creates it if necessary 1561 */ 1562 public ID getConfidentialityCode() { 1563 ID retVal = this.getTypedField(31, 0); 1564 return retVal; 1565 } 1566 1567 /** 1568 * Returns 1569 * OM1-31: "Confidentiality Code" - creates it if necessary 1570 */ 1571 public ID getOm131_ConfidentialityCode() { 1572 ID retVal = this.getTypedField(31, 0); 1573 return retVal; 1574 } 1575 1576 1577 /** 1578 * Returns all repetitions of Observations required to interpret the observation (OM1-32). 1579 */ 1580 public CE[] getObservationsRequiredToInterpretTheObservation() { 1581 CE[] retVal = this.getTypedField(32, new CE[0]); 1582 return retVal; 1583 } 1584 1585 1586 /** 1587 * Returns all repetitions of Observations required to interpret the observation (OM1-32). 1588 */ 1589 public CE[] getOm132_ObservationsRequiredToInterpretTheObservation() { 1590 CE[] retVal = this.getTypedField(32, new CE[0]); 1591 return retVal; 1592 } 1593 1594 1595 /** 1596 * Returns a count of the current number of repetitions of Observations required to interpret the observation (OM1-32). 1597 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1598 * it will return zero. 1599 */ 1600 public int getObservationsRequiredToInterpretTheObservationReps() { 1601 return this.getReps(32); 1602 } 1603 1604 1605 /** 1606 * Returns a specific repetition of 1607 * OM1-32: "Observations required to interpret the observation" - creates it if necessary 1608 * 1609 * @param rep The repetition index (0-indexed) 1610 */ 1611 public CE getObservationsRequiredToInterpretTheObservation(int rep) { 1612 CE retVal = this.getTypedField(32, rep); 1613 return retVal; 1614 } 1615 1616 /** 1617 * Returns a specific repetition of 1618 * OM1-32: "Observations required to interpret the observation" - creates it if necessary 1619 * 1620 * @param rep The repetition index (0-indexed) 1621 */ 1622 public CE getOm132_ObservationsRequiredToInterpretTheObservation(int rep) { 1623 CE retVal = this.getTypedField(32, rep); 1624 return retVal; 1625 } 1626 1627 /** 1628 * Returns a count of the current number of repetitions of Observations required to interpret the observation (OM1-32). 1629 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1630 * it will return zero. 1631 */ 1632 public int getOm132_ObservationsRequiredToInterpretTheObservationReps() { 1633 return this.getReps(32); 1634 } 1635 1636 1637 /** 1638 * Inserts a repetition of 1639 * OM1-32: "Observations required to interpret the observation" at a specific index 1640 * 1641 * @param rep The repetition index (0-indexed) 1642 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1643 */ 1644 public CE insertObservationsRequiredToInterpretTheObservation(int rep) throws HL7Exception { 1645 return (CE) super.insertRepetition(32, rep); 1646 } 1647 1648 1649 /** 1650 * Inserts a repetition of 1651 * OM1-32: "Observations required to interpret the observation" at a specific index 1652 * 1653 * @param rep The repetition index (0-indexed) 1654 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1655 */ 1656 public CE insertOm132_ObservationsRequiredToInterpretTheObservation(int rep) throws HL7Exception { 1657 return (CE) super.insertRepetition(32, rep); 1658 } 1659 1660 1661 /** 1662 * Removes a repetition of 1663 * OM1-32: "Observations required to interpret the observation" at a specific index 1664 * 1665 * @param rep The repetition index (0-indexed) 1666 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1667 */ 1668 public CE removeObservationsRequiredToInterpretTheObservation(int rep) throws HL7Exception { 1669 return (CE) super.removeRepetition(32, rep); 1670 } 1671 1672 1673 /** 1674 * Removes a repetition of 1675 * OM1-32: "Observations required to interpret the observation" at a specific index 1676 * 1677 * @param rep The repetition index (0-indexed) 1678 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1679 */ 1680 public CE removeOm132_ObservationsRequiredToInterpretTheObservation(int rep) throws HL7Exception { 1681 return (CE) super.removeRepetition(32, rep); 1682 } 1683 1684 1685 1686 1687 /** 1688 * Returns 1689 * OM1-33: "Interpretation of Observations" - creates it if necessary 1690 */ 1691 public TX getInterpretationOfObservations() { 1692 TX retVal = this.getTypedField(33, 0); 1693 return retVal; 1694 } 1695 1696 /** 1697 * Returns 1698 * OM1-33: "Interpretation of Observations" - creates it if necessary 1699 */ 1700 public TX getOm133_InterpretationOfObservations() { 1701 TX retVal = this.getTypedField(33, 0); 1702 return retVal; 1703 } 1704 1705 1706 /** 1707 * Returns all repetitions of Contraindications to Observations (OM1-34). 1708 */ 1709 public CE[] getContraindicationsToObservations() { 1710 CE[] retVal = this.getTypedField(34, new CE[0]); 1711 return retVal; 1712 } 1713 1714 1715 /** 1716 * Returns all repetitions of Contraindications to Observations (OM1-34). 1717 */ 1718 public CE[] getOm134_ContraindicationsToObservations() { 1719 CE[] retVal = this.getTypedField(34, new CE[0]); 1720 return retVal; 1721 } 1722 1723 1724 /** 1725 * Returns a count of the current number of repetitions of Contraindications to Observations (OM1-34). 1726 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1727 * it will return zero. 1728 */ 1729 public int getContraindicationsToObservationsReps() { 1730 return this.getReps(34); 1731 } 1732 1733 1734 /** 1735 * Returns a specific repetition of 1736 * OM1-34: "Contraindications to Observations" - creates it if necessary 1737 * 1738 * @param rep The repetition index (0-indexed) 1739 */ 1740 public CE getContraindicationsToObservations(int rep) { 1741 CE retVal = this.getTypedField(34, rep); 1742 return retVal; 1743 } 1744 1745 /** 1746 * Returns a specific repetition of 1747 * OM1-34: "Contraindications to Observations" - creates it if necessary 1748 * 1749 * @param rep The repetition index (0-indexed) 1750 */ 1751 public CE getOm134_ContraindicationsToObservations(int rep) { 1752 CE retVal = this.getTypedField(34, rep); 1753 return retVal; 1754 } 1755 1756 /** 1757 * Returns a count of the current number of repetitions of Contraindications to Observations (OM1-34). 1758 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1759 * it will return zero. 1760 */ 1761 public int getOm134_ContraindicationsToObservationsReps() { 1762 return this.getReps(34); 1763 } 1764 1765 1766 /** 1767 * Inserts a repetition of 1768 * OM1-34: "Contraindications to Observations" at a specific index 1769 * 1770 * @param rep The repetition index (0-indexed) 1771 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1772 */ 1773 public CE insertContraindicationsToObservations(int rep) throws HL7Exception { 1774 return (CE) super.insertRepetition(34, rep); 1775 } 1776 1777 1778 /** 1779 * Inserts a repetition of 1780 * OM1-34: "Contraindications to Observations" at a specific index 1781 * 1782 * @param rep The repetition index (0-indexed) 1783 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1784 */ 1785 public CE insertOm134_ContraindicationsToObservations(int rep) throws HL7Exception { 1786 return (CE) super.insertRepetition(34, rep); 1787 } 1788 1789 1790 /** 1791 * Removes a repetition of 1792 * OM1-34: "Contraindications to Observations" at a specific index 1793 * 1794 * @param rep The repetition index (0-indexed) 1795 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1796 */ 1797 public CE removeContraindicationsToObservations(int rep) throws HL7Exception { 1798 return (CE) super.removeRepetition(34, rep); 1799 } 1800 1801 1802 /** 1803 * Removes a repetition of 1804 * OM1-34: "Contraindications to Observations" at a specific index 1805 * 1806 * @param rep The repetition index (0-indexed) 1807 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1808 */ 1809 public CE removeOm134_ContraindicationsToObservations(int rep) throws HL7Exception { 1810 return (CE) super.removeRepetition(34, rep); 1811 } 1812 1813 1814 1815 /** 1816 * Returns all repetitions of Reflex tests / observations (OM1-35). 1817 */ 1818 public CE[] getReflexTestsObservations() { 1819 CE[] retVal = this.getTypedField(35, new CE[0]); 1820 return retVal; 1821 } 1822 1823 1824 /** 1825 * Returns all repetitions of Reflex tests / observations (OM1-35). 1826 */ 1827 public CE[] getOm135_ReflexTestsObservations() { 1828 CE[] retVal = this.getTypedField(35, new CE[0]); 1829 return retVal; 1830 } 1831 1832 1833 /** 1834 * Returns a count of the current number of repetitions of Reflex tests / observations (OM1-35). 1835 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1836 * it will return zero. 1837 */ 1838 public int getReflexTestsObservationsReps() { 1839 return this.getReps(35); 1840 } 1841 1842 1843 /** 1844 * Returns a specific repetition of 1845 * OM1-35: "Reflex tests / observations" - creates it if necessary 1846 * 1847 * @param rep The repetition index (0-indexed) 1848 */ 1849 public CE getReflexTestsObservations(int rep) { 1850 CE retVal = this.getTypedField(35, rep); 1851 return retVal; 1852 } 1853 1854 /** 1855 * Returns a specific repetition of 1856 * OM1-35: "Reflex tests / observations" - creates it if necessary 1857 * 1858 * @param rep The repetition index (0-indexed) 1859 */ 1860 public CE getOm135_ReflexTestsObservations(int rep) { 1861 CE retVal = this.getTypedField(35, rep); 1862 return retVal; 1863 } 1864 1865 /** 1866 * Returns a count of the current number of repetitions of Reflex tests / observations (OM1-35). 1867 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1868 * it will return zero. 1869 */ 1870 public int getOm135_ReflexTestsObservationsReps() { 1871 return this.getReps(35); 1872 } 1873 1874 1875 /** 1876 * Inserts a repetition of 1877 * OM1-35: "Reflex tests / observations" at a specific index 1878 * 1879 * @param rep The repetition index (0-indexed) 1880 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1881 */ 1882 public CE insertReflexTestsObservations(int rep) throws HL7Exception { 1883 return (CE) super.insertRepetition(35, rep); 1884 } 1885 1886 1887 /** 1888 * Inserts a repetition of 1889 * OM1-35: "Reflex tests / observations" at a specific index 1890 * 1891 * @param rep The repetition index (0-indexed) 1892 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1893 */ 1894 public CE insertOm135_ReflexTestsObservations(int rep) throws HL7Exception { 1895 return (CE) super.insertRepetition(35, rep); 1896 } 1897 1898 1899 /** 1900 * Removes a repetition of 1901 * OM1-35: "Reflex tests / observations" at a specific index 1902 * 1903 * @param rep The repetition index (0-indexed) 1904 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1905 */ 1906 public CE removeReflexTestsObservations(int rep) throws HL7Exception { 1907 return (CE) super.removeRepetition(35, rep); 1908 } 1909 1910 1911 /** 1912 * Removes a repetition of 1913 * OM1-35: "Reflex tests / observations" at a specific index 1914 * 1915 * @param rep The repetition index (0-indexed) 1916 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1917 */ 1918 public CE removeOm135_ReflexTestsObservations(int rep) throws HL7Exception { 1919 return (CE) super.removeRepetition(35, rep); 1920 } 1921 1922 1923 1924 1925 /** 1926 * Returns 1927 * OM1-36: "Rules that Trigger Reflex Testing" - creates it if necessary 1928 */ 1929 public ST getRulesThatTriggerReflexTesting() { 1930 ST retVal = this.getTypedField(36, 0); 1931 return retVal; 1932 } 1933 1934 /** 1935 * Returns 1936 * OM1-36: "Rules that Trigger Reflex Testing" - creates it if necessary 1937 */ 1938 public ST getOm136_RulesThatTriggerReflexTesting() { 1939 ST retVal = this.getTypedField(36, 0); 1940 return retVal; 1941 } 1942 1943 1944 /** 1945 * Returns all repetitions of Fixed Canned Message (OM1-37). 1946 */ 1947 public CE[] getFixedCannedMessage() { 1948 CE[] retVal = this.getTypedField(37, new CE[0]); 1949 return retVal; 1950 } 1951 1952 1953 /** 1954 * Returns all repetitions of Fixed Canned Message (OM1-37). 1955 */ 1956 public CE[] getOm137_FixedCannedMessage() { 1957 CE[] retVal = this.getTypedField(37, new CE[0]); 1958 return retVal; 1959 } 1960 1961 1962 /** 1963 * Returns a count of the current number of repetitions of Fixed Canned Message (OM1-37). 1964 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1965 * it will return zero. 1966 */ 1967 public int getFixedCannedMessageReps() { 1968 return this.getReps(37); 1969 } 1970 1971 1972 /** 1973 * Returns a specific repetition of 1974 * OM1-37: "Fixed Canned Message" - creates it if necessary 1975 * 1976 * @param rep The repetition index (0-indexed) 1977 */ 1978 public CE getFixedCannedMessage(int rep) { 1979 CE retVal = this.getTypedField(37, rep); 1980 return retVal; 1981 } 1982 1983 /** 1984 * Returns a specific repetition of 1985 * OM1-37: "Fixed Canned Message" - creates it if necessary 1986 * 1987 * @param rep The repetition index (0-indexed) 1988 */ 1989 public CE getOm137_FixedCannedMessage(int rep) { 1990 CE retVal = this.getTypedField(37, rep); 1991 return retVal; 1992 } 1993 1994 /** 1995 * Returns a count of the current number of repetitions of Fixed Canned Message (OM1-37). 1996 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1997 * it will return zero. 1998 */ 1999 public int getOm137_FixedCannedMessageReps() { 2000 return this.getReps(37); 2001 } 2002 2003 2004 /** 2005 * Inserts a repetition of 2006 * OM1-37: "Fixed Canned Message" at a specific index 2007 * 2008 * @param rep The repetition index (0-indexed) 2009 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2010 */ 2011 public CE insertFixedCannedMessage(int rep) throws HL7Exception { 2012 return (CE) super.insertRepetition(37, rep); 2013 } 2014 2015 2016 /** 2017 * Inserts a repetition of 2018 * OM1-37: "Fixed Canned Message" at a specific index 2019 * 2020 * @param rep The repetition index (0-indexed) 2021 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2022 */ 2023 public CE insertOm137_FixedCannedMessage(int rep) throws HL7Exception { 2024 return (CE) super.insertRepetition(37, rep); 2025 } 2026 2027 2028 /** 2029 * Removes a repetition of 2030 * OM1-37: "Fixed Canned Message" at a specific index 2031 * 2032 * @param rep The repetition index (0-indexed) 2033 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2034 */ 2035 public CE removeFixedCannedMessage(int rep) throws HL7Exception { 2036 return (CE) super.removeRepetition(37, rep); 2037 } 2038 2039 2040 /** 2041 * Removes a repetition of 2042 * OM1-37: "Fixed Canned Message" at a specific index 2043 * 2044 * @param rep The repetition index (0-indexed) 2045 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2046 */ 2047 public CE removeOm137_FixedCannedMessage(int rep) throws HL7Exception { 2048 return (CE) super.removeRepetition(37, rep); 2049 } 2050 2051 2052 2053 2054 /** 2055 * Returns 2056 * OM1-38: "Patient Preparation" - creates it if necessary 2057 */ 2058 public TX getPatientPreparation() { 2059 TX retVal = this.getTypedField(38, 0); 2060 return retVal; 2061 } 2062 2063 /** 2064 * Returns 2065 * OM1-38: "Patient Preparation" - creates it if necessary 2066 */ 2067 public TX getOm138_PatientPreparation() { 2068 TX retVal = this.getTypedField(38, 0); 2069 return retVal; 2070 } 2071 2072 2073 2074 /** 2075 * Returns 2076 * OM1-39: "Procedure Medication" - creates it if necessary 2077 */ 2078 public CE getProcedureMedication() { 2079 CE retVal = this.getTypedField(39, 0); 2080 return retVal; 2081 } 2082 2083 /** 2084 * Returns 2085 * OM1-39: "Procedure Medication" - creates it if necessary 2086 */ 2087 public CE getOm139_ProcedureMedication() { 2088 CE retVal = this.getTypedField(39, 0); 2089 return retVal; 2090 } 2091 2092 2093 2094 /** 2095 * Returns 2096 * OM1-40: "Factors that may affect the observation" - creates it if necessary 2097 */ 2098 public TX getFactorsThatMayAffectTheObservation() { 2099 TX retVal = this.getTypedField(40, 0); 2100 return retVal; 2101 } 2102 2103 /** 2104 * Returns 2105 * OM1-40: "Factors that may affect the observation" - creates it if necessary 2106 */ 2107 public TX getOm140_FactorsThatMayAffectTheObservation() { 2108 TX retVal = this.getTypedField(40, 0); 2109 return retVal; 2110 } 2111 2112 2113 /** 2114 * Returns all repetitions of Test / observation performance schedule (OM1-41). 2115 */ 2116 public ST[] getTestObservationPerformanceSchedule() { 2117 ST[] retVal = this.getTypedField(41, new ST[0]); 2118 return retVal; 2119 } 2120 2121 2122 /** 2123 * Returns all repetitions of Test / observation performance schedule (OM1-41). 2124 */ 2125 public ST[] getOm141_TestObservationPerformanceSchedule() { 2126 ST[] retVal = this.getTypedField(41, new ST[0]); 2127 return retVal; 2128 } 2129 2130 2131 /** 2132 * Returns a count of the current number of repetitions of Test / observation performance schedule (OM1-41). 2133 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2134 * it will return zero. 2135 */ 2136 public int getTestObservationPerformanceScheduleReps() { 2137 return this.getReps(41); 2138 } 2139 2140 2141 /** 2142 * Returns a specific repetition of 2143 * OM1-41: "Test / observation performance schedule" - creates it if necessary 2144 * 2145 * @param rep The repetition index (0-indexed) 2146 */ 2147 public ST getTestObservationPerformanceSchedule(int rep) { 2148 ST retVal = this.getTypedField(41, rep); 2149 return retVal; 2150 } 2151 2152 /** 2153 * Returns a specific repetition of 2154 * OM1-41: "Test / observation performance schedule" - creates it if necessary 2155 * 2156 * @param rep The repetition index (0-indexed) 2157 */ 2158 public ST getOm141_TestObservationPerformanceSchedule(int rep) { 2159 ST retVal = this.getTypedField(41, rep); 2160 return retVal; 2161 } 2162 2163 /** 2164 * Returns a count of the current number of repetitions of Test / observation performance schedule (OM1-41). 2165 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 2166 * it will return zero. 2167 */ 2168 public int getOm141_TestObservationPerformanceScheduleReps() { 2169 return this.getReps(41); 2170 } 2171 2172 2173 /** 2174 * Inserts a repetition of 2175 * OM1-41: "Test / observation performance schedule" at a specific index 2176 * 2177 * @param rep The repetition index (0-indexed) 2178 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2179 */ 2180 public ST insertTestObservationPerformanceSchedule(int rep) throws HL7Exception { 2181 return (ST) super.insertRepetition(41, rep); 2182 } 2183 2184 2185 /** 2186 * Inserts a repetition of 2187 * OM1-41: "Test / observation performance schedule" at a specific index 2188 * 2189 * @param rep The repetition index (0-indexed) 2190 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2191 */ 2192 public ST insertOm141_TestObservationPerformanceSchedule(int rep) throws HL7Exception { 2193 return (ST) super.insertRepetition(41, rep); 2194 } 2195 2196 2197 /** 2198 * Removes a repetition of 2199 * OM1-41: "Test / observation performance schedule" at a specific index 2200 * 2201 * @param rep The repetition index (0-indexed) 2202 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2203 */ 2204 public ST removeTestObservationPerformanceSchedule(int rep) throws HL7Exception { 2205 return (ST) super.removeRepetition(41, rep); 2206 } 2207 2208 2209 /** 2210 * Removes a repetition of 2211 * OM1-41: "Test / observation performance schedule" at a specific index 2212 * 2213 * @param rep The repetition index (0-indexed) 2214 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 2215 */ 2216 public ST removeOm141_TestObservationPerformanceSchedule(int rep) throws HL7Exception { 2217 return (ST) super.removeRepetition(41, rep); 2218 } 2219 2220 2221 2222 2223 /** 2224 * Returns 2225 * OM1-42: "Description of Test Methods" - creates it if necessary 2226 */ 2227 public TX getDescriptionOfTestMethods() { 2228 TX retVal = this.getTypedField(42, 0); 2229 return retVal; 2230 } 2231 2232 /** 2233 * Returns 2234 * OM1-42: "Description of Test Methods" - creates it if necessary 2235 */ 2236 public TX getOm142_DescriptionOfTestMethods() { 2237 TX retVal = this.getTypedField(42, 0); 2238 return retVal; 2239 } 2240 2241 2242 2243 2244 2245 /** {@inheritDoc} */ 2246 protected Type createNewTypeWithoutReflection(int field) { 2247 switch (field) { 2248 case 0: return new ST(getMessage()); 2249 case 1: return new NM(getMessage()); 2250 case 2: return new CE(getMessage()); 2251 case 3: return new ID(getMessage(), new Integer( 125 )); 2252 case 4: return new ID(getMessage(), new Integer( 136 )); 2253 case 5: return new CE(getMessage()); 2254 case 6: return new TX(getMessage()); 2255 case 7: return new CE(getMessage()); 2256 case 8: return new ST(getMessage()); 2257 case 9: return new ST(getMessage()); 2258 case 10: return new ST(getMessage()); 2259 case 11: return new ST(getMessage()); 2260 case 12: return new ID(getMessage(), new Integer( 136 )); 2261 case 13: return new CE(getMessage()); 2262 case 14: return new CE(getMessage()); 2263 case 15: return new ID(getMessage(), new Integer( 136 )); 2264 case 16: return new ID(getMessage(), new Integer( 0 )); 2265 case 17: return new TN(getMessage()); 2266 case 18: return new ID(getMessage(), new Integer( 174 )); 2267 case 19: return new CE(getMessage()); 2268 case 20: return new ST(getMessage()); 2269 case 21: return new TS(getMessage()); 2270 case 22: return new TS(getMessage()); 2271 case 23: return new NM(getMessage()); 2272 case 24: return new NM(getMessage()); 2273 case 25: return new ID(getMessage(), new Integer( 168 )); 2274 case 26: return new ID(getMessage(), new Integer( 169 )); 2275 case 27: return new CE(getMessage()); 2276 case 28: return new AD(getMessage()); 2277 case 29: return new TN(getMessage()); 2278 case 30: return new ID(getMessage(), new Integer( 177 )); 2279 case 31: return new CE(getMessage()); 2280 case 32: return new TX(getMessage()); 2281 case 33: return new CE(getMessage()); 2282 case 34: return new CE(getMessage()); 2283 case 35: return new ST(getMessage()); 2284 case 36: return new CE(getMessage()); 2285 case 37: return new TX(getMessage()); 2286 case 38: return new CE(getMessage()); 2287 case 39: return new TX(getMessage()); 2288 case 40: return new ST(getMessage()); 2289 case 41: return new TX(getMessage()); 2290 default: return null; 2291 } 2292 } 2293 2294 2295} 2296