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.v23.segment;
35
36
37 import ca.uhn.hl7v2.model.v23.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 @SuppressWarnings("unused")
78 public class TXA extends AbstractSegment {
79
80
81
82
83 public TXA(Group parent, ModelClassFactory factory) {
84 super(parent, factory);
85 init(factory);
86 }
87
88 private void init(ModelClassFactory factory) {
89 try {
90 this.add(SI.class, true, 1, 4, new Object[]{ getMessage() }, "Set ID- TXA");
91 this.add(IS.class, true, 1, 30, new Object[]{ getMessage(), new Integer(270) }, "Document Type");
92 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(191) }, "Document Content Presentation");
93 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Activity Date/Time");
94 this.add(XCN.class, false, 1, 60, new Object[]{ getMessage() }, "Primary Activity Provider Code/Name");
95 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Origination Date/Time");
96 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Transcription Date/Time");
97 this.add(TS.class, false, 0, 26, new Object[]{ getMessage() }, "Edit Date/Time");
98 this.add(XCN.class, false, 1, 60, new Object[]{ getMessage() }, "Originator Code/Name");
99 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Assigned Document Authenticator");
100 this.add(XCN.class, false, 1, 48, new Object[]{ getMessage() }, "Transcriptionist Code/Name");
101 this.add(EI.class, true, 1, 30, new Object[]{ getMessage() }, "Unique Document Number");
102 this.add(EI.class, false, 1, 30, new Object[]{ getMessage() }, "Parent Document Number");
103 this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Placer Order Number");
104 this.add(EI.class, false, 1, 22, new Object[]{ getMessage() }, "Filler Order Number");
105 this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Unique Document File Name");
106 this.add(ID.class, true, 0, 2, new Object[]{ getMessage(), new Integer(271) }, "Document Completion Status");
107 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(272) }, "Document Confidentiality Status");
108 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(273) }, "Document Availability Status");
109 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(275) }, "Document Storage Status");
110 this.add(ST.class, false, 1, 30, new Object[]{ getMessage() }, "Document Change Reason");
111 this.add(PPN.class, false, 0, 60, new Object[]{ getMessage() }, "Authentication Person, Time Stamp");
112 this.add(XCN.class, false, 0, 60, new Object[]{ getMessage() }, "Distributed Copies (Code and Name of Recipients)");
113 } catch(HL7Exception e) {
114 log.error("Unexpected error creating TXA - this is probably a bug in the source code generator.", e);
115 }
116 }
117
118
119
120
121
122
123
124 public SI getSetIDTXA() {
125 SI retVal = this.getTypedField(1, 0);
126 return retVal;
127 }
128
129
130
131
132
133 public SI getTxa1_SetIDTXA() {
134 SI retVal = this.getTypedField(1, 0);
135 return retVal;
136 }
137
138
139
140
141
142
143
144 public IS getDocumentType() {
145 IS retVal = this.getTypedField(2, 0);
146 return retVal;
147 }
148
149
150
151
152
153 public IS getTxa2_DocumentType() {
154 IS retVal = this.getTypedField(2, 0);
155 return retVal;
156 }
157
158
159
160
161
162
163
164 public ID getDocumentContentPresentation() {
165 ID retVal = this.getTypedField(3, 0);
166 return retVal;
167 }
168
169
170
171
172
173 public ID getTxa3_DocumentContentPresentation() {
174 ID retVal = this.getTypedField(3, 0);
175 return retVal;
176 }
177
178
179
180
181
182
183
184 public TS getActivityDateTime() {
185 TS retVal = this.getTypedField(4, 0);
186 return retVal;
187 }
188
189
190
191
192
193 public TS getTxa4_ActivityDateTime() {
194 TS retVal = this.getTypedField(4, 0);
195 return retVal;
196 }
197
198
199
200
201
202
203
204 public XCN getPrimaryActivityProviderCodeName() {
205 XCN retVal = this.getTypedField(5, 0);
206 return retVal;
207 }
208
209
210
211
212
213 public XCN getTxa5_PrimaryActivityProviderCodeName() {
214 XCN retVal = this.getTypedField(5, 0);
215 return retVal;
216 }
217
218
219
220
221
222
223
224 public TS getOriginationDateTime() {
225 TS retVal = this.getTypedField(6, 0);
226 return retVal;
227 }
228
229
230
231
232
233 public TS getTxa6_OriginationDateTime() {
234 TS retVal = this.getTypedField(6, 0);
235 return retVal;
236 }
237
238
239
240
241
242
243
244 public TS getTranscriptionDateTime() {
245 TS retVal = this.getTypedField(7, 0);
246 return retVal;
247 }
248
249
250
251
252
253 public TS getTxa7_TranscriptionDateTime() {
254 TS retVal = this.getTypedField(7, 0);
255 return retVal;
256 }
257
258
259
260
261
262 public TS[] getEditDateTime() {
263 TS[] retVal = this.getTypedField(8, new TS[0]);
264 return retVal;
265 }
266
267
268
269
270
271 public TS[] getTxa8_EditDateTime() {
272 TS[] retVal = this.getTypedField(8, new TS[0]);
273 return retVal;
274 }
275
276
277
278
279
280
281
282 public int getEditDateTimeReps() {
283 return this.getReps(8);
284 }
285
286
287
288
289
290
291
292
293 public TS getEditDateTime(int rep) {
294 TS retVal = this.getTypedField(8, rep);
295 return retVal;
296 }
297
298
299
300
301
302
303
304 public TS getTxa8_EditDateTime(int rep) {
305 TS retVal = this.getTypedField(8, rep);
306 return retVal;
307 }
308
309
310
311
312
313
314 public int getTxa8_EditDateTimeReps() {
315 return this.getReps(8);
316 }
317
318
319
320
321
322
323
324
325
326 public TS insertEditDateTime(int rep) throws HL7Exception {
327 return (TS) super.insertRepetition(8, rep);
328 }
329
330
331
332
333
334
335
336
337
338 public TS insertTxa8_EditDateTime(int rep) throws HL7Exception {
339 return (TS) super.insertRepetition(8, rep);
340 }
341
342
343
344
345
346
347
348
349
350 public TS removeEditDateTime(int rep) throws HL7Exception {
351 return (TS) super.removeRepetition(8, rep);
352 }
353
354
355
356
357
358
359
360
361
362 public TS removeTxa8_EditDateTime(int rep) throws HL7Exception {
363 return (TS) super.removeRepetition(8, rep);
364 }
365
366
367
368
369
370
371
372
373 public XCN getOriginatorCodeName() {
374 XCN retVal = this.getTypedField(9, 0);
375 return retVal;
376 }
377
378
379
380
381
382 public XCN getTxa9_OriginatorCodeName() {
383 XCN retVal = this.getTypedField(9, 0);
384 return retVal;
385 }
386
387
388
389
390
391 public XCN[] getAssignedDocumentAuthenticator() {
392 XCN[] retVal = this.getTypedField(10, new XCN[0]);
393 return retVal;
394 }
395
396
397
398
399
400 public XCN[] getTxa10_AssignedDocumentAuthenticator() {
401 XCN[] retVal = this.getTypedField(10, new XCN[0]);
402 return retVal;
403 }
404
405
406
407
408
409
410
411 public int getAssignedDocumentAuthenticatorReps() {
412 return this.getReps(10);
413 }
414
415
416
417
418
419
420
421
422 public XCN getAssignedDocumentAuthenticator(int rep) {
423 XCN retVal = this.getTypedField(10, rep);
424 return retVal;
425 }
426
427
428
429
430
431
432
433 public XCN getTxa10_AssignedDocumentAuthenticator(int rep) {
434 XCN retVal = this.getTypedField(10, rep);
435 return retVal;
436 }
437
438
439
440
441
442
443 public int getTxa10_AssignedDocumentAuthenticatorReps() {
444 return this.getReps(10);
445 }
446
447
448
449
450
451
452
453
454
455 public XCN insertAssignedDocumentAuthenticator(int rep) throws HL7Exception {
456 return (XCN) super.insertRepetition(10, rep);
457 }
458
459
460
461
462
463
464
465
466
467 public XCN insertTxa10_AssignedDocumentAuthenticator(int rep) throws HL7Exception {
468 return (XCN) super.insertRepetition(10, rep);
469 }
470
471
472
473
474
475
476
477
478
479 public XCN removeAssignedDocumentAuthenticator(int rep) throws HL7Exception {
480 return (XCN) super.removeRepetition(10, rep);
481 }
482
483
484
485
486
487
488
489
490
491 public XCN removeTxa10_AssignedDocumentAuthenticator(int rep) throws HL7Exception {
492 return (XCN) super.removeRepetition(10, rep);
493 }
494
495
496
497
498
499
500
501
502 public XCN getTranscriptionistCodeName() {
503 XCN retVal = this.getTypedField(11, 0);
504 return retVal;
505 }
506
507
508
509
510
511 public XCN getTxa11_TranscriptionistCodeName() {
512 XCN retVal = this.getTypedField(11, 0);
513 return retVal;
514 }
515
516
517
518
519
520
521
522 public EI getUniqueDocumentNumber() {
523 EI retVal = this.getTypedField(12, 0);
524 return retVal;
525 }
526
527
528
529
530
531 public EI getTxa12_UniqueDocumentNumber() {
532 EI retVal = this.getTypedField(12, 0);
533 return retVal;
534 }
535
536
537
538
539
540
541
542 public EI getParentDocumentNumber() {
543 EI retVal = this.getTypedField(13, 0);
544 return retVal;
545 }
546
547
548
549
550
551 public EI getTxa13_ParentDocumentNumber() {
552 EI retVal = this.getTypedField(13, 0);
553 return retVal;
554 }
555
556
557
558
559
560 public EI[] getPlacerOrderNumber() {
561 EI[] retVal = this.getTypedField(14, new EI[0]);
562 return retVal;
563 }
564
565
566
567
568
569 public EI[] getTxa14_PlacerOrderNumber() {
570 EI[] retVal = this.getTypedField(14, new EI[0]);
571 return retVal;
572 }
573
574
575
576
577
578
579
580 public int getPlacerOrderNumberReps() {
581 return this.getReps(14);
582 }
583
584
585
586
587
588
589
590
591 public EI getPlacerOrderNumber(int rep) {
592 EI retVal = this.getTypedField(14, rep);
593 return retVal;
594 }
595
596
597
598
599
600
601
602 public EI getTxa14_PlacerOrderNumber(int rep) {
603 EI retVal = this.getTypedField(14, rep);
604 return retVal;
605 }
606
607
608
609
610
611
612 public int getTxa14_PlacerOrderNumberReps() {
613 return this.getReps(14);
614 }
615
616
617
618
619
620
621
622
623
624 public EI insertPlacerOrderNumber(int rep) throws HL7Exception {
625 return (EI) super.insertRepetition(14, rep);
626 }
627
628
629
630
631
632
633
634
635
636 public EI insertTxa14_PlacerOrderNumber(int rep) throws HL7Exception {
637 return (EI) super.insertRepetition(14, rep);
638 }
639
640
641
642
643
644
645
646
647
648 public EI removePlacerOrderNumber(int rep) throws HL7Exception {
649 return (EI) super.removeRepetition(14, rep);
650 }
651
652
653
654
655
656
657
658
659
660 public EI removeTxa14_PlacerOrderNumber(int rep) throws HL7Exception {
661 return (EI) super.removeRepetition(14, rep);
662 }
663
664
665
666
667
668
669
670
671 public EI getFillerOrderNumber() {
672 EI retVal = this.getTypedField(15, 0);
673 return retVal;
674 }
675
676
677
678
679
680 public EI getTxa15_FillerOrderNumber() {
681 EI retVal = this.getTypedField(15, 0);
682 return retVal;
683 }
684
685
686
687
688
689
690
691 public ST getUniqueDocumentFileName() {
692 ST retVal = this.getTypedField(16, 0);
693 return retVal;
694 }
695
696
697
698
699
700 public ST getTxa16_UniqueDocumentFileName() {
701 ST retVal = this.getTypedField(16, 0);
702 return retVal;
703 }
704
705
706
707
708
709 public ID[] getDocumentCompletionStatus() {
710 ID[] retVal = this.getTypedField(17, new ID[0]);
711 return retVal;
712 }
713
714
715
716
717
718 public ID[] getTxa17_DocumentCompletionStatus() {
719 ID[] retVal = this.getTypedField(17, new ID[0]);
720 return retVal;
721 }
722
723
724
725
726
727
728
729 public int getDocumentCompletionStatusReps() {
730 return this.getReps(17);
731 }
732
733
734
735
736
737
738
739
740 public ID getDocumentCompletionStatus(int rep) {
741 ID retVal = this.getTypedField(17, rep);
742 return retVal;
743 }
744
745
746
747
748
749
750
751 public ID getTxa17_DocumentCompletionStatus(int rep) {
752 ID retVal = this.getTypedField(17, rep);
753 return retVal;
754 }
755
756
757
758
759
760
761 public int getTxa17_DocumentCompletionStatusReps() {
762 return this.getReps(17);
763 }
764
765
766
767
768
769
770
771
772
773 public ID insertDocumentCompletionStatus(int rep) throws HL7Exception {
774 return (ID) super.insertRepetition(17, rep);
775 }
776
777
778
779
780
781
782
783
784
785 public ID insertTxa17_DocumentCompletionStatus(int rep) throws HL7Exception {
786 return (ID) super.insertRepetition(17, rep);
787 }
788
789
790
791
792
793
794
795
796
797 public ID removeDocumentCompletionStatus(int rep) throws HL7Exception {
798 return (ID) super.removeRepetition(17, rep);
799 }
800
801
802
803
804
805
806
807
808
809 public ID removeTxa17_DocumentCompletionStatus(int rep) throws HL7Exception {
810 return (ID) super.removeRepetition(17, rep);
811 }
812
813
814
815
816
817
818
819
820 public ID getDocumentConfidentialityStatus() {
821 ID retVal = this.getTypedField(18, 0);
822 return retVal;
823 }
824
825
826
827
828
829 public ID getTxa18_DocumentConfidentialityStatus() {
830 ID retVal = this.getTypedField(18, 0);
831 return retVal;
832 }
833
834
835
836
837
838
839
840 public ID getDocumentAvailabilityStatus() {
841 ID retVal = this.getTypedField(19, 0);
842 return retVal;
843 }
844
845
846
847
848
849 public ID getTxa19_DocumentAvailabilityStatus() {
850 ID retVal = this.getTypedField(19, 0);
851 return retVal;
852 }
853
854
855
856
857
858
859
860 public ID getDocumentStorageStatus() {
861 ID retVal = this.getTypedField(20, 0);
862 return retVal;
863 }
864
865
866
867
868
869 public ID getTxa20_DocumentStorageStatus() {
870 ID retVal = this.getTypedField(20, 0);
871 return retVal;
872 }
873
874
875
876
877
878
879
880 public ST getDocumentChangeReason() {
881 ST retVal = this.getTypedField(21, 0);
882 return retVal;
883 }
884
885
886
887
888
889 public ST getTxa21_DocumentChangeReason() {
890 ST retVal = this.getTypedField(21, 0);
891 return retVal;
892 }
893
894
895
896
897
898 public PPN[] getAuthenticationPersonTimeStamp() {
899 PPN[] retVal = this.getTypedField(22, new PPN[0]);
900 return retVal;
901 }
902
903
904
905
906
907 public PPN[] getTxa22_AuthenticationPersonTimeStamp() {
908 PPN[] retVal = this.getTypedField(22, new PPN[0]);
909 return retVal;
910 }
911
912
913
914
915
916
917
918 public int getAuthenticationPersonTimeStampReps() {
919 return this.getReps(22);
920 }
921
922
923
924
925
926
927
928
929 public PPN getAuthenticationPersonTimeStamp(int rep) {
930 PPN retVal = this.getTypedField(22, rep);
931 return retVal;
932 }
933
934
935
936
937
938
939
940 public PPN getTxa22_AuthenticationPersonTimeStamp(int rep) {
941 PPN retVal = this.getTypedField(22, rep);
942 return retVal;
943 }
944
945
946
947
948
949
950 public int getTxa22_AuthenticationPersonTimeStampReps() {
951 return this.getReps(22);
952 }
953
954
955
956
957
958
959
960
961
962 public PPN insertAuthenticationPersonTimeStamp(int rep) throws HL7Exception {
963 return (PPN) super.insertRepetition(22, rep);
964 }
965
966
967
968
969
970
971
972
973
974 public PPN insertTxa22_AuthenticationPersonTimeStamp(int rep) throws HL7Exception {
975 return (PPN) super.insertRepetition(22, rep);
976 }
977
978
979
980
981
982
983
984
985
986 public PPN removeAuthenticationPersonTimeStamp(int rep) throws HL7Exception {
987 return (PPN) super.removeRepetition(22, rep);
988 }
989
990
991
992
993
994
995
996
997
998 public PPN removeTxa22_AuthenticationPersonTimeStamp(int rep) throws HL7Exception {
999 return (PPN) super.removeRepetition(22, rep);
1000 }
1001
1002
1003
1004
1005
1006
1007 public XCN[] getDistributedCopiesCodeandNameofRecipients() {
1008 XCN[] retVal = this.getTypedField(23, new XCN[0]);
1009 return retVal;
1010 }
1011
1012
1013
1014
1015
1016 public XCN[] getTxa23_DistributedCopiesCodeandNameofRecipients() {
1017 XCN[] retVal = this.getTypedField(23, new XCN[0]);
1018 return retVal;
1019 }
1020
1021
1022
1023
1024
1025
1026
1027 public int getDistributedCopiesCodeandNameofRecipientsReps() {
1028 return this.getReps(23);
1029 }
1030
1031
1032
1033
1034
1035
1036
1037
1038 public XCN getDistributedCopiesCodeandNameofRecipients(int rep) {
1039 XCN retVal = this.getTypedField(23, rep);
1040 return retVal;
1041 }
1042
1043
1044
1045
1046
1047
1048
1049 public XCN getTxa23_DistributedCopiesCodeandNameofRecipients(int rep) {
1050 XCN retVal = this.getTypedField(23, rep);
1051 return retVal;
1052 }
1053
1054
1055
1056
1057
1058
1059 public int getTxa23_DistributedCopiesCodeandNameofRecipientsReps() {
1060 return this.getReps(23);
1061 }
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071 public XCN insertDistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception {
1072 return (XCN) super.insertRepetition(23, rep);
1073 }
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083 public XCN insertTxa23_DistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception {
1084 return (XCN) super.insertRepetition(23, rep);
1085 }
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095 public XCN removeDistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception {
1096 return (XCN) super.removeRepetition(23, rep);
1097 }
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107 public XCN removeTxa23_DistributedCopiesCodeandNameofRecipients(int rep) throws HL7Exception {
1108 return (XCN) super.removeRepetition(23, rep);
1109 }
1110
1111
1112
1113
1114
1115
1116
1117 protected Type createNewTypeWithoutReflection(int field) {
1118 switch (field) {
1119 case 0: return new SI(getMessage());
1120 case 1: return new IS(getMessage(), new Integer( 270 ));
1121 case 2: return new ID(getMessage(), new Integer( 191 ));
1122 case 3: return new TS(getMessage());
1123 case 4: return new XCN(getMessage());
1124 case 5: return new TS(getMessage());
1125 case 6: return new TS(getMessage());
1126 case 7: return new TS(getMessage());
1127 case 8: return new XCN(getMessage());
1128 case 9: return new XCN(getMessage());
1129 case 10: return new XCN(getMessage());
1130 case 11: return new EI(getMessage());
1131 case 12: return new EI(getMessage());
1132 case 13: return new EI(getMessage());
1133 case 14: return new EI(getMessage());
1134 case 15: return new ST(getMessage());
1135 case 16: return new ID(getMessage(), new Integer( 271 ));
1136 case 17: return new ID(getMessage(), new Integer( 272 ));
1137 case 18: return new ID(getMessage(), new Integer( 273 ));
1138 case 19: return new ID(getMessage(), new Integer( 275 ));
1139 case 20: return new ST(getMessage());
1140 case 21: return new PPN(getMessage());
1141 case 22: return new XCN(getMessage());
1142 default: return null;
1143 }
1144 }
1145
1146
1147 }
1148