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.v25.segment;
35
36
37 import ca.uhn.hl7v2.model.v25.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 @SuppressWarnings("unused")
74 public class OBX extends AbstractSegment {
75
76
77
78
79 public OBX(Group parent, ModelClassFactory factory) {
80 super(parent, factory);
81 init(factory);
82 }
83
84 private void init(ModelClassFactory factory) {
85 try {
86 this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - OBX");
87 this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(125) }, "Value Type");
88 this.add(CE.class, true, 1, 250, new Object[]{ getMessage() }, "Observation Identifier");
89 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "Observation Sub-ID");
90 this.add(Varies.class, false, 0, 99999, new Object[]{ getMessage() }, "Observation Value");
91 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Units");
92 this.add(ST.class, false, 1, 60, new Object[]{ getMessage() }, "References Range");
93 this.add(IS.class, false, 0, 5, new Object[]{ getMessage(), new Integer(78) }, "Abnormal Flags");
94 this.add(NM.class, false, 1, 5, new Object[]{ getMessage() }, "Probability");
95 this.add(ID.class, false, 0, 2, new Object[]{ getMessage(), new Integer(80) }, "Nature of Abnormal Test");
96 this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(85) }, "Observation Result Status");
97 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Effective Date of Reference Range");
98 this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "User Defined Access Checks");
99 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of the Observation");
100 this.add(CE.class, false, 1, 250, new Object[]{ getMessage() }, "Producer's ID");
101 this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Responsible Observer");
102 this.add(CE.class, false, 0, 250, new Object[]{ getMessage() }, "Observation Method");
103 this.add(EI.class, false, 0, 22, new Object[]{ getMessage() }, "Equipment Instance Identifier");
104 this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Date/Time of the Analysis");
105 } catch(HL7Exception e) {
106 log.error("Unexpected error creating OBX - this is probably a bug in the source code generator.", e);
107 }
108 }
109
110
111
112
113
114
115
116 public SI getSetIDOBX() {
117 SI retVal = this.getTypedField(1, 0);
118 return retVal;
119 }
120
121
122
123
124
125 public SI getObx1_SetIDOBX() {
126 SI retVal = this.getTypedField(1, 0);
127 return retVal;
128 }
129
130
131
132
133
134
135
136 public ID getValueType() {
137 ID retVal = this.getTypedField(2, 0);
138 return retVal;
139 }
140
141
142
143
144
145 public ID getObx2_ValueType() {
146 ID retVal = this.getTypedField(2, 0);
147 return retVal;
148 }
149
150
151
152
153
154
155
156 public CE getObservationIdentifier() {
157 CE retVal = this.getTypedField(3, 0);
158 return retVal;
159 }
160
161
162
163
164
165 public CE getObx3_ObservationIdentifier() {
166 CE retVal = this.getTypedField(3, 0);
167 return retVal;
168 }
169
170
171
172
173
174
175
176 public ST getObservationSubID() {
177 ST retVal = this.getTypedField(4, 0);
178 return retVal;
179 }
180
181
182
183
184
185 public ST getObx4_ObservationSubID() {
186 ST retVal = this.getTypedField(4, 0);
187 return retVal;
188 }
189
190
191
192
193
194 public Varies[] getObservationValue() {
195 Varies[] retVal = this.getTypedField(5, new Varies[0]);
196 return retVal;
197 }
198
199
200
201
202
203 public Varies[] getObx5_ObservationValue() {
204 Varies[] retVal = this.getTypedField(5, new Varies[0]);
205 return retVal;
206 }
207
208
209
210
211
212
213
214 public int getObservationValueReps() {
215 return this.getReps(5);
216 }
217
218
219
220
221
222
223
224
225 public Varies getObservationValue(int rep) {
226 Varies retVal = this.getTypedField(5, rep);
227 return retVal;
228 }
229
230
231
232
233
234
235
236 public Varies getObx5_ObservationValue(int rep) {
237 Varies retVal = this.getTypedField(5, rep);
238 return retVal;
239 }
240
241
242
243
244
245
246 public int getObx5_ObservationValueReps() {
247 return this.getReps(5);
248 }
249
250
251
252
253
254
255
256
257
258 public Varies insertObservationValue(int rep) throws HL7Exception {
259 return (Varies) super.insertRepetition(5, rep);
260 }
261
262
263
264
265
266
267
268
269
270 public Varies insertObx5_ObservationValue(int rep) throws HL7Exception {
271 return (Varies) super.insertRepetition(5, rep);
272 }
273
274
275
276
277
278
279
280
281
282 public Varies removeObservationValue(int rep) throws HL7Exception {
283 return (Varies) super.removeRepetition(5, rep);
284 }
285
286
287
288
289
290
291
292
293
294 public Varies removeObx5_ObservationValue(int rep) throws HL7Exception {
295 return (Varies) super.removeRepetition(5, rep);
296 }
297
298
299
300
301
302
303
304
305 public CE getUnits() {
306 CE retVal = this.getTypedField(6, 0);
307 return retVal;
308 }
309
310
311
312
313
314 public CE getObx6_Units() {
315 CE retVal = this.getTypedField(6, 0);
316 return retVal;
317 }
318
319
320
321
322
323
324
325 public ST getReferencesRange() {
326 ST retVal = this.getTypedField(7, 0);
327 return retVal;
328 }
329
330
331
332
333
334 public ST getObx7_ReferencesRange() {
335 ST retVal = this.getTypedField(7, 0);
336 return retVal;
337 }
338
339
340
341
342
343 public IS[] getAbnormalFlags() {
344 IS[] retVal = this.getTypedField(8, new IS[0]);
345 return retVal;
346 }
347
348
349
350
351
352 public IS[] getObx8_AbnormalFlags() {
353 IS[] retVal = this.getTypedField(8, new IS[0]);
354 return retVal;
355 }
356
357
358
359
360
361
362
363 public int getAbnormalFlagsReps() {
364 return this.getReps(8);
365 }
366
367
368
369
370
371
372
373
374 public IS getAbnormalFlags(int rep) {
375 IS retVal = this.getTypedField(8, rep);
376 return retVal;
377 }
378
379
380
381
382
383
384
385 public IS getObx8_AbnormalFlags(int rep) {
386 IS retVal = this.getTypedField(8, rep);
387 return retVal;
388 }
389
390
391
392
393
394
395 public int getObx8_AbnormalFlagsReps() {
396 return this.getReps(8);
397 }
398
399
400
401
402
403
404
405
406
407 public IS insertAbnormalFlags(int rep) throws HL7Exception {
408 return (IS) super.insertRepetition(8, rep);
409 }
410
411
412
413
414
415
416
417
418
419 public IS insertObx8_AbnormalFlags(int rep) throws HL7Exception {
420 return (IS) super.insertRepetition(8, rep);
421 }
422
423
424
425
426
427
428
429
430
431 public IS removeAbnormalFlags(int rep) throws HL7Exception {
432 return (IS) super.removeRepetition(8, rep);
433 }
434
435
436
437
438
439
440
441
442
443 public IS removeObx8_AbnormalFlags(int rep) throws HL7Exception {
444 return (IS) super.removeRepetition(8, rep);
445 }
446
447
448
449
450
451
452
453
454 public NM getProbability() {
455 NM retVal = this.getTypedField(9, 0);
456 return retVal;
457 }
458
459
460
461
462
463 public NM getObx9_Probability() {
464 NM retVal = this.getTypedField(9, 0);
465 return retVal;
466 }
467
468
469
470
471
472 public ID[] getNatureOfAbnormalTest() {
473 ID[] retVal = this.getTypedField(10, new ID[0]);
474 return retVal;
475 }
476
477
478
479
480
481 public ID[] getObx10_NatureOfAbnormalTest() {
482 ID[] retVal = this.getTypedField(10, new ID[0]);
483 return retVal;
484 }
485
486
487
488
489
490
491
492 public int getNatureOfAbnormalTestReps() {
493 return this.getReps(10);
494 }
495
496
497
498
499
500
501
502
503 public ID getNatureOfAbnormalTest(int rep) {
504 ID retVal = this.getTypedField(10, rep);
505 return retVal;
506 }
507
508
509
510
511
512
513
514 public ID getObx10_NatureOfAbnormalTest(int rep) {
515 ID retVal = this.getTypedField(10, rep);
516 return retVal;
517 }
518
519
520
521
522
523
524 public int getObx10_NatureOfAbnormalTestReps() {
525 return this.getReps(10);
526 }
527
528
529
530
531
532
533
534
535
536 public ID insertNatureOfAbnormalTest(int rep) throws HL7Exception {
537 return (ID) super.insertRepetition(10, rep);
538 }
539
540
541
542
543
544
545
546
547
548 public ID insertObx10_NatureOfAbnormalTest(int rep) throws HL7Exception {
549 return (ID) super.insertRepetition(10, rep);
550 }
551
552
553
554
555
556
557
558
559
560 public ID removeNatureOfAbnormalTest(int rep) throws HL7Exception {
561 return (ID) super.removeRepetition(10, rep);
562 }
563
564
565
566
567
568
569
570
571
572 public ID removeObx10_NatureOfAbnormalTest(int rep) throws HL7Exception {
573 return (ID) super.removeRepetition(10, rep);
574 }
575
576
577
578
579
580
581
582
583 public ID getObservationResultStatus() {
584 ID retVal = this.getTypedField(11, 0);
585 return retVal;
586 }
587
588
589
590
591
592 public ID getObx11_ObservationResultStatus() {
593 ID retVal = this.getTypedField(11, 0);
594 return retVal;
595 }
596
597
598
599
600
601
602
603 public TS getEffectiveDateOfReferenceRange() {
604 TS retVal = this.getTypedField(12, 0);
605 return retVal;
606 }
607
608
609
610
611
612 public TS getObx12_EffectiveDateOfReferenceRange() {
613 TS retVal = this.getTypedField(12, 0);
614 return retVal;
615 }
616
617
618
619
620
621
622
623 public ST getUserDefinedAccessChecks() {
624 ST retVal = this.getTypedField(13, 0);
625 return retVal;
626 }
627
628
629
630
631
632 public ST getObx13_UserDefinedAccessChecks() {
633 ST retVal = this.getTypedField(13, 0);
634 return retVal;
635 }
636
637
638
639
640
641
642
643 public TS getDateTimeOfTheObservation() {
644 TS retVal = this.getTypedField(14, 0);
645 return retVal;
646 }
647
648
649
650
651
652 public TS getObx14_DateTimeOfTheObservation() {
653 TS retVal = this.getTypedField(14, 0);
654 return retVal;
655 }
656
657
658
659
660
661
662
663 public CE getProducerSID() {
664 CE retVal = this.getTypedField(15, 0);
665 return retVal;
666 }
667
668
669
670
671
672 public CE getObx15_ProducerSID() {
673 CE retVal = this.getTypedField(15, 0);
674 return retVal;
675 }
676
677
678
679
680
681 public XCN[] getResponsibleObserver() {
682 XCN[] retVal = this.getTypedField(16, new XCN[0]);
683 return retVal;
684 }
685
686
687
688
689
690 public XCN[] getObx16_ResponsibleObserver() {
691 XCN[] retVal = this.getTypedField(16, new XCN[0]);
692 return retVal;
693 }
694
695
696
697
698
699
700
701 public int getResponsibleObserverReps() {
702 return this.getReps(16);
703 }
704
705
706
707
708
709
710
711
712 public XCN getResponsibleObserver(int rep) {
713 XCN retVal = this.getTypedField(16, rep);
714 return retVal;
715 }
716
717
718
719
720
721
722
723 public XCN getObx16_ResponsibleObserver(int rep) {
724 XCN retVal = this.getTypedField(16, rep);
725 return retVal;
726 }
727
728
729
730
731
732
733 public int getObx16_ResponsibleObserverReps() {
734 return this.getReps(16);
735 }
736
737
738
739
740
741
742
743
744
745 public XCN insertResponsibleObserver(int rep) throws HL7Exception {
746 return (XCN) super.insertRepetition(16, rep);
747 }
748
749
750
751
752
753
754
755
756
757 public XCN insertObx16_ResponsibleObserver(int rep) throws HL7Exception {
758 return (XCN) super.insertRepetition(16, rep);
759 }
760
761
762
763
764
765
766
767
768
769 public XCN removeResponsibleObserver(int rep) throws HL7Exception {
770 return (XCN) super.removeRepetition(16, rep);
771 }
772
773
774
775
776
777
778
779
780
781 public XCN removeObx16_ResponsibleObserver(int rep) throws HL7Exception {
782 return (XCN) super.removeRepetition(16, rep);
783 }
784
785
786
787
788
789
790 public CE[] getObservationMethod() {
791 CE[] retVal = this.getTypedField(17, new CE[0]);
792 return retVal;
793 }
794
795
796
797
798
799 public CE[] getObx17_ObservationMethod() {
800 CE[] retVal = this.getTypedField(17, new CE[0]);
801 return retVal;
802 }
803
804
805
806
807
808
809
810 public int getObservationMethodReps() {
811 return this.getReps(17);
812 }
813
814
815
816
817
818
819
820
821 public CE getObservationMethod(int rep) {
822 CE retVal = this.getTypedField(17, rep);
823 return retVal;
824 }
825
826
827
828
829
830
831
832 public CE getObx17_ObservationMethod(int rep) {
833 CE retVal = this.getTypedField(17, rep);
834 return retVal;
835 }
836
837
838
839
840
841
842 public int getObx17_ObservationMethodReps() {
843 return this.getReps(17);
844 }
845
846
847
848
849
850
851
852
853
854 public CE insertObservationMethod(int rep) throws HL7Exception {
855 return (CE) super.insertRepetition(17, rep);
856 }
857
858
859
860
861
862
863
864
865
866 public CE insertObx17_ObservationMethod(int rep) throws HL7Exception {
867 return (CE) super.insertRepetition(17, rep);
868 }
869
870
871
872
873
874
875
876
877
878 public CE removeObservationMethod(int rep) throws HL7Exception {
879 return (CE) super.removeRepetition(17, rep);
880 }
881
882
883
884
885
886
887
888
889
890 public CE removeObx17_ObservationMethod(int rep) throws HL7Exception {
891 return (CE) super.removeRepetition(17, rep);
892 }
893
894
895
896
897
898
899 public EI[] getEquipmentInstanceIdentifier() {
900 EI[] retVal = this.getTypedField(18, new EI[0]);
901 return retVal;
902 }
903
904
905
906
907
908 public EI[] getObx18_EquipmentInstanceIdentifier() {
909 EI[] retVal = this.getTypedField(18, new EI[0]);
910 return retVal;
911 }
912
913
914
915
916
917
918
919 public int getEquipmentInstanceIdentifierReps() {
920 return this.getReps(18);
921 }
922
923
924
925
926
927
928
929
930 public EI getEquipmentInstanceIdentifier(int rep) {
931 EI retVal = this.getTypedField(18, rep);
932 return retVal;
933 }
934
935
936
937
938
939
940
941 public EI getObx18_EquipmentInstanceIdentifier(int rep) {
942 EI retVal = this.getTypedField(18, rep);
943 return retVal;
944 }
945
946
947
948
949
950
951 public int getObx18_EquipmentInstanceIdentifierReps() {
952 return this.getReps(18);
953 }
954
955
956
957
958
959
960
961
962
963 public EI insertEquipmentInstanceIdentifier(int rep) throws HL7Exception {
964 return (EI) super.insertRepetition(18, rep);
965 }
966
967
968
969
970
971
972
973
974
975 public EI insertObx18_EquipmentInstanceIdentifier(int rep) throws HL7Exception {
976 return (EI) super.insertRepetition(18, rep);
977 }
978
979
980
981
982
983
984
985
986
987 public EI removeEquipmentInstanceIdentifier(int rep) throws HL7Exception {
988 return (EI) super.removeRepetition(18, rep);
989 }
990
991
992
993
994
995
996
997
998
999 public EI removeObx18_EquipmentInstanceIdentifier(int rep) throws HL7Exception {
1000 return (EI) super.removeRepetition(18, rep);
1001 }
1002
1003
1004
1005
1006
1007
1008
1009
1010 public TS getDateTimeOfTheAnalysis() {
1011 TS retVal = this.getTypedField(19, 0);
1012 return retVal;
1013 }
1014
1015
1016
1017
1018
1019 public TS getObx19_DateTimeOfTheAnalysis() {
1020 TS retVal = this.getTypedField(19, 0);
1021 return retVal;
1022 }
1023
1024
1025
1026
1027
1028
1029 protected Type createNewTypeWithoutReflection(int field) {
1030 switch (field) {
1031 case 0: return new SI(getMessage());
1032 case 1: return new ID(getMessage(), new Integer( 125 ));
1033 case 2: return new CE(getMessage());
1034 case 3: return new ST(getMessage());
1035 case 4: return new Varies(getMessage());
1036 case 5: return new CE(getMessage());
1037 case 6: return new ST(getMessage());
1038 case 7: return new IS(getMessage(), new Integer( 78 ));
1039 case 8: return new NM(getMessage());
1040 case 9: return new ID(getMessage(), new Integer( 80 ));
1041 case 10: return new ID(getMessage(), new Integer( 85 ));
1042 case 11: return new TS(getMessage());
1043 case 12: return new ST(getMessage());
1044 case 13: return new TS(getMessage());
1045 case 14: return new CE(getMessage());
1046 case 15: return new XCN(getMessage());
1047 case 16: return new CE(getMessage());
1048 case 17: return new EI(getMessage());
1049 case 18: return new TS(getMessage());
1050 default: return null;
1051 }
1052 }
1053
1054
1055 }
1056