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