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.v23.message;
35  
36  import ca.uhn.hl7v2.model.v23.group.*;
37  import ca.uhn.hl7v2.model.v23.segment.*;
38  
39  import ca.uhn.hl7v2.HL7Exception;
40  import ca.uhn.hl7v2.parser.ModelClassFactory;
41  import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
42  import ca.uhn.hl7v2.model.*;
43  
44  
45  /**
46   * <p>Represents a ADT_AXX message structure (see chapter ). This structure contains the 
47   * following elements: </p>
48   * <ul>
49  		                 * <li>1: MSH () <b> </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A20, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A39, ADT_A40, ADT_A41, ADT_A42, ADT_A43, ADT_A44, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]</li></ul></li>
50  		                 * <li>2: EVN () <b> </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A20, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A39, ADT_A40, ADT_A41, ADT_A42, ADT_A43, ADT_A44, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]</li></ul></li>
51  		                 * <li>3: PID () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]</li></ul></li>
52  		                 * <li>4: PD1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]</li></ul></li>
53  		                 * <li>5: MRG () <b>optional </b> <ul><li>Used for the following structures: [ADT_A06, ADT_A07, ADT_A18, ADT_A30, ADT_A34, ADT_A35, ADT_A36, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]</li></ul></li>
54  		                 * <li>6: NK1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]</li></ul></li>
55  		                 * <li>7: PV1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38, ADT_A50, ADT_A51]</li></ul></li>
56  		                 * <li>8: PV2 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]</li></ul></li>
57  		                 * <li>9: DB1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]</li></ul></li>
58  		                 * <li>10: OBX () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]</li></ul></li>
59  		                 * <li>11: AL1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]</li></ul></li>
60  		                 * <li>12: DG1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]</li></ul></li>
61  		                 * <li>13: DRG () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A16, ADT_A28, ADT_A31, ADT_A38]</li></ul></li>
62  		                 * <li>14: ADT_AXX_PROCEDURE () <b>optional repeating</b> </li>
63  		                 * <li>15: GT1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]</li></ul></li>
64  		                 * <li>16: ADT_AXX_INSURANCE () <b>optional repeating</b> </li>
65  		                 * <li>17: ACC () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]</li></ul></li>
66  		                 * <li>18: UB1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]</li></ul></li>
67  		                 * <li>19: UB2 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]</li></ul></li>
68  		                 * <li>20: DRG () <b>optional </b> <ul><li>Used for the following structures: [ADT_A06, ADT_A07]</li></ul></li>
69  		                 * <li>21: PID () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
70  		                 * <li>22: PD1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24]</li></ul></li>
71  		                 * <li>23: PV1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
72  		                 * <li>24: PV2 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17]</li></ul></li>
73  		                 * <li>25: DB1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
74  		                 * <li>26: OBX () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A17]</li></ul></li>
75  		                 * <li>27: NPU () <b>optional </b> <ul><li>Used for the following structures: [ADT_A20]</li></ul></li>
76  		                 * <li>28: ADT_AXX_PATIENT () <b>optional repeating</b> </li>
77  		                 * <li>29: ADT_AXX_MERGE_INFO () <b>optional repeating</b> </li>
78   * </ul>
79   */
80  //@SuppressWarnings("unused")
81  public class ADT_AXX extends AbstractSuperMessage  {
82  
83      /**
84       * Creates a new ADT_AXX message with DefaultModelClassFactory. 
85       */ 
86      public ADT_AXX() { 
87         this(new DefaultModelClassFactory());
88      }
89  
90      /** 
91       * Creates a new ADT_AXX message with custom ModelClassFactory.
92       */
93      public ADT_AXX(ModelClassFactory factory) {
94         super(factory);
95         init(factory);
96      }
97  
98      private void init(ModelClassFactory factory) {
99         try {
100                           this.add(MSH.class, true, false);
101 	          this.addSuperstructureApplication("MSH", "ADT_A01"); 
102 	          this.addSuperstructureApplication("MSH", "ADT_A02"); 
103 	          this.addSuperstructureApplication("MSH", "ADT_A03"); 
104 	          this.addSuperstructureApplication("MSH", "ADT_A04"); 
105 	          this.addSuperstructureApplication("MSH", "ADT_A05"); 
106 	          this.addSuperstructureApplication("MSH", "ADT_A06"); 
107 	          this.addSuperstructureApplication("MSH", "ADT_A07"); 
108 	          this.addSuperstructureApplication("MSH", "ADT_A08"); 
109 	          this.addSuperstructureApplication("MSH", "ADT_A09"); 
110 	          this.addSuperstructureApplication("MSH", "ADT_A10"); 
111 	          this.addSuperstructureApplication("MSH", "ADT_A11"); 
112 	          this.addSuperstructureApplication("MSH", "ADT_A12"); 
113 	          this.addSuperstructureApplication("MSH", "ADT_A13"); 
114 	          this.addSuperstructureApplication("MSH", "ADT_A14"); 
115 	          this.addSuperstructureApplication("MSH", "ADT_A15"); 
116 	          this.addSuperstructureApplication("MSH", "ADT_A16"); 
117 	          this.addSuperstructureApplication("MSH", "ADT_A17"); 
118 	          this.addSuperstructureApplication("MSH", "ADT_A18"); 
119 	          this.addSuperstructureApplication("MSH", "ADT_A20"); 
120 	          this.addSuperstructureApplication("MSH", "ADT_A21"); 
121 	          this.addSuperstructureApplication("MSH", "ADT_A22"); 
122 	          this.addSuperstructureApplication("MSH", "ADT_A23"); 
123 	          this.addSuperstructureApplication("MSH", "ADT_A24"); 
124 	          this.addSuperstructureApplication("MSH", "ADT_A25"); 
125 	          this.addSuperstructureApplication("MSH", "ADT_A26"); 
126 	          this.addSuperstructureApplication("MSH", "ADT_A27"); 
127 	          this.addSuperstructureApplication("MSH", "ADT_A28"); 
128 	          this.addSuperstructureApplication("MSH", "ADT_A29"); 
129 	          this.addSuperstructureApplication("MSH", "ADT_A30"); 
130 	          this.addSuperstructureApplication("MSH", "ADT_A31"); 
131 	          this.addSuperstructureApplication("MSH", "ADT_A32"); 
132 	          this.addSuperstructureApplication("MSH", "ADT_A33"); 
133 	          this.addSuperstructureApplication("MSH", "ADT_A34"); 
134 	          this.addSuperstructureApplication("MSH", "ADT_A35"); 
135 	          this.addSuperstructureApplication("MSH", "ADT_A36"); 
136 	          this.addSuperstructureApplication("MSH", "ADT_A37"); 
137 	          this.addSuperstructureApplication("MSH", "ADT_A38"); 
138 	          this.addSuperstructureApplication("MSH", "ADT_A39"); 
139 	          this.addSuperstructureApplication("MSH", "ADT_A40"); 
140 	          this.addSuperstructureApplication("MSH", "ADT_A41"); 
141 	          this.addSuperstructureApplication("MSH", "ADT_A42"); 
142 	          this.addSuperstructureApplication("MSH", "ADT_A43"); 
143 	          this.addSuperstructureApplication("MSH", "ADT_A44"); 
144 	          this.addSuperstructureApplication("MSH", "ADT_A45"); 
145 	          this.addSuperstructureApplication("MSH", "ADT_A46"); 
146 	          this.addSuperstructureApplication("MSH", "ADT_A47"); 
147 	          this.addSuperstructureApplication("MSH", "ADT_A48"); 
148 	          this.addSuperstructureApplication("MSH", "ADT_A49"); 
149 	          this.addSuperstructureApplication("MSH", "ADT_A50"); 
150 	          this.addSuperstructureApplication("MSH", "ADT_A51"); 
151 	                          this.add(EVN.class, true, false);
152 	          this.addSuperstructureApplication("EVN", "ADT_A01"); 
153 	          this.addSuperstructureApplication("EVN", "ADT_A02"); 
154 	          this.addSuperstructureApplication("EVN", "ADT_A03"); 
155 	          this.addSuperstructureApplication("EVN", "ADT_A04"); 
156 	          this.addSuperstructureApplication("EVN", "ADT_A05"); 
157 	          this.addSuperstructureApplication("EVN", "ADT_A06"); 
158 	          this.addSuperstructureApplication("EVN", "ADT_A07"); 
159 	          this.addSuperstructureApplication("EVN", "ADT_A08"); 
160 	          this.addSuperstructureApplication("EVN", "ADT_A09"); 
161 	          this.addSuperstructureApplication("EVN", "ADT_A10"); 
162 	          this.addSuperstructureApplication("EVN", "ADT_A11"); 
163 	          this.addSuperstructureApplication("EVN", "ADT_A12"); 
164 	          this.addSuperstructureApplication("EVN", "ADT_A13"); 
165 	          this.addSuperstructureApplication("EVN", "ADT_A14"); 
166 	          this.addSuperstructureApplication("EVN", "ADT_A15"); 
167 	          this.addSuperstructureApplication("EVN", "ADT_A16"); 
168 	          this.addSuperstructureApplication("EVN", "ADT_A17"); 
169 	          this.addSuperstructureApplication("EVN", "ADT_A18"); 
170 	          this.addSuperstructureApplication("EVN", "ADT_A20"); 
171 	          this.addSuperstructureApplication("EVN", "ADT_A21"); 
172 	          this.addSuperstructureApplication("EVN", "ADT_A22"); 
173 	          this.addSuperstructureApplication("EVN", "ADT_A23"); 
174 	          this.addSuperstructureApplication("EVN", "ADT_A24"); 
175 	          this.addSuperstructureApplication("EVN", "ADT_A25"); 
176 	          this.addSuperstructureApplication("EVN", "ADT_A26"); 
177 	          this.addSuperstructureApplication("EVN", "ADT_A27"); 
178 	          this.addSuperstructureApplication("EVN", "ADT_A28"); 
179 	          this.addSuperstructureApplication("EVN", "ADT_A29"); 
180 	          this.addSuperstructureApplication("EVN", "ADT_A30"); 
181 	          this.addSuperstructureApplication("EVN", "ADT_A31"); 
182 	          this.addSuperstructureApplication("EVN", "ADT_A32"); 
183 	          this.addSuperstructureApplication("EVN", "ADT_A33"); 
184 	          this.addSuperstructureApplication("EVN", "ADT_A34"); 
185 	          this.addSuperstructureApplication("EVN", "ADT_A35"); 
186 	          this.addSuperstructureApplication("EVN", "ADT_A36"); 
187 	          this.addSuperstructureApplication("EVN", "ADT_A37"); 
188 	          this.addSuperstructureApplication("EVN", "ADT_A38"); 
189 	          this.addSuperstructureApplication("EVN", "ADT_A39"); 
190 	          this.addSuperstructureApplication("EVN", "ADT_A40"); 
191 	          this.addSuperstructureApplication("EVN", "ADT_A41"); 
192 	          this.addSuperstructureApplication("EVN", "ADT_A42"); 
193 	          this.addSuperstructureApplication("EVN", "ADT_A43"); 
194 	          this.addSuperstructureApplication("EVN", "ADT_A44"); 
195 	          this.addSuperstructureApplication("EVN", "ADT_A45"); 
196 	          this.addSuperstructureApplication("EVN", "ADT_A46"); 
197 	          this.addSuperstructureApplication("EVN", "ADT_A47"); 
198 	          this.addSuperstructureApplication("EVN", "ADT_A48"); 
199 	          this.addSuperstructureApplication("EVN", "ADT_A49"); 
200 	          this.addSuperstructureApplication("EVN", "ADT_A50"); 
201 	          this.addSuperstructureApplication("EVN", "ADT_A51"); 
202 	                          this.add(PID.class, false, false);
203 	          this.addSuperstructureApplication("PID", "ADT_A01"); 
204 	          this.addSuperstructureApplication("PID", "ADT_A02"); 
205 	          this.addSuperstructureApplication("PID", "ADT_A03"); 
206 	          this.addSuperstructureApplication("PID", "ADT_A04"); 
207 	          this.addSuperstructureApplication("PID", "ADT_A05"); 
208 	          this.addSuperstructureApplication("PID", "ADT_A06"); 
209 	          this.addSuperstructureApplication("PID", "ADT_A07"); 
210 	          this.addSuperstructureApplication("PID", "ADT_A08"); 
211 	          this.addSuperstructureApplication("PID", "ADT_A09"); 
212 	          this.addSuperstructureApplication("PID", "ADT_A10"); 
213 	          this.addSuperstructureApplication("PID", "ADT_A11"); 
214 	          this.addSuperstructureApplication("PID", "ADT_A12"); 
215 	          this.addSuperstructureApplication("PID", "ADT_A13"); 
216 	          this.addSuperstructureApplication("PID", "ADT_A14"); 
217 	          this.addSuperstructureApplication("PID", "ADT_A15"); 
218 	          this.addSuperstructureApplication("PID", "ADT_A16"); 
219 	          this.addSuperstructureApplication("PID", "ADT_A17"); 
220 	          this.addSuperstructureApplication("PID", "ADT_A18"); 
221 	          this.addSuperstructureApplication("PID", "ADT_A21"); 
222 	          this.addSuperstructureApplication("PID", "ADT_A22"); 
223 	          this.addSuperstructureApplication("PID", "ADT_A23"); 
224 	          this.addSuperstructureApplication("PID", "ADT_A24"); 
225 	          this.addSuperstructureApplication("PID", "ADT_A25"); 
226 	          this.addSuperstructureApplication("PID", "ADT_A26"); 
227 	          this.addSuperstructureApplication("PID", "ADT_A27"); 
228 	          this.addSuperstructureApplication("PID", "ADT_A28"); 
229 	          this.addSuperstructureApplication("PID", "ADT_A29"); 
230 	          this.addSuperstructureApplication("PID", "ADT_A30"); 
231 	          this.addSuperstructureApplication("PID", "ADT_A31"); 
232 	          this.addSuperstructureApplication("PID", "ADT_A32"); 
233 	          this.addSuperstructureApplication("PID", "ADT_A33"); 
234 	          this.addSuperstructureApplication("PID", "ADT_A34"); 
235 	          this.addSuperstructureApplication("PID", "ADT_A35"); 
236 	          this.addSuperstructureApplication("PID", "ADT_A36"); 
237 	          this.addSuperstructureApplication("PID", "ADT_A37"); 
238 	          this.addSuperstructureApplication("PID", "ADT_A38"); 
239 	          this.addSuperstructureApplication("PID", "ADT_A45"); 
240 	          this.addSuperstructureApplication("PID", "ADT_A46"); 
241 	          this.addSuperstructureApplication("PID", "ADT_A47"); 
242 	          this.addSuperstructureApplication("PID", "ADT_A48"); 
243 	          this.addSuperstructureApplication("PID", "ADT_A49"); 
244 	          this.addSuperstructureApplication("PID", "ADT_A50"); 
245 	          this.addSuperstructureApplication("PID", "ADT_A51"); 
246 	                          this.add(PD1.class, false, false);
247 	          this.addSuperstructureApplication("PD1", "ADT_A01"); 
248 	          this.addSuperstructureApplication("PD1", "ADT_A02"); 
249 	          this.addSuperstructureApplication("PD1", "ADT_A03"); 
250 	          this.addSuperstructureApplication("PD1", "ADT_A04"); 
251 	          this.addSuperstructureApplication("PD1", "ADT_A05"); 
252 	          this.addSuperstructureApplication("PD1", "ADT_A06"); 
253 	          this.addSuperstructureApplication("PD1", "ADT_A07"); 
254 	          this.addSuperstructureApplication("PD1", "ADT_A08"); 
255 	          this.addSuperstructureApplication("PD1", "ADT_A09"); 
256 	          this.addSuperstructureApplication("PD1", "ADT_A10"); 
257 	          this.addSuperstructureApplication("PD1", "ADT_A11"); 
258 	          this.addSuperstructureApplication("PD1", "ADT_A12"); 
259 	          this.addSuperstructureApplication("PD1", "ADT_A13"); 
260 	          this.addSuperstructureApplication("PD1", "ADT_A14"); 
261 	          this.addSuperstructureApplication("PD1", "ADT_A15"); 
262 	          this.addSuperstructureApplication("PD1", "ADT_A16"); 
263 	          this.addSuperstructureApplication("PD1", "ADT_A17"); 
264 	          this.addSuperstructureApplication("PD1", "ADT_A18"); 
265 	          this.addSuperstructureApplication("PD1", "ADT_A21"); 
266 	          this.addSuperstructureApplication("PD1", "ADT_A22"); 
267 	          this.addSuperstructureApplication("PD1", "ADT_A23"); 
268 	          this.addSuperstructureApplication("PD1", "ADT_A24"); 
269 	          this.addSuperstructureApplication("PD1", "ADT_A25"); 
270 	          this.addSuperstructureApplication("PD1", "ADT_A26"); 
271 	          this.addSuperstructureApplication("PD1", "ADT_A27"); 
272 	          this.addSuperstructureApplication("PD1", "ADT_A28"); 
273 	          this.addSuperstructureApplication("PD1", "ADT_A29"); 
274 	          this.addSuperstructureApplication("PD1", "ADT_A30"); 
275 	          this.addSuperstructureApplication("PD1", "ADT_A31"); 
276 	          this.addSuperstructureApplication("PD1", "ADT_A32"); 
277 	          this.addSuperstructureApplication("PD1", "ADT_A33"); 
278 	          this.addSuperstructureApplication("PD1", "ADT_A34"); 
279 	          this.addSuperstructureApplication("PD1", "ADT_A35"); 
280 	          this.addSuperstructureApplication("PD1", "ADT_A36"); 
281 	          this.addSuperstructureApplication("PD1", "ADT_A37"); 
282 	          this.addSuperstructureApplication("PD1", "ADT_A38"); 
283 	          this.addSuperstructureApplication("PD1", "ADT_A45"); 
284 	          this.addSuperstructureApplication("PD1", "ADT_A46"); 
285 	          this.addSuperstructureApplication("PD1", "ADT_A47"); 
286 	          this.addSuperstructureApplication("PD1", "ADT_A48"); 
287 	          this.addSuperstructureApplication("PD1", "ADT_A49"); 
288 	          this.addSuperstructureApplication("PD1", "ADT_A50"); 
289 	          this.addSuperstructureApplication("PD1", "ADT_A51"); 
290 	                          this.add(MRG.class, false, false);
291 	          this.addSuperstructureApplication("MRG", "ADT_A06"); 
292 	          this.addSuperstructureApplication("MRG", "ADT_A07"); 
293 	          this.addSuperstructureApplication("MRG", "ADT_A18"); 
294 	          this.addSuperstructureApplication("MRG", "ADT_A30"); 
295 	          this.addSuperstructureApplication("MRG", "ADT_A34"); 
296 	          this.addSuperstructureApplication("MRG", "ADT_A35"); 
297 	          this.addSuperstructureApplication("MRG", "ADT_A36"); 
298 	          this.addSuperstructureApplication("MRG", "ADT_A46"); 
299 	          this.addSuperstructureApplication("MRG", "ADT_A47"); 
300 	          this.addSuperstructureApplication("MRG", "ADT_A48"); 
301 	          this.addSuperstructureApplication("MRG", "ADT_A49"); 
302 	          this.addSuperstructureApplication("MRG", "ADT_A50"); 
303 	          this.addSuperstructureApplication("MRG", "ADT_A51"); 
304 	                          this.add(NK1.class, false, true);
305 	          this.addSuperstructureApplication("NK1", "ADT_A01"); 
306 	          this.addSuperstructureApplication("NK1", "ADT_A04"); 
307 	          this.addSuperstructureApplication("NK1", "ADT_A05"); 
308 	          this.addSuperstructureApplication("NK1", "ADT_A06"); 
309 	          this.addSuperstructureApplication("NK1", "ADT_A07"); 
310 	          this.addSuperstructureApplication("NK1", "ADT_A08"); 
311 	          this.addSuperstructureApplication("NK1", "ADT_A13"); 
312 	          this.addSuperstructureApplication("NK1", "ADT_A14"); 
313 	          this.addSuperstructureApplication("NK1", "ADT_A28"); 
314 	          this.addSuperstructureApplication("NK1", "ADT_A31"); 
315 	                          this.add(PV1.class, false, false);
316 	          this.addSuperstructureApplication("PV1", "ADT_A01"); 
317 	          this.addSuperstructureApplication("PV1", "ADT_A02"); 
318 	          this.addSuperstructureApplication("PV1", "ADT_A03"); 
319 	          this.addSuperstructureApplication("PV1", "ADT_A04"); 
320 	          this.addSuperstructureApplication("PV1", "ADT_A05"); 
321 	          this.addSuperstructureApplication("PV1", "ADT_A06"); 
322 	          this.addSuperstructureApplication("PV1", "ADT_A07"); 
323 	          this.addSuperstructureApplication("PV1", "ADT_A08"); 
324 	          this.addSuperstructureApplication("PV1", "ADT_A09"); 
325 	          this.addSuperstructureApplication("PV1", "ADT_A10"); 
326 	          this.addSuperstructureApplication("PV1", "ADT_A11"); 
327 	          this.addSuperstructureApplication("PV1", "ADT_A12"); 
328 	          this.addSuperstructureApplication("PV1", "ADT_A13"); 
329 	          this.addSuperstructureApplication("PV1", "ADT_A14"); 
330 	          this.addSuperstructureApplication("PV1", "ADT_A15"); 
331 	          this.addSuperstructureApplication("PV1", "ADT_A16"); 
332 	          this.addSuperstructureApplication("PV1", "ADT_A17"); 
333 	          this.addSuperstructureApplication("PV1", "ADT_A18"); 
334 	          this.addSuperstructureApplication("PV1", "ADT_A21"); 
335 	          this.addSuperstructureApplication("PV1", "ADT_A22"); 
336 	          this.addSuperstructureApplication("PV1", "ADT_A23"); 
337 	          this.addSuperstructureApplication("PV1", "ADT_A24"); 
338 	          this.addSuperstructureApplication("PV1", "ADT_A25"); 
339 	          this.addSuperstructureApplication("PV1", "ADT_A26"); 
340 	          this.addSuperstructureApplication("PV1", "ADT_A27"); 
341 	          this.addSuperstructureApplication("PV1", "ADT_A28"); 
342 	          this.addSuperstructureApplication("PV1", "ADT_A29"); 
343 	          this.addSuperstructureApplication("PV1", "ADT_A31"); 
344 	          this.addSuperstructureApplication("PV1", "ADT_A32"); 
345 	          this.addSuperstructureApplication("PV1", "ADT_A33"); 
346 	          this.addSuperstructureApplication("PV1", "ADT_A37"); 
347 	          this.addSuperstructureApplication("PV1", "ADT_A38"); 
348 	          this.addSuperstructureApplication("PV1", "ADT_A50"); 
349 	          this.addSuperstructureApplication("PV1", "ADT_A51"); 
350 	                          this.add(PV2.class, false, false);
351 	          this.addSuperstructureApplication("PV2", "ADT_A01"); 
352 	          this.addSuperstructureApplication("PV2", "ADT_A02"); 
353 	          this.addSuperstructureApplication("PV2", "ADT_A03"); 
354 	          this.addSuperstructureApplication("PV2", "ADT_A04"); 
355 	          this.addSuperstructureApplication("PV2", "ADT_A05"); 
356 	          this.addSuperstructureApplication("PV2", "ADT_A06"); 
357 	          this.addSuperstructureApplication("PV2", "ADT_A07"); 
358 	          this.addSuperstructureApplication("PV2", "ADT_A08"); 
359 	          this.addSuperstructureApplication("PV2", "ADT_A09"); 
360 	          this.addSuperstructureApplication("PV2", "ADT_A10"); 
361 	          this.addSuperstructureApplication("PV2", "ADT_A11"); 
362 	          this.addSuperstructureApplication("PV2", "ADT_A12"); 
363 	          this.addSuperstructureApplication("PV2", "ADT_A13"); 
364 	          this.addSuperstructureApplication("PV2", "ADT_A14"); 
365 	          this.addSuperstructureApplication("PV2", "ADT_A15"); 
366 	          this.addSuperstructureApplication("PV2", "ADT_A16"); 
367 	          this.addSuperstructureApplication("PV2", "ADT_A17"); 
368 	          this.addSuperstructureApplication("PV2", "ADT_A21"); 
369 	          this.addSuperstructureApplication("PV2", "ADT_A22"); 
370 	          this.addSuperstructureApplication("PV2", "ADT_A23"); 
371 	          this.addSuperstructureApplication("PV2", "ADT_A25"); 
372 	          this.addSuperstructureApplication("PV2", "ADT_A26"); 
373 	          this.addSuperstructureApplication("PV2", "ADT_A27"); 
374 	          this.addSuperstructureApplication("PV2", "ADT_A28"); 
375 	          this.addSuperstructureApplication("PV2", "ADT_A29"); 
376 	          this.addSuperstructureApplication("PV2", "ADT_A31"); 
377 	          this.addSuperstructureApplication("PV2", "ADT_A32"); 
378 	          this.addSuperstructureApplication("PV2", "ADT_A33"); 
379 	          this.addSuperstructureApplication("PV2", "ADT_A38"); 
380 	                          this.add(DB1.class, false, true);
381 	          this.addSuperstructureApplication("DB1", "ADT_A01"); 
382 	          this.addSuperstructureApplication("DB1", "ADT_A02"); 
383 	          this.addSuperstructureApplication("DB1", "ADT_A03"); 
384 	          this.addSuperstructureApplication("DB1", "ADT_A04"); 
385 	          this.addSuperstructureApplication("DB1", "ADT_A05"); 
386 	          this.addSuperstructureApplication("DB1", "ADT_A06"); 
387 	          this.addSuperstructureApplication("DB1", "ADT_A07"); 
388 	          this.addSuperstructureApplication("DB1", "ADT_A08"); 
389 	          this.addSuperstructureApplication("DB1", "ADT_A09"); 
390 	          this.addSuperstructureApplication("DB1", "ADT_A10"); 
391 	          this.addSuperstructureApplication("DB1", "ADT_A11"); 
392 	          this.addSuperstructureApplication("DB1", "ADT_A12"); 
393 	          this.addSuperstructureApplication("DB1", "ADT_A13"); 
394 	          this.addSuperstructureApplication("DB1", "ADT_A14"); 
395 	          this.addSuperstructureApplication("DB1", "ADT_A15"); 
396 	          this.addSuperstructureApplication("DB1", "ADT_A16"); 
397 	          this.addSuperstructureApplication("DB1", "ADT_A17"); 
398 	          this.addSuperstructureApplication("DB1", "ADT_A21"); 
399 	          this.addSuperstructureApplication("DB1", "ADT_A22"); 
400 	          this.addSuperstructureApplication("DB1", "ADT_A23"); 
401 	          this.addSuperstructureApplication("DB1", "ADT_A24"); 
402 	          this.addSuperstructureApplication("DB1", "ADT_A25"); 
403 	          this.addSuperstructureApplication("DB1", "ADT_A26"); 
404 	          this.addSuperstructureApplication("DB1", "ADT_A27"); 
405 	          this.addSuperstructureApplication("DB1", "ADT_A28"); 
406 	          this.addSuperstructureApplication("DB1", "ADT_A29"); 
407 	          this.addSuperstructureApplication("DB1", "ADT_A31"); 
408 	          this.addSuperstructureApplication("DB1", "ADT_A32"); 
409 	          this.addSuperstructureApplication("DB1", "ADT_A33"); 
410 	          this.addSuperstructureApplication("DB1", "ADT_A37"); 
411 	          this.addSuperstructureApplication("DB1", "ADT_A38"); 
412 	                          this.add(OBX.class, false, true);
413 	          this.addSuperstructureApplication("OBX", "ADT_A01"); 
414 	          this.addSuperstructureApplication("OBX", "ADT_A02"); 
415 	          this.addSuperstructureApplication("OBX", "ADT_A03"); 
416 	          this.addSuperstructureApplication("OBX", "ADT_A04"); 
417 	          this.addSuperstructureApplication("OBX", "ADT_A05"); 
418 	          this.addSuperstructureApplication("OBX", "ADT_A06"); 
419 	          this.addSuperstructureApplication("OBX", "ADT_A07"); 
420 	          this.addSuperstructureApplication("OBX", "ADT_A08"); 
421 	          this.addSuperstructureApplication("OBX", "ADT_A09"); 
422 	          this.addSuperstructureApplication("OBX", "ADT_A10"); 
423 	          this.addSuperstructureApplication("OBX", "ADT_A11"); 
424 	          this.addSuperstructureApplication("OBX", "ADT_A12"); 
425 	          this.addSuperstructureApplication("OBX", "ADT_A13"); 
426 	          this.addSuperstructureApplication("OBX", "ADT_A14"); 
427 	          this.addSuperstructureApplication("OBX", "ADT_A15"); 
428 	          this.addSuperstructureApplication("OBX", "ADT_A16"); 
429 	          this.addSuperstructureApplication("OBX", "ADT_A17"); 
430 	          this.addSuperstructureApplication("OBX", "ADT_A21"); 
431 	          this.addSuperstructureApplication("OBX", "ADT_A22"); 
432 	          this.addSuperstructureApplication("OBX", "ADT_A23"); 
433 	          this.addSuperstructureApplication("OBX", "ADT_A25"); 
434 	          this.addSuperstructureApplication("OBX", "ADT_A26"); 
435 	          this.addSuperstructureApplication("OBX", "ADT_A27"); 
436 	          this.addSuperstructureApplication("OBX", "ADT_A28"); 
437 	          this.addSuperstructureApplication("OBX", "ADT_A29"); 
438 	          this.addSuperstructureApplication("OBX", "ADT_A31"); 
439 	          this.addSuperstructureApplication("OBX", "ADT_A32"); 
440 	          this.addSuperstructureApplication("OBX", "ADT_A33"); 
441 	          this.addSuperstructureApplication("OBX", "ADT_A38"); 
442 	                          this.add(AL1.class, false, true);
443 	          this.addSuperstructureApplication("AL1", "ADT_A01"); 
444 	          this.addSuperstructureApplication("AL1", "ADT_A04"); 
445 	          this.addSuperstructureApplication("AL1", "ADT_A05"); 
446 	          this.addSuperstructureApplication("AL1", "ADT_A06"); 
447 	          this.addSuperstructureApplication("AL1", "ADT_A07"); 
448 	          this.addSuperstructureApplication("AL1", "ADT_A08"); 
449 	          this.addSuperstructureApplication("AL1", "ADT_A13"); 
450 	          this.addSuperstructureApplication("AL1", "ADT_A14"); 
451 	          this.addSuperstructureApplication("AL1", "ADT_A28"); 
452 	          this.addSuperstructureApplication("AL1", "ADT_A31"); 
453 	                          this.add(DG1.class, false, true);
454 	          this.addSuperstructureApplication("DG1", "ADT_A01"); 
455 	          this.addSuperstructureApplication("DG1", "ADT_A03"); 
456 	          this.addSuperstructureApplication("DG1", "ADT_A04"); 
457 	          this.addSuperstructureApplication("DG1", "ADT_A05"); 
458 	          this.addSuperstructureApplication("DG1", "ADT_A06"); 
459 	          this.addSuperstructureApplication("DG1", "ADT_A07"); 
460 	          this.addSuperstructureApplication("DG1", "ADT_A08"); 
461 	          this.addSuperstructureApplication("DG1", "ADT_A09"); 
462 	          this.addSuperstructureApplication("DG1", "ADT_A10"); 
463 	          this.addSuperstructureApplication("DG1", "ADT_A11"); 
464 	          this.addSuperstructureApplication("DG1", "ADT_A12"); 
465 	          this.addSuperstructureApplication("DG1", "ADT_A13"); 
466 	          this.addSuperstructureApplication("DG1", "ADT_A14"); 
467 	          this.addSuperstructureApplication("DG1", "ADT_A15"); 
468 	          this.addSuperstructureApplication("DG1", "ADT_A16"); 
469 	          this.addSuperstructureApplication("DG1", "ADT_A28"); 
470 	          this.addSuperstructureApplication("DG1", "ADT_A31"); 
471 	          this.addSuperstructureApplication("DG1", "ADT_A38"); 
472 	                          this.add(DRG.class, false, false);
473 	          this.addSuperstructureApplication("DRG", "ADT_A01"); 
474 	          this.addSuperstructureApplication("DRG", "ADT_A03"); 
475 	          this.addSuperstructureApplication("DRG", "ADT_A04"); 
476 	          this.addSuperstructureApplication("DRG", "ADT_A05"); 
477 	          this.addSuperstructureApplication("DRG", "ADT_A06"); 
478 	          this.addSuperstructureApplication("DRG", "ADT_A07"); 
479 	          this.addSuperstructureApplication("DRG", "ADT_A08"); 
480 	          this.addSuperstructureApplication("DRG", "ADT_A13"); 
481 	          this.addSuperstructureApplication("DRG", "ADT_A14"); 
482 	          this.addSuperstructureApplication("DRG", "ADT_A16"); 
483 	          this.addSuperstructureApplication("DRG", "ADT_A28"); 
484 	          this.addSuperstructureApplication("DRG", "ADT_A31"); 
485 	          this.addSuperstructureApplication("DRG", "ADT_A38"); 
486 	                          this.add(ADT_AXX_PROCEDURE.class, false, true);
487 	                          this.add(GT1.class, false, true);
488 	          this.addSuperstructureApplication("GT1", "ADT_A01"); 
489 	          this.addSuperstructureApplication("GT1", "ADT_A04"); 
490 	          this.addSuperstructureApplication("GT1", "ADT_A05"); 
491 	          this.addSuperstructureApplication("GT1", "ADT_A06"); 
492 	          this.addSuperstructureApplication("GT1", "ADT_A07"); 
493 	          this.addSuperstructureApplication("GT1", "ADT_A08"); 
494 	          this.addSuperstructureApplication("GT1", "ADT_A13"); 
495 	          this.addSuperstructureApplication("GT1", "ADT_A14"); 
496 	          this.addSuperstructureApplication("GT1", "ADT_A28"); 
497 	          this.addSuperstructureApplication("GT1", "ADT_A31"); 
498 	                          this.add(ADT_AXX_INSURANCE.class, false, true);
499 	                          this.add(ACC.class, false, false);
500 	          this.addSuperstructureApplication("ACC", "ADT_A01"); 
501 	          this.addSuperstructureApplication("ACC", "ADT_A04"); 
502 	          this.addSuperstructureApplication("ACC", "ADT_A05"); 
503 	          this.addSuperstructureApplication("ACC", "ADT_A06"); 
504 	          this.addSuperstructureApplication("ACC", "ADT_A07"); 
505 	          this.addSuperstructureApplication("ACC", "ADT_A08"); 
506 	          this.addSuperstructureApplication("ACC", "ADT_A13"); 
507 	          this.addSuperstructureApplication("ACC", "ADT_A14"); 
508 	          this.addSuperstructureApplication("ACC", "ADT_A28"); 
509 	          this.addSuperstructureApplication("ACC", "ADT_A31"); 
510 	                          this.add(UB1.class, false, false);
511 	          this.addSuperstructureApplication("UB1", "ADT_A01"); 
512 	          this.addSuperstructureApplication("UB1", "ADT_A04"); 
513 	          this.addSuperstructureApplication("UB1", "ADT_A05"); 
514 	          this.addSuperstructureApplication("UB1", "ADT_A06"); 
515 	          this.addSuperstructureApplication("UB1", "ADT_A07"); 
516 	          this.addSuperstructureApplication("UB1", "ADT_A08"); 
517 	          this.addSuperstructureApplication("UB1", "ADT_A13"); 
518 	          this.addSuperstructureApplication("UB1", "ADT_A14"); 
519 	          this.addSuperstructureApplication("UB1", "ADT_A28"); 
520 	          this.addSuperstructureApplication("UB1", "ADT_A31"); 
521 	                          this.add(UB2.class, false, false);
522 	          this.addSuperstructureApplication("UB2", "ADT_A01"); 
523 	          this.addSuperstructureApplication("UB2", "ADT_A04"); 
524 	          this.addSuperstructureApplication("UB2", "ADT_A05"); 
525 	          this.addSuperstructureApplication("UB2", "ADT_A06"); 
526 	          this.addSuperstructureApplication("UB2", "ADT_A07"); 
527 	          this.addSuperstructureApplication("UB2", "ADT_A08"); 
528 	          this.addSuperstructureApplication("UB2", "ADT_A13"); 
529 	          this.addSuperstructureApplication("UB2", "ADT_A14"); 
530 	          this.addSuperstructureApplication("UB2", "ADT_A28"); 
531 	          this.addSuperstructureApplication("UB2", "ADT_A31"); 
532 	                          this.add(DRG.class, false, false);
533 	          this.addSuperstructureApplication("DRG2", "ADT_A06"); 
534 	          this.addSuperstructureApplication("DRG2", "ADT_A07"); 
535 	                          this.add(PID.class, false, false);
536 	          this.addSuperstructureApplication("PID2", "ADT_A17"); 
537 	          this.addSuperstructureApplication("PID2", "ADT_A24"); 
538 	          this.addSuperstructureApplication("PID2", "ADT_A37"); 
539 	                          this.add(PD1.class, false, false);
540 	          this.addSuperstructureApplication("PD12", "ADT_A17"); 
541 	          this.addSuperstructureApplication("PD12", "ADT_A24"); 
542 	                          this.add(PV1.class, false, false);
543 	          this.addSuperstructureApplication("PV12", "ADT_A17"); 
544 	          this.addSuperstructureApplication("PV12", "ADT_A24"); 
545 	          this.addSuperstructureApplication("PV12", "ADT_A37"); 
546 	                          this.add(PV2.class, false, false);
547 	          this.addSuperstructureApplication("PV22", "ADT_A17"); 
548 	                          this.add(DB1.class, false, true);
549 	          this.addSuperstructureApplication("DB12", "ADT_A17"); 
550 	          this.addSuperstructureApplication("DB12", "ADT_A24"); 
551 	          this.addSuperstructureApplication("DB12", "ADT_A37"); 
552 	                          this.add(OBX.class, false, true);
553 	          this.addSuperstructureApplication("OBX2", "ADT_A17"); 
554 	                          this.add(NPU.class, false, false);
555 	          this.addSuperstructureApplication("NPU", "ADT_A20"); 
556 	                          this.add(ADT_AXX_PATIENT.class, false, true);
557 	                          this.add(ADT_AXX_MERGE_INFO.class, false, true);
558 	       } catch(HL7Exception e) {
559           log.error("Unexpected error creating ADT_AXX - this is probably a bug in the source code generator.", e);
560        }
561     }
562 
563 	public java.util.List<String> getChildNamesForStructure(String theStructure) {
564 		java.util.ArrayList<String> retVal = new java.util.ArrayList<String>();
565 			if ( "ADT_A01".equals(theStructure) ) {
566 					retVal.add("MSH"); 
567 					retVal.add("EVN"); 
568 					retVal.add("PID"); 
569 					retVal.add("PD1"); 
570 					retVal.add("NK1"); 
571 					retVal.add("PV1"); 
572 					retVal.add("PV2"); 
573 					retVal.add("DB1"); 
574 					retVal.add("OBX"); 
575 					retVal.add("AL1"); 
576 					retVal.add("DG1"); 
577 					retVal.add("DRG"); 
578 					retVal.add("PROCEDURE"); 
579 					retVal.add("GT1"); 
580 					retVal.add("INSURANCE"); 
581 					retVal.add("ACC"); 
582 					retVal.add("UB1"); 
583 					retVal.add("UB2"); 
584 				}
585 			if ( "ADT_A02".equals(theStructure) ) {
586 					retVal.add("MSH"); 
587 					retVal.add("EVN"); 
588 					retVal.add("PID"); 
589 					retVal.add("PD1"); 
590 					retVal.add("PV1"); 
591 					retVal.add("PV2"); 
592 					retVal.add("DB1"); 
593 					retVal.add("OBX"); 
594 				}
595 			if ( "ADT_A03".equals(theStructure) ) {
596 					retVal.add("MSH"); 
597 					retVal.add("EVN"); 
598 					retVal.add("PID"); 
599 					retVal.add("PD1"); 
600 					retVal.add("PV1"); 
601 					retVal.add("PV2"); 
602 					retVal.add("DB1"); 
603 					retVal.add("DG1"); 
604 					retVal.add("DRG"); 
605 					retVal.add("PROCEDURE"); 
606 					retVal.add("OBX"); 
607 				}
608 			if ( "ADT_A04".equals(theStructure) ) {
609 					retVal.add("MSH"); 
610 					retVal.add("EVN"); 
611 					retVal.add("PID"); 
612 					retVal.add("PD1"); 
613 					retVal.add("NK1"); 
614 					retVal.add("PV1"); 
615 					retVal.add("PV2"); 
616 					retVal.add("DB1"); 
617 					retVal.add("OBX"); 
618 					retVal.add("AL1"); 
619 					retVal.add("DG1"); 
620 					retVal.add("DRG"); 
621 					retVal.add("PROCEDURE"); 
622 					retVal.add("GT1"); 
623 					retVal.add("INSURANCE"); 
624 					retVal.add("ACC"); 
625 					retVal.add("UB1"); 
626 					retVal.add("UB2"); 
627 				}
628 			if ( "ADT_A05".equals(theStructure) ) {
629 					retVal.add("MSH"); 
630 					retVal.add("EVN"); 
631 					retVal.add("PID"); 
632 					retVal.add("PD1"); 
633 					retVal.add("NK1"); 
634 					retVal.add("PV1"); 
635 					retVal.add("PV2"); 
636 					retVal.add("DB1"); 
637 					retVal.add("OBX"); 
638 					retVal.add("AL1"); 
639 					retVal.add("DG1"); 
640 					retVal.add("DRG"); 
641 					retVal.add("PROCEDURE"); 
642 					retVal.add("GT1"); 
643 					retVal.add("INSURANCE"); 
644 					retVal.add("ACC"); 
645 					retVal.add("UB1"); 
646 					retVal.add("UB2"); 
647 				}
648 			if ( "ADT_A06".equals(theStructure) ) {
649 					retVal.add("MSH"); 
650 					retVal.add("EVN"); 
651 					retVal.add("PID"); 
652 					retVal.add("PD1"); 
653 					retVal.add("MRG"); 
654 					retVal.add("NK1"); 
655 					retVal.add("PV1"); 
656 					retVal.add("PV2"); 
657 					retVal.add("DB1"); 
658 					retVal.add("DRG"); 
659 					retVal.add("OBX"); 
660 					retVal.add("AL1"); 
661 					retVal.add("DG1"); 
662 					retVal.add("DRG2"); 
663 					retVal.add("PROCEDURE"); 
664 					retVal.add("GT1"); 
665 					retVal.add("INSURANCE"); 
666 					retVal.add("ACC"); 
667 					retVal.add("UB1"); 
668 					retVal.add("UB2"); 
669 				}
670 			if ( "ADT_A07".equals(theStructure) ) {
671 					retVal.add("MSH"); 
672 					retVal.add("EVN"); 
673 					retVal.add("PID"); 
674 					retVal.add("PD1"); 
675 					retVal.add("MRG"); 
676 					retVal.add("NK1"); 
677 					retVal.add("PV1"); 
678 					retVal.add("PV2"); 
679 					retVal.add("DB1"); 
680 					retVal.add("DRG"); 
681 					retVal.add("OBX"); 
682 					retVal.add("AL1"); 
683 					retVal.add("DG1"); 
684 					retVal.add("DRG2"); 
685 					retVal.add("PROCEDURE"); 
686 					retVal.add("GT1"); 
687 					retVal.add("INSURANCE"); 
688 					retVal.add("ACC"); 
689 					retVal.add("UB1"); 
690 					retVal.add("UB2"); 
691 				}
692 			if ( "ADT_A08".equals(theStructure) ) {
693 					retVal.add("MSH"); 
694 					retVal.add("EVN"); 
695 					retVal.add("PID"); 
696 					retVal.add("PD1"); 
697 					retVal.add("NK1"); 
698 					retVal.add("PV1"); 
699 					retVal.add("PV2"); 
700 					retVal.add("DB1"); 
701 					retVal.add("OBX"); 
702 					retVal.add("AL1"); 
703 					retVal.add("DG1"); 
704 					retVal.add("DRG"); 
705 					retVal.add("PROCEDURE"); 
706 					retVal.add("GT1"); 
707 					retVal.add("INSURANCE"); 
708 					retVal.add("ACC"); 
709 					retVal.add("UB1"); 
710 					retVal.add("UB2"); 
711 				}
712 			if ( "ADT_A09".equals(theStructure) ) {
713 					retVal.add("MSH"); 
714 					retVal.add("EVN"); 
715 					retVal.add("PID"); 
716 					retVal.add("PD1"); 
717 					retVal.add("PV1"); 
718 					retVal.add("PV2"); 
719 					retVal.add("DB1"); 
720 					retVal.add("OBX"); 
721 					retVal.add("DG1"); 
722 				}
723 			if ( "ADT_A10".equals(theStructure) ) {
724 					retVal.add("MSH"); 
725 					retVal.add("EVN"); 
726 					retVal.add("PID"); 
727 					retVal.add("PD1"); 
728 					retVal.add("PV1"); 
729 					retVal.add("PV2"); 
730 					retVal.add("DB1"); 
731 					retVal.add("OBX"); 
732 					retVal.add("DG1"); 
733 				}
734 			if ( "ADT_A11".equals(theStructure) ) {
735 					retVal.add("MSH"); 
736 					retVal.add("EVN"); 
737 					retVal.add("PID"); 
738 					retVal.add("PD1"); 
739 					retVal.add("PV1"); 
740 					retVal.add("PV2"); 
741 					retVal.add("DB1"); 
742 					retVal.add("OBX"); 
743 					retVal.add("DG1"); 
744 				}
745 			if ( "ADT_A12".equals(theStructure) ) {
746 					retVal.add("MSH"); 
747 					retVal.add("EVN"); 
748 					retVal.add("PID"); 
749 					retVal.add("PD1"); 
750 					retVal.add("PV1"); 
751 					retVal.add("PV2"); 
752 					retVal.add("DB1"); 
753 					retVal.add("OBX"); 
754 					retVal.add("DG1"); 
755 				}
756 			if ( "ADT_A13".equals(theStructure) ) {
757 					retVal.add("MSH"); 
758 					retVal.add("EVN"); 
759 					retVal.add("PID"); 
760 					retVal.add("PD1"); 
761 					retVal.add("NK1"); 
762 					retVal.add("PV1"); 
763 					retVal.add("PV2"); 
764 					retVal.add("DB1"); 
765 					retVal.add("OBX"); 
766 					retVal.add("AL1"); 
767 					retVal.add("DG1"); 
768 					retVal.add("DRG"); 
769 					retVal.add("PROCEDURE"); 
770 					retVal.add("GT1"); 
771 					retVal.add("INSURANCE"); 
772 					retVal.add("ACC"); 
773 					retVal.add("UB1"); 
774 					retVal.add("UB2"); 
775 				}
776 			if ( "ADT_A14".equals(theStructure) ) {
777 					retVal.add("MSH"); 
778 					retVal.add("EVN"); 
779 					retVal.add("PID"); 
780 					retVal.add("PD1"); 
781 					retVal.add("NK1"); 
782 					retVal.add("PV1"); 
783 					retVal.add("PV2"); 
784 					retVal.add("DB1"); 
785 					retVal.add("OBX"); 
786 					retVal.add("AL1"); 
787 					retVal.add("DG1"); 
788 					retVal.add("DRG"); 
789 					retVal.add("PROCEDURE"); 
790 					retVal.add("GT1"); 
791 					retVal.add("INSURANCE"); 
792 					retVal.add("ACC"); 
793 					retVal.add("UB1"); 
794 					retVal.add("UB2"); 
795 				}
796 			if ( "ADT_A15".equals(theStructure) ) {
797 					retVal.add("MSH"); 
798 					retVal.add("EVN"); 
799 					retVal.add("PID"); 
800 					retVal.add("PD1"); 
801 					retVal.add("PV1"); 
802 					retVal.add("PV2"); 
803 					retVal.add("DB1"); 
804 					retVal.add("OBX"); 
805 					retVal.add("DG1"); 
806 				}
807 			if ( "ADT_A16".equals(theStructure) ) {
808 					retVal.add("MSH"); 
809 					retVal.add("EVN"); 
810 					retVal.add("PID"); 
811 					retVal.add("PD1"); 
812 					retVal.add("PV1"); 
813 					retVal.add("PV2"); 
814 					retVal.add("DB1"); 
815 					retVal.add("OBX"); 
816 					retVal.add("DG1"); 
817 					retVal.add("DRG"); 
818 				}
819 			if ( "ADT_A17".equals(theStructure) ) {
820 					retVal.add("MSH"); 
821 					retVal.add("EVN"); 
822 					retVal.add("PID"); 
823 					retVal.add("PD1"); 
824 					retVal.add("PV1"); 
825 					retVal.add("PV2"); 
826 					retVal.add("DB1"); 
827 					retVal.add("OBX"); 
828 					retVal.add("PID2"); 
829 					retVal.add("PD12"); 
830 					retVal.add("PV12"); 
831 					retVal.add("PV22"); 
832 					retVal.add("DB12"); 
833 					retVal.add("OBX2"); 
834 				}
835 			if ( "ADT_A18".equals(theStructure) ) {
836 					retVal.add("MSH"); 
837 					retVal.add("EVN"); 
838 					retVal.add("PID"); 
839 					retVal.add("PD1"); 
840 					retVal.add("MRG"); 
841 					retVal.add("PV1"); 
842 				}
843 			if ( "ADT_A20".equals(theStructure) ) {
844 					retVal.add("MSH"); 
845 					retVal.add("EVN"); 
846 					retVal.add("NPU"); 
847 				}
848 			if ( "ADT_A21".equals(theStructure) ) {
849 					retVal.add("MSH"); 
850 					retVal.add("EVN"); 
851 					retVal.add("PID"); 
852 					retVal.add("PD1"); 
853 					retVal.add("PV1"); 
854 					retVal.add("PV2"); 
855 					retVal.add("DB1"); 
856 					retVal.add("OBX"); 
857 				}
858 			if ( "ADT_A22".equals(theStructure) ) {
859 					retVal.add("MSH"); 
860 					retVal.add("EVN"); 
861 					retVal.add("PID"); 
862 					retVal.add("PD1"); 
863 					retVal.add("PV1"); 
864 					retVal.add("PV2"); 
865 					retVal.add("DB1"); 
866 					retVal.add("OBX"); 
867 				}
868 			if ( "ADT_A23".equals(theStructure) ) {
869 					retVal.add("MSH"); 
870 					retVal.add("EVN"); 
871 					retVal.add("PID"); 
872 					retVal.add("PD1"); 
873 					retVal.add("PV1"); 
874 					retVal.add("PV2"); 
875 					retVal.add("DB1"); 
876 					retVal.add("OBX"); 
877 				}
878 			if ( "ADT_A24".equals(theStructure) ) {
879 					retVal.add("MSH"); 
880 					retVal.add("EVN"); 
881 					retVal.add("PID"); 
882 					retVal.add("PD1"); 
883 					retVal.add("PV1"); 
884 					retVal.add("DB1"); 
885 					retVal.add("PID2"); 
886 					retVal.add("PD12"); 
887 					retVal.add("PV12"); 
888 					retVal.add("DB12"); 
889 				}
890 			if ( "ADT_A25".equals(theStructure) ) {
891 					retVal.add("MSH"); 
892 					retVal.add("EVN"); 
893 					retVal.add("PID"); 
894 					retVal.add("PD1"); 
895 					retVal.add("PV1"); 
896 					retVal.add("PV2"); 
897 					retVal.add("DB1"); 
898 					retVal.add("OBX"); 
899 				}
900 			if ( "ADT_A26".equals(theStructure) ) {
901 					retVal.add("MSH"); 
902 					retVal.add("EVN"); 
903 					retVal.add("PID"); 
904 					retVal.add("PD1"); 
905 					retVal.add("PV1"); 
906 					retVal.add("PV2"); 
907 					retVal.add("DB1"); 
908 					retVal.add("OBX"); 
909 				}
910 			if ( "ADT_A27".equals(theStructure) ) {
911 					retVal.add("MSH"); 
912 					retVal.add("EVN"); 
913 					retVal.add("PID"); 
914 					retVal.add("PD1"); 
915 					retVal.add("PV1"); 
916 					retVal.add("PV2"); 
917 					retVal.add("DB1"); 
918 					retVal.add("OBX"); 
919 				}
920 			if ( "ADT_A28".equals(theStructure) ) {
921 					retVal.add("MSH"); 
922 					retVal.add("EVN"); 
923 					retVal.add("PID"); 
924 					retVal.add("PD1"); 
925 					retVal.add("NK1"); 
926 					retVal.add("PV1"); 
927 					retVal.add("PV2"); 
928 					retVal.add("DB1"); 
929 					retVal.add("OBX"); 
930 					retVal.add("AL1"); 
931 					retVal.add("DG1"); 
932 					retVal.add("DRG"); 
933 					retVal.add("PROCEDURE"); 
934 					retVal.add("GT1"); 
935 					retVal.add("INSURANCE"); 
936 					retVal.add("ACC"); 
937 					retVal.add("UB1"); 
938 					retVal.add("UB2"); 
939 				}
940 			if ( "ADT_A29".equals(theStructure) ) {
941 					retVal.add("MSH"); 
942 					retVal.add("EVN"); 
943 					retVal.add("PID"); 
944 					retVal.add("PD1"); 
945 					retVal.add("PV1"); 
946 					retVal.add("PV2"); 
947 					retVal.add("DB1"); 
948 					retVal.add("OBX"); 
949 				}
950 			if ( "ADT_A30".equals(theStructure) ) {
951 					retVal.add("MSH"); 
952 					retVal.add("EVN"); 
953 					retVal.add("PID"); 
954 					retVal.add("PD1"); 
955 					retVal.add("MRG"); 
956 				}
957 			if ( "ADT_A31".equals(theStructure) ) {
958 					retVal.add("MSH"); 
959 					retVal.add("EVN"); 
960 					retVal.add("PID"); 
961 					retVal.add("PD1"); 
962 					retVal.add("NK1"); 
963 					retVal.add("PV1"); 
964 					retVal.add("PV2"); 
965 					retVal.add("DB1"); 
966 					retVal.add("OBX"); 
967 					retVal.add("AL1"); 
968 					retVal.add("DG1"); 
969 					retVal.add("DRG"); 
970 					retVal.add("PROCEDURE"); 
971 					retVal.add("GT1"); 
972 					retVal.add("INSURANCE"); 
973 					retVal.add("ACC"); 
974 					retVal.add("UB1"); 
975 					retVal.add("UB2"); 
976 				}
977 			if ( "ADT_A32".equals(theStructure) ) {
978 					retVal.add("MSH"); 
979 					retVal.add("EVN"); 
980 					retVal.add("PID"); 
981 					retVal.add("PD1"); 
982 					retVal.add("PV1"); 
983 					retVal.add("PV2"); 
984 					retVal.add("DB1"); 
985 					retVal.add("OBX"); 
986 				}
987 			if ( "ADT_A33".equals(theStructure) ) {
988 					retVal.add("MSH"); 
989 					retVal.add("EVN"); 
990 					retVal.add("PID"); 
991 					retVal.add("PD1"); 
992 					retVal.add("PV1"); 
993 					retVal.add("PV2"); 
994 					retVal.add("DB1"); 
995 					retVal.add("OBX"); 
996 				}
997 			if ( "ADT_A34".equals(theStructure) ) {
998 					retVal.add("MSH"); 
999 					retVal.add("EVN"); 
1000 					retVal.add("PID"); 
1001 					retVal.add("PD1"); 
1002 					retVal.add("MRG"); 
1003 				}
1004 			if ( "ADT_A35".equals(theStructure) ) {
1005 					retVal.add("MSH"); 
1006 					retVal.add("EVN"); 
1007 					retVal.add("PID"); 
1008 					retVal.add("PD1"); 
1009 					retVal.add("MRG"); 
1010 				}
1011 			if ( "ADT_A36".equals(theStructure) ) {
1012 					retVal.add("MSH"); 
1013 					retVal.add("EVN"); 
1014 					retVal.add("PID"); 
1015 					retVal.add("PD1"); 
1016 					retVal.add("MRG"); 
1017 				}
1018 			if ( "ADT_A37".equals(theStructure) ) {
1019 					retVal.add("MSH"); 
1020 					retVal.add("EVN"); 
1021 					retVal.add("PID"); 
1022 					retVal.add("PD1"); 
1023 					retVal.add("PV1"); 
1024 					retVal.add("DB1"); 
1025 					retVal.add("PID2"); 
1026 					retVal.add("PV12"); 
1027 					retVal.add("DB12"); 
1028 				}
1029 			if ( "ADT_A38".equals(theStructure) ) {
1030 					retVal.add("MSH"); 
1031 					retVal.add("EVN"); 
1032 					retVal.add("PID"); 
1033 					retVal.add("PD1"); 
1034 					retVal.add("PV1"); 
1035 					retVal.add("PV2"); 
1036 					retVal.add("DB1"); 
1037 					retVal.add("OBX"); 
1038 					retVal.add("DG1"); 
1039 					retVal.add("DRG"); 
1040 				}
1041 			if ( "ADT_A39".equals(theStructure) ) {
1042 					retVal.add("MSH"); 
1043 					retVal.add("EVN"); 
1044 					retVal.add("PATIENT"); 
1045 				}
1046 			if ( "ADT_A40".equals(theStructure) ) {
1047 					retVal.add("MSH"); 
1048 					retVal.add("EVN"); 
1049 					retVal.add("PATIENT"); 
1050 				}
1051 			if ( "ADT_A41".equals(theStructure) ) {
1052 					retVal.add("MSH"); 
1053 					retVal.add("EVN"); 
1054 					retVal.add("PATIENT"); 
1055 				}
1056 			if ( "ADT_A42".equals(theStructure) ) {
1057 					retVal.add("MSH"); 
1058 					retVal.add("EVN"); 
1059 					retVal.add("PATIENT"); 
1060 				}
1061 			if ( "ADT_A43".equals(theStructure) ) {
1062 					retVal.add("MSH"); 
1063 					retVal.add("EVN"); 
1064 					retVal.add("PATIENT"); 
1065 				}
1066 			if ( "ADT_A44".equals(theStructure) ) {
1067 					retVal.add("MSH"); 
1068 					retVal.add("EVN"); 
1069 					retVal.add("PATIENT"); 
1070 				}
1071 			if ( "ADT_A45".equals(theStructure) ) {
1072 					retVal.add("MSH"); 
1073 					retVal.add("EVN"); 
1074 					retVal.add("PID"); 
1075 					retVal.add("PD1"); 
1076 					retVal.add("MERGE_INFO"); 
1077 				}
1078 			if ( "ADT_A46".equals(theStructure) ) {
1079 					retVal.add("MSH"); 
1080 					retVal.add("EVN"); 
1081 					retVal.add("PID"); 
1082 					retVal.add("PD1"); 
1083 					retVal.add("MRG"); 
1084 				}
1085 			if ( "ADT_A47".equals(theStructure) ) {
1086 					retVal.add("MSH"); 
1087 					retVal.add("EVN"); 
1088 					retVal.add("PID"); 
1089 					retVal.add("PD1"); 
1090 					retVal.add("MRG"); 
1091 				}
1092 			if ( "ADT_A48".equals(theStructure) ) {
1093 					retVal.add("MSH"); 
1094 					retVal.add("EVN"); 
1095 					retVal.add("PID"); 
1096 					retVal.add("PD1"); 
1097 					retVal.add("MRG"); 
1098 				}
1099 			if ( "ADT_A49".equals(theStructure) ) {
1100 					retVal.add("MSH"); 
1101 					retVal.add("EVN"); 
1102 					retVal.add("PID"); 
1103 					retVal.add("PD1"); 
1104 					retVal.add("MRG"); 
1105 				}
1106 			if ( "ADT_A50".equals(theStructure) ) {
1107 					retVal.add("MSH"); 
1108 					retVal.add("EVN"); 
1109 					retVal.add("PID"); 
1110 					retVal.add("PD1"); 
1111 					retVal.add("MRG"); 
1112 					retVal.add("PV1"); 
1113 				}
1114 			if ( "ADT_A51".equals(theStructure) ) {
1115 					retVal.add("MSH"); 
1116 					retVal.add("EVN"); 
1117 					retVal.add("PID"); 
1118 					retVal.add("PD1"); 
1119 					retVal.add("MRG"); 
1120 					retVal.add("PV1"); 
1121 				}
1122 			return retVal;
1123 	}
1124 
1125     /** 
1126      * Returns "2.3"
1127      */
1128     public String getVersion() {
1129        return "2.3";
1130     }
1131 
1132 
1133 
1134 
1135     /**
1136      * <p>
1137      * Returns
1138      * MSH () - creates it if necessary
1139      * </p>
1140      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A20, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A39, ADT_A40, ADT_A41, ADT_A42, ADT_A43, ADT_A44, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]
1141      *
1142      */
1143     public MSH getMSH() { 
1144        return getTyped("MSH", MSH.class);
1145     }
1146 
1147 
1148 
1149 
1150 
1151     /**
1152      * <p>
1153      * Returns
1154      * EVN () - creates it if necessary
1155      * </p>
1156      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A20, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A39, ADT_A40, ADT_A41, ADT_A42, ADT_A43, ADT_A44, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]
1157      *
1158      */
1159     public EVN getEVN() { 
1160        return getTyped("EVN", EVN.class);
1161     }
1162 
1163 
1164 
1165 
1166 
1167     /**
1168      * <p>
1169      * Returns
1170      * PID () - creates it if necessary
1171      * </p>
1172      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]
1173      *
1174      */
1175     public PID getPID() { 
1176        return getTyped("PID", PID.class);
1177     }
1178 
1179 
1180 
1181 
1182 
1183     /**
1184      * <p>
1185      * Returns
1186      * PD1 () - creates it if necessary
1187      * </p>
1188      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A30, ADT_A31, ADT_A32, ADT_A33, ADT_A34, ADT_A35, ADT_A36, ADT_A37, ADT_A38, ADT_A45, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]
1189      *
1190      */
1191     public PD1 getPD1() { 
1192        return getTyped("PD1", PD1.class);
1193     }
1194 
1195 
1196 
1197 
1198 
1199     /**
1200      * <p>
1201      * Returns
1202      * MRG () - creates it if necessary
1203      * </p>
1204      * Used for the following structures: [ADT_A06, ADT_A07, ADT_A18, ADT_A30, ADT_A34, ADT_A35, ADT_A36, ADT_A46, ADT_A47, ADT_A48, ADT_A49, ADT_A50, ADT_A51]
1205      *
1206      */
1207     public MRG getMRG() { 
1208        return getTyped("MRG", MRG.class);
1209     }
1210 
1211 
1212 
1213 
1214 
1215     /**
1216      * <p>
1217      * Returns
1218      * the first repetition of 
1219      * NK1 () - creates it if necessary
1220      * </p>
1221      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1222      *
1223      */
1224     public NK1 getNK1() { 
1225        return getTyped("NK1", NK1.class);
1226     }
1227 
1228 
1229     /**
1230      * <p>
1231      * Returns a specific repetition of
1232      * NK1 () - creates it if necessary
1233      * </p>
1234      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1235      *
1236      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1237      * @throws HL7Exception if the repetition requested is more than one 
1238      *     greater than the number of existing repetitions.
1239      */
1240     public NK1 getNK1(int rep) { 
1241        return getTyped("NK1", rep, NK1.class);
1242     }
1243 
1244     /** 
1245      * <p>
1246      * Returns the number of existing repetitions of NK1 
1247      * </p>
1248      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1249      */ 
1250     public int getNK1Reps() { 
1251     	return getReps("NK1");
1252     } 
1253 
1254     /** 
1255      * <p>
1256      * Returns a non-modifiable List containing all current existing repetitions of NK1.
1257      * <p>
1258      * <p>
1259      * Note that unlike {@link #getNK1()}, this method will not create any reps
1260      * if none are already present, so an empty list may be returned.
1261      * </p>
1262      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1263      */ 
1264     public java.util.List<NK1> getNK1All() throws HL7Exception {
1265     	return getAllAsList("NK1", NK1.class);
1266     } 
1267 
1268     /**
1269      * <p>
1270      * Inserts a specific repetition of NK1 ()
1271      * </p>
1272      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1273      *
1274      * @see AbstractGroup#insertRepetition(Structure, int) 
1275      */
1276     public void insertNK1(NK1 structure, int rep) throws HL7Exception { 
1277        super.insertRepetition( "NK1", structure, rep);
1278     }
1279 
1280 
1281     /**
1282      * <p>
1283      * Inserts a specific repetition of NK1 ()
1284      * </p>
1285      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1286      *
1287      * @see AbstractGroup#insertRepetition(Structure, int) 
1288      */
1289     public NK1 insertNK1(int rep) throws HL7Exception { 
1290        return (NK1)super.insertRepetition("NK1", rep);
1291     }
1292 
1293 
1294     /**
1295      * <p>
1296      * Removes a specific repetition of NK1 ()
1297      * </p>
1298      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1299      *
1300      * @see AbstractGroup#removeRepetition(String, int) 
1301      */
1302     public NK1 removeNK1(int rep) throws HL7Exception { 
1303        return (NK1)super.removeRepetition("NK1", rep);
1304     }
1305 
1306 
1307 
1308 
1309     /**
1310      * <p>
1311      * Returns
1312      * PV1 () - creates it if necessary
1313      * </p>
1314      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A18, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38, ADT_A50, ADT_A51]
1315      *
1316      */
1317     public PV1 getPV1() { 
1318        return getTyped("PV1", PV1.class);
1319     }
1320 
1321 
1322 
1323 
1324 
1325     /**
1326      * <p>
1327      * Returns
1328      * PV2 () - creates it if necessary
1329      * </p>
1330      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1331      *
1332      */
1333     public PV2 getPV2() { 
1334        return getTyped("PV2", PV2.class);
1335     }
1336 
1337 
1338 
1339 
1340 
1341     /**
1342      * <p>
1343      * Returns
1344      * the first repetition of 
1345      * DB1 () - creates it if necessary
1346      * </p>
1347      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1348      *
1349      */
1350     public DB1 getDB1() { 
1351        return getTyped("DB1", DB1.class);
1352     }
1353 
1354 
1355     /**
1356      * <p>
1357      * Returns a specific repetition of
1358      * DB1 () - creates it if necessary
1359      * </p>
1360      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1361      *
1362      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1363      * @throws HL7Exception if the repetition requested is more than one 
1364      *     greater than the number of existing repetitions.
1365      */
1366     public DB1 getDB1(int rep) { 
1367        return getTyped("DB1", rep, DB1.class);
1368     }
1369 
1370     /** 
1371      * <p>
1372      * Returns the number of existing repetitions of DB1 
1373      * </p>
1374      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1375      */ 
1376     public int getDB1Reps() { 
1377     	return getReps("DB1");
1378     } 
1379 
1380     /** 
1381      * <p>
1382      * Returns a non-modifiable List containing all current existing repetitions of DB1.
1383      * <p>
1384      * <p>
1385      * Note that unlike {@link #getDB1()}, this method will not create any reps
1386      * if none are already present, so an empty list may be returned.
1387      * </p>
1388      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1389      */ 
1390     public java.util.List<DB1> getDB1All() throws HL7Exception {
1391     	return getAllAsList("DB1", DB1.class);
1392     } 
1393 
1394     /**
1395      * <p>
1396      * Inserts a specific repetition of DB1 ()
1397      * </p>
1398      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1399      *
1400      * @see AbstractGroup#insertRepetition(Structure, int) 
1401      */
1402     public void insertDB1(DB1 structure, int rep) throws HL7Exception { 
1403        super.insertRepetition( "DB1", structure, rep);
1404     }
1405 
1406 
1407     /**
1408      * <p>
1409      * Inserts a specific repetition of DB1 ()
1410      * </p>
1411      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1412      *
1413      * @see AbstractGroup#insertRepetition(Structure, int) 
1414      */
1415     public DB1 insertDB1(int rep) throws HL7Exception { 
1416        return (DB1)super.insertRepetition("DB1", rep);
1417     }
1418 
1419 
1420     /**
1421      * <p>
1422      * Removes a specific repetition of DB1 ()
1423      * </p>
1424      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A24, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A37, ADT_A38]
1425      *
1426      * @see AbstractGroup#removeRepetition(String, int) 
1427      */
1428     public DB1 removeDB1(int rep) throws HL7Exception { 
1429        return (DB1)super.removeRepetition("DB1", rep);
1430     }
1431 
1432 
1433 
1434 
1435     /**
1436      * <p>
1437      * Returns
1438      * the first repetition of 
1439      * OBX () - creates it if necessary
1440      * </p>
1441      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1442      *
1443      */
1444     public OBX getOBX() { 
1445        return getTyped("OBX", OBX.class);
1446     }
1447 
1448 
1449     /**
1450      * <p>
1451      * Returns a specific repetition of
1452      * OBX () - creates it if necessary
1453      * </p>
1454      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1455      *
1456      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1457      * @throws HL7Exception if the repetition requested is more than one 
1458      *     greater than the number of existing repetitions.
1459      */
1460     public OBX getOBX(int rep) { 
1461        return getTyped("OBX", rep, OBX.class);
1462     }
1463 
1464     /** 
1465      * <p>
1466      * Returns the number of existing repetitions of OBX 
1467      * </p>
1468      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1469      */ 
1470     public int getOBXReps() { 
1471     	return getReps("OBX");
1472     } 
1473 
1474     /** 
1475      * <p>
1476      * Returns a non-modifiable List containing all current existing repetitions of OBX.
1477      * <p>
1478      * <p>
1479      * Note that unlike {@link #getOBX()}, this method will not create any reps
1480      * if none are already present, so an empty list may be returned.
1481      * </p>
1482      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1483      */ 
1484     public java.util.List<OBX> getOBXAll() throws HL7Exception {
1485     	return getAllAsList("OBX", OBX.class);
1486     } 
1487 
1488     /**
1489      * <p>
1490      * Inserts a specific repetition of OBX ()
1491      * </p>
1492      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1493      *
1494      * @see AbstractGroup#insertRepetition(Structure, int) 
1495      */
1496     public void insertOBX(OBX structure, int rep) throws HL7Exception { 
1497        super.insertRepetition( "OBX", structure, rep);
1498     }
1499 
1500 
1501     /**
1502      * <p>
1503      * Inserts a specific repetition of OBX ()
1504      * </p>
1505      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1506      *
1507      * @see AbstractGroup#insertRepetition(Structure, int) 
1508      */
1509     public OBX insertOBX(int rep) throws HL7Exception { 
1510        return (OBX)super.insertRepetition("OBX", rep);
1511     }
1512 
1513 
1514     /**
1515      * <p>
1516      * Removes a specific repetition of OBX ()
1517      * </p>
1518      * Used for the following structures: [ADT_A01, ADT_A02, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A17, ADT_A21, ADT_A22, ADT_A23, ADT_A25, ADT_A26, ADT_A27, ADT_A28, ADT_A29, ADT_A31, ADT_A32, ADT_A33, ADT_A38]
1519      *
1520      * @see AbstractGroup#removeRepetition(String, int) 
1521      */
1522     public OBX removeOBX(int rep) throws HL7Exception { 
1523        return (OBX)super.removeRepetition("OBX", rep);
1524     }
1525 
1526 
1527 
1528 
1529     /**
1530      * <p>
1531      * Returns
1532      * the first repetition of 
1533      * AL1 () - creates it if necessary
1534      * </p>
1535      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1536      *
1537      */
1538     public AL1 getAL1() { 
1539        return getTyped("AL1", AL1.class);
1540     }
1541 
1542 
1543     /**
1544      * <p>
1545      * Returns a specific repetition of
1546      * AL1 () - creates it if necessary
1547      * </p>
1548      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1549      *
1550      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1551      * @throws HL7Exception if the repetition requested is more than one 
1552      *     greater than the number of existing repetitions.
1553      */
1554     public AL1 getAL1(int rep) { 
1555        return getTyped("AL1", rep, AL1.class);
1556     }
1557 
1558     /** 
1559      * <p>
1560      * Returns the number of existing repetitions of AL1 
1561      * </p>
1562      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1563      */ 
1564     public int getAL1Reps() { 
1565     	return getReps("AL1");
1566     } 
1567 
1568     /** 
1569      * <p>
1570      * Returns a non-modifiable List containing all current existing repetitions of AL1.
1571      * <p>
1572      * <p>
1573      * Note that unlike {@link #getAL1()}, this method will not create any reps
1574      * if none are already present, so an empty list may be returned.
1575      * </p>
1576      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1577      */ 
1578     public java.util.List<AL1> getAL1All() throws HL7Exception {
1579     	return getAllAsList("AL1", AL1.class);
1580     } 
1581 
1582     /**
1583      * <p>
1584      * Inserts a specific repetition of AL1 ()
1585      * </p>
1586      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1587      *
1588      * @see AbstractGroup#insertRepetition(Structure, int) 
1589      */
1590     public void insertAL1(AL1 structure, int rep) throws HL7Exception { 
1591        super.insertRepetition( "AL1", structure, rep);
1592     }
1593 
1594 
1595     /**
1596      * <p>
1597      * Inserts a specific repetition of AL1 ()
1598      * </p>
1599      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1600      *
1601      * @see AbstractGroup#insertRepetition(Structure, int) 
1602      */
1603     public AL1 insertAL1(int rep) throws HL7Exception { 
1604        return (AL1)super.insertRepetition("AL1", rep);
1605     }
1606 
1607 
1608     /**
1609      * <p>
1610      * Removes a specific repetition of AL1 ()
1611      * </p>
1612      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1613      *
1614      * @see AbstractGroup#removeRepetition(String, int) 
1615      */
1616     public AL1 removeAL1(int rep) throws HL7Exception { 
1617        return (AL1)super.removeRepetition("AL1", rep);
1618     }
1619 
1620 
1621 
1622 
1623     /**
1624      * <p>
1625      * Returns
1626      * the first repetition of 
1627      * DG1 () - creates it if necessary
1628      * </p>
1629      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1630      *
1631      */
1632     public DG1 getDG1() { 
1633        return getTyped("DG1", DG1.class);
1634     }
1635 
1636 
1637     /**
1638      * <p>
1639      * Returns a specific repetition of
1640      * DG1 () - creates it if necessary
1641      * </p>
1642      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1643      *
1644      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1645      * @throws HL7Exception if the repetition requested is more than one 
1646      *     greater than the number of existing repetitions.
1647      */
1648     public DG1 getDG1(int rep) { 
1649        return getTyped("DG1", rep, DG1.class);
1650     }
1651 
1652     /** 
1653      * <p>
1654      * Returns the number of existing repetitions of DG1 
1655      * </p>
1656      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1657      */ 
1658     public int getDG1Reps() { 
1659     	return getReps("DG1");
1660     } 
1661 
1662     /** 
1663      * <p>
1664      * Returns a non-modifiable List containing all current existing repetitions of DG1.
1665      * <p>
1666      * <p>
1667      * Note that unlike {@link #getDG1()}, this method will not create any reps
1668      * if none are already present, so an empty list may be returned.
1669      * </p>
1670      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1671      */ 
1672     public java.util.List<DG1> getDG1All() throws HL7Exception {
1673     	return getAllAsList("DG1", DG1.class);
1674     } 
1675 
1676     /**
1677      * <p>
1678      * Inserts a specific repetition of DG1 ()
1679      * </p>
1680      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1681      *
1682      * @see AbstractGroup#insertRepetition(Structure, int) 
1683      */
1684     public void insertDG1(DG1 structure, int rep) throws HL7Exception { 
1685        super.insertRepetition( "DG1", structure, rep);
1686     }
1687 
1688 
1689     /**
1690      * <p>
1691      * Inserts a specific repetition of DG1 ()
1692      * </p>
1693      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1694      *
1695      * @see AbstractGroup#insertRepetition(Structure, int) 
1696      */
1697     public DG1 insertDG1(int rep) throws HL7Exception { 
1698        return (DG1)super.insertRepetition("DG1", rep);
1699     }
1700 
1701 
1702     /**
1703      * <p>
1704      * Removes a specific repetition of DG1 ()
1705      * </p>
1706      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A09, ADT_A10, ADT_A11, ADT_A12, ADT_A13, ADT_A14, ADT_A15, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1707      *
1708      * @see AbstractGroup#removeRepetition(String, int) 
1709      */
1710     public DG1 removeDG1(int rep) throws HL7Exception { 
1711        return (DG1)super.removeRepetition("DG1", rep);
1712     }
1713 
1714 
1715 
1716 
1717     /**
1718      * <p>
1719      * Returns
1720      * DRG () - creates it if necessary
1721      * </p>
1722      * Used for the following structures: [ADT_A01, ADT_A03, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A16, ADT_A28, ADT_A31, ADT_A38]
1723      *
1724      */
1725     public DRG getDRG() { 
1726        return getTyped("DRG", DRG.class);
1727     }
1728 
1729 
1730 
1731 
1732 
1733     /**
1734      * <p>
1735      * Returns
1736      * the first repetition of 
1737      * PROCEDURE () - creates it if necessary
1738      * </p>
1739      * 
1740      *
1741      */
1742     public ADT_AXX_PROCEDURE getPROCEDURE() { 
1743        return getTyped("PROCEDURE", ADT_AXX_PROCEDURE.class);
1744     }
1745 
1746 
1747     /**
1748      * <p>
1749      * Returns a specific repetition of
1750      * PROCEDURE () - creates it if necessary
1751      * </p>
1752      * 
1753      *
1754      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1755      * @throws HL7Exception if the repetition requested is more than one 
1756      *     greater than the number of existing repetitions.
1757      */
1758     public ADT_AXX_PROCEDURE getPROCEDURE(int rep) { 
1759        return getTyped("PROCEDURE", rep, ADT_AXX_PROCEDURE.class);
1760     }
1761 
1762     /** 
1763      * <p>
1764      * Returns the number of existing repetitions of PROCEDURE 
1765      * </p>
1766      * 
1767      */ 
1768     public int getPROCEDUREReps() { 
1769     	return getReps("PROCEDURE");
1770     } 
1771 
1772     /** 
1773      * <p>
1774      * Returns a non-modifiable List containing all current existing repetitions of PROCEDURE.
1775      * <p>
1776      * <p>
1777      * Note that unlike {@link #getPROCEDURE()}, this method will not create any reps
1778      * if none are already present, so an empty list may be returned.
1779      * </p>
1780      * 
1781      */ 
1782     public java.util.List<ADT_AXX_PROCEDURE> getPROCEDUREAll() throws HL7Exception {
1783     	return getAllAsList("PROCEDURE", ADT_AXX_PROCEDURE.class);
1784     } 
1785 
1786     /**
1787      * <p>
1788      * Inserts a specific repetition of PROCEDURE ()
1789      * </p>
1790      * 
1791      *
1792      * @see AbstractGroup#insertRepetition(Structure, int) 
1793      */
1794     public void insertPROCEDURE(ADT_AXX_PROCEDURE structure, int rep) throws HL7Exception { 
1795        super.insertRepetition( "PROCEDURE", structure, rep);
1796     }
1797 
1798 
1799     /**
1800      * <p>
1801      * Inserts a specific repetition of PROCEDURE ()
1802      * </p>
1803      * 
1804      *
1805      * @see AbstractGroup#insertRepetition(Structure, int) 
1806      */
1807     public ADT_AXX_PROCEDURE insertPROCEDURE(int rep) throws HL7Exception { 
1808        return (ADT_AXX_PROCEDURE)super.insertRepetition("PROCEDURE", rep);
1809     }
1810 
1811 
1812     /**
1813      * <p>
1814      * Removes a specific repetition of PROCEDURE ()
1815      * </p>
1816      * 
1817      *
1818      * @see AbstractGroup#removeRepetition(String, int) 
1819      */
1820     public ADT_AXX_PROCEDURE removePROCEDURE(int rep) throws HL7Exception { 
1821        return (ADT_AXX_PROCEDURE)super.removeRepetition("PROCEDURE", rep);
1822     }
1823 
1824 
1825 
1826 
1827     /**
1828      * <p>
1829      * Returns
1830      * the first repetition of 
1831      * GT1 () - creates it if necessary
1832      * </p>
1833      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1834      *
1835      */
1836     public GT1 getGT1() { 
1837        return getTyped("GT1", GT1.class);
1838     }
1839 
1840 
1841     /**
1842      * <p>
1843      * Returns a specific repetition of
1844      * GT1 () - creates it if necessary
1845      * </p>
1846      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1847      *
1848      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1849      * @throws HL7Exception if the repetition requested is more than one 
1850      *     greater than the number of existing repetitions.
1851      */
1852     public GT1 getGT1(int rep) { 
1853        return getTyped("GT1", rep, GT1.class);
1854     }
1855 
1856     /** 
1857      * <p>
1858      * Returns the number of existing repetitions of GT1 
1859      * </p>
1860      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1861      */ 
1862     public int getGT1Reps() { 
1863     	return getReps("GT1");
1864     } 
1865 
1866     /** 
1867      * <p>
1868      * Returns a non-modifiable List containing all current existing repetitions of GT1.
1869      * <p>
1870      * <p>
1871      * Note that unlike {@link #getGT1()}, this method will not create any reps
1872      * if none are already present, so an empty list may be returned.
1873      * </p>
1874      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1875      */ 
1876     public java.util.List<GT1> getGT1All() throws HL7Exception {
1877     	return getAllAsList("GT1", GT1.class);
1878     } 
1879 
1880     /**
1881      * <p>
1882      * Inserts a specific repetition of GT1 ()
1883      * </p>
1884      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1885      *
1886      * @see AbstractGroup#insertRepetition(Structure, int) 
1887      */
1888     public void insertGT1(GT1 structure, int rep) throws HL7Exception { 
1889        super.insertRepetition( "GT1", structure, rep);
1890     }
1891 
1892 
1893     /**
1894      * <p>
1895      * Inserts a specific repetition of GT1 ()
1896      * </p>
1897      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1898      *
1899      * @see AbstractGroup#insertRepetition(Structure, int) 
1900      */
1901     public GT1 insertGT1(int rep) throws HL7Exception { 
1902        return (GT1)super.insertRepetition("GT1", rep);
1903     }
1904 
1905 
1906     /**
1907      * <p>
1908      * Removes a specific repetition of GT1 ()
1909      * </p>
1910      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
1911      *
1912      * @see AbstractGroup#removeRepetition(String, int) 
1913      */
1914     public GT1 removeGT1(int rep) throws HL7Exception { 
1915        return (GT1)super.removeRepetition("GT1", rep);
1916     }
1917 
1918 
1919 
1920 
1921     /**
1922      * <p>
1923      * Returns
1924      * the first repetition of 
1925      * INSURANCE () - creates it if necessary
1926      * </p>
1927      * 
1928      *
1929      */
1930     public ADT_AXX_INSURANCE getINSURANCE() { 
1931        return getTyped("INSURANCE", ADT_AXX_INSURANCE.class);
1932     }
1933 
1934 
1935     /**
1936      * <p>
1937      * Returns a specific repetition of
1938      * INSURANCE () - creates it if necessary
1939      * </p>
1940      * 
1941      *
1942      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1943      * @throws HL7Exception if the repetition requested is more than one 
1944      *     greater than the number of existing repetitions.
1945      */
1946     public ADT_AXX_INSURANCE getINSURANCE(int rep) { 
1947        return getTyped("INSURANCE", rep, ADT_AXX_INSURANCE.class);
1948     }
1949 
1950     /** 
1951      * <p>
1952      * Returns the number of existing repetitions of INSURANCE 
1953      * </p>
1954      * 
1955      */ 
1956     public int getINSURANCEReps() { 
1957     	return getReps("INSURANCE");
1958     } 
1959 
1960     /** 
1961      * <p>
1962      * Returns a non-modifiable List containing all current existing repetitions of INSURANCE.
1963      * <p>
1964      * <p>
1965      * Note that unlike {@link #getINSURANCE()}, this method will not create any reps
1966      * if none are already present, so an empty list may be returned.
1967      * </p>
1968      * 
1969      */ 
1970     public java.util.List<ADT_AXX_INSURANCE> getINSURANCEAll() throws HL7Exception {
1971     	return getAllAsList("INSURANCE", ADT_AXX_INSURANCE.class);
1972     } 
1973 
1974     /**
1975      * <p>
1976      * Inserts a specific repetition of INSURANCE ()
1977      * </p>
1978      * 
1979      *
1980      * @see AbstractGroup#insertRepetition(Structure, int) 
1981      */
1982     public void insertINSURANCE(ADT_AXX_INSURANCE structure, int rep) throws HL7Exception { 
1983        super.insertRepetition( "INSURANCE", structure, rep);
1984     }
1985 
1986 
1987     /**
1988      * <p>
1989      * Inserts a specific repetition of INSURANCE ()
1990      * </p>
1991      * 
1992      *
1993      * @see AbstractGroup#insertRepetition(Structure, int) 
1994      */
1995     public ADT_AXX_INSURANCE insertINSURANCE(int rep) throws HL7Exception { 
1996        return (ADT_AXX_INSURANCE)super.insertRepetition("INSURANCE", rep);
1997     }
1998 
1999 
2000     /**
2001      * <p>
2002      * Removes a specific repetition of INSURANCE ()
2003      * </p>
2004      * 
2005      *
2006      * @see AbstractGroup#removeRepetition(String, int) 
2007      */
2008     public ADT_AXX_INSURANCE removeINSURANCE(int rep) throws HL7Exception { 
2009        return (ADT_AXX_INSURANCE)super.removeRepetition("INSURANCE", rep);
2010     }
2011 
2012 
2013 
2014 
2015     /**
2016      * <p>
2017      * Returns
2018      * ACC () - creates it if necessary
2019      * </p>
2020      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
2021      *
2022      */
2023     public ACC getACC() { 
2024        return getTyped("ACC", ACC.class);
2025     }
2026 
2027 
2028 
2029 
2030 
2031     /**
2032      * <p>
2033      * Returns
2034      * UB1 () - creates it if necessary
2035      * </p>
2036      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
2037      *
2038      */
2039     public UB1 getUB1() { 
2040        return getTyped("UB1", UB1.class);
2041     }
2042 
2043 
2044 
2045 
2046 
2047     /**
2048      * <p>
2049      * Returns
2050      * UB2 () - creates it if necessary
2051      * </p>
2052      * Used for the following structures: [ADT_A01, ADT_A04, ADT_A05, ADT_A06, ADT_A07, ADT_A08, ADT_A13, ADT_A14, ADT_A28, ADT_A31]
2053      *
2054      */
2055     public UB2 getUB2() { 
2056        return getTyped("UB2", UB2.class);
2057     }
2058 
2059 
2060 
2061 
2062 
2063     /**
2064      * <p>
2065      * Returns
2066      * DRG2 () - creates it if necessary
2067      * </p>
2068      * Used for the following structures: [ADT_A06, ADT_A07]
2069      *
2070      */
2071     public DRG getDRG2() { 
2072        return getTyped("DRG2", DRG.class);
2073     }
2074 
2075 
2076 
2077 
2078 
2079     /**
2080      * <p>
2081      * Returns
2082      * PID2 () - creates it if necessary
2083      * </p>
2084      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2085      *
2086      */
2087     public PID getPID2() { 
2088        return getTyped("PID2", PID.class);
2089     }
2090 
2091 
2092 
2093 
2094 
2095     /**
2096      * <p>
2097      * Returns
2098      * PD12 () - creates it if necessary
2099      * </p>
2100      * Used for the following structures: [ADT_A17, ADT_A24]
2101      *
2102      */
2103     public PD1 getPD12() { 
2104        return getTyped("PD12", PD1.class);
2105     }
2106 
2107 
2108 
2109 
2110 
2111     /**
2112      * <p>
2113      * Returns
2114      * PV12 () - creates it if necessary
2115      * </p>
2116      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2117      *
2118      */
2119     public PV1 getPV12() { 
2120        return getTyped("PV12", PV1.class);
2121     }
2122 
2123 
2124 
2125 
2126 
2127     /**
2128      * <p>
2129      * Returns
2130      * PV22 () - creates it if necessary
2131      * </p>
2132      * Used for the following structures: [ADT_A17]
2133      *
2134      */
2135     public PV2 getPV22() { 
2136        return getTyped("PV22", PV2.class);
2137     }
2138 
2139 
2140 
2141 
2142 
2143     /**
2144      * <p>
2145      * Returns
2146      * the first repetition of 
2147      * DB12 () - creates it if necessary
2148      * </p>
2149      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2150      *
2151      */
2152     public DB1 getDB12() { 
2153        return getTyped("DB12", DB1.class);
2154     }
2155 
2156 
2157     /**
2158      * <p>
2159      * Returns a specific repetition of
2160      * DB12 () - creates it if necessary
2161      * </p>
2162      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2163      *
2164      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2165      * @throws HL7Exception if the repetition requested is more than one 
2166      *     greater than the number of existing repetitions.
2167      */
2168     public DB1 getDB12(int rep) { 
2169        return getTyped("DB12", rep, DB1.class);
2170     }
2171 
2172     /** 
2173      * <p>
2174      * Returns the number of existing repetitions of DB12 
2175      * </p>
2176      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2177      */ 
2178     public int getDB12Reps() { 
2179     	return getReps("DB12");
2180     } 
2181 
2182     /** 
2183      * <p>
2184      * Returns a non-modifiable List containing all current existing repetitions of DB12.
2185      * <p>
2186      * <p>
2187      * Note that unlike {@link #getDB12()}, this method will not create any reps
2188      * if none are already present, so an empty list may be returned.
2189      * </p>
2190      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2191      */ 
2192     public java.util.List<DB1> getDB12All() throws HL7Exception {
2193     	return getAllAsList("DB12", DB1.class);
2194     } 
2195 
2196     /**
2197      * <p>
2198      * Inserts a specific repetition of DB12 ()
2199      * </p>
2200      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2201      *
2202      * @see AbstractGroup#insertRepetition(Structure, int) 
2203      */
2204     public void insertDB12(DB1 structure, int rep) throws HL7Exception { 
2205        super.insertRepetition( "DB12", structure, rep);
2206     }
2207 
2208 
2209     /**
2210      * <p>
2211      * Inserts a specific repetition of DB12 ()
2212      * </p>
2213      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2214      *
2215      * @see AbstractGroup#insertRepetition(Structure, int) 
2216      */
2217     public DB1 insertDB12(int rep) throws HL7Exception { 
2218        return (DB1)super.insertRepetition("DB12", rep);
2219     }
2220 
2221 
2222     /**
2223      * <p>
2224      * Removes a specific repetition of DB12 ()
2225      * </p>
2226      * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2227      *
2228      * @see AbstractGroup#removeRepetition(String, int) 
2229      */
2230     public DB1 removeDB12(int rep) throws HL7Exception { 
2231        return (DB1)super.removeRepetition("DB12", rep);
2232     }
2233 
2234 
2235 
2236 
2237     /**
2238      * <p>
2239      * Returns
2240      * the first repetition of 
2241      * OBX2 () - creates it if necessary
2242      * </p>
2243      * Used for the following structures: [ADT_A17]
2244      *
2245      */
2246     public OBX getOBX2() { 
2247        return getTyped("OBX2", OBX.class);
2248     }
2249 
2250 
2251     /**
2252      * <p>
2253      * Returns a specific repetition of
2254      * OBX2 () - creates it if necessary
2255      * </p>
2256      * Used for the following structures: [ADT_A17]
2257      *
2258      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2259      * @throws HL7Exception if the repetition requested is more than one 
2260      *     greater than the number of existing repetitions.
2261      */
2262     public OBX getOBX2(int rep) { 
2263        return getTyped("OBX2", rep, OBX.class);
2264     }
2265 
2266     /** 
2267      * <p>
2268      * Returns the number of existing repetitions of OBX2 
2269      * </p>
2270      * Used for the following structures: [ADT_A17]
2271      */ 
2272     public int getOBX2Reps() { 
2273     	return getReps("OBX2");
2274     } 
2275 
2276     /** 
2277      * <p>
2278      * Returns a non-modifiable List containing all current existing repetitions of OBX2.
2279      * <p>
2280      * <p>
2281      * Note that unlike {@link #getOBX2()}, this method will not create any reps
2282      * if none are already present, so an empty list may be returned.
2283      * </p>
2284      * Used for the following structures: [ADT_A17]
2285      */ 
2286     public java.util.List<OBX> getOBX2All() throws HL7Exception {
2287     	return getAllAsList("OBX2", OBX.class);
2288     } 
2289 
2290     /**
2291      * <p>
2292      * Inserts a specific repetition of OBX2 ()
2293      * </p>
2294      * Used for the following structures: [ADT_A17]
2295      *
2296      * @see AbstractGroup#insertRepetition(Structure, int) 
2297      */
2298     public void insertOBX2(OBX structure, int rep) throws HL7Exception { 
2299        super.insertRepetition( "OBX2", structure, rep);
2300     }
2301 
2302 
2303     /**
2304      * <p>
2305      * Inserts a specific repetition of OBX2 ()
2306      * </p>
2307      * Used for the following structures: [ADT_A17]
2308      *
2309      * @see AbstractGroup#insertRepetition(Structure, int) 
2310      */
2311     public OBX insertOBX2(int rep) throws HL7Exception { 
2312        return (OBX)super.insertRepetition("OBX2", rep);
2313     }
2314 
2315 
2316     /**
2317      * <p>
2318      * Removes a specific repetition of OBX2 ()
2319      * </p>
2320      * Used for the following structures: [ADT_A17]
2321      *
2322      * @see AbstractGroup#removeRepetition(String, int) 
2323      */
2324     public OBX removeOBX2(int rep) throws HL7Exception { 
2325        return (OBX)super.removeRepetition("OBX2", rep);
2326     }
2327 
2328 
2329 
2330 
2331     /**
2332      * <p>
2333      * Returns
2334      * NPU () - creates it if necessary
2335      * </p>
2336      * Used for the following structures: [ADT_A20]
2337      *
2338      */
2339     public NPU getNPU() { 
2340        return getTyped("NPU", NPU.class);
2341     }
2342 
2343 
2344 
2345 
2346 
2347     /**
2348      * <p>
2349      * Returns
2350      * the first repetition of 
2351      * PATIENT () - creates it if necessary
2352      * </p>
2353      * 
2354      *
2355      */
2356     public ADT_AXX_PATIENT getPATIENT() { 
2357        return getTyped("PATIENT", ADT_AXX_PATIENT.class);
2358     }
2359 
2360 
2361     /**
2362      * <p>
2363      * Returns a specific repetition of
2364      * PATIENT () - creates it if necessary
2365      * </p>
2366      * 
2367      *
2368      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2369      * @throws HL7Exception if the repetition requested is more than one 
2370      *     greater than the number of existing repetitions.
2371      */
2372     public ADT_AXX_PATIENT getPATIENT(int rep) { 
2373        return getTyped("PATIENT", rep, ADT_AXX_PATIENT.class);
2374     }
2375 
2376     /** 
2377      * <p>
2378      * Returns the number of existing repetitions of PATIENT 
2379      * </p>
2380      * 
2381      */ 
2382     public int getPATIENTReps() { 
2383     	return getReps("PATIENT");
2384     } 
2385 
2386     /** 
2387      * <p>
2388      * Returns a non-modifiable List containing all current existing repetitions of PATIENT.
2389      * <p>
2390      * <p>
2391      * Note that unlike {@link #getPATIENT()}, this method will not create any reps
2392      * if none are already present, so an empty list may be returned.
2393      * </p>
2394      * 
2395      */ 
2396     public java.util.List<ADT_AXX_PATIENT> getPATIENTAll() throws HL7Exception {
2397     	return getAllAsList("PATIENT", ADT_AXX_PATIENT.class);
2398     } 
2399 
2400     /**
2401      * <p>
2402      * Inserts a specific repetition of PATIENT ()
2403      * </p>
2404      * 
2405      *
2406      * @see AbstractGroup#insertRepetition(Structure, int) 
2407      */
2408     public void insertPATIENT(ADT_AXX_PATIENT structure, int rep) throws HL7Exception { 
2409        super.insertRepetition( "PATIENT", structure, rep);
2410     }
2411 
2412 
2413     /**
2414      * <p>
2415      * Inserts a specific repetition of PATIENT ()
2416      * </p>
2417      * 
2418      *
2419      * @see AbstractGroup#insertRepetition(Structure, int) 
2420      */
2421     public ADT_AXX_PATIENT insertPATIENT(int rep) throws HL7Exception { 
2422        return (ADT_AXX_PATIENT)super.insertRepetition("PATIENT", rep);
2423     }
2424 
2425 
2426     /**
2427      * <p>
2428      * Removes a specific repetition of PATIENT ()
2429      * </p>
2430      * 
2431      *
2432      * @see AbstractGroup#removeRepetition(String, int) 
2433      */
2434     public ADT_AXX_PATIENT removePATIENT(int rep) throws HL7Exception { 
2435        return (ADT_AXX_PATIENT)super.removeRepetition("PATIENT", rep);
2436     }
2437 
2438 
2439 
2440 
2441     /**
2442      * <p>
2443      * Returns
2444      * the first repetition of 
2445      * MERGE_INFO () - creates it if necessary
2446      * </p>
2447      * 
2448      *
2449      */
2450     public ADT_AXX_MERGE_INFO getMERGE_INFO() { 
2451        return getTyped("MERGE_INFO", ADT_AXX_MERGE_INFO.class);
2452     }
2453 
2454 
2455     /**
2456      * <p>
2457      * Returns a specific repetition of
2458      * MERGE_INFO () - creates it if necessary
2459      * </p>
2460      * 
2461      *
2462      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2463      * @throws HL7Exception if the repetition requested is more than one 
2464      *     greater than the number of existing repetitions.
2465      */
2466     public ADT_AXX_MERGE_INFO getMERGE_INFO(int rep) { 
2467        return getTyped("MERGE_INFO", rep, ADT_AXX_MERGE_INFO.class);
2468     }
2469 
2470     /** 
2471      * <p>
2472      * Returns the number of existing repetitions of MERGE_INFO 
2473      * </p>
2474      * 
2475      */ 
2476     public int getMERGE_INFOReps() { 
2477     	return getReps("MERGE_INFO");
2478     } 
2479 
2480     /** 
2481      * <p>
2482      * Returns a non-modifiable List containing all current existing repetitions of MERGE_INFO.
2483      * <p>
2484      * <p>
2485      * Note that unlike {@link #getMERGE_INFO()}, this method will not create any reps
2486      * if none are already present, so an empty list may be returned.
2487      * </p>
2488      * 
2489      */ 
2490     public java.util.List<ADT_AXX_MERGE_INFO> getMERGE_INFOAll() throws HL7Exception {
2491     	return getAllAsList("MERGE_INFO", ADT_AXX_MERGE_INFO.class);
2492     } 
2493 
2494     /**
2495      * <p>
2496      * Inserts a specific repetition of MERGE_INFO ()
2497      * </p>
2498      * 
2499      *
2500      * @see AbstractGroup#insertRepetition(Structure, int) 
2501      */
2502     public void insertMERGE_INFO(ADT_AXX_MERGE_INFO structure, int rep) throws HL7Exception { 
2503        super.insertRepetition( "MERGE_INFO", structure, rep);
2504     }
2505 
2506 
2507     /**
2508      * <p>
2509      * Inserts a specific repetition of MERGE_INFO ()
2510      * </p>
2511      * 
2512      *
2513      * @see AbstractGroup#insertRepetition(Structure, int) 
2514      */
2515     public ADT_AXX_MERGE_INFO insertMERGE_INFO(int rep) throws HL7Exception { 
2516        return (ADT_AXX_MERGE_INFO)super.insertRepetition("MERGE_INFO", rep);
2517     }
2518 
2519 
2520     /**
2521      * <p>
2522      * Removes a specific repetition of MERGE_INFO ()
2523      * </p>
2524      * 
2525      *
2526      * @see AbstractGroup#removeRepetition(String, int) 
2527      */
2528     public ADT_AXX_MERGE_INFO removeMERGE_INFO(int rep) throws HL7Exception { 
2529        return (ADT_AXX_MERGE_INFO)super.removeRepetition("MERGE_INFO", rep);
2530     }
2531 
2532 
2533 
2534 }
2535