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 CER message segment (Certificate Detail). 049 * This segment has the following fields:</p> 050 * <ul> 051 * <li>CER-1: Set ID - CER (SI) <b> </b> 052 * <li>CER-2: Serial Number (ST) <b>optional </b> 053 * <li>CER-3: Version (ST) <b>optional </b> 054 * <li>CER-4: Granting Authority (XON) <b>optional </b> 055 * <li>CER-5: Issuing Authority (XCN) <b>optional </b> 056 * <li>CER-6: Signature of Issuing Authority (ED) <b>optional </b> 057 * <li>CER-7: Granting Country (ID) <b>optional </b> 058 * <li>CER-8: Granting State/Province (CWE) <b>optional </b> 059 * <li>CER-9: Granting County/Parish (CWE) <b>optional </b> 060 * <li>CER-10: Certificate Type (CWE) <b>optional </b> 061 * <li>CER-11: Certificate Domain (CWE) <b>optional </b> 062 * <li>CER-12: Subject ID (ID) <b>optional </b> 063 * <li>CER-13: Subject Name (ST) <b> </b> 064 * <li>CER-14: Subject Directory Attribute Extension (CWE) <b>optional repeating</b> 065 * <li>CER-15: Subject Public Key Info (CWE) <b>optional </b> 066 * <li>CER-16: Authority Key Identifier (CWE) <b>optional </b> 067 * <li>CER-17: Basic Constraint (ID) <b>optional </b> 068 * <li>CER-18: CRL Distribution Point (CWE) <b>optional repeating</b> 069 * <li>CER-19: Jurisdiction Country (ID) <b>optional </b> 070 * <li>CER-20: Jurisdiction State/Province (CWE) <b>optional </b> 071 * <li>CER-21: Jurisdiction County/Parish (CWE) <b>optional </b> 072 * <li>CER-22: Jurisdiction Breadth (CWE) <b>optional repeating</b> 073 * <li>CER-23: Granting Date (DTM) <b>optional </b> 074 * <li>CER-24: Issuing Date (DTM) <b>optional </b> 075 * <li>CER-25: Activation Date (DTM) <b>optional </b> 076 * <li>CER-26: Inactivation Date (DTM) <b>optional </b> 077 * <li>CER-27: Expiration Date (DTM) <b>optional </b> 078 * <li>CER-28: Renewal Date (DTM) <b>optional </b> 079 * <li>CER-29: Revocation Date (DTM) <b>optional </b> 080 * <li>CER-30: Revocation Reason Code (CWE) <b>optional </b> 081 * <li>CER-31: Certificate Status Code (CWE) <b>optional </b> 082 * </ul> 083 */ 084@SuppressWarnings("unused") 085public class CER extends AbstractSegment { 086 087 /** 088 * Creates a new CER segment 089 */ 090 public CER(Group parent, ModelClassFactory factory) { 091 super(parent, factory); 092 init(factory); 093 } 094 095 private void init(ModelClassFactory factory) { 096 try { 097 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID - CER"); 098 this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Serial Number"); 099 this.add(ST.class, false, 1, 80, new Object[]{ getMessage() }, "Version"); 100 this.add(XON.class, false, 1, 250, new Object[]{ getMessage() }, "Granting Authority"); 101 this.add(XCN.class, false, 1, 250, new Object[]{ getMessage() }, "Issuing Authority"); 102 this.add(ED.class, false, 1, 65536, new Object[]{ getMessage() }, "Signature of Issuing Authority"); 103 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(399) }, "Granting Country"); 104 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Granting State/Province"); 105 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Granting County/Parish"); 106 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Certificate Type"); 107 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Certificate Domain"); 108 this.add(ID.class, false, 1, 250, new Object[]{ getMessage(), new Integer(0) }, "Subject ID"); 109 this.add(ST.class, true, 1, 250, new Object[]{ getMessage() }, "Subject Name"); 110 this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Subject Directory Attribute Extension"); 111 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Subject Public Key Info"); 112 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Authority Key Identifier"); 113 this.add(ID.class, false, 1, 250, new Object[]{ getMessage(), new Integer(136) }, "Basic Constraint"); 114 this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "CRL Distribution Point"); 115 this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(399) }, "Jurisdiction Country"); 116 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Jurisdiction State/Province"); 117 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Jurisdiction County/Parish"); 118 this.add(CWE.class, false, 0, 250, new Object[]{ getMessage() }, "Jurisdiction Breadth"); 119 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Granting Date"); 120 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Issuing Date"); 121 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Activation Date"); 122 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Inactivation Date"); 123 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Expiration Date"); 124 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Renewal Date"); 125 this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Revocation Date"); 126 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Revocation Reason Code"); 127 this.add(CWE.class, false, 1, 250, new Object[]{ getMessage() }, "Certificate Status Code"); 128 } catch(HL7Exception e) { 129 log.error("Unexpected error creating CER - this is probably a bug in the source code generator.", e); 130 } 131 } 132 133 134 135 /** 136 * Returns 137 * CER-1: "Set ID - CER" - creates it if necessary 138 */ 139 public SI getSetIDCER() { 140 SI retVal = this.getTypedField(1, 0); 141 return retVal; 142 } 143 144 /** 145 * Returns 146 * CER-1: "Set ID - CER" - creates it if necessary 147 */ 148 public SI getCer1_SetIDCER() { 149 SI retVal = this.getTypedField(1, 0); 150 return retVal; 151 } 152 153 154 155 /** 156 * Returns 157 * CER-2: "Serial Number" - creates it if necessary 158 */ 159 public ST getSerialNumber() { 160 ST retVal = this.getTypedField(2, 0); 161 return retVal; 162 } 163 164 /** 165 * Returns 166 * CER-2: "Serial Number" - creates it if necessary 167 */ 168 public ST getCer2_SerialNumber() { 169 ST retVal = this.getTypedField(2, 0); 170 return retVal; 171 } 172 173 174 175 /** 176 * Returns 177 * CER-3: "Version" - creates it if necessary 178 */ 179 public ST getVersion() { 180 ST retVal = this.getTypedField(3, 0); 181 return retVal; 182 } 183 184 /** 185 * Returns 186 * CER-3: "Version" - creates it if necessary 187 */ 188 public ST getCer3_Version() { 189 ST retVal = this.getTypedField(3, 0); 190 return retVal; 191 } 192 193 194 195 /** 196 * Returns 197 * CER-4: "Granting Authority" - creates it if necessary 198 */ 199 public XON getGrantingAuthority() { 200 XON retVal = this.getTypedField(4, 0); 201 return retVal; 202 } 203 204 /** 205 * Returns 206 * CER-4: "Granting Authority" - creates it if necessary 207 */ 208 public XON getCer4_GrantingAuthority() { 209 XON retVal = this.getTypedField(4, 0); 210 return retVal; 211 } 212 213 214 215 /** 216 * Returns 217 * CER-5: "Issuing Authority" - creates it if necessary 218 */ 219 public XCN getIssuingAuthority() { 220 XCN retVal = this.getTypedField(5, 0); 221 return retVal; 222 } 223 224 /** 225 * Returns 226 * CER-5: "Issuing Authority" - creates it if necessary 227 */ 228 public XCN getCer5_IssuingAuthority() { 229 XCN retVal = this.getTypedField(5, 0); 230 return retVal; 231 } 232 233 234 235 /** 236 * Returns 237 * CER-6: "Signature of Issuing Authority" - creates it if necessary 238 */ 239 public ED getSignatureOfIssuingAuthority() { 240 ED retVal = this.getTypedField(6, 0); 241 return retVal; 242 } 243 244 /** 245 * Returns 246 * CER-6: "Signature of Issuing Authority" - creates it if necessary 247 */ 248 public ED getCer6_SignatureOfIssuingAuthority() { 249 ED retVal = this.getTypedField(6, 0); 250 return retVal; 251 } 252 253 254 255 /** 256 * Returns 257 * CER-7: "Granting Country" - creates it if necessary 258 */ 259 public ID getGrantingCountry() { 260 ID retVal = this.getTypedField(7, 0); 261 return retVal; 262 } 263 264 /** 265 * Returns 266 * CER-7: "Granting Country" - creates it if necessary 267 */ 268 public ID getCer7_GrantingCountry() { 269 ID retVal = this.getTypedField(7, 0); 270 return retVal; 271 } 272 273 274 275 /** 276 * Returns 277 * CER-8: "Granting State/Province" - creates it if necessary 278 */ 279 public CWE getGrantingStateProvince() { 280 CWE retVal = this.getTypedField(8, 0); 281 return retVal; 282 } 283 284 /** 285 * Returns 286 * CER-8: "Granting State/Province" - creates it if necessary 287 */ 288 public CWE getCer8_GrantingStateProvince() { 289 CWE retVal = this.getTypedField(8, 0); 290 return retVal; 291 } 292 293 294 295 /** 296 * Returns 297 * CER-9: "Granting County/Parish" - creates it if necessary 298 */ 299 public CWE getGrantingCountyParish() { 300 CWE retVal = this.getTypedField(9, 0); 301 return retVal; 302 } 303 304 /** 305 * Returns 306 * CER-9: "Granting County/Parish" - creates it if necessary 307 */ 308 public CWE getCer9_GrantingCountyParish() { 309 CWE retVal = this.getTypedField(9, 0); 310 return retVal; 311 } 312 313 314 315 /** 316 * Returns 317 * CER-10: "Certificate Type" - creates it if necessary 318 */ 319 public CWE getCertificateType() { 320 CWE retVal = this.getTypedField(10, 0); 321 return retVal; 322 } 323 324 /** 325 * Returns 326 * CER-10: "Certificate Type" - creates it if necessary 327 */ 328 public CWE getCer10_CertificateType() { 329 CWE retVal = this.getTypedField(10, 0); 330 return retVal; 331 } 332 333 334 335 /** 336 * Returns 337 * CER-11: "Certificate Domain" - creates it if necessary 338 */ 339 public CWE getCertificateDomain() { 340 CWE retVal = this.getTypedField(11, 0); 341 return retVal; 342 } 343 344 /** 345 * Returns 346 * CER-11: "Certificate Domain" - creates it if necessary 347 */ 348 public CWE getCer11_CertificateDomain() { 349 CWE retVal = this.getTypedField(11, 0); 350 return retVal; 351 } 352 353 354 355 /** 356 * Returns 357 * CER-12: "Subject ID" - creates it if necessary 358 */ 359 public ID getSubjectID() { 360 ID retVal = this.getTypedField(12, 0); 361 return retVal; 362 } 363 364 /** 365 * Returns 366 * CER-12: "Subject ID" - creates it if necessary 367 */ 368 public ID getCer12_SubjectID() { 369 ID retVal = this.getTypedField(12, 0); 370 return retVal; 371 } 372 373 374 375 /** 376 * Returns 377 * CER-13: "Subject Name" - creates it if necessary 378 */ 379 public ST getSubjectName() { 380 ST retVal = this.getTypedField(13, 0); 381 return retVal; 382 } 383 384 /** 385 * Returns 386 * CER-13: "Subject Name" - creates it if necessary 387 */ 388 public ST getCer13_SubjectName() { 389 ST retVal = this.getTypedField(13, 0); 390 return retVal; 391 } 392 393 394 /** 395 * Returns all repetitions of Subject Directory Attribute Extension (CER-14). 396 */ 397 public CWE[] getSubjectDirectoryAttributeExtension() { 398 CWE[] retVal = this.getTypedField(14, new CWE[0]); 399 return retVal; 400 } 401 402 403 /** 404 * Returns all repetitions of Subject Directory Attribute Extension (CER-14). 405 */ 406 public CWE[] getCer14_SubjectDirectoryAttributeExtension() { 407 CWE[] retVal = this.getTypedField(14, new CWE[0]); 408 return retVal; 409 } 410 411 412 /** 413 * Returns a count of the current number of repetitions of Subject Directory Attribute Extension (CER-14). 414 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 415 * it will return zero. 416 */ 417 public int getSubjectDirectoryAttributeExtensionReps() { 418 return this.getReps(14); 419 } 420 421 422 /** 423 * Returns a specific repetition of 424 * CER-14: "Subject Directory Attribute Extension" - creates it if necessary 425 * 426 * @param rep The repetition index (0-indexed) 427 */ 428 public CWE getSubjectDirectoryAttributeExtension(int rep) { 429 CWE retVal = this.getTypedField(14, rep); 430 return retVal; 431 } 432 433 /** 434 * Returns a specific repetition of 435 * CER-14: "Subject Directory Attribute Extension" - creates it if necessary 436 * 437 * @param rep The repetition index (0-indexed) 438 */ 439 public CWE getCer14_SubjectDirectoryAttributeExtension(int rep) { 440 CWE retVal = this.getTypedField(14, rep); 441 return retVal; 442 } 443 444 /** 445 * Returns a count of the current number of repetitions of Subject Directory Attribute Extension (CER-14). 446 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 447 * it will return zero. 448 */ 449 public int getCer14_SubjectDirectoryAttributeExtensionReps() { 450 return this.getReps(14); 451 } 452 453 454 /** 455 * Inserts a repetition of 456 * CER-14: "Subject Directory Attribute Extension" at a specific index 457 * 458 * @param rep The repetition index (0-indexed) 459 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 460 */ 461 public CWE insertSubjectDirectoryAttributeExtension(int rep) throws HL7Exception { 462 return (CWE) super.insertRepetition(14, rep); 463 } 464 465 466 /** 467 * Inserts a repetition of 468 * CER-14: "Subject Directory Attribute Extension" at a specific index 469 * 470 * @param rep The repetition index (0-indexed) 471 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 472 */ 473 public CWE insertCer14_SubjectDirectoryAttributeExtension(int rep) throws HL7Exception { 474 return (CWE) super.insertRepetition(14, rep); 475 } 476 477 478 /** 479 * Removes a repetition of 480 * CER-14: "Subject Directory Attribute Extension" at a specific index 481 * 482 * @param rep The repetition index (0-indexed) 483 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 484 */ 485 public CWE removeSubjectDirectoryAttributeExtension(int rep) throws HL7Exception { 486 return (CWE) super.removeRepetition(14, rep); 487 } 488 489 490 /** 491 * Removes a repetition of 492 * CER-14: "Subject Directory Attribute Extension" at a specific index 493 * 494 * @param rep The repetition index (0-indexed) 495 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 496 */ 497 public CWE removeCer14_SubjectDirectoryAttributeExtension(int rep) throws HL7Exception { 498 return (CWE) super.removeRepetition(14, rep); 499 } 500 501 502 503 504 /** 505 * Returns 506 * CER-15: "Subject Public Key Info" - creates it if necessary 507 */ 508 public CWE getSubjectPublicKeyInfo() { 509 CWE retVal = this.getTypedField(15, 0); 510 return retVal; 511 } 512 513 /** 514 * Returns 515 * CER-15: "Subject Public Key Info" - creates it if necessary 516 */ 517 public CWE getCer15_SubjectPublicKeyInfo() { 518 CWE retVal = this.getTypedField(15, 0); 519 return retVal; 520 } 521 522 523 524 /** 525 * Returns 526 * CER-16: "Authority Key Identifier" - creates it if necessary 527 */ 528 public CWE getAuthorityKeyIdentifier() { 529 CWE retVal = this.getTypedField(16, 0); 530 return retVal; 531 } 532 533 /** 534 * Returns 535 * CER-16: "Authority Key Identifier" - creates it if necessary 536 */ 537 public CWE getCer16_AuthorityKeyIdentifier() { 538 CWE retVal = this.getTypedField(16, 0); 539 return retVal; 540 } 541 542 543 544 /** 545 * Returns 546 * CER-17: "Basic Constraint" - creates it if necessary 547 */ 548 public ID getBasicConstraint() { 549 ID retVal = this.getTypedField(17, 0); 550 return retVal; 551 } 552 553 /** 554 * Returns 555 * CER-17: "Basic Constraint" - creates it if necessary 556 */ 557 public ID getCer17_BasicConstraint() { 558 ID retVal = this.getTypedField(17, 0); 559 return retVal; 560 } 561 562 563 /** 564 * Returns all repetitions of CRL Distribution Point (CER-18). 565 */ 566 public CWE[] getCRLDistributionPoint() { 567 CWE[] retVal = this.getTypedField(18, new CWE[0]); 568 return retVal; 569 } 570 571 572 /** 573 * Returns all repetitions of CRL Distribution Point (CER-18). 574 */ 575 public CWE[] getCer18_CRLDistributionPoint() { 576 CWE[] retVal = this.getTypedField(18, new CWE[0]); 577 return retVal; 578 } 579 580 581 /** 582 * Returns a count of the current number of repetitions of CRL Distribution Point (CER-18). 583 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 584 * it will return zero. 585 */ 586 public int getCRLDistributionPointReps() { 587 return this.getReps(18); 588 } 589 590 591 /** 592 * Returns a specific repetition of 593 * CER-18: "CRL Distribution Point" - creates it if necessary 594 * 595 * @param rep The repetition index (0-indexed) 596 */ 597 public CWE getCRLDistributionPoint(int rep) { 598 CWE retVal = this.getTypedField(18, rep); 599 return retVal; 600 } 601 602 /** 603 * Returns a specific repetition of 604 * CER-18: "CRL Distribution Point" - creates it if necessary 605 * 606 * @param rep The repetition index (0-indexed) 607 */ 608 public CWE getCer18_CRLDistributionPoint(int rep) { 609 CWE retVal = this.getTypedField(18, rep); 610 return retVal; 611 } 612 613 /** 614 * Returns a count of the current number of repetitions of CRL Distribution Point (CER-18). 615 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 616 * it will return zero. 617 */ 618 public int getCer18_CRLDistributionPointReps() { 619 return this.getReps(18); 620 } 621 622 623 /** 624 * Inserts a repetition of 625 * CER-18: "CRL Distribution Point" at a specific index 626 * 627 * @param rep The repetition index (0-indexed) 628 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 629 */ 630 public CWE insertCRLDistributionPoint(int rep) throws HL7Exception { 631 return (CWE) super.insertRepetition(18, rep); 632 } 633 634 635 /** 636 * Inserts a repetition of 637 * CER-18: "CRL Distribution Point" at a specific index 638 * 639 * @param rep The repetition index (0-indexed) 640 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 641 */ 642 public CWE insertCer18_CRLDistributionPoint(int rep) throws HL7Exception { 643 return (CWE) super.insertRepetition(18, rep); 644 } 645 646 647 /** 648 * Removes a repetition of 649 * CER-18: "CRL Distribution Point" at a specific index 650 * 651 * @param rep The repetition index (0-indexed) 652 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 653 */ 654 public CWE removeCRLDistributionPoint(int rep) throws HL7Exception { 655 return (CWE) super.removeRepetition(18, rep); 656 } 657 658 659 /** 660 * Removes a repetition of 661 * CER-18: "CRL Distribution Point" at a specific index 662 * 663 * @param rep The repetition index (0-indexed) 664 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 665 */ 666 public CWE removeCer18_CRLDistributionPoint(int rep) throws HL7Exception { 667 return (CWE) super.removeRepetition(18, rep); 668 } 669 670 671 672 673 /** 674 * Returns 675 * CER-19: "Jurisdiction Country" - creates it if necessary 676 */ 677 public ID getJurisdictionCountry() { 678 ID retVal = this.getTypedField(19, 0); 679 return retVal; 680 } 681 682 /** 683 * Returns 684 * CER-19: "Jurisdiction Country" - creates it if necessary 685 */ 686 public ID getCer19_JurisdictionCountry() { 687 ID retVal = this.getTypedField(19, 0); 688 return retVal; 689 } 690 691 692 693 /** 694 * Returns 695 * CER-20: "Jurisdiction State/Province" - creates it if necessary 696 */ 697 public CWE getJurisdictionStateProvince() { 698 CWE retVal = this.getTypedField(20, 0); 699 return retVal; 700 } 701 702 /** 703 * Returns 704 * CER-20: "Jurisdiction State/Province" - creates it if necessary 705 */ 706 public CWE getCer20_JurisdictionStateProvince() { 707 CWE retVal = this.getTypedField(20, 0); 708 return retVal; 709 } 710 711 712 713 /** 714 * Returns 715 * CER-21: "Jurisdiction County/Parish" - creates it if necessary 716 */ 717 public CWE getJurisdictionCountyParish() { 718 CWE retVal = this.getTypedField(21, 0); 719 return retVal; 720 } 721 722 /** 723 * Returns 724 * CER-21: "Jurisdiction County/Parish" - creates it if necessary 725 */ 726 public CWE getCer21_JurisdictionCountyParish() { 727 CWE retVal = this.getTypedField(21, 0); 728 return retVal; 729 } 730 731 732 /** 733 * Returns all repetitions of Jurisdiction Breadth (CER-22). 734 */ 735 public CWE[] getJurisdictionBreadth() { 736 CWE[] retVal = this.getTypedField(22, new CWE[0]); 737 return retVal; 738 } 739 740 741 /** 742 * Returns all repetitions of Jurisdiction Breadth (CER-22). 743 */ 744 public CWE[] getCer22_JurisdictionBreadth() { 745 CWE[] retVal = this.getTypedField(22, new CWE[0]); 746 return retVal; 747 } 748 749 750 /** 751 * Returns a count of the current number of repetitions of Jurisdiction Breadth (CER-22). 752 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 753 * it will return zero. 754 */ 755 public int getJurisdictionBreadthReps() { 756 return this.getReps(22); 757 } 758 759 760 /** 761 * Returns a specific repetition of 762 * CER-22: "Jurisdiction Breadth" - creates it if necessary 763 * 764 * @param rep The repetition index (0-indexed) 765 */ 766 public CWE getJurisdictionBreadth(int rep) { 767 CWE retVal = this.getTypedField(22, rep); 768 return retVal; 769 } 770 771 /** 772 * Returns a specific repetition of 773 * CER-22: "Jurisdiction Breadth" - creates it if necessary 774 * 775 * @param rep The repetition index (0-indexed) 776 */ 777 public CWE getCer22_JurisdictionBreadth(int rep) { 778 CWE retVal = this.getTypedField(22, rep); 779 return retVal; 780 } 781 782 /** 783 * Returns a count of the current number of repetitions of Jurisdiction Breadth (CER-22). 784 * This method does not create a repetition, so if no repetitions have currently been defined or accessed, 785 * it will return zero. 786 */ 787 public int getCer22_JurisdictionBreadthReps() { 788 return this.getReps(22); 789 } 790 791 792 /** 793 * Inserts a repetition of 794 * CER-22: "Jurisdiction Breadth" at a specific index 795 * 796 * @param rep The repetition index (0-indexed) 797 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 798 */ 799 public CWE insertJurisdictionBreadth(int rep) throws HL7Exception { 800 return (CWE) super.insertRepetition(22, rep); 801 } 802 803 804 /** 805 * Inserts a repetition of 806 * CER-22: "Jurisdiction Breadth" at a specific index 807 * 808 * @param rep The repetition index (0-indexed) 809 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 810 */ 811 public CWE insertCer22_JurisdictionBreadth(int rep) throws HL7Exception { 812 return (CWE) super.insertRepetition(22, rep); 813 } 814 815 816 /** 817 * Removes a repetition of 818 * CER-22: "Jurisdiction Breadth" at a specific index 819 * 820 * @param rep The repetition index (0-indexed) 821 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 822 */ 823 public CWE removeJurisdictionBreadth(int rep) throws HL7Exception { 824 return (CWE) super.removeRepetition(22, rep); 825 } 826 827 828 /** 829 * Removes a repetition of 830 * CER-22: "Jurisdiction Breadth" at a specific index 831 * 832 * @param rep The repetition index (0-indexed) 833 * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions) 834 */ 835 public CWE removeCer22_JurisdictionBreadth(int rep) throws HL7Exception { 836 return (CWE) super.removeRepetition(22, rep); 837 } 838 839 840 841 842 /** 843 * Returns 844 * CER-23: "Granting Date" - creates it if necessary 845 */ 846 public DTM getGrantingDate() { 847 DTM retVal = this.getTypedField(23, 0); 848 return retVal; 849 } 850 851 /** 852 * Returns 853 * CER-23: "Granting Date" - creates it if necessary 854 */ 855 public DTM getCer23_GrantingDate() { 856 DTM retVal = this.getTypedField(23, 0); 857 return retVal; 858 } 859 860 861 862 /** 863 * Returns 864 * CER-24: "Issuing Date" - creates it if necessary 865 */ 866 public DTM getIssuingDate() { 867 DTM retVal = this.getTypedField(24, 0); 868 return retVal; 869 } 870 871 /** 872 * Returns 873 * CER-24: "Issuing Date" - creates it if necessary 874 */ 875 public DTM getCer24_IssuingDate() { 876 DTM retVal = this.getTypedField(24, 0); 877 return retVal; 878 } 879 880 881 882 /** 883 * Returns 884 * CER-25: "Activation Date" - creates it if necessary 885 */ 886 public DTM getActivationDate() { 887 DTM retVal = this.getTypedField(25, 0); 888 return retVal; 889 } 890 891 /** 892 * Returns 893 * CER-25: "Activation Date" - creates it if necessary 894 */ 895 public DTM getCer25_ActivationDate() { 896 DTM retVal = this.getTypedField(25, 0); 897 return retVal; 898 } 899 900 901 902 /** 903 * Returns 904 * CER-26: "Inactivation Date" - creates it if necessary 905 */ 906 public DTM getInactivationDate() { 907 DTM retVal = this.getTypedField(26, 0); 908 return retVal; 909 } 910 911 /** 912 * Returns 913 * CER-26: "Inactivation Date" - creates it if necessary 914 */ 915 public DTM getCer26_InactivationDate() { 916 DTM retVal = this.getTypedField(26, 0); 917 return retVal; 918 } 919 920 921 922 /** 923 * Returns 924 * CER-27: "Expiration Date" - creates it if necessary 925 */ 926 public DTM getExpirationDate() { 927 DTM retVal = this.getTypedField(27, 0); 928 return retVal; 929 } 930 931 /** 932 * Returns 933 * CER-27: "Expiration Date" - creates it if necessary 934 */ 935 public DTM getCer27_ExpirationDate() { 936 DTM retVal = this.getTypedField(27, 0); 937 return retVal; 938 } 939 940 941 942 /** 943 * Returns 944 * CER-28: "Renewal Date" - creates it if necessary 945 */ 946 public DTM getRenewalDate() { 947 DTM retVal = this.getTypedField(28, 0); 948 return retVal; 949 } 950 951 /** 952 * Returns 953 * CER-28: "Renewal Date" - creates it if necessary 954 */ 955 public DTM getCer28_RenewalDate() { 956 DTM retVal = this.getTypedField(28, 0); 957 return retVal; 958 } 959 960 961 962 /** 963 * Returns 964 * CER-29: "Revocation Date" - creates it if necessary 965 */ 966 public DTM getRevocationDate() { 967 DTM retVal = this.getTypedField(29, 0); 968 return retVal; 969 } 970 971 /** 972 * Returns 973 * CER-29: "Revocation Date" - creates it if necessary 974 */ 975 public DTM getCer29_RevocationDate() { 976 DTM retVal = this.getTypedField(29, 0); 977 return retVal; 978 } 979 980 981 982 /** 983 * Returns 984 * CER-30: "Revocation Reason Code" - creates it if necessary 985 */ 986 public CWE getRevocationReasonCode() { 987 CWE retVal = this.getTypedField(30, 0); 988 return retVal; 989 } 990 991 /** 992 * Returns 993 * CER-30: "Revocation Reason Code" - creates it if necessary 994 */ 995 public CWE getCer30_RevocationReasonCode() { 996 CWE retVal = this.getTypedField(30, 0); 997 return retVal; 998 } 999 1000 1001 1002 /** 1003 * Returns 1004 * CER-31: "Certificate Status Code" - creates it if necessary 1005 */ 1006 public CWE getCertificateStatusCode() { 1007 CWE retVal = this.getTypedField(31, 0); 1008 return retVal; 1009 } 1010 1011 /** 1012 * Returns 1013 * CER-31: "Certificate Status Code" - creates it if necessary 1014 */ 1015 public CWE getCer31_CertificateStatusCode() { 1016 CWE retVal = this.getTypedField(31, 0); 1017 return retVal; 1018 } 1019 1020 1021 1022 1023 1024 /** {@inheritDoc} */ 1025 protected Type createNewTypeWithoutReflection(int field) { 1026 switch (field) { 1027 case 0: return new SI(getMessage()); 1028 case 1: return new ST(getMessage()); 1029 case 2: return new ST(getMessage()); 1030 case 3: return new XON(getMessage()); 1031 case 4: return new XCN(getMessage()); 1032 case 5: return new ED(getMessage()); 1033 case 6: return new ID(getMessage(), new Integer( 399 )); 1034 case 7: return new CWE(getMessage()); 1035 case 8: return new CWE(getMessage()); 1036 case 9: return new CWE(getMessage()); 1037 case 10: return new CWE(getMessage()); 1038 case 11: return new ID(getMessage(), new Integer( 0 )); 1039 case 12: return new ST(getMessage()); 1040 case 13: return new CWE(getMessage()); 1041 case 14: return new CWE(getMessage()); 1042 case 15: return new CWE(getMessage()); 1043 case 16: return new ID(getMessage(), new Integer( 136 )); 1044 case 17: return new CWE(getMessage()); 1045 case 18: return new ID(getMessage(), new Integer( 399 )); 1046 case 19: return new CWE(getMessage()); 1047 case 20: return new CWE(getMessage()); 1048 case 21: return new CWE(getMessage()); 1049 case 22: return new DTM(getMessage()); 1050 case 23: return new DTM(getMessage()); 1051 case 24: return new DTM(getMessage()); 1052 case 25: return new DTM(getMessage()); 1053 case 26: return new DTM(getMessage()); 1054 case 27: return new DTM(getMessage()); 1055 case 28: return new DTM(getMessage()); 1056 case 29: return new CWE(getMessage()); 1057 case 30: return new CWE(getMessage()); 1058 default: return null; 1059 } 1060 } 1061 1062 1063} 1064