1 /* 2 * This class is an auto-generated source file for a HAPI 3 * HL7 v2.x standard structure class. 4 * 5 * For more information, visit: http://hl7api.sourceforge.net/ 6 * 7 * The contents of this file are subject to the Mozilla Public License Version 1.1 8 * (the "License"); you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 10 * Software distributed under the License is distributed on an "AS IS" basis, 11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 12 * specific language governing rights and limitations under the License. 13 * 14 * The Original Code is "[file_name]". Description: 15 * "[one_line_description]" 16 * 17 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 18 * 2012. All Rights Reserved. 19 * 20 * Contributor(s): ______________________________________. 21 * 22 * Alternatively, the contents of this file may be used under the terms of the 23 * GNU General Public License (the "GPL"), in which case the provisions of the GPL are 24 * applicable instead of those above. If you wish to allow use of your version of this 25 * file only under the terms of the GPL and not to allow others to use your version 26 * of this file under the MPL, indicate your decision by deleting the provisions above 27 * and replace them with the notice and other provisions required by the GPL License. 28 * If you do not delete the provisions above, a recipient may use your version of 29 * this file under either the MPL or the GPL. 30 * 31 */ 32 33 34 package ca.uhn.hl7v2.model.v23.segment; 35 36 // import ca.uhn.hl7v2.model.v23.group.*; 37 import ca.uhn.hl7v2.model.v23.datatype.*; 38 import ca.uhn.hl7v2.HL7Exception; 39 import ca.uhn.hl7v2.parser.ModelClassFactory; 40 import ca.uhn.hl7v2.parser.DefaultModelClassFactory; 41 import ca.uhn.hl7v2.model.AbstractMessage; 42 import ca.uhn.hl7v2.model.Group; 43 import ca.uhn.hl7v2.model.Type; 44 import ca.uhn.hl7v2.model.AbstractSegment; 45 import ca.uhn.hl7v2.model.Varies; 46 47 48 /** 49 *<p>Represents an HL7 PEO message segment (Product Experience Observation). 50 * This segment has the following fields:</p> 51 * <ul> 52 * <li>PEO-1: Event Identifiers Used (CE) <b>optional repeating</b> 53 * <li>PEO-2: Event Symptom/Diagnosis Code (CE) <b>optional repeating</b> 54 * <li>PEO-3: Event Onset Date/Time (TS) <b> </b> 55 * <li>PEO-4: Event Exacerbation Date/Time (TS) <b>optional </b> 56 * <li>PEO-5: Event Improved Date/Time (TS) <b>optional </b> 57 * <li>PEO-6: Event Ended Data/Time (TS) <b>optional </b> 58 * <li>PEO-7: Event Location Occurred Address (XAD) <b>optional </b> 59 * <li>PEO-8: Event Qualification (ID) <b>optional repeating</b> 60 * <li>PEO-9: Event Serious (ID) <b>optional </b> 61 * <li>PEO-10: Event Expected (ID) <b>optional </b> 62 * <li>PEO-11: Event Outcome (ID) <b>optional repeating</b> 63 * <li>PEO-12: Patient Outcome (ID) <b>optional </b> 64 * <li>PEO-13: Event Description From Others (FT) <b>optional repeating</b> 65 * <li>PEO-14: Event From Original Reporter (FT) <b>optional repeating</b> 66 * <li>PEO-15: Event Description From Patient (FT) <b>optional repeating</b> 67 * <li>PEO-16: Event Description From Practitioner (FT) <b>optional repeating</b> 68 * <li>PEO-17: Event Description From Autopsy (FT) <b>optional repeating</b> 69 * <li>PEO-18: Cause Of Death (CE) <b>optional repeating</b> 70 * <li>PEO-19: Primary Observer Name (XPN) <b>optional </b> 71 * <li>PEO-20: Primary Observer Address (XAD) <b>optional repeating</b> 72 * <li>PEO-21: Primary Observer Telephone (XTN) <b>optional repeating</b> 73 * <li>PEO-22: Primary Observer’s Qualification (ID) <b>optional </b> 74 * <li>PEO-23: Confirmation Provided By (ID) <b>optional </b> 75 * <li>PEO-24: Primary Observer Aware Date/Time (TS) <b>optional </b> 76 * <li>PEO-25: Primary Observer’s Identity May Be Divulged (ID) <b>optional </b> 77 * </ul> 78 */ 79 @SuppressWarnings("unused") 80 public class PEO extends AbstractSegment { 81 82 /** 83 * Creates a new PEO segment 84 */ 85 public PEO(Group parent, ModelClassFactory factory) { 86 super(parent, factory); 87 init(factory); 88 } 89 90 private void init(ModelClassFactory factory) { 91 try { 92 this.add(CE.class, false, 0, 60, new Object[]{ getMessage() }, "Event Identifiers Used"); 93 this.add(CE.class, false, 0, 60, new Object[]{ getMessage() }, "Event Symptom/Diagnosis Code"); 94 this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Event Onset Date/Time"); 95 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Exacerbation Date/Time"); 96 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Improved Date/Time"); 97 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Ended Data/Time"); 98 this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Event Location Occurred Address"); 99 this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(237) }, "Event Qualification"); 100 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(238) }, "Event Serious"); 101 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(239) }, "Event Expected"); 102 this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(240) }, "Event Outcome"); 103 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(241) }, "Patient Outcome"); 104 this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Others"); 105 this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event From Original Reporter"); 106 this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Patient"); 107 this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Practitioner"); 108 this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Autopsy"); 109 this.add(CE.class, false, 0, 30, new Object[]{ getMessage() }, "Cause Of Death"); 110 this.add(XPN.class, false, 1, 46, new Object[]{ getMessage() }, "Primary Observer Name"); 111 this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Primary Observer Address"); 112 this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Primary Observer Telephone"); 113 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Primary Observer’s Qualification"); 114 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Confirmation Provided By"); 115 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Primary Observer Aware Date/Time"); 116 this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(243) }, "Primary Observer’s Identity May Be Divulged"); 117 } catch(HL7Exception e) { 118 log.error("Unexpected error creating PEO - this is probably a bug in the source code generator.", e); 119 } 120 } 121 122 123 /** 124 * Returns all repetitions of Event Identifiers Used (PEO-1). 125 */ 126 public CE[] getEventIdentifiersUsed() { 127 CE[] retVal = this.getTypedField(1, new CE[0]); 128 return retVal; 129 } 130 131 132 /** 133 * Returns all repetitions of Event Identifiers Used (PEO-1). 134 */ 135 public CE[] getPeo1_EventIdentifiersUsed() { 136 CE[] retVal = this.getTypedField(1, new CE[0]); 137 return retVal; 138 } 139 140 141 /** 142 * Returns a count of the current number of repetitions of Event Identifiers Used (PEO-1). 143 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 144 * it will return zero. 145 */ 146 public int getEventIdentifiersUsedReps() { 147 return this.getReps(1); 148 } 149 150 151 /** 152 * Returns a specific repetition of 153 * PEO-1: "Event Identifiers Used" - creates it if necessary 154 * 155 * @param rep The repetition index (0-indexed) 156 */ 157 public CE getEventIdentifiersUsed(int rep) { 158 CE retVal = this.getTypedField(1, rep); 159 return retVal; 160 } 161 162 /** 163 * Returns a specific repetition of 164 * PEO-1: "Event Identifiers Used" - creates it if necessary 165 * 166 * @param rep The repetition index (0-indexed) 167 */ 168 public CE getPeo1_EventIdentifiersUsed(int rep) { 169 CE retVal = this.getTypedField(1, rep); 170 return retVal; 171 } 172 173 /** 174 * Returns a count of the current number of repetitions of Event Identifiers Used (PEO-1). 175 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 176 * it will return zero. 177 */ 178 public int getPeo1_EventIdentifiersUsedReps() { 179 return this.getReps(1); 180 } 181 182 183 /** 184 * Inserts a repetition of 185 * PEO-1: "Event Identifiers Used" at a specific index 186 * 187 * @param rep The repetition index (0-indexed) 188 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 189 */ 190 public CE insertEventIdentifiersUsed(int rep) throws HL7Exception { 191 return (CE) super.insertRepetition(1, rep); 192 } 193 194 195 /** 196 * Inserts a repetition of 197 * PEO-1: "Event Identifiers Used" at a specific index 198 * 199 * @param rep The repetition index (0-indexed) 200 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 201 */ 202 public CE insertPeo1_EventIdentifiersUsed(int rep) throws HL7Exception { 203 return (CE) super.insertRepetition(1, rep); 204 } 205 206 207 /** 208 * Removes a repetition of 209 * PEO-1: "Event Identifiers Used" at a specific index 210 * 211 * @param rep The repetition index (0-indexed) 212 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 213 */ 214 public CE removeEventIdentifiersUsed(int rep) throws HL7Exception { 215 return (CE) super.removeRepetition(1, rep); 216 } 217 218 219 /** 220 * Removes a repetition of 221 * PEO-1: "Event Identifiers Used" at a specific index 222 * 223 * @param rep The repetition index (0-indexed) 224 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 225 */ 226 public CE removePeo1_EventIdentifiersUsed(int rep) throws HL7Exception { 227 return (CE) super.removeRepetition(1, rep); 228 } 229 230 231 232 /** 233 * Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2). 234 */ 235 public CE[] getEventSymptomDiagnosisCode() { 236 CE[] retVal = this.getTypedField(2, new CE[0]); 237 return retVal; 238 } 239 240 241 /** 242 * Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2). 243 */ 244 public CE[] getPeo2_EventSymptomDiagnosisCode() { 245 CE[] retVal = this.getTypedField(2, new CE[0]); 246 return retVal; 247 } 248 249 250 /** 251 * Returns a count of the current number of repetitions of Event Symptom/Diagnosis Code (PEO-2). 252 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 253 * it will return zero. 254 */ 255 public int getEventSymptomDiagnosisCodeReps() { 256 return this.getReps(2); 257 } 258 259 260 /** 261 * Returns a specific repetition of 262 * PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary 263 * 264 * @param rep The repetition index (0-indexed) 265 */ 266 public CE getEventSymptomDiagnosisCode(int rep) { 267 CE retVal = this.getTypedField(2, rep); 268 return retVal; 269 } 270 271 /** 272 * Returns a specific repetition of 273 * PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary 274 * 275 * @param rep The repetition index (0-indexed) 276 */ 277 public CE getPeo2_EventSymptomDiagnosisCode(int rep) { 278 CE retVal = this.getTypedField(2, rep); 279 return retVal; 280 } 281 282 /** 283 * Returns a count of the current number of repetitions of Event Symptom/Diagnosis Code (PEO-2). 284 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 285 * it will return zero. 286 */ 287 public int getPeo2_EventSymptomDiagnosisCodeReps() { 288 return this.getReps(2); 289 } 290 291 292 /** 293 * Inserts a repetition of 294 * PEO-2: "Event Symptom/Diagnosis Code" at a specific index 295 * 296 * @param rep The repetition index (0-indexed) 297 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 298 */ 299 public CE insertEventSymptomDiagnosisCode(int rep) throws HL7Exception { 300 return (CE) super.insertRepetition(2, rep); 301 } 302 303 304 /** 305 * Inserts a repetition of 306 * PEO-2: "Event Symptom/Diagnosis Code" at a specific index 307 * 308 * @param rep The repetition index (0-indexed) 309 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 310 */ 311 public CE insertPeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception { 312 return (CE) super.insertRepetition(2, rep); 313 } 314 315 316 /** 317 * Removes a repetition of 318 * PEO-2: "Event Symptom/Diagnosis Code" at a specific index 319 * 320 * @param rep The repetition index (0-indexed) 321 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 322 */ 323 public CE removeEventSymptomDiagnosisCode(int rep) throws HL7Exception { 324 return (CE) super.removeRepetition(2, rep); 325 } 326 327 328 /** 329 * Removes a repetition of 330 * PEO-2: "Event Symptom/Diagnosis Code" at a specific index 331 * 332 * @param rep The repetition index (0-indexed) 333 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 334 */ 335 public CE removePeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception { 336 return (CE) super.removeRepetition(2, rep); 337 } 338 339 340 341 342 /** 343 * Returns 344 * PEO-3: "Event Onset Date/Time" - creates it if necessary 345 */ 346 public TS getEventOnsetDateTime() { 347 TS retVal = this.getTypedField(3, 0); 348 return retVal; 349 } 350 351 /** 352 * Returns 353 * PEO-3: "Event Onset Date/Time" - creates it if necessary 354 */ 355 public TS getPeo3_EventOnsetDateTime() { 356 TS retVal = this.getTypedField(3, 0); 357 return retVal; 358 } 359 360 361 362 /** 363 * Returns 364 * PEO-4: "Event Exacerbation Date/Time" - creates it if necessary 365 */ 366 public TS getEventExacerbationDateTime() { 367 TS retVal = this.getTypedField(4, 0); 368 return retVal; 369 } 370 371 /** 372 * Returns 373 * PEO-4: "Event Exacerbation Date/Time" - creates it if necessary 374 */ 375 public TS getPeo4_EventExacerbationDateTime() { 376 TS retVal = this.getTypedField(4, 0); 377 return retVal; 378 } 379 380 381 382 /** 383 * Returns 384 * PEO-5: "Event Improved Date/Time" - creates it if necessary 385 */ 386 public TS getEventImprovedDateTime() { 387 TS retVal = this.getTypedField(5, 0); 388 return retVal; 389 } 390 391 /** 392 * Returns 393 * PEO-5: "Event Improved Date/Time" - creates it if necessary 394 */ 395 public TS getPeo5_EventImprovedDateTime() { 396 TS retVal = this.getTypedField(5, 0); 397 return retVal; 398 } 399 400 401 402 /** 403 * Returns 404 * PEO-6: "Event Ended Data/Time" - creates it if necessary 405 */ 406 public TS getEventEndedDataTime() { 407 TS retVal = this.getTypedField(6, 0); 408 return retVal; 409 } 410 411 /** 412 * Returns 413 * PEO-6: "Event Ended Data/Time" - creates it if necessary 414 */ 415 public TS getPeo6_EventEndedDataTime() { 416 TS retVal = this.getTypedField(6, 0); 417 return retVal; 418 } 419 420 421 422 /** 423 * Returns 424 * PEO-7: "Event Location Occurred Address" - creates it if necessary 425 */ 426 public XAD getEventLocationOccurredAddress() { 427 XAD retVal = this.getTypedField(7, 0); 428 return retVal; 429 } 430 431 /** 432 * Returns 433 * PEO-7: "Event Location Occurred Address" - creates it if necessary 434 */ 435 public XAD getPeo7_EventLocationOccurredAddress() { 436 XAD retVal = this.getTypedField(7, 0); 437 return retVal; 438 } 439 440 441 /** 442 * Returns all repetitions of Event Qualification (PEO-8). 443 */ 444 public ID[] getEventQualification() { 445 ID[] retVal = this.getTypedField(8, new ID[0]); 446 return retVal; 447 } 448 449 450 /** 451 * Returns all repetitions of Event Qualification (PEO-8). 452 */ 453 public ID[] getPeo8_EventQualification() { 454 ID[] retVal = this.getTypedField(8, new ID[0]); 455 return retVal; 456 } 457 458 459 /** 460 * Returns a count of the current number of repetitions of Event Qualification (PEO-8). 461 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 462 * it will return zero. 463 */ 464 public int getEventQualificationReps() { 465 return this.getReps(8); 466 } 467 468 469 /** 470 * Returns a specific repetition of 471 * PEO-8: "Event Qualification" - creates it if necessary 472 * 473 * @param rep The repetition index (0-indexed) 474 */ 475 public ID getEventQualification(int rep) { 476 ID retVal = this.getTypedField(8, rep); 477 return retVal; 478 } 479 480 /** 481 * Returns a specific repetition of 482 * PEO-8: "Event Qualification" - creates it if necessary 483 * 484 * @param rep The repetition index (0-indexed) 485 */ 486 public ID getPeo8_EventQualification(int rep) { 487 ID retVal = this.getTypedField(8, rep); 488 return retVal; 489 } 490 491 /** 492 * Returns a count of the current number of repetitions of Event Qualification (PEO-8). 493 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 494 * it will return zero. 495 */ 496 public int getPeo8_EventQualificationReps() { 497 return this.getReps(8); 498 } 499 500 501 /** 502 * Inserts a repetition of 503 * PEO-8: "Event Qualification" 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 ID insertEventQualification(int rep) throws HL7Exception { 509 return (ID) super.insertRepetition(8, rep); 510 } 511 512 513 /** 514 * Inserts a repetition of 515 * PEO-8: "Event Qualification" at a specific index 516 * 517 * @param rep The repetition index (0-indexed) 518 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 519 */ 520 public ID insertPeo8_EventQualification(int rep) throws HL7Exception { 521 return (ID) super.insertRepetition(8, rep); 522 } 523 524 525 /** 526 * Removes a repetition of 527 * PEO-8: "Event Qualification" at a specific index 528 * 529 * @param rep The repetition index (0-indexed) 530 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 531 */ 532 public ID removeEventQualification(int rep) throws HL7Exception { 533 return (ID) super.removeRepetition(8, rep); 534 } 535 536 537 /** 538 * Removes a repetition of 539 * PEO-8: "Event Qualification" at a specific index 540 * 541 * @param rep The repetition index (0-indexed) 542 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 543 */ 544 public ID removePeo8_EventQualification(int rep) throws HL7Exception { 545 return (ID) super.removeRepetition(8, rep); 546 } 547 548 549 550 551 /** 552 * Returns 553 * PEO-9: "Event Serious" - creates it if necessary 554 */ 555 public ID getEventSerious() { 556 ID retVal = this.getTypedField(9, 0); 557 return retVal; 558 } 559 560 /** 561 * Returns 562 * PEO-9: "Event Serious" - creates it if necessary 563 */ 564 public ID getPeo9_EventSerious() { 565 ID retVal = this.getTypedField(9, 0); 566 return retVal; 567 } 568 569 570 571 /** 572 * Returns 573 * PEO-10: "Event Expected" - creates it if necessary 574 */ 575 public ID getEventExpected() { 576 ID retVal = this.getTypedField(10, 0); 577 return retVal; 578 } 579 580 /** 581 * Returns 582 * PEO-10: "Event Expected" - creates it if necessary 583 */ 584 public ID getPeo10_EventExpected() { 585 ID retVal = this.getTypedField(10, 0); 586 return retVal; 587 } 588 589 590 /** 591 * Returns all repetitions of Event Outcome (PEO-11). 592 */ 593 public ID[] getEventOutcome() { 594 ID[] retVal = this.getTypedField(11, new ID[0]); 595 return retVal; 596 } 597 598 599 /** 600 * Returns all repetitions of Event Outcome (PEO-11). 601 */ 602 public ID[] getPeo11_EventOutcome() { 603 ID[] retVal = this.getTypedField(11, new ID[0]); 604 return retVal; 605 } 606 607 608 /** 609 * Returns a count of the current number of repetitions of Event Outcome (PEO-11). 610 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 611 * it will return zero. 612 */ 613 public int getEventOutcomeReps() { 614 return this.getReps(11); 615 } 616 617 618 /** 619 * Returns a specific repetition of 620 * PEO-11: "Event Outcome" - creates it if necessary 621 * 622 * @param rep The repetition index (0-indexed) 623 */ 624 public ID getEventOutcome(int rep) { 625 ID retVal = this.getTypedField(11, rep); 626 return retVal; 627 } 628 629 /** 630 * Returns a specific repetition of 631 * PEO-11: "Event Outcome" - creates it if necessary 632 * 633 * @param rep The repetition index (0-indexed) 634 */ 635 public ID getPeo11_EventOutcome(int rep) { 636 ID retVal = this.getTypedField(11, rep); 637 return retVal; 638 } 639 640 /** 641 * Returns a count of the current number of repetitions of Event Outcome (PEO-11). 642 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 643 * it will return zero. 644 */ 645 public int getPeo11_EventOutcomeReps() { 646 return this.getReps(11); 647 } 648 649 650 /** 651 * Inserts a repetition of 652 * PEO-11: "Event Outcome" at a specific index 653 * 654 * @param rep The repetition index (0-indexed) 655 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 656 */ 657 public ID insertEventOutcome(int rep) throws HL7Exception { 658 return (ID) super.insertRepetition(11, rep); 659 } 660 661 662 /** 663 * Inserts a repetition of 664 * PEO-11: "Event Outcome" at a specific index 665 * 666 * @param rep The repetition index (0-indexed) 667 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 668 */ 669 public ID insertPeo11_EventOutcome(int rep) throws HL7Exception { 670 return (ID) super.insertRepetition(11, rep); 671 } 672 673 674 /** 675 * Removes a repetition of 676 * PEO-11: "Event Outcome" at a specific index 677 * 678 * @param rep The repetition index (0-indexed) 679 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 680 */ 681 public ID removeEventOutcome(int rep) throws HL7Exception { 682 return (ID) super.removeRepetition(11, rep); 683 } 684 685 686 /** 687 * Removes a repetition of 688 * PEO-11: "Event Outcome" at a specific index 689 * 690 * @param rep The repetition index (0-indexed) 691 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 692 */ 693 public ID removePeo11_EventOutcome(int rep) throws HL7Exception { 694 return (ID) super.removeRepetition(11, rep); 695 } 696 697 698 699 700 /** 701 * Returns 702 * PEO-12: "Patient Outcome" - creates it if necessary 703 */ 704 public ID getPatientOutcome() { 705 ID retVal = this.getTypedField(12, 0); 706 return retVal; 707 } 708 709 /** 710 * Returns 711 * PEO-12: "Patient Outcome" - creates it if necessary 712 */ 713 public ID getPeo12_PatientOutcome() { 714 ID retVal = this.getTypedField(12, 0); 715 return retVal; 716 } 717 718 719 /** 720 * Returns all repetitions of Event Description From Others (PEO-13). 721 */ 722 public FT[] getEventDescriptionFromOthers() { 723 FT[] retVal = this.getTypedField(13, new FT[0]); 724 return retVal; 725 } 726 727 728 /** 729 * Returns all repetitions of Event Description From Others (PEO-13). 730 */ 731 public FT[] getPeo13_EventDescriptionFromOthers() { 732 FT[] retVal = this.getTypedField(13, new FT[0]); 733 return retVal; 734 } 735 736 737 /** 738 * Returns a count of the current number of repetitions of Event Description From Others (PEO-13). 739 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 740 * it will return zero. 741 */ 742 public int getEventDescriptionFromOthersReps() { 743 return this.getReps(13); 744 } 745 746 747 /** 748 * Returns a specific repetition of 749 * PEO-13: "Event Description From Others" - creates it if necessary 750 * 751 * @param rep The repetition index (0-indexed) 752 */ 753 public FT getEventDescriptionFromOthers(int rep) { 754 FT retVal = this.getTypedField(13, rep); 755 return retVal; 756 } 757 758 /** 759 * Returns a specific repetition of 760 * PEO-13: "Event Description From Others" - creates it if necessary 761 * 762 * @param rep The repetition index (0-indexed) 763 */ 764 public FT getPeo13_EventDescriptionFromOthers(int rep) { 765 FT retVal = this.getTypedField(13, rep); 766 return retVal; 767 } 768 769 /** 770 * Returns a count of the current number of repetitions of Event Description From Others (PEO-13). 771 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 772 * it will return zero. 773 */ 774 public int getPeo13_EventDescriptionFromOthersReps() { 775 return this.getReps(13); 776 } 777 778 779 /** 780 * Inserts a repetition of 781 * PEO-13: "Event Description From Others" at a specific index 782 * 783 * @param rep The repetition index (0-indexed) 784 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 785 */ 786 public FT insertEventDescriptionFromOthers(int rep) throws HL7Exception { 787 return (FT) super.insertRepetition(13, rep); 788 } 789 790 791 /** 792 * Inserts a repetition of 793 * PEO-13: "Event Description From Others" at a specific index 794 * 795 * @param rep The repetition index (0-indexed) 796 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 797 */ 798 public FT insertPeo13_EventDescriptionFromOthers(int rep) throws HL7Exception { 799 return (FT) super.insertRepetition(13, rep); 800 } 801 802 803 /** 804 * Removes a repetition of 805 * PEO-13: "Event Description From Others" at a specific index 806 * 807 * @param rep The repetition index (0-indexed) 808 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 809 */ 810 public FT removeEventDescriptionFromOthers(int rep) throws HL7Exception { 811 return (FT) super.removeRepetition(13, rep); 812 } 813 814 815 /** 816 * Removes a repetition of 817 * PEO-13: "Event Description From Others" at a specific index 818 * 819 * @param rep The repetition index (0-indexed) 820 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 821 */ 822 public FT removePeo13_EventDescriptionFromOthers(int rep) throws HL7Exception { 823 return (FT) super.removeRepetition(13, rep); 824 } 825 826 827 828 /** 829 * Returns all repetitions of Event From Original Reporter (PEO-14). 830 */ 831 public FT[] getEventFromOriginalReporter() { 832 FT[] retVal = this.getTypedField(14, new FT[0]); 833 return retVal; 834 } 835 836 837 /** 838 * Returns all repetitions of Event From Original Reporter (PEO-14). 839 */ 840 public FT[] getPeo14_EventFromOriginalReporter() { 841 FT[] retVal = this.getTypedField(14, new FT[0]); 842 return retVal; 843 } 844 845 846 /** 847 * Returns a count of the current number of repetitions of Event From Original Reporter (PEO-14). 848 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 849 * it will return zero. 850 */ 851 public int getEventFromOriginalReporterReps() { 852 return this.getReps(14); 853 } 854 855 856 /** 857 * Returns a specific repetition of 858 * PEO-14: "Event From Original Reporter" - creates it if necessary 859 * 860 * @param rep The repetition index (0-indexed) 861 */ 862 public FT getEventFromOriginalReporter(int rep) { 863 FT retVal = this.getTypedField(14, rep); 864 return retVal; 865 } 866 867 /** 868 * Returns a specific repetition of 869 * PEO-14: "Event From Original Reporter" - creates it if necessary 870 * 871 * @param rep The repetition index (0-indexed) 872 */ 873 public FT getPeo14_EventFromOriginalReporter(int rep) { 874 FT retVal = this.getTypedField(14, rep); 875 return retVal; 876 } 877 878 /** 879 * Returns a count of the current number of repetitions of Event From Original Reporter (PEO-14). 880 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 881 * it will return zero. 882 */ 883 public int getPeo14_EventFromOriginalReporterReps() { 884 return this.getReps(14); 885 } 886 887 888 /** 889 * Inserts a repetition of 890 * PEO-14: "Event From Original Reporter" at a specific index 891 * 892 * @param rep The repetition index (0-indexed) 893 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 894 */ 895 public FT insertEventFromOriginalReporter(int rep) throws HL7Exception { 896 return (FT) super.insertRepetition(14, rep); 897 } 898 899 900 /** 901 * Inserts a repetition of 902 * PEO-14: "Event From Original Reporter" at a specific index 903 * 904 * @param rep The repetition index (0-indexed) 905 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 906 */ 907 public FT insertPeo14_EventFromOriginalReporter(int rep) throws HL7Exception { 908 return (FT) super.insertRepetition(14, rep); 909 } 910 911 912 /** 913 * Removes a repetition of 914 * PEO-14: "Event From Original Reporter" at a specific index 915 * 916 * @param rep The repetition index (0-indexed) 917 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 918 */ 919 public FT removeEventFromOriginalReporter(int rep) throws HL7Exception { 920 return (FT) super.removeRepetition(14, rep); 921 } 922 923 924 /** 925 * Removes a repetition of 926 * PEO-14: "Event From Original Reporter" at a specific index 927 * 928 * @param rep The repetition index (0-indexed) 929 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 930 */ 931 public FT removePeo14_EventFromOriginalReporter(int rep) throws HL7Exception { 932 return (FT) super.removeRepetition(14, rep); 933 } 934 935 936 937 /** 938 * Returns all repetitions of Event Description From Patient (PEO-15). 939 */ 940 public FT[] getEventDescriptionFromPatient() { 941 FT[] retVal = this.getTypedField(15, new FT[0]); 942 return retVal; 943 } 944 945 946 /** 947 * Returns all repetitions of Event Description From Patient (PEO-15). 948 */ 949 public FT[] getPeo15_EventDescriptionFromPatient() { 950 FT[] retVal = this.getTypedField(15, new FT[0]); 951 return retVal; 952 } 953 954 955 /** 956 * Returns a count of the current number of repetitions of Event Description From Patient (PEO-15). 957 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 958 * it will return zero. 959 */ 960 public int getEventDescriptionFromPatientReps() { 961 return this.getReps(15); 962 } 963 964 965 /** 966 * Returns a specific repetition of 967 * PEO-15: "Event Description From Patient" - creates it if necessary 968 * 969 * @param rep The repetition index (0-indexed) 970 */ 971 public FT getEventDescriptionFromPatient(int rep) { 972 FT retVal = this.getTypedField(15, rep); 973 return retVal; 974 } 975 976 /** 977 * Returns a specific repetition of 978 * PEO-15: "Event Description From Patient" - creates it if necessary 979 * 980 * @param rep The repetition index (0-indexed) 981 */ 982 public FT getPeo15_EventDescriptionFromPatient(int rep) { 983 FT retVal = this.getTypedField(15, rep); 984 return retVal; 985 } 986 987 /** 988 * Returns a count of the current number of repetitions of Event Description From Patient (PEO-15). 989 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 990 * it will return zero. 991 */ 992 public int getPeo15_EventDescriptionFromPatientReps() { 993 return this.getReps(15); 994 } 995 996 997 /** 998 * Inserts a repetition of 999 * PEO-15: "Event Description From Patient" at a specific index 1000 * 1001 * @param rep The repetition index (0-indexed) 1002 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1003 */ 1004 public FT insertEventDescriptionFromPatient(int rep) throws HL7Exception { 1005 return (FT) super.insertRepetition(15, rep); 1006 } 1007 1008 1009 /** 1010 * Inserts a repetition of 1011 * PEO-15: "Event Description From Patient" at a specific index 1012 * 1013 * @param rep The repetition index (0-indexed) 1014 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1015 */ 1016 public FT insertPeo15_EventDescriptionFromPatient(int rep) throws HL7Exception { 1017 return (FT) super.insertRepetition(15, rep); 1018 } 1019 1020 1021 /** 1022 * Removes a repetition of 1023 * PEO-15: "Event Description From Patient" at a specific index 1024 * 1025 * @param rep The repetition index (0-indexed) 1026 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1027 */ 1028 public FT removeEventDescriptionFromPatient(int rep) throws HL7Exception { 1029 return (FT) super.removeRepetition(15, rep); 1030 } 1031 1032 1033 /** 1034 * Removes a repetition of 1035 * PEO-15: "Event Description From Patient" at a specific index 1036 * 1037 * @param rep The repetition index (0-indexed) 1038 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1039 */ 1040 public FT removePeo15_EventDescriptionFromPatient(int rep) throws HL7Exception { 1041 return (FT) super.removeRepetition(15, rep); 1042 } 1043 1044 1045 1046 /** 1047 * Returns all repetitions of Event Description From Practitioner (PEO-16). 1048 */ 1049 public FT[] getEventDescriptionFromPractitioner() { 1050 FT[] retVal = this.getTypedField(16, new FT[0]); 1051 return retVal; 1052 } 1053 1054 1055 /** 1056 * Returns all repetitions of Event Description From Practitioner (PEO-16). 1057 */ 1058 public FT[] getPeo16_EventDescriptionFromPractitioner() { 1059 FT[] retVal = this.getTypedField(16, new FT[0]); 1060 return retVal; 1061 } 1062 1063 1064 /** 1065 * Returns a count of the current number of repetitions of Event Description From Practitioner (PEO-16). 1066 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1067 * it will return zero. 1068 */ 1069 public int getEventDescriptionFromPractitionerReps() { 1070 return this.getReps(16); 1071 } 1072 1073 1074 /** 1075 * Returns a specific repetition of 1076 * PEO-16: "Event Description From Practitioner" - creates it if necessary 1077 * 1078 * @param rep The repetition index (0-indexed) 1079 */ 1080 public FT getEventDescriptionFromPractitioner(int rep) { 1081 FT retVal = this.getTypedField(16, rep); 1082 return retVal; 1083 } 1084 1085 /** 1086 * Returns a specific repetition of 1087 * PEO-16: "Event Description From Practitioner" - creates it if necessary 1088 * 1089 * @param rep The repetition index (0-indexed) 1090 */ 1091 public FT getPeo16_EventDescriptionFromPractitioner(int rep) { 1092 FT retVal = this.getTypedField(16, rep); 1093 return retVal; 1094 } 1095 1096 /** 1097 * Returns a count of the current number of repetitions of Event Description From Practitioner (PEO-16). 1098 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1099 * it will return zero. 1100 */ 1101 public int getPeo16_EventDescriptionFromPractitionerReps() { 1102 return this.getReps(16); 1103 } 1104 1105 1106 /** 1107 * Inserts a repetition of 1108 * PEO-16: "Event Description From Practitioner" at a specific index 1109 * 1110 * @param rep The repetition index (0-indexed) 1111 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1112 */ 1113 public FT insertEventDescriptionFromPractitioner(int rep) throws HL7Exception { 1114 return (FT) super.insertRepetition(16, rep); 1115 } 1116 1117 1118 /** 1119 * Inserts a repetition of 1120 * PEO-16: "Event Description From Practitioner" at a specific index 1121 * 1122 * @param rep The repetition index (0-indexed) 1123 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1124 */ 1125 public FT insertPeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception { 1126 return (FT) super.insertRepetition(16, rep); 1127 } 1128 1129 1130 /** 1131 * Removes a repetition of 1132 * PEO-16: "Event Description From Practitioner" at a specific index 1133 * 1134 * @param rep The repetition index (0-indexed) 1135 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1136 */ 1137 public FT removeEventDescriptionFromPractitioner(int rep) throws HL7Exception { 1138 return (FT) super.removeRepetition(16, rep); 1139 } 1140 1141 1142 /** 1143 * Removes a repetition of 1144 * PEO-16: "Event Description From Practitioner" at a specific index 1145 * 1146 * @param rep The repetition index (0-indexed) 1147 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1148 */ 1149 public FT removePeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception { 1150 return (FT) super.removeRepetition(16, rep); 1151 } 1152 1153 1154 1155 /** 1156 * Returns all repetitions of Event Description From Autopsy (PEO-17). 1157 */ 1158 public FT[] getEventDescriptionFromAutopsy() { 1159 FT[] retVal = this.getTypedField(17, new FT[0]); 1160 return retVal; 1161 } 1162 1163 1164 /** 1165 * Returns all repetitions of Event Description From Autopsy (PEO-17). 1166 */ 1167 public FT[] getPeo17_EventDescriptionFromAutopsy() { 1168 FT[] retVal = this.getTypedField(17, new FT[0]); 1169 return retVal; 1170 } 1171 1172 1173 /** 1174 * Returns a count of the current number of repetitions of Event Description From Autopsy (PEO-17). 1175 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1176 * it will return zero. 1177 */ 1178 public int getEventDescriptionFromAutopsyReps() { 1179 return this.getReps(17); 1180 } 1181 1182 1183 /** 1184 * Returns a specific repetition of 1185 * PEO-17: "Event Description From Autopsy" - creates it if necessary 1186 * 1187 * @param rep The repetition index (0-indexed) 1188 */ 1189 public FT getEventDescriptionFromAutopsy(int rep) { 1190 FT retVal = this.getTypedField(17, rep); 1191 return retVal; 1192 } 1193 1194 /** 1195 * Returns a specific repetition of 1196 * PEO-17: "Event Description From Autopsy" - creates it if necessary 1197 * 1198 * @param rep The repetition index (0-indexed) 1199 */ 1200 public FT getPeo17_EventDescriptionFromAutopsy(int rep) { 1201 FT retVal = this.getTypedField(17, rep); 1202 return retVal; 1203 } 1204 1205 /** 1206 * Returns a count of the current number of repetitions of Event Description From Autopsy (PEO-17). 1207 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1208 * it will return zero. 1209 */ 1210 public int getPeo17_EventDescriptionFromAutopsyReps() { 1211 return this.getReps(17); 1212 } 1213 1214 1215 /** 1216 * Inserts a repetition of 1217 * PEO-17: "Event Description From Autopsy" at a specific index 1218 * 1219 * @param rep The repetition index (0-indexed) 1220 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1221 */ 1222 public FT insertEventDescriptionFromAutopsy(int rep) throws HL7Exception { 1223 return (FT) super.insertRepetition(17, rep); 1224 } 1225 1226 1227 /** 1228 * Inserts a repetition of 1229 * PEO-17: "Event Description From Autopsy" at a specific index 1230 * 1231 * @param rep The repetition index (0-indexed) 1232 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1233 */ 1234 public FT insertPeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception { 1235 return (FT) super.insertRepetition(17, rep); 1236 } 1237 1238 1239 /** 1240 * Removes a repetition of 1241 * PEO-17: "Event Description From Autopsy" at a specific index 1242 * 1243 * @param rep The repetition index (0-indexed) 1244 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1245 */ 1246 public FT removeEventDescriptionFromAutopsy(int rep) throws HL7Exception { 1247 return (FT) super.removeRepetition(17, rep); 1248 } 1249 1250 1251 /** 1252 * Removes a repetition of 1253 * PEO-17: "Event Description From Autopsy" at a specific index 1254 * 1255 * @param rep The repetition index (0-indexed) 1256 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1257 */ 1258 public FT removePeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception { 1259 return (FT) super.removeRepetition(17, rep); 1260 } 1261 1262 1263 1264 /** 1265 * Returns all repetitions of Cause Of Death (PEO-18). 1266 */ 1267 public CE[] getCauseOfDeath() { 1268 CE[] retVal = this.getTypedField(18, new CE[0]); 1269 return retVal; 1270 } 1271 1272 1273 /** 1274 * Returns all repetitions of Cause Of Death (PEO-18). 1275 */ 1276 public CE[] getPeo18_CauseOfDeath() { 1277 CE[] retVal = this.getTypedField(18, new CE[0]); 1278 return retVal; 1279 } 1280 1281 1282 /** 1283 * Returns a count of the current number of repetitions of Cause Of Death (PEO-18). 1284 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1285 * it will return zero. 1286 */ 1287 public int getCauseOfDeathReps() { 1288 return this.getReps(18); 1289 } 1290 1291 1292 /** 1293 * Returns a specific repetition of 1294 * PEO-18: "Cause Of Death" - creates it if necessary 1295 * 1296 * @param rep The repetition index (0-indexed) 1297 */ 1298 public CE getCauseOfDeath(int rep) { 1299 CE retVal = this.getTypedField(18, rep); 1300 return retVal; 1301 } 1302 1303 /** 1304 * Returns a specific repetition of 1305 * PEO-18: "Cause Of Death" - creates it if necessary 1306 * 1307 * @param rep The repetition index (0-indexed) 1308 */ 1309 public CE getPeo18_CauseOfDeath(int rep) { 1310 CE retVal = this.getTypedField(18, rep); 1311 return retVal; 1312 } 1313 1314 /** 1315 * Returns a count of the current number of repetitions of Cause Of Death (PEO-18). 1316 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1317 * it will return zero. 1318 */ 1319 public int getPeo18_CauseOfDeathReps() { 1320 return this.getReps(18); 1321 } 1322 1323 1324 /** 1325 * Inserts a repetition of 1326 * PEO-18: "Cause Of Death" at a specific index 1327 * 1328 * @param rep The repetition index (0-indexed) 1329 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1330 */ 1331 public CE insertCauseOfDeath(int rep) throws HL7Exception { 1332 return (CE) super.insertRepetition(18, rep); 1333 } 1334 1335 1336 /** 1337 * Inserts a repetition of 1338 * PEO-18: "Cause Of Death" at a specific index 1339 * 1340 * @param rep The repetition index (0-indexed) 1341 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1342 */ 1343 public CE insertPeo18_CauseOfDeath(int rep) throws HL7Exception { 1344 return (CE) super.insertRepetition(18, rep); 1345 } 1346 1347 1348 /** 1349 * Removes a repetition of 1350 * PEO-18: "Cause Of Death" at a specific index 1351 * 1352 * @param rep The repetition index (0-indexed) 1353 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1354 */ 1355 public CE removeCauseOfDeath(int rep) throws HL7Exception { 1356 return (CE) super.removeRepetition(18, rep); 1357 } 1358 1359 1360 /** 1361 * Removes a repetition of 1362 * PEO-18: "Cause Of Death" at a specific index 1363 * 1364 * @param rep The repetition index (0-indexed) 1365 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1366 */ 1367 public CE removePeo18_CauseOfDeath(int rep) throws HL7Exception { 1368 return (CE) super.removeRepetition(18, rep); 1369 } 1370 1371 1372 1373 1374 /** 1375 * Returns 1376 * PEO-19: "Primary Observer Name" - creates it if necessary 1377 */ 1378 public XPN getPrimaryObserverName() { 1379 XPN retVal = this.getTypedField(19, 0); 1380 return retVal; 1381 } 1382 1383 /** 1384 * Returns 1385 * PEO-19: "Primary Observer Name" - creates it if necessary 1386 */ 1387 public XPN getPeo19_PrimaryObserverName() { 1388 XPN retVal = this.getTypedField(19, 0); 1389 return retVal; 1390 } 1391 1392 1393 /** 1394 * Returns all repetitions of Primary Observer Address (PEO-20). 1395 */ 1396 public XAD[] getPrimaryObserverAddress() { 1397 XAD[] retVal = this.getTypedField(20, new XAD[0]); 1398 return retVal; 1399 } 1400 1401 1402 /** 1403 * Returns all repetitions of Primary Observer Address (PEO-20). 1404 */ 1405 public XAD[] getPeo20_PrimaryObserverAddress() { 1406 XAD[] retVal = this.getTypedField(20, new XAD[0]); 1407 return retVal; 1408 } 1409 1410 1411 /** 1412 * Returns a count of the current number of repetitions of Primary Observer Address (PEO-20). 1413 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1414 * it will return zero. 1415 */ 1416 public int getPrimaryObserverAddressReps() { 1417 return this.getReps(20); 1418 } 1419 1420 1421 /** 1422 * Returns a specific repetition of 1423 * PEO-20: "Primary Observer Address" - creates it if necessary 1424 * 1425 * @param rep The repetition index (0-indexed) 1426 */ 1427 public XAD getPrimaryObserverAddress(int rep) { 1428 XAD retVal = this.getTypedField(20, rep); 1429 return retVal; 1430 } 1431 1432 /** 1433 * Returns a specific repetition of 1434 * PEO-20: "Primary Observer Address" - creates it if necessary 1435 * 1436 * @param rep The repetition index (0-indexed) 1437 */ 1438 public XAD getPeo20_PrimaryObserverAddress(int rep) { 1439 XAD retVal = this.getTypedField(20, rep); 1440 return retVal; 1441 } 1442 1443 /** 1444 * Returns a count of the current number of repetitions of Primary Observer Address (PEO-20). 1445 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1446 * it will return zero. 1447 */ 1448 public int getPeo20_PrimaryObserverAddressReps() { 1449 return this.getReps(20); 1450 } 1451 1452 1453 /** 1454 * Inserts a repetition of 1455 * PEO-20: "Primary Observer Address" at a specific index 1456 * 1457 * @param rep The repetition index (0-indexed) 1458 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1459 */ 1460 public XAD insertPrimaryObserverAddress(int rep) throws HL7Exception { 1461 return (XAD) super.insertRepetition(20, rep); 1462 } 1463 1464 1465 /** 1466 * Inserts a repetition of 1467 * PEO-20: "Primary Observer Address" at a specific index 1468 * 1469 * @param rep The repetition index (0-indexed) 1470 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1471 */ 1472 public XAD insertPeo20_PrimaryObserverAddress(int rep) throws HL7Exception { 1473 return (XAD) super.insertRepetition(20, rep); 1474 } 1475 1476 1477 /** 1478 * Removes a repetition of 1479 * PEO-20: "Primary Observer Address" at a specific index 1480 * 1481 * @param rep The repetition index (0-indexed) 1482 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1483 */ 1484 public XAD removePrimaryObserverAddress(int rep) throws HL7Exception { 1485 return (XAD) super.removeRepetition(20, rep); 1486 } 1487 1488 1489 /** 1490 * Removes a repetition of 1491 * PEO-20: "Primary Observer Address" at a specific index 1492 * 1493 * @param rep The repetition index (0-indexed) 1494 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1495 */ 1496 public XAD removePeo20_PrimaryObserverAddress(int rep) throws HL7Exception { 1497 return (XAD) super.removeRepetition(20, rep); 1498 } 1499 1500 1501 1502 /** 1503 * Returns all repetitions of Primary Observer Telephone (PEO-21). 1504 */ 1505 public XTN[] getPrimaryObserverTelephone() { 1506 XTN[] retVal = this.getTypedField(21, new XTN[0]); 1507 return retVal; 1508 } 1509 1510 1511 /** 1512 * Returns all repetitions of Primary Observer Telephone (PEO-21). 1513 */ 1514 public XTN[] getPeo21_PrimaryObserverTelephone() { 1515 XTN[] retVal = this.getTypedField(21, new XTN[0]); 1516 return retVal; 1517 } 1518 1519 1520 /** 1521 * Returns a count of the current number of repetitions of Primary Observer Telephone (PEO-21). 1522 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1523 * it will return zero. 1524 */ 1525 public int getPrimaryObserverTelephoneReps() { 1526 return this.getReps(21); 1527 } 1528 1529 1530 /** 1531 * Returns a specific repetition of 1532 * PEO-21: "Primary Observer Telephone" - creates it if necessary 1533 * 1534 * @param rep The repetition index (0-indexed) 1535 */ 1536 public XTN getPrimaryObserverTelephone(int rep) { 1537 XTN retVal = this.getTypedField(21, rep); 1538 return retVal; 1539 } 1540 1541 /** 1542 * Returns a specific repetition of 1543 * PEO-21: "Primary Observer Telephone" - creates it if necessary 1544 * 1545 * @param rep The repetition index (0-indexed) 1546 */ 1547 public XTN getPeo21_PrimaryObserverTelephone(int rep) { 1548 XTN retVal = this.getTypedField(21, rep); 1549 return retVal; 1550 } 1551 1552 /** 1553 * Returns a count of the current number of repetitions of Primary Observer Telephone (PEO-21). 1554 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 1555 * it will return zero. 1556 */ 1557 public int getPeo21_PrimaryObserverTelephoneReps() { 1558 return this.getReps(21); 1559 } 1560 1561 1562 /** 1563 * Inserts a repetition of 1564 * PEO-21: "Primary Observer Telephone" at a specific index 1565 * 1566 * @param rep The repetition index (0-indexed) 1567 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1568 */ 1569 public XTN insertPrimaryObserverTelephone(int rep) throws HL7Exception { 1570 return (XTN) super.insertRepetition(21, rep); 1571 } 1572 1573 1574 /** 1575 * Inserts a repetition of 1576 * PEO-21: "Primary Observer Telephone" at a specific index 1577 * 1578 * @param rep The repetition index (0-indexed) 1579 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1580 */ 1581 public XTN insertPeo21_PrimaryObserverTelephone(int rep) throws HL7Exception { 1582 return (XTN) super.insertRepetition(21, rep); 1583 } 1584 1585 1586 /** 1587 * Removes a repetition of 1588 * PEO-21: "Primary Observer Telephone" at a specific index 1589 * 1590 * @param rep The repetition index (0-indexed) 1591 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1592 */ 1593 public XTN removePrimaryObserverTelephone(int rep) throws HL7Exception { 1594 return (XTN) super.removeRepetition(21, rep); 1595 } 1596 1597 1598 /** 1599 * Removes a repetition of 1600 * PEO-21: "Primary Observer Telephone" at a specific index 1601 * 1602 * @param rep The repetition index (0-indexed) 1603 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 1604 */ 1605 public XTN removePeo21_PrimaryObserverTelephone(int rep) throws HL7Exception { 1606 return (XTN) super.removeRepetition(21, rep); 1607 } 1608 1609 1610 1611 1612 /** 1613 * Returns 1614 * PEO-22: "Primary Observer’s Qualification" - creates it if necessary 1615 */ 1616 public ID getPrimaryObserverSQualification() { 1617 ID retVal = this.getTypedField(22, 0); 1618 return retVal; 1619 } 1620 1621 /** 1622 * Returns 1623 * PEO-22: "Primary Observer’s Qualification" - creates it if necessary 1624 */ 1625 public ID getPeo22_PrimaryObserverSQualification() { 1626 ID retVal = this.getTypedField(22, 0); 1627 return retVal; 1628 } 1629 1630 1631 1632 /** 1633 * Returns 1634 * PEO-23: "Confirmation Provided By" - creates it if necessary 1635 */ 1636 public ID getConfirmationProvidedBy() { 1637 ID retVal = this.getTypedField(23, 0); 1638 return retVal; 1639 } 1640 1641 /** 1642 * Returns 1643 * PEO-23: "Confirmation Provided By" - creates it if necessary 1644 */ 1645 public ID getPeo23_ConfirmationProvidedBy() { 1646 ID retVal = this.getTypedField(23, 0); 1647 return retVal; 1648 } 1649 1650 1651 1652 /** 1653 * Returns 1654 * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary 1655 */ 1656 public TS getPrimaryObserverAwareDateTime() { 1657 TS retVal = this.getTypedField(24, 0); 1658 return retVal; 1659 } 1660 1661 /** 1662 * Returns 1663 * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary 1664 */ 1665 public TS getPeo24_PrimaryObserverAwareDateTime() { 1666 TS retVal = this.getTypedField(24, 0); 1667 return retVal; 1668 } 1669 1670 1671 1672 /** 1673 * Returns 1674 * PEO-25: "Primary Observer’s Identity May Be Divulged" - creates it if necessary 1675 */ 1676 public ID getPrimaryObserverSIdentityMayBeDivulged() { 1677 ID retVal = this.getTypedField(25, 0); 1678 return retVal; 1679 } 1680 1681 /** 1682 * Returns 1683 * PEO-25: "Primary Observer’s Identity May Be Divulged" - creates it if necessary 1684 */ 1685 public ID getPeo25_PrimaryObserverSIdentityMayBeDivulged() { 1686 ID retVal = this.getTypedField(25, 0); 1687 return retVal; 1688 } 1689 1690 1691 1692 1693 1694 /** {@inheritDoc} */ 1695 protected Type createNewTypeWithoutReflection(int field) { 1696 switch (field) { 1697 case 0: return new CE(getMessage()); 1698 case 1: return new CE(getMessage()); 1699 case 2: return new TS(getMessage()); 1700 case 3: return new TS(getMessage()); 1701 case 4: return new TS(getMessage()); 1702 case 5: return new TS(getMessage()); 1703 case 6: return new XAD(getMessage()); 1704 case 7: return new ID(getMessage(), new Integer( 237 )); 1705 case 8: return new ID(getMessage(), new Integer( 238 )); 1706 case 9: return new ID(getMessage(), new Integer( 239 )); 1707 case 10: return new ID(getMessage(), new Integer( 240 )); 1708 case 11: return new ID(getMessage(), new Integer( 241 )); 1709 case 12: return new FT(getMessage()); 1710 case 13: return new FT(getMessage()); 1711 case 14: return new FT(getMessage()); 1712 case 15: return new FT(getMessage()); 1713 case 16: return new FT(getMessage()); 1714 case 17: return new CE(getMessage()); 1715 case 18: return new XPN(getMessage()); 1716 case 19: return new XAD(getMessage()); 1717 case 20: return new XTN(getMessage()); 1718 case 21: return new ID(getMessage(), new Integer( 242 )); 1719 case 22: return new ID(getMessage(), new Integer( 242 )); 1720 case 23: return new TS(getMessage()); 1721 case 24: return new ID(getMessage(), new Integer( 243 )); 1722 default: return null; 1723 } 1724 } 1725 1726 1727 } 1728