1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.hl7v2.definitions.pdq.v25.group;
17
18 import org.openehealth.ipf.modules.hl7.HL7v2Exception;
19
20 import ca.uhn.hl7v2.HL7Exception;
21 import ca.uhn.hl7v2.model.AbstractGroup;
22 import ca.uhn.hl7v2.model.Group;
23 import ca.uhn.hl7v2.model.v25.segment.PD1;
24 import ca.uhn.hl7v2.model.v25.segment.PID;
25 import ca.uhn.hl7v2.model.v25.segment.PV1;
26 import ca.uhn.hl7v2.model.v25.segment.PV2;
27 import ca.uhn.hl7v2.model.v25.segment.QRI;
28 import ca.uhn.hl7v2.parser.ModelClassFactory;
29
30
31
32
33
34
35
36
37
38
39
40
41
42 @SuppressWarnings("serial")
43 public class RSP_ZV2_QUERY_RESPONSE extends AbstractGroup {
44
45
46
47
48 public RSP_ZV2_QUERY_RESPONSE(Group parent, ModelClassFactory factory) {
49 super(parent, factory);
50 try {
51 add(PID.class, true, false);
52 add(PD1.class, false, false);
53 add(PV1.class, true, true);
54 add(PV2.class, false, false);
55 add(QRI.class, false, false);
56 } catch (HL7Exception e) {
57 throw new HL7v2Exception(e);
58 }
59 }
60
61
62
63
64 public PID getPID() {
65 return getTyped("PID", PID.class);
66 }
67
68
69
70
71 public PD1 getPD1() {
72 return getTyped("PD1", PD1.class);
73 }
74
75
76
77
78
79 public PV1 getPV1() {
80 return getTyped("PV1", PV1.class);
81 }
82
83
84
85
86 public PV2 getPV2() {
87 return getTyped("PV2", PV2.class);
88 }
89
90
91
92
93 public QRI getQRI() {
94 return getTyped("QRI", QRI.class);
95 }
96 }