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