001/* 002 * This class is an auto-generated source file for a HAPI 003 * HL7 v2.x standard structure class. 004 * 005 * For more information, visit: http://hl7api.sourceforge.net/ 006 * 007 * The contents of this file are subject to the Mozilla Public License Version 1.1 008 * (the "License"); you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 010 * Software distributed under the License is distributed on an "AS IS" basis, 011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 012 * specific language governing rights and limitations under the License. 013 * 014 * The Original Code is "[file_name]". Description: 015 * "[one_line_description]" 016 * 017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 018 * 2012. All Rights Reserved. 019 * 020 * Contributor(s): ______________________________________. 021 * 022 * Alternatively, the contents of this file may be used under the terms of the 023 * GNU General Public License (the "GPL"), in which case the provisions of the GPL are 024 * applicable instead of those above. If you wish to allow use of your version of this 025 * file only under the terms of the GPL and not to allow others to use your version 026 * of this file under the MPL, indicate your decision by deleting the provisions above 027 * and replace them with the notice and other provisions required by the GPL License. 028 * If you do not delete the provisions above, a recipient may use your version of 029 * this file under either the MPL or the GPL. 030 * 031 */ 032 033 034package ca.uhn.hl7v2.model.v26.segment; 035 036// import ca.uhn.hl7v2.model.v26.group.*; 037import ca.uhn.hl7v2.model.v26.datatype.*; 038import ca.uhn.hl7v2.HL7Exception; 039import ca.uhn.hl7v2.parser.ModelClassFactory; 040import ca.uhn.hl7v2.parser.DefaultModelClassFactory; 041import ca.uhn.hl7v2.model.AbstractMessage; 042import ca.uhn.hl7v2.model.Group; 043import ca.uhn.hl7v2.model.Type; 044import ca.uhn.hl7v2.model.AbstractSegment; 045import ca.uhn.hl7v2.model.Varies; 046 047/** 048 *<p>Represents an HL7 PRB message segment (Problem Details). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>PRB-1: Action Code (ID) <b> </b> 052 * <li>PRB-2: Action Date/Time (DTM) <b> </b> 053 * <li>PRB-3: Problem ID (CWE) <b> </b> 054 * <li>PRB-4: Problem Instance ID (EI) <b> </b> 055 * <li>PRB-5: Episode of Care ID (EI) <b>optional </b> 056 * <li>PRB-6: Problem List Priority (NM) <b>optional </b> 057 * <li>PRB-7: Problem Established Date/Time (DTM) <b>optional </b> 058 * <li>PRB-8: Anticipated Problem Resolution Date/Time (DTM) <b>optional </b> 059 * <li>PRB-9: Actual Problem Resolution Date/Time (DTM) <b>optional </b> 060 * <li>PRB-10: Problem Classification (CWE) <b>optional </b> 061 * <li>PRB-11: Problem Management Discipline (CWE) <b>optional repeating</b> 062 * <li>PRB-12: Problem Persistence (CWE) <b>optional </b> 063 * <li>PRB-13: Problem Confirmation Status (CWE) <b>optional </b> 064 * <li>PRB-14: Problem Life Cycle Status (CWE) <b>optional </b> 065 * <li>PRB-15: Problem Life Cycle Status Date/Time (DTM) <b>optional </b> 066 * <li>PRB-16: Problem Date of Onset (DTM) <b>optional </b> 067 * <li>PRB-17: Problem Onset Text (ST) <b>optional </b> 068 * <li>PRB-18: Problem Ranking (CWE) <b>optional </b> 069 * <li>PRB-19: Certainty of Problem (CWE) <b>optional </b> 070 * <li>PRB-20: Probability of Problem (0-1) (NM) <b>optional </b> 071 * <li>PRB-21: Individual Awareness of Problem (CWE) <b>optional </b> 072 * <li>PRB-22: Problem Prognosis (CWE) <b>optional </b> 073 * <li>PRB-23: Individual Awareness of Prognosis (CWE) <b>optional </b> 074 * <li>PRB-24: Family/Significant Other Awareness of Problem/Prognosis (ST) <b>optional </b> 075 * <li>PRB-25: Security/Sensitivity (CWE) <b>optional </b> 076 * <li>PRB-26: Problem Severity (CWE) <b>optional </b> 077 * <li>PRB-27: Problem Perspective (CWE) <b>optional </b> 078 * <li>PRB-28: Mood Code (CNE) <b>optional </b> 079 * </ul> 080 */ 081@SuppressWarnings("unused") 082public class PRB extends AbstractSegment { 083 084 /** 085 * Creates a new PRB segment 086 */ 087 public PRB(Group parent, ModelClassFactory factory) { 088 super(parent, factory); 089 init(factory); 090 } 091 092 private void init(ModelClassFactory factory) { 093 try { 094 this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(287) }, "Action Code"); 095 this.add(DTM.class, true, 1, 24, new Object[]{ getMessage() }, "Action Date/Time"); 096 this.add(CWE.class, true, 1, 705, new Object[]{ getMessage() }, "Problem ID"); 097 this.add(EI.class, true, 1, 60, new Object[]{ getMessage() }, "Problem Instance ID"); 098 this.add(EI.class, false, 1, 60, new Object[]{ getMessage() }, "Episode of Care ID"); 099 this.add(NM.class, false, 1, 60, new Object[]{ getMessage() }, "Problem List Priority"); 100 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Problem Established Date/Time"); 101 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Anticipated Problem Resolution Date/Time"); 102 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Actual Problem Resolution Date/Time"); 103 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Classification"); 104 this.add(CWE.class, false, 0, 705, new Object[]{ getMessage() }, "Problem Management Discipline"); 105 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Persistence"); 106 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Confirmation Status"); 107 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Life Cycle Status"); 108 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Problem Life Cycle Status Date/Time"); 109 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Problem Date of Onset"); 110 this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Problem Onset Text"); 111 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Ranking"); 112 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Certainty of Problem"); 113 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Probability of Problem (0-1)"); 114 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Individual Awareness of Problem"); 115 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Prognosis"); 116 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Individual Awareness of Prognosis"); 117 this.add(ST.class, false, 1, 200, new Object[]{ getMessage() }, "Family/Significant Other Awareness of Problem/Prognosis"); 118 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Security/Sensitivity"); 119 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Severity"); 120 this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Problem Perspective"); 121 this.add(CNE.class, false, 1, 60, new Object[]{ getMessage() }, "Mood Code"); 122 } catch(HL7Exception e) { 123 log.error("Unexpected error creating PRB - this is probably a bug in the source code generator.", e); 124 } 125 } 126 127 128 129 /** 130 * Returns 131 * PRB-1: "Action Code" - creates it if necessary 132 */ 133 public ID getActionCode() { 134 ID retVal = this.getTypedField(1, 0); 135 return retVal; 136 } 137 138 /** 139 * Returns 140 * PRB-1: "Action Code" - creates it if necessary 141 */ 142 public ID getPrb1_ActionCode() { 143 ID retVal = this.getTypedField(1, 0); 144 return retVal; 145 } 146 147 148 149 /** 150 * Returns 151 * PRB-2: "Action Date/Time" - creates it if necessary 152 */ 153 public DTM getActionDateTime() { 154 DTM retVal = this.getTypedField(2, 0); 155 return retVal; 156 } 157 158 /** 159 * Returns 160 * PRB-2: "Action Date/Time" - creates it if necessary 161 */ 162 public DTM getPrb2_ActionDateTime() { 163 DTM retVal = this.getTypedField(2, 0); 164 return retVal; 165 } 166 167 168 169 /** 170 * Returns 171 * PRB-3: "Problem ID" - creates it if necessary 172 */ 173 public CWE getProblemID() { 174 CWE retVal = this.getTypedField(3, 0); 175 return retVal; 176 } 177 178 /** 179 * Returns 180 * PRB-3: "Problem ID" - creates it if necessary 181 */ 182 public CWE getPrb3_ProblemID() { 183 CWE retVal = this.getTypedField(3, 0); 184 return retVal; 185 } 186 187 188 189 /** 190 * Returns 191 * PRB-4: "Problem Instance ID" - creates it if necessary 192 */ 193 public EI getProblemInstanceID() { 194 EI retVal = this.getTypedField(4, 0); 195 return retVal; 196 } 197 198 /** 199 * Returns 200 * PRB-4: "Problem Instance ID" - creates it if necessary 201 */ 202 public EI getPrb4_ProblemInstanceID() { 203 EI retVal = this.getTypedField(4, 0); 204 return retVal; 205 } 206 207 208 209 /** 210 * Returns 211 * PRB-5: "Episode of Care ID" - creates it if necessary 212 */ 213 public EI getEpisodeOfCareID() { 214 EI retVal = this.getTypedField(5, 0); 215 return retVal; 216 } 217 218 /** 219 * Returns 220 * PRB-5: "Episode of Care ID" - creates it if necessary 221 */ 222 public EI getPrb5_EpisodeOfCareID() { 223 EI retVal = this.getTypedField(5, 0); 224 return retVal; 225 } 226 227 228 229 /** 230 * Returns 231 * PRB-6: "Problem List Priority" - creates it if necessary 232 */ 233 public NM getProblemListPriority() { 234 NM retVal = this.getTypedField(6, 0); 235 return retVal; 236 } 237 238 /** 239 * Returns 240 * PRB-6: "Problem List Priority" - creates it if necessary 241 */ 242 public NM getPrb6_ProblemListPriority() { 243 NM retVal = this.getTypedField(6, 0); 244 return retVal; 245 } 246 247 248 249 /** 250 * Returns 251 * PRB-7: "Problem Established Date/Time" - creates it if necessary 252 */ 253 public DTM getProblemEstablishedDateTime() { 254 DTM retVal = this.getTypedField(7, 0); 255 return retVal; 256 } 257 258 /** 259 * Returns 260 * PRB-7: "Problem Established Date/Time" - creates it if necessary 261 */ 262 public DTM getPrb7_ProblemEstablishedDateTime() { 263 DTM retVal = this.getTypedField(7, 0); 264 return retVal; 265 } 266 267 268 269 /** 270 * Returns 271 * PRB-8: "Anticipated Problem Resolution Date/Time" - creates it if necessary 272 */ 273 public DTM getAnticipatedProblemResolutionDateTime() { 274 DTM retVal = this.getTypedField(8, 0); 275 return retVal; 276 } 277 278 /** 279 * Returns 280 * PRB-8: "Anticipated Problem Resolution Date/Time" - creates it if necessary 281 */ 282 public DTM getPrb8_AnticipatedProblemResolutionDateTime() { 283 DTM retVal = this.getTypedField(8, 0); 284 return retVal; 285 } 286 287 288 289 /** 290 * Returns 291 * PRB-9: "Actual Problem Resolution Date/Time" - creates it if necessary 292 */ 293 public DTM getActualProblemResolutionDateTime() { 294 DTM retVal = this.getTypedField(9, 0); 295 return retVal; 296 } 297 298 /** 299 * Returns 300 * PRB-9: "Actual Problem Resolution Date/Time" - creates it if necessary 301 */ 302 public DTM getPrb9_ActualProblemResolutionDateTime() { 303 DTM retVal = this.getTypedField(9, 0); 304 return retVal; 305 } 306 307 308 309 /** 310 * Returns 311 * PRB-10: "Problem Classification" - creates it if necessary 312 */ 313 public CWE getProblemClassification() { 314 CWE retVal = this.getTypedField(10, 0); 315 return retVal; 316 } 317 318 /** 319 * Returns 320 * PRB-10: "Problem Classification" - creates it if necessary 321 */ 322 public CWE getPrb10_ProblemClassification() { 323 CWE retVal = this.getTypedField(10, 0); 324 return retVal; 325 } 326 327 328 /** 329 * Returns all repetitions of Problem Management Discipline (PRB-11). 330 */ 331 public CWE[] getProblemManagementDiscipline() { 332 CWE[] retVal = this.getTypedField(11, new CWE[0]); 333 return retVal; 334 } 335 336 337 /** 338 * Returns all repetitions of Problem Management Discipline (PRB-11). 339 */ 340 public CWE[] getPrb11_ProblemManagementDiscipline() { 341 CWE[] retVal = this.getTypedField(11, new CWE[0]); 342 return retVal; 343 } 344 345 346 /** 347 * Returns a count of the current number of repetitions of Problem Management Discipline (PRB-11). 348 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 349 * it will return zero. 350 */ 351 public int getProblemManagementDisciplineReps() { 352 return this.getReps(11); 353 } 354 355 356 /** 357 * Returns a specific repetition of 358 * PRB-11: "Problem Management Discipline" - creates it if necessary 359 * 360 * @param rep The repetition index (0-indexed) 361 */ 362 public CWE getProblemManagementDiscipline(int rep) { 363 CWE retVal = this.getTypedField(11, rep); 364 return retVal; 365 } 366 367 /** 368 * Returns a specific repetition of 369 * PRB-11: "Problem Management Discipline" - creates it if necessary 370 * 371 * @param rep The repetition index (0-indexed) 372 */ 373 public CWE getPrb11_ProblemManagementDiscipline(int rep) { 374 CWE retVal = this.getTypedField(11, rep); 375 return retVal; 376 } 377 378 /** 379 * Returns a count of the current number of repetitions of Problem Management Discipline (PRB-11). 380 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 381 * it will return zero. 382 */ 383 public int getPrb11_ProblemManagementDisciplineReps() { 384 return this.getReps(11); 385 } 386 387 388 /** 389 * Inserts a repetition of 390 * PRB-11: "Problem Management Discipline" at a specific index 391 * 392 * @param rep The repetition index (0-indexed) 393 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 394 */ 395 public CWE insertProblemManagementDiscipline(int rep) throws HL7Exception { 396 return (CWE) super.insertRepetition(11, rep); 397 } 398 399 400 /** 401 * Inserts a repetition of 402 * PRB-11: "Problem Management Discipline" at a specific index 403 * 404 * @param rep The repetition index (0-indexed) 405 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 406 */ 407 public CWE insertPrb11_ProblemManagementDiscipline(int rep) throws HL7Exception { 408 return (CWE) super.insertRepetition(11, rep); 409 } 410 411 412 /** 413 * Removes a repetition of 414 * PRB-11: "Problem Management Discipline" at a specific index 415 * 416 * @param rep The repetition index (0-indexed) 417 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 418 */ 419 public CWE removeProblemManagementDiscipline(int rep) throws HL7Exception { 420 return (CWE) super.removeRepetition(11, rep); 421 } 422 423 424 /** 425 * Removes a repetition of 426 * PRB-11: "Problem Management Discipline" at a specific index 427 * 428 * @param rep The repetition index (0-indexed) 429 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 430 */ 431 public CWE removePrb11_ProblemManagementDiscipline(int rep) throws HL7Exception { 432 return (CWE) super.removeRepetition(11, rep); 433 } 434 435 436 437 438 /** 439 * Returns 440 * PRB-12: "Problem Persistence" - creates it if necessary 441 */ 442 public CWE getProblemPersistence() { 443 CWE retVal = this.getTypedField(12, 0); 444 return retVal; 445 } 446 447 /** 448 * Returns 449 * PRB-12: "Problem Persistence" - creates it if necessary 450 */ 451 public CWE getPrb12_ProblemPersistence() { 452 CWE retVal = this.getTypedField(12, 0); 453 return retVal; 454 } 455 456 457 458 /** 459 * Returns 460 * PRB-13: "Problem Confirmation Status" - creates it if necessary 461 */ 462 public CWE getProblemConfirmationStatus() { 463 CWE retVal = this.getTypedField(13, 0); 464 return retVal; 465 } 466 467 /** 468 * Returns 469 * PRB-13: "Problem Confirmation Status" - creates it if necessary 470 */ 471 public CWE getPrb13_ProblemConfirmationStatus() { 472 CWE retVal = this.getTypedField(13, 0); 473 return retVal; 474 } 475 476 477 478 /** 479 * Returns 480 * PRB-14: "Problem Life Cycle Status" - creates it if necessary 481 */ 482 public CWE getProblemLifeCycleStatus() { 483 CWE retVal = this.getTypedField(14, 0); 484 return retVal; 485 } 486 487 /** 488 * Returns 489 * PRB-14: "Problem Life Cycle Status" - creates it if necessary 490 */ 491 public CWE getPrb14_ProblemLifeCycleStatus() { 492 CWE retVal = this.getTypedField(14, 0); 493 return retVal; 494 } 495 496 497 498 /** 499 * Returns 500 * PRB-15: "Problem Life Cycle Status Date/Time" - creates it if necessary 501 */ 502 public DTM getProblemLifeCycleStatusDateTime() { 503 DTM retVal = this.getTypedField(15, 0); 504 return retVal; 505 } 506 507 /** 508 * Returns 509 * PRB-15: "Problem Life Cycle Status Date/Time" - creates it if necessary 510 */ 511 public DTM getPrb15_ProblemLifeCycleStatusDateTime() { 512 DTM retVal = this.getTypedField(15, 0); 513 return retVal; 514 } 515 516 517 518 /** 519 * Returns 520 * PRB-16: "Problem Date of Onset" - creates it if necessary 521 */ 522 public DTM getProblemDateOfOnset() { 523 DTM retVal = this.getTypedField(16, 0); 524 return retVal; 525 } 526 527 /** 528 * Returns 529 * PRB-16: "Problem Date of Onset" - creates it if necessary 530 */ 531 public DTM getPrb16_ProblemDateOfOnset() { 532 DTM retVal = this.getTypedField(16, 0); 533 return retVal; 534 } 535 536 537 538 /** 539 * Returns 540 * PRB-17: "Problem Onset Text" - creates it if necessary 541 */ 542 public ST getProblemOnsetText() { 543 ST retVal = this.getTypedField(17, 0); 544 return retVal; 545 } 546 547 /** 548 * Returns 549 * PRB-17: "Problem Onset Text" - creates it if necessary 550 */ 551 public ST getPrb17_ProblemOnsetText() { 552 ST retVal = this.getTypedField(17, 0); 553 return retVal; 554 } 555 556 557 558 /** 559 * Returns 560 * PRB-18: "Problem Ranking" - creates it if necessary 561 */ 562 public CWE getProblemRanking() { 563 CWE retVal = this.getTypedField(18, 0); 564 return retVal; 565 } 566 567 /** 568 * Returns 569 * PRB-18: "Problem Ranking" - creates it if necessary 570 */ 571 public CWE getPrb18_ProblemRanking() { 572 CWE retVal = this.getTypedField(18, 0); 573 return retVal; 574 } 575 576 577 578 /** 579 * Returns 580 * PRB-19: "Certainty of Problem" - creates it if necessary 581 */ 582 public CWE getCertaintyOfProblem() { 583 CWE retVal = this.getTypedField(19, 0); 584 return retVal; 585 } 586 587 /** 588 * Returns 589 * PRB-19: "Certainty of Problem" - creates it if necessary 590 */ 591 public CWE getPrb19_CertaintyOfProblem() { 592 CWE retVal = this.getTypedField(19, 0); 593 return retVal; 594 } 595 596 597 598 /** 599 * Returns 600 * PRB-20: "Probability of Problem (0-1)" - creates it if necessary 601 */ 602 public NM getProbabilityOfProblem() { 603 NM retVal = this.getTypedField(20, 0); 604 return retVal; 605 } 606 607 /** 608 * Returns 609 * PRB-20: "Probability of Problem (0-1)" - creates it if necessary 610 */ 611 public NM getPrb20_ProbabilityOfProblem() { 612 NM retVal = this.getTypedField(20, 0); 613 return retVal; 614 } 615 616 617 618 /** 619 * Returns 620 * PRB-21: "Individual Awareness of Problem" - creates it if necessary 621 */ 622 public CWE getIndividualAwarenessOfProblem() { 623 CWE retVal = this.getTypedField(21, 0); 624 return retVal; 625 } 626 627 /** 628 * Returns 629 * PRB-21: "Individual Awareness of Problem" - creates it if necessary 630 */ 631 public CWE getPrb21_IndividualAwarenessOfProblem() { 632 CWE retVal = this.getTypedField(21, 0); 633 return retVal; 634 } 635 636 637 638 /** 639 * Returns 640 * PRB-22: "Problem Prognosis" - creates it if necessary 641 */ 642 public CWE getProblemPrognosis() { 643 CWE retVal = this.getTypedField(22, 0); 644 return retVal; 645 } 646 647 /** 648 * Returns 649 * PRB-22: "Problem Prognosis" - creates it if necessary 650 */ 651 public CWE getPrb22_ProblemPrognosis() { 652 CWE retVal = this.getTypedField(22, 0); 653 return retVal; 654 } 655 656 657 658 /** 659 * Returns 660 * PRB-23: "Individual Awareness of Prognosis" - creates it if necessary 661 */ 662 public CWE getIndividualAwarenessOfPrognosis() { 663 CWE retVal = this.getTypedField(23, 0); 664 return retVal; 665 } 666 667 /** 668 * Returns 669 * PRB-23: "Individual Awareness of Prognosis" - creates it if necessary 670 */ 671 public CWE getPrb23_IndividualAwarenessOfPrognosis() { 672 CWE retVal = this.getTypedField(23, 0); 673 return retVal; 674 } 675 676 677 678 /** 679 * Returns 680 * PRB-24: "Family/Significant Other Awareness of Problem/Prognosis" - creates it if necessary 681 */ 682 public ST getFamilySignificantOtherAwarenessOfProblemPrognosis() { 683 ST retVal = this.getTypedField(24, 0); 684 return retVal; 685 } 686 687 /** 688 * Returns 689 * PRB-24: "Family/Significant Other Awareness of Problem/Prognosis" - creates it if necessary 690 */ 691 public ST getPrb24_FamilySignificantOtherAwarenessOfProblemPrognosis() { 692 ST retVal = this.getTypedField(24, 0); 693 return retVal; 694 } 695 696 697 698 /** 699 * Returns 700 * PRB-25: "Security/Sensitivity" - creates it if necessary 701 */ 702 public CWE getSecuritySensitivity() { 703 CWE retVal = this.getTypedField(25, 0); 704 return retVal; 705 } 706 707 /** 708 * Returns 709 * PRB-25: "Security/Sensitivity" - creates it if necessary 710 */ 711 public CWE getPrb25_SecuritySensitivity() { 712 CWE retVal = this.getTypedField(25, 0); 713 return retVal; 714 } 715 716 717 718 /** 719 * Returns 720 * PRB-26: "Problem Severity" - creates it if necessary 721 */ 722 public CWE getProblemSeverity() { 723 CWE retVal = this.getTypedField(26, 0); 724 return retVal; 725 } 726 727 /** 728 * Returns 729 * PRB-26: "Problem Severity" - creates it if necessary 730 */ 731 public CWE getPrb26_ProblemSeverity() { 732 CWE retVal = this.getTypedField(26, 0); 733 return retVal; 734 } 735 736 737 738 /** 739 * Returns 740 * PRB-27: "Problem Perspective" - creates it if necessary 741 */ 742 public CWE getProblemPerspective() { 743 CWE retVal = this.getTypedField(27, 0); 744 return retVal; 745 } 746 747 /** 748 * Returns 749 * PRB-27: "Problem Perspective" - creates it if necessary 750 */ 751 public CWE getPrb27_ProblemPerspective() { 752 CWE retVal = this.getTypedField(27, 0); 753 return retVal; 754 } 755 756 757 758 /** 759 * Returns 760 * PRB-28: "Mood Code" - creates it if necessary 761 */ 762 public CNE getMoodCode() { 763 CNE retVal = this.getTypedField(28, 0); 764 return retVal; 765 } 766 767 /** 768 * Returns 769 * PRB-28: "Mood Code" - creates it if necessary 770 */ 771 public CNE getPrb28_MoodCode() { 772 CNE retVal = this.getTypedField(28, 0); 773 return retVal; 774 } 775 776 777 778 779 780 /** {@inheritDoc} */ 781 protected Type createNewTypeWithoutReflection(int field) { 782 switch (field) { 783 case 0: return new ID(getMessage(), new Integer( 287 )); 784 case 1: return new DTM(getMessage()); 785 case 2: return new CWE(getMessage()); 786 case 3: return new EI(getMessage()); 787 case 4: return new EI(getMessage()); 788 case 5: return new NM(getMessage()); 789 case 6: return new DTM(getMessage()); 790 case 7: return new DTM(getMessage()); 791 case 8: return new DTM(getMessage()); 792 case 9: return new CWE(getMessage()); 793 case 10: return new CWE(getMessage()); 794 case 11: return new CWE(getMessage()); 795 case 12: return new CWE(getMessage()); 796 case 13: return new CWE(getMessage()); 797 case 14: return new DTM(getMessage()); 798 case 15: return new DTM(getMessage()); 799 case 16: return new ST(getMessage()); 800 case 17: return new CWE(getMessage()); 801 case 18: return new CWE(getMessage()); 802 case 19: return new NM(getMessage()); 803 case 20: return new CWE(getMessage()); 804 case 21: return new CWE(getMessage()); 805 case 22: return new CWE(getMessage()); 806 case 23: return new ST(getMessage()); 807 case 24: return new CWE(getMessage()); 808 case 25: return new CWE(getMessage()); 809 case 26: return new CWE(getMessage()); 810 case 27: return new CNE(getMessage()); 811 default: return null; 812 } 813 } 814 815 816} 817