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