001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v231.message;
035
036import ca.uhn.hl7v2.model.v231.group.*;
037import ca.uhn.hl7v2.model.v231.segment.*;
038
039import ca.uhn.hl7v2.HL7Exception;
040import ca.uhn.hl7v2.parser.ModelClassFactory;
041import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
042import ca.uhn.hl7v2.model.*;
043
044
045/**
046 * <p>Represents a ADT_AXX message structure (see chapter ). This structure contains the 
047 * following elements: </p>
048 * <ul>
049                                 * <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>
050                                 * <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>
051                                 * <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>
052                                 * <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>
053                                 * <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>
054                                 * <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>
055                                 * <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>
056                                 * <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>
057                                 * <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>
058                                 * <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>
059                                 * <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>
060                                 * <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>
061                                 * <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>
062                                 * <li>14: ADT_AXX_PR1ROL () <b>optional repeating</b> </li>
063                                 * <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>
064                                 * <li>16: ADT_AXX_IN1IN2IN3 () <b>optional repeating</b> </li>
065                                 * <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>
066                                 * <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>
067                                 * <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>
068                                 * <li>20: PID () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
069                                 * <li>21: PD1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
070                                 * <li>22: PV1 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
071                                 * <li>23: PV2 () <b>optional </b> <ul><li>Used for the following structures: [ADT_A17]</li></ul></li>
072                                 * <li>24: DB1 () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]</li></ul></li>
073                                 * <li>25: OBX () <b>optional repeating</b> <ul><li>Used for the following structures: [ADT_A17]</li></ul></li>
074                                 * <li>26: NPU () <b>optional </b> <ul><li>Used for the following structures: [ADT_A20]</li></ul></li>
075                                 * <li>27: ADT_AXX_PIDPD1MRGPV1 () <b>optional repeating</b> </li>
076                                 * <li>28: ADT_AXX_PIDPD1MRG () <b>optional repeating</b> </li>
077                                 * <li>29: ADT_AXX_MRGPV1 () <b>optional repeating</b> </li>
078 * </ul>
079 */
080//@SuppressWarnings("unused")
081public class ADT_AXX extends AbstractSuperMessage  {
082
083    /**
084     * Creates a new ADT_AXX message with DefaultModelClassFactory. 
085     */ 
086    public ADT_AXX() { 
087       this(new DefaultModelClassFactory());
088    }
089
090    /** 
091     * Creates a new ADT_AXX message with custom ModelClassFactory.
092     */
093    public ADT_AXX(ModelClassFactory factory) {
094       super(factory);
095       init(factory);
096    }
097
098    private void init(ModelClassFactory factory) {
099       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_PR1ROL.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_IN1IN2IN3.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(PID.class, false, false);
533                  this.addSuperstructureApplication("PID2", "ADT_A17"); 
534                  this.addSuperstructureApplication("PID2", "ADT_A24"); 
535                  this.addSuperstructureApplication("PID2", "ADT_A37"); 
536                                  this.add(PD1.class, false, false);
537                  this.addSuperstructureApplication("PD12", "ADT_A17"); 
538                  this.addSuperstructureApplication("PD12", "ADT_A24"); 
539                  this.addSuperstructureApplication("PD12", "ADT_A37"); 
540                                  this.add(PV1.class, false, false);
541                  this.addSuperstructureApplication("PV12", "ADT_A17"); 
542                  this.addSuperstructureApplication("PV12", "ADT_A24"); 
543                  this.addSuperstructureApplication("PV12", "ADT_A37"); 
544                                  this.add(PV2.class, false, false);
545                  this.addSuperstructureApplication("PV22", "ADT_A17"); 
546                                  this.add(DB1.class, false, true);
547                  this.addSuperstructureApplication("DB12", "ADT_A17"); 
548                  this.addSuperstructureApplication("DB12", "ADT_A24"); 
549                  this.addSuperstructureApplication("DB12", "ADT_A37"); 
550                                  this.add(OBX.class, false, true);
551                  this.addSuperstructureApplication("OBX2", "ADT_A17"); 
552                                  this.add(NPU.class, false, false);
553                  this.addSuperstructureApplication("NPU", "ADT_A20"); 
554                                  this.add(ADT_AXX_PIDPD1MRGPV1.class, false, true);
555                                  this.add(ADT_AXX_PIDPD1MRG.class, false, true);
556                                  this.add(ADT_AXX_MRGPV1.class, false, true);
557               } catch(HL7Exception e) {
558          log.error("Unexpected error creating ADT_AXX - this is probably a bug in the source code generator.", e);
559       }
560    }
561
562        public java.util.List<String> getChildNamesForStructure(String theStructure) {
563                java.util.ArrayList<String> retVal = new java.util.ArrayList<String>();
564                        if ( "ADT_A01".equals(theStructure) ) {
565                                        retVal.add("MSH"); 
566                                        retVal.add("EVN"); 
567                                        retVal.add("PID"); 
568                                        retVal.add("PD1"); 
569                                        retVal.add("NK1"); 
570                                        retVal.add("PV1"); 
571                                        retVal.add("PV2"); 
572                                        retVal.add("DB1"); 
573                                        retVal.add("OBX"); 
574                                        retVal.add("AL1"); 
575                                        retVal.add("DG1"); 
576                                        retVal.add("DRG"); 
577                                        retVal.add("PR1ROL"); 
578                                        retVal.add("GT1"); 
579                                        retVal.add("IN1IN2IN3"); 
580                                        retVal.add("ACC"); 
581                                        retVal.add("UB1"); 
582                                        retVal.add("UB2"); 
583                                }
584                        if ( "ADT_A02".equals(theStructure) ) {
585                                        retVal.add("MSH"); 
586                                        retVal.add("EVN"); 
587                                        retVal.add("PID"); 
588                                        retVal.add("PD1"); 
589                                        retVal.add("PV1"); 
590                                        retVal.add("PV2"); 
591                                        retVal.add("DB1"); 
592                                        retVal.add("OBX"); 
593                                }
594                        if ( "ADT_A03".equals(theStructure) ) {
595                                        retVal.add("MSH"); 
596                                        retVal.add("EVN"); 
597                                        retVal.add("PID"); 
598                                        retVal.add("PD1"); 
599                                        retVal.add("PV1"); 
600                                        retVal.add("PV2"); 
601                                        retVal.add("DB1"); 
602                                        retVal.add("DG1"); 
603                                        retVal.add("DRG"); 
604                                        retVal.add("PR1ROL"); 
605                                        retVal.add("OBX"); 
606                                }
607                        if ( "ADT_A04".equals(theStructure) ) {
608                                        retVal.add("MSH"); 
609                                        retVal.add("EVN"); 
610                                        retVal.add("PID"); 
611                                        retVal.add("PD1"); 
612                                        retVal.add("NK1"); 
613                                        retVal.add("PV1"); 
614                                        retVal.add("PV2"); 
615                                        retVal.add("DB1"); 
616                                        retVal.add("OBX"); 
617                                        retVal.add("AL1"); 
618                                        retVal.add("DG1"); 
619                                        retVal.add("DRG"); 
620                                        retVal.add("PR1ROL"); 
621                                        retVal.add("GT1"); 
622                                        retVal.add("IN1IN2IN3"); 
623                                        retVal.add("ACC"); 
624                                        retVal.add("UB1"); 
625                                        retVal.add("UB2"); 
626                                }
627                        if ( "ADT_A05".equals(theStructure) ) {
628                                        retVal.add("MSH"); 
629                                        retVal.add("EVN"); 
630                                        retVal.add("PID"); 
631                                        retVal.add("PD1"); 
632                                        retVal.add("NK1"); 
633                                        retVal.add("PV1"); 
634                                        retVal.add("PV2"); 
635                                        retVal.add("DB1"); 
636                                        retVal.add("OBX"); 
637                                        retVal.add("AL1"); 
638                                        retVal.add("DG1"); 
639                                        retVal.add("DRG"); 
640                                        retVal.add("PR1ROL"); 
641                                        retVal.add("GT1"); 
642                                        retVal.add("IN1IN2IN3"); 
643                                        retVal.add("ACC"); 
644                                        retVal.add("UB1"); 
645                                        retVal.add("UB2"); 
646                                }
647                        if ( "ADT_A06".equals(theStructure) ) {
648                                        retVal.add("MSH"); 
649                                        retVal.add("EVN"); 
650                                        retVal.add("PID"); 
651                                        retVal.add("PD1"); 
652                                        retVal.add("MRG"); 
653                                        retVal.add("NK1"); 
654                                        retVal.add("PV1"); 
655                                        retVal.add("PV2"); 
656                                        retVal.add("DB1"); 
657                                        retVal.add("OBX"); 
658                                        retVal.add("AL1"); 
659                                        retVal.add("DG1"); 
660                                        retVal.add("DRG"); 
661                                        retVal.add("PR1ROL"); 
662                                        retVal.add("GT1"); 
663                                        retVal.add("IN1IN2IN3"); 
664                                        retVal.add("ACC"); 
665                                        retVal.add("UB1"); 
666                                        retVal.add("UB2"); 
667                                }
668                        if ( "ADT_A07".equals(theStructure) ) {
669                                        retVal.add("MSH"); 
670                                        retVal.add("EVN"); 
671                                        retVal.add("PID"); 
672                                        retVal.add("PD1"); 
673                                        retVal.add("MRG"); 
674                                        retVal.add("NK1"); 
675                                        retVal.add("PV1"); 
676                                        retVal.add("PV2"); 
677                                        retVal.add("DB1"); 
678                                        retVal.add("OBX"); 
679                                        retVal.add("AL1"); 
680                                        retVal.add("DG1"); 
681                                        retVal.add("DRG"); 
682                                        retVal.add("PR1ROL"); 
683                                        retVal.add("GT1"); 
684                                        retVal.add("IN1IN2IN3"); 
685                                        retVal.add("ACC"); 
686                                        retVal.add("UB1"); 
687                                        retVal.add("UB2"); 
688                                }
689                        if ( "ADT_A08".equals(theStructure) ) {
690                                        retVal.add("MSH"); 
691                                        retVal.add("EVN"); 
692                                        retVal.add("PID"); 
693                                        retVal.add("PD1"); 
694                                        retVal.add("NK1"); 
695                                        retVal.add("PV1"); 
696                                        retVal.add("PV2"); 
697                                        retVal.add("DB1"); 
698                                        retVal.add("OBX"); 
699                                        retVal.add("AL1"); 
700                                        retVal.add("DG1"); 
701                                        retVal.add("DRG"); 
702                                        retVal.add("PR1ROL"); 
703                                        retVal.add("GT1"); 
704                                        retVal.add("IN1IN2IN3"); 
705                                        retVal.add("ACC"); 
706                                        retVal.add("UB1"); 
707                                        retVal.add("UB2"); 
708                                }
709                        if ( "ADT_A09".equals(theStructure) ) {
710                                        retVal.add("MSH"); 
711                                        retVal.add("EVN"); 
712                                        retVal.add("PID"); 
713                                        retVal.add("PD1"); 
714                                        retVal.add("PV1"); 
715                                        retVal.add("PV2"); 
716                                        retVal.add("DB1"); 
717                                        retVal.add("OBX"); 
718                                        retVal.add("DG1"); 
719                                }
720                        if ( "ADT_A10".equals(theStructure) ) {
721                                        retVal.add("MSH"); 
722                                        retVal.add("EVN"); 
723                                        retVal.add("PID"); 
724                                        retVal.add("PD1"); 
725                                        retVal.add("PV1"); 
726                                        retVal.add("PV2"); 
727                                        retVal.add("DB1"); 
728                                        retVal.add("OBX"); 
729                                        retVal.add("DG1"); 
730                                }
731                        if ( "ADT_A11".equals(theStructure) ) {
732                                        retVal.add("MSH"); 
733                                        retVal.add("EVN"); 
734                                        retVal.add("PID"); 
735                                        retVal.add("PD1"); 
736                                        retVal.add("PV1"); 
737                                        retVal.add("PV2"); 
738                                        retVal.add("DB1"); 
739                                        retVal.add("OBX"); 
740                                        retVal.add("DG1"); 
741                                }
742                        if ( "ADT_A12".equals(theStructure) ) {
743                                        retVal.add("MSH"); 
744                                        retVal.add("EVN"); 
745                                        retVal.add("PID"); 
746                                        retVal.add("PD1"); 
747                                        retVal.add("PV1"); 
748                                        retVal.add("PV2"); 
749                                        retVal.add("DB1"); 
750                                        retVal.add("OBX"); 
751                                        retVal.add("DG1"); 
752                                }
753                        if ( "ADT_A13".equals(theStructure) ) {
754                                        retVal.add("MSH"); 
755                                        retVal.add("EVN"); 
756                                        retVal.add("PID"); 
757                                        retVal.add("PD1"); 
758                                        retVal.add("NK1"); 
759                                        retVal.add("PV1"); 
760                                        retVal.add("PV2"); 
761                                        retVal.add("DB1"); 
762                                        retVal.add("OBX"); 
763                                        retVal.add("AL1"); 
764                                        retVal.add("DG1"); 
765                                        retVal.add("DRG"); 
766                                        retVal.add("PR1ROL"); 
767                                        retVal.add("GT1"); 
768                                        retVal.add("IN1IN2IN3"); 
769                                        retVal.add("ACC"); 
770                                        retVal.add("UB1"); 
771                                        retVal.add("UB2"); 
772                                }
773                        if ( "ADT_A14".equals(theStructure) ) {
774                                        retVal.add("MSH"); 
775                                        retVal.add("EVN"); 
776                                        retVal.add("PID"); 
777                                        retVal.add("PD1"); 
778                                        retVal.add("NK1"); 
779                                        retVal.add("PV1"); 
780                                        retVal.add("PV2"); 
781                                        retVal.add("DB1"); 
782                                        retVal.add("OBX"); 
783                                        retVal.add("AL1"); 
784                                        retVal.add("DG1"); 
785                                        retVal.add("DRG"); 
786                                        retVal.add("PR1ROL"); 
787                                        retVal.add("GT1"); 
788                                        retVal.add("IN1IN2IN3"); 
789                                        retVal.add("ACC"); 
790                                        retVal.add("UB1"); 
791                                        retVal.add("UB2"); 
792                                }
793                        if ( "ADT_A15".equals(theStructure) ) {
794                                        retVal.add("MSH"); 
795                                        retVal.add("EVN"); 
796                                        retVal.add("PID"); 
797                                        retVal.add("PD1"); 
798                                        retVal.add("PV1"); 
799                                        retVal.add("PV2"); 
800                                        retVal.add("DB1"); 
801                                        retVal.add("OBX"); 
802                                        retVal.add("DG1"); 
803                                }
804                        if ( "ADT_A16".equals(theStructure) ) {
805                                        retVal.add("MSH"); 
806                                        retVal.add("EVN"); 
807                                        retVal.add("PID"); 
808                                        retVal.add("PD1"); 
809                                        retVal.add("PV1"); 
810                                        retVal.add("PV2"); 
811                                        retVal.add("DB1"); 
812                                        retVal.add("OBX"); 
813                                        retVal.add("DG1"); 
814                                        retVal.add("DRG"); 
815                                }
816                        if ( "ADT_A17".equals(theStructure) ) {
817                                        retVal.add("MSH"); 
818                                        retVal.add("EVN"); 
819                                        retVal.add("PID"); 
820                                        retVal.add("PD1"); 
821                                        retVal.add("PV1"); 
822                                        retVal.add("PV2"); 
823                                        retVal.add("DB1"); 
824                                        retVal.add("OBX"); 
825                                        retVal.add("PID2"); 
826                                        retVal.add("PD12"); 
827                                        retVal.add("PV12"); 
828                                        retVal.add("PV22"); 
829                                        retVal.add("DB12"); 
830                                        retVal.add("OBX2"); 
831                                }
832                        if ( "ADT_A18".equals(theStructure) ) {
833                                        retVal.add("MSH"); 
834                                        retVal.add("EVN"); 
835                                        retVal.add("PID"); 
836                                        retVal.add("PD1"); 
837                                        retVal.add("MRG"); 
838                                        retVal.add("PV1"); 
839                                }
840                        if ( "ADT_A20".equals(theStructure) ) {
841                                        retVal.add("MSH"); 
842                                        retVal.add("EVN"); 
843                                        retVal.add("NPU"); 
844                                }
845                        if ( "ADT_A21".equals(theStructure) ) {
846                                        retVal.add("MSH"); 
847                                        retVal.add("EVN"); 
848                                        retVal.add("PID"); 
849                                        retVal.add("PD1"); 
850                                        retVal.add("PV1"); 
851                                        retVal.add("PV2"); 
852                                        retVal.add("DB1"); 
853                                        retVal.add("OBX"); 
854                                }
855                        if ( "ADT_A22".equals(theStructure) ) {
856                                        retVal.add("MSH"); 
857                                        retVal.add("EVN"); 
858                                        retVal.add("PID"); 
859                                        retVal.add("PD1"); 
860                                        retVal.add("PV1"); 
861                                        retVal.add("PV2"); 
862                                        retVal.add("DB1"); 
863                                        retVal.add("OBX"); 
864                                }
865                        if ( "ADT_A23".equals(theStructure) ) {
866                                        retVal.add("MSH"); 
867                                        retVal.add("EVN"); 
868                                        retVal.add("PID"); 
869                                        retVal.add("PD1"); 
870                                        retVal.add("PV1"); 
871                                        retVal.add("PV2"); 
872                                        retVal.add("DB1"); 
873                                        retVal.add("OBX"); 
874                                }
875                        if ( "ADT_A24".equals(theStructure) ) {
876                                        retVal.add("MSH"); 
877                                        retVal.add("EVN"); 
878                                        retVal.add("PID"); 
879                                        retVal.add("PD1"); 
880                                        retVal.add("PV1"); 
881                                        retVal.add("DB1"); 
882                                        retVal.add("PID2"); 
883                                        retVal.add("PD12"); 
884                                        retVal.add("PV12"); 
885                                        retVal.add("DB12"); 
886                                }
887                        if ( "ADT_A25".equals(theStructure) ) {
888                                        retVal.add("MSH"); 
889                                        retVal.add("EVN"); 
890                                        retVal.add("PID"); 
891                                        retVal.add("PD1"); 
892                                        retVal.add("PV1"); 
893                                        retVal.add("PV2"); 
894                                        retVal.add("DB1"); 
895                                        retVal.add("OBX"); 
896                                }
897                        if ( "ADT_A26".equals(theStructure) ) {
898                                        retVal.add("MSH"); 
899                                        retVal.add("EVN"); 
900                                        retVal.add("PID"); 
901                                        retVal.add("PD1"); 
902                                        retVal.add("PV1"); 
903                                        retVal.add("PV2"); 
904                                        retVal.add("DB1"); 
905                                        retVal.add("OBX"); 
906                                }
907                        if ( "ADT_A27".equals(theStructure) ) {
908                                        retVal.add("MSH"); 
909                                        retVal.add("EVN"); 
910                                        retVal.add("PID"); 
911                                        retVal.add("PD1"); 
912                                        retVal.add("PV1"); 
913                                        retVal.add("PV2"); 
914                                        retVal.add("DB1"); 
915                                        retVal.add("OBX"); 
916                                }
917                        if ( "ADT_A28".equals(theStructure) ) {
918                                        retVal.add("MSH"); 
919                                        retVal.add("EVN"); 
920                                        retVal.add("PID"); 
921                                        retVal.add("PD1"); 
922                                        retVal.add("NK1"); 
923                                        retVal.add("PV1"); 
924                                        retVal.add("PV2"); 
925                                        retVal.add("DB1"); 
926                                        retVal.add("OBX"); 
927                                        retVal.add("AL1"); 
928                                        retVal.add("DG1"); 
929                                        retVal.add("DRG"); 
930                                        retVal.add("PR1ROL"); 
931                                        retVal.add("GT1"); 
932                                        retVal.add("IN1IN2IN3"); 
933                                        retVal.add("ACC"); 
934                                        retVal.add("UB1"); 
935                                        retVal.add("UB2"); 
936                                }
937                        if ( "ADT_A29".equals(theStructure) ) {
938                                        retVal.add("MSH"); 
939                                        retVal.add("EVN"); 
940                                        retVal.add("PID"); 
941                                        retVal.add("PD1"); 
942                                        retVal.add("PV1"); 
943                                        retVal.add("PV2"); 
944                                        retVal.add("DB1"); 
945                                        retVal.add("OBX"); 
946                                }
947                        if ( "ADT_A30".equals(theStructure) ) {
948                                        retVal.add("MSH"); 
949                                        retVal.add("EVN"); 
950                                        retVal.add("PID"); 
951                                        retVal.add("PD1"); 
952                                        retVal.add("MRG"); 
953                                }
954                        if ( "ADT_A31".equals(theStructure) ) {
955                                        retVal.add("MSH"); 
956                                        retVal.add("EVN"); 
957                                        retVal.add("PID"); 
958                                        retVal.add("PD1"); 
959                                        retVal.add("NK1"); 
960                                        retVal.add("PV1"); 
961                                        retVal.add("PV2"); 
962                                        retVal.add("DB1"); 
963                                        retVal.add("OBX"); 
964                                        retVal.add("AL1"); 
965                                        retVal.add("DG1"); 
966                                        retVal.add("DRG"); 
967                                        retVal.add("PR1ROL"); 
968                                        retVal.add("GT1"); 
969                                        retVal.add("IN1IN2IN3"); 
970                                        retVal.add("ACC"); 
971                                        retVal.add("UB1"); 
972                                        retVal.add("UB2"); 
973                                }
974                        if ( "ADT_A32".equals(theStructure) ) {
975                                        retVal.add("MSH"); 
976                                        retVal.add("EVN"); 
977                                        retVal.add("PID"); 
978                                        retVal.add("PD1"); 
979                                        retVal.add("PV1"); 
980                                        retVal.add("PV2"); 
981                                        retVal.add("DB1"); 
982                                        retVal.add("OBX"); 
983                                }
984                        if ( "ADT_A33".equals(theStructure) ) {
985                                        retVal.add("MSH"); 
986                                        retVal.add("EVN"); 
987                                        retVal.add("PID"); 
988                                        retVal.add("PD1"); 
989                                        retVal.add("PV1"); 
990                                        retVal.add("PV2"); 
991                                        retVal.add("DB1"); 
992                                        retVal.add("OBX"); 
993                                }
994                        if ( "ADT_A34".equals(theStructure) ) {
995                                        retVal.add("MSH"); 
996                                        retVal.add("EVN"); 
997                                        retVal.add("PID"); 
998                                        retVal.add("PD1"); 
999                                        retVal.add("MRG"); 
1000                                }
1001                        if ( "ADT_A35".equals(theStructure) ) {
1002                                        retVal.add("MSH"); 
1003                                        retVal.add("EVN"); 
1004                                        retVal.add("PID"); 
1005                                        retVal.add("PD1"); 
1006                                        retVal.add("MRG"); 
1007                                }
1008                        if ( "ADT_A36".equals(theStructure) ) {
1009                                        retVal.add("MSH"); 
1010                                        retVal.add("EVN"); 
1011                                        retVal.add("PID"); 
1012                                        retVal.add("PD1"); 
1013                                        retVal.add("MRG"); 
1014                                }
1015                        if ( "ADT_A37".equals(theStructure) ) {
1016                                        retVal.add("MSH"); 
1017                                        retVal.add("EVN"); 
1018                                        retVal.add("PID"); 
1019                                        retVal.add("PD1"); 
1020                                        retVal.add("PV1"); 
1021                                        retVal.add("DB1"); 
1022                                        retVal.add("PID2"); 
1023                                        retVal.add("PD12"); 
1024                                        retVal.add("PV12"); 
1025                                        retVal.add("DB12"); 
1026                                }
1027                        if ( "ADT_A38".equals(theStructure) ) {
1028                                        retVal.add("MSH"); 
1029                                        retVal.add("EVN"); 
1030                                        retVal.add("PID"); 
1031                                        retVal.add("PD1"); 
1032                                        retVal.add("PV1"); 
1033                                        retVal.add("PV2"); 
1034                                        retVal.add("DB1"); 
1035                                        retVal.add("OBX"); 
1036                                        retVal.add("DG1"); 
1037                                        retVal.add("DRG"); 
1038                                }
1039                        if ( "ADT_A39".equals(theStructure) ) {
1040                                        retVal.add("MSH"); 
1041                                        retVal.add("EVN"); 
1042                                        retVal.add("PIDPD1MRGPV1"); 
1043                                }
1044                        if ( "ADT_A40".equals(theStructure) ) {
1045                                        retVal.add("MSH"); 
1046                                        retVal.add("EVN"); 
1047                                        retVal.add("PIDPD1MRGPV1"); 
1048                                }
1049                        if ( "ADT_A41".equals(theStructure) ) {
1050                                        retVal.add("MSH"); 
1051                                        retVal.add("EVN"); 
1052                                        retVal.add("PIDPD1MRGPV1"); 
1053                                }
1054                        if ( "ADT_A42".equals(theStructure) ) {
1055                                        retVal.add("MSH"); 
1056                                        retVal.add("EVN"); 
1057                                        retVal.add("PIDPD1MRGPV1"); 
1058                                }
1059                        if ( "ADT_A43".equals(theStructure) ) {
1060                                        retVal.add("MSH"); 
1061                                        retVal.add("EVN"); 
1062                                        retVal.add("PIDPD1MRG"); 
1063                                }
1064                        if ( "ADT_A44".equals(theStructure) ) {
1065                                        retVal.add("MSH"); 
1066                                        retVal.add("EVN"); 
1067                                        retVal.add("PIDPD1MRG"); 
1068                                }
1069                        if ( "ADT_A45".equals(theStructure) ) {
1070                                        retVal.add("MSH"); 
1071                                        retVal.add("EVN"); 
1072                                        retVal.add("PID"); 
1073                                        retVal.add("PD1"); 
1074                                        retVal.add("MRGPV1"); 
1075                                }
1076                        if ( "ADT_A46".equals(theStructure) ) {
1077                                        retVal.add("MSH"); 
1078                                        retVal.add("EVN"); 
1079                                        retVal.add("PID"); 
1080                                        retVal.add("PD1"); 
1081                                        retVal.add("MRG"); 
1082                                }
1083                        if ( "ADT_A47".equals(theStructure) ) {
1084                                        retVal.add("MSH"); 
1085                                        retVal.add("EVN"); 
1086                                        retVal.add("PID"); 
1087                                        retVal.add("PD1"); 
1088                                        retVal.add("MRG"); 
1089                                }
1090                        if ( "ADT_A48".equals(theStructure) ) {
1091                                        retVal.add("MSH"); 
1092                                        retVal.add("EVN"); 
1093                                        retVal.add("PID"); 
1094                                        retVal.add("PD1"); 
1095                                        retVal.add("MRG"); 
1096                                }
1097                        if ( "ADT_A49".equals(theStructure) ) {
1098                                        retVal.add("MSH"); 
1099                                        retVal.add("EVN"); 
1100                                        retVal.add("PID"); 
1101                                        retVal.add("PD1"); 
1102                                        retVal.add("MRG"); 
1103                                }
1104                        if ( "ADT_A50".equals(theStructure) ) {
1105                                        retVal.add("MSH"); 
1106                                        retVal.add("EVN"); 
1107                                        retVal.add("PID"); 
1108                                        retVal.add("PD1"); 
1109                                        retVal.add("MRG"); 
1110                                        retVal.add("PV1"); 
1111                                }
1112                        if ( "ADT_A51".equals(theStructure) ) {
1113                                        retVal.add("MSH"); 
1114                                        retVal.add("EVN"); 
1115                                        retVal.add("PID"); 
1116                                        retVal.add("PD1"); 
1117                                        retVal.add("MRG"); 
1118                                        retVal.add("PV1"); 
1119                                }
1120                        return retVal;
1121        }
1122
1123    /** 
1124     * Returns "2.3.1"
1125     */
1126    public String getVersion() {
1127       return "2.3.1";
1128    }
1129
1130
1131
1132
1133    /**
1134     * <p>
1135     * Returns
1136     * MSH () - creates it if necessary
1137     * </p>
1138     * 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]
1139     *
1140     */
1141    public MSH getMSH() { 
1142       return getTyped("MSH", MSH.class);
1143    }
1144
1145
1146
1147
1148
1149    /**
1150     * <p>
1151     * Returns
1152     * EVN () - creates it if necessary
1153     * </p>
1154     * 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]
1155     *
1156     */
1157    public EVN getEVN() { 
1158       return getTyped("EVN", EVN.class);
1159    }
1160
1161
1162
1163
1164
1165    /**
1166     * <p>
1167     * Returns
1168     * PID () - creates it if necessary
1169     * </p>
1170     * 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]
1171     *
1172     */
1173    public PID getPID() { 
1174       return getTyped("PID", PID.class);
1175    }
1176
1177
1178
1179
1180
1181    /**
1182     * <p>
1183     * Returns
1184     * PD1 () - creates it if necessary
1185     * </p>
1186     * 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]
1187     *
1188     */
1189    public PD1 getPD1() { 
1190       return getTyped("PD1", PD1.class);
1191    }
1192
1193
1194
1195
1196
1197    /**
1198     * <p>
1199     * Returns
1200     * MRG () - creates it if necessary
1201     * </p>
1202     * 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]
1203     *
1204     */
1205    public MRG getMRG() { 
1206       return getTyped("MRG", MRG.class);
1207    }
1208
1209
1210
1211
1212
1213    /**
1214     * <p>
1215     * Returns
1216     * the first repetition of 
1217     * NK1 () - creates it if necessary
1218     * </p>
1219     * 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]
1220     *
1221     */
1222    public NK1 getNK1() { 
1223       return getTyped("NK1", NK1.class);
1224    }
1225
1226
1227    /**
1228     * <p>
1229     * Returns a specific repetition of
1230     * NK1 () - creates it if necessary
1231     * </p>
1232     * 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]
1233     *
1234     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1235     * @throws HL7Exception if the repetition requested is more than one 
1236     *     greater than the number of existing repetitions.
1237     */
1238    public NK1 getNK1(int rep) { 
1239       return getTyped("NK1", rep, NK1.class);
1240    }
1241
1242    /** 
1243     * <p>
1244     * Returns the number of existing repetitions of NK1 
1245     * </p>
1246     * 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]
1247     */ 
1248    public int getNK1Reps() { 
1249        return getReps("NK1");
1250    } 
1251
1252    /** 
1253     * <p>
1254     * Returns a non-modifiable List containing all current existing repetitions of NK1.
1255     * <p>
1256     * <p>
1257     * Note that unlike {@link #getNK1()}, this method will not create any reps
1258     * if none are already present, so an empty list may be returned.
1259     * </p>
1260     * 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]
1261     */ 
1262    public java.util.List<NK1> getNK1All() throws HL7Exception {
1263        return getAllAsList("NK1", NK1.class);
1264    } 
1265
1266    /**
1267     * <p>
1268     * Inserts a specific repetition of NK1 ()
1269     * </p>
1270     * 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]
1271     *
1272     * @see AbstractGroup#insertRepetition(Structure, int) 
1273     */
1274    public void insertNK1(NK1 structure, int rep) throws HL7Exception { 
1275       super.insertRepetition( "NK1", structure, rep);
1276    }
1277
1278
1279    /**
1280     * <p>
1281     * Inserts a specific repetition of NK1 ()
1282     * </p>
1283     * 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]
1284     *
1285     * @see AbstractGroup#insertRepetition(Structure, int) 
1286     */
1287    public NK1 insertNK1(int rep) throws HL7Exception { 
1288       return (NK1)super.insertRepetition("NK1", rep);
1289    }
1290
1291
1292    /**
1293     * <p>
1294     * Removes a specific repetition of NK1 ()
1295     * </p>
1296     * 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]
1297     *
1298     * @see AbstractGroup#removeRepetition(String, int) 
1299     */
1300    public NK1 removeNK1(int rep) throws HL7Exception { 
1301       return (NK1)super.removeRepetition("NK1", rep);
1302    }
1303
1304
1305
1306
1307    /**
1308     * <p>
1309     * Returns
1310     * PV1 () - creates it if necessary
1311     * </p>
1312     * 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]
1313     *
1314     */
1315    public PV1 getPV1() { 
1316       return getTyped("PV1", PV1.class);
1317    }
1318
1319
1320
1321
1322
1323    /**
1324     * <p>
1325     * Returns
1326     * PV2 () - creates it if necessary
1327     * </p>
1328     * 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]
1329     *
1330     */
1331    public PV2 getPV2() { 
1332       return getTyped("PV2", PV2.class);
1333    }
1334
1335
1336
1337
1338
1339    /**
1340     * <p>
1341     * Returns
1342     * the first repetition of 
1343     * DB1 () - creates it if necessary
1344     * </p>
1345     * 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]
1346     *
1347     */
1348    public DB1 getDB1() { 
1349       return getTyped("DB1", DB1.class);
1350    }
1351
1352
1353    /**
1354     * <p>
1355     * Returns a specific repetition of
1356     * DB1 () - creates it if necessary
1357     * </p>
1358     * 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]
1359     *
1360     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1361     * @throws HL7Exception if the repetition requested is more than one 
1362     *     greater than the number of existing repetitions.
1363     */
1364    public DB1 getDB1(int rep) { 
1365       return getTyped("DB1", rep, DB1.class);
1366    }
1367
1368    /** 
1369     * <p>
1370     * Returns the number of existing repetitions of DB1 
1371     * </p>
1372     * 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]
1373     */ 
1374    public int getDB1Reps() { 
1375        return getReps("DB1");
1376    } 
1377
1378    /** 
1379     * <p>
1380     * Returns a non-modifiable List containing all current existing repetitions of DB1.
1381     * <p>
1382     * <p>
1383     * Note that unlike {@link #getDB1()}, this method will not create any reps
1384     * if none are already present, so an empty list may be returned.
1385     * </p>
1386     * 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]
1387     */ 
1388    public java.util.List<DB1> getDB1All() throws HL7Exception {
1389        return getAllAsList("DB1", DB1.class);
1390    } 
1391
1392    /**
1393     * <p>
1394     * Inserts a specific repetition of DB1 ()
1395     * </p>
1396     * 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]
1397     *
1398     * @see AbstractGroup#insertRepetition(Structure, int) 
1399     */
1400    public void insertDB1(DB1 structure, int rep) throws HL7Exception { 
1401       super.insertRepetition( "DB1", structure, rep);
1402    }
1403
1404
1405    /**
1406     * <p>
1407     * Inserts a specific repetition of DB1 ()
1408     * </p>
1409     * 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]
1410     *
1411     * @see AbstractGroup#insertRepetition(Structure, int) 
1412     */
1413    public DB1 insertDB1(int rep) throws HL7Exception { 
1414       return (DB1)super.insertRepetition("DB1", rep);
1415    }
1416
1417
1418    /**
1419     * <p>
1420     * Removes a specific repetition of DB1 ()
1421     * </p>
1422     * 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]
1423     *
1424     * @see AbstractGroup#removeRepetition(String, int) 
1425     */
1426    public DB1 removeDB1(int rep) throws HL7Exception { 
1427       return (DB1)super.removeRepetition("DB1", rep);
1428    }
1429
1430
1431
1432
1433    /**
1434     * <p>
1435     * Returns
1436     * the first repetition of 
1437     * OBX () - creates it if necessary
1438     * </p>
1439     * 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]
1440     *
1441     */
1442    public OBX getOBX() { 
1443       return getTyped("OBX", OBX.class);
1444    }
1445
1446
1447    /**
1448     * <p>
1449     * Returns a specific repetition of
1450     * OBX () - creates it if necessary
1451     * </p>
1452     * 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]
1453     *
1454     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1455     * @throws HL7Exception if the repetition requested is more than one 
1456     *     greater than the number of existing repetitions.
1457     */
1458    public OBX getOBX(int rep) { 
1459       return getTyped("OBX", rep, OBX.class);
1460    }
1461
1462    /** 
1463     * <p>
1464     * Returns the number of existing repetitions of OBX 
1465     * </p>
1466     * 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]
1467     */ 
1468    public int getOBXReps() { 
1469        return getReps("OBX");
1470    } 
1471
1472    /** 
1473     * <p>
1474     * Returns a non-modifiable List containing all current existing repetitions of OBX.
1475     * <p>
1476     * <p>
1477     * Note that unlike {@link #getOBX()}, this method will not create any reps
1478     * if none are already present, so an empty list may be returned.
1479     * </p>
1480     * 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]
1481     */ 
1482    public java.util.List<OBX> getOBXAll() throws HL7Exception {
1483        return getAllAsList("OBX", OBX.class);
1484    } 
1485
1486    /**
1487     * <p>
1488     * Inserts a specific repetition of OBX ()
1489     * </p>
1490     * 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]
1491     *
1492     * @see AbstractGroup#insertRepetition(Structure, int) 
1493     */
1494    public void insertOBX(OBX structure, int rep) throws HL7Exception { 
1495       super.insertRepetition( "OBX", structure, rep);
1496    }
1497
1498
1499    /**
1500     * <p>
1501     * Inserts a specific repetition of OBX ()
1502     * </p>
1503     * 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]
1504     *
1505     * @see AbstractGroup#insertRepetition(Structure, int) 
1506     */
1507    public OBX insertOBX(int rep) throws HL7Exception { 
1508       return (OBX)super.insertRepetition("OBX", rep);
1509    }
1510
1511
1512    /**
1513     * <p>
1514     * Removes a specific repetition of OBX ()
1515     * </p>
1516     * 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]
1517     *
1518     * @see AbstractGroup#removeRepetition(String, int) 
1519     */
1520    public OBX removeOBX(int rep) throws HL7Exception { 
1521       return (OBX)super.removeRepetition("OBX", rep);
1522    }
1523
1524
1525
1526
1527    /**
1528     * <p>
1529     * Returns
1530     * the first repetition of 
1531     * AL1 () - creates it if necessary
1532     * </p>
1533     * 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]
1534     *
1535     */
1536    public AL1 getAL1() { 
1537       return getTyped("AL1", AL1.class);
1538    }
1539
1540
1541    /**
1542     * <p>
1543     * Returns a specific repetition of
1544     * AL1 () - creates it if necessary
1545     * </p>
1546     * 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]
1547     *
1548     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1549     * @throws HL7Exception if the repetition requested is more than one 
1550     *     greater than the number of existing repetitions.
1551     */
1552    public AL1 getAL1(int rep) { 
1553       return getTyped("AL1", rep, AL1.class);
1554    }
1555
1556    /** 
1557     * <p>
1558     * Returns the number of existing repetitions of AL1 
1559     * </p>
1560     * 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]
1561     */ 
1562    public int getAL1Reps() { 
1563        return getReps("AL1");
1564    } 
1565
1566    /** 
1567     * <p>
1568     * Returns a non-modifiable List containing all current existing repetitions of AL1.
1569     * <p>
1570     * <p>
1571     * Note that unlike {@link #getAL1()}, this method will not create any reps
1572     * if none are already present, so an empty list may be returned.
1573     * </p>
1574     * 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]
1575     */ 
1576    public java.util.List<AL1> getAL1All() throws HL7Exception {
1577        return getAllAsList("AL1", AL1.class);
1578    } 
1579
1580    /**
1581     * <p>
1582     * Inserts a specific repetition of AL1 ()
1583     * </p>
1584     * 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]
1585     *
1586     * @see AbstractGroup#insertRepetition(Structure, int) 
1587     */
1588    public void insertAL1(AL1 structure, int rep) throws HL7Exception { 
1589       super.insertRepetition( "AL1", structure, rep);
1590    }
1591
1592
1593    /**
1594     * <p>
1595     * Inserts a specific repetition of AL1 ()
1596     * </p>
1597     * 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]
1598     *
1599     * @see AbstractGroup#insertRepetition(Structure, int) 
1600     */
1601    public AL1 insertAL1(int rep) throws HL7Exception { 
1602       return (AL1)super.insertRepetition("AL1", rep);
1603    }
1604
1605
1606    /**
1607     * <p>
1608     * Removes a specific repetition of AL1 ()
1609     * </p>
1610     * 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]
1611     *
1612     * @see AbstractGroup#removeRepetition(String, int) 
1613     */
1614    public AL1 removeAL1(int rep) throws HL7Exception { 
1615       return (AL1)super.removeRepetition("AL1", rep);
1616    }
1617
1618
1619
1620
1621    /**
1622     * <p>
1623     * Returns
1624     * the first repetition of 
1625     * DG1 () - creates it if necessary
1626     * </p>
1627     * 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]
1628     *
1629     */
1630    public DG1 getDG1() { 
1631       return getTyped("DG1", DG1.class);
1632    }
1633
1634
1635    /**
1636     * <p>
1637     * Returns a specific repetition of
1638     * DG1 () - creates it if necessary
1639     * </p>
1640     * 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]
1641     *
1642     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1643     * @throws HL7Exception if the repetition requested is more than one 
1644     *     greater than the number of existing repetitions.
1645     */
1646    public DG1 getDG1(int rep) { 
1647       return getTyped("DG1", rep, DG1.class);
1648    }
1649
1650    /** 
1651     * <p>
1652     * Returns the number of existing repetitions of DG1 
1653     * </p>
1654     * 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]
1655     */ 
1656    public int getDG1Reps() { 
1657        return getReps("DG1");
1658    } 
1659
1660    /** 
1661     * <p>
1662     * Returns a non-modifiable List containing all current existing repetitions of DG1.
1663     * <p>
1664     * <p>
1665     * Note that unlike {@link #getDG1()}, this method will not create any reps
1666     * if none are already present, so an empty list may be returned.
1667     * </p>
1668     * 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]
1669     */ 
1670    public java.util.List<DG1> getDG1All() throws HL7Exception {
1671        return getAllAsList("DG1", DG1.class);
1672    } 
1673
1674    /**
1675     * <p>
1676     * Inserts a specific repetition of DG1 ()
1677     * </p>
1678     * 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]
1679     *
1680     * @see AbstractGroup#insertRepetition(Structure, int) 
1681     */
1682    public void insertDG1(DG1 structure, int rep) throws HL7Exception { 
1683       super.insertRepetition( "DG1", structure, rep);
1684    }
1685
1686
1687    /**
1688     * <p>
1689     * Inserts a specific repetition of DG1 ()
1690     * </p>
1691     * 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]
1692     *
1693     * @see AbstractGroup#insertRepetition(Structure, int) 
1694     */
1695    public DG1 insertDG1(int rep) throws HL7Exception { 
1696       return (DG1)super.insertRepetition("DG1", rep);
1697    }
1698
1699
1700    /**
1701     * <p>
1702     * Removes a specific repetition of DG1 ()
1703     * </p>
1704     * 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]
1705     *
1706     * @see AbstractGroup#removeRepetition(String, int) 
1707     */
1708    public DG1 removeDG1(int rep) throws HL7Exception { 
1709       return (DG1)super.removeRepetition("DG1", rep);
1710    }
1711
1712
1713
1714
1715    /**
1716     * <p>
1717     * Returns
1718     * DRG () - creates it if necessary
1719     * </p>
1720     * 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]
1721     *
1722     */
1723    public DRG getDRG() { 
1724       return getTyped("DRG", DRG.class);
1725    }
1726
1727
1728
1729
1730
1731    /**
1732     * <p>
1733     * Returns
1734     * the first repetition of 
1735     * PR1ROL () - creates it if necessary
1736     * </p>
1737     * 
1738     *
1739     */
1740    public ADT_AXX_PR1ROL getPR1ROL() { 
1741       return getTyped("PR1ROL", ADT_AXX_PR1ROL.class);
1742    }
1743
1744
1745    /**
1746     * <p>
1747     * Returns a specific repetition of
1748     * PR1ROL () - creates it if necessary
1749     * </p>
1750     * 
1751     *
1752     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1753     * @throws HL7Exception if the repetition requested is more than one 
1754     *     greater than the number of existing repetitions.
1755     */
1756    public ADT_AXX_PR1ROL getPR1ROL(int rep) { 
1757       return getTyped("PR1ROL", rep, ADT_AXX_PR1ROL.class);
1758    }
1759
1760    /** 
1761     * <p>
1762     * Returns the number of existing repetitions of PR1ROL 
1763     * </p>
1764     * 
1765     */ 
1766    public int getPR1ROLReps() { 
1767        return getReps("PR1ROL");
1768    } 
1769
1770    /** 
1771     * <p>
1772     * Returns a non-modifiable List containing all current existing repetitions of PR1ROL.
1773     * <p>
1774     * <p>
1775     * Note that unlike {@link #getPR1ROL()}, this method will not create any reps
1776     * if none are already present, so an empty list may be returned.
1777     * </p>
1778     * 
1779     */ 
1780    public java.util.List<ADT_AXX_PR1ROL> getPR1ROLAll() throws HL7Exception {
1781        return getAllAsList("PR1ROL", ADT_AXX_PR1ROL.class);
1782    } 
1783
1784    /**
1785     * <p>
1786     * Inserts a specific repetition of PR1ROL ()
1787     * </p>
1788     * 
1789     *
1790     * @see AbstractGroup#insertRepetition(Structure, int) 
1791     */
1792    public void insertPR1ROL(ADT_AXX_PR1ROL structure, int rep) throws HL7Exception { 
1793       super.insertRepetition( "PR1ROL", structure, rep);
1794    }
1795
1796
1797    /**
1798     * <p>
1799     * Inserts a specific repetition of PR1ROL ()
1800     * </p>
1801     * 
1802     *
1803     * @see AbstractGroup#insertRepetition(Structure, int) 
1804     */
1805    public ADT_AXX_PR1ROL insertPR1ROL(int rep) throws HL7Exception { 
1806       return (ADT_AXX_PR1ROL)super.insertRepetition("PR1ROL", rep);
1807    }
1808
1809
1810    /**
1811     * <p>
1812     * Removes a specific repetition of PR1ROL ()
1813     * </p>
1814     * 
1815     *
1816     * @see AbstractGroup#removeRepetition(String, int) 
1817     */
1818    public ADT_AXX_PR1ROL removePR1ROL(int rep) throws HL7Exception { 
1819       return (ADT_AXX_PR1ROL)super.removeRepetition("PR1ROL", rep);
1820    }
1821
1822
1823
1824
1825    /**
1826     * <p>
1827     * Returns
1828     * the first repetition of 
1829     * GT1 () - creates it if necessary
1830     * </p>
1831     * 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]
1832     *
1833     */
1834    public GT1 getGT1() { 
1835       return getTyped("GT1", GT1.class);
1836    }
1837
1838
1839    /**
1840     * <p>
1841     * Returns a specific repetition of
1842     * GT1 () - creates it if necessary
1843     * </p>
1844     * 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]
1845     *
1846     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1847     * @throws HL7Exception if the repetition requested is more than one 
1848     *     greater than the number of existing repetitions.
1849     */
1850    public GT1 getGT1(int rep) { 
1851       return getTyped("GT1", rep, GT1.class);
1852    }
1853
1854    /** 
1855     * <p>
1856     * Returns the number of existing repetitions of GT1 
1857     * </p>
1858     * 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]
1859     */ 
1860    public int getGT1Reps() { 
1861        return getReps("GT1");
1862    } 
1863
1864    /** 
1865     * <p>
1866     * Returns a non-modifiable List containing all current existing repetitions of GT1.
1867     * <p>
1868     * <p>
1869     * Note that unlike {@link #getGT1()}, this method will not create any reps
1870     * if none are already present, so an empty list may be returned.
1871     * </p>
1872     * 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]
1873     */ 
1874    public java.util.List<GT1> getGT1All() throws HL7Exception {
1875        return getAllAsList("GT1", GT1.class);
1876    } 
1877
1878    /**
1879     * <p>
1880     * Inserts a specific repetition of GT1 ()
1881     * </p>
1882     * 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]
1883     *
1884     * @see AbstractGroup#insertRepetition(Structure, int) 
1885     */
1886    public void insertGT1(GT1 structure, int rep) throws HL7Exception { 
1887       super.insertRepetition( "GT1", structure, rep);
1888    }
1889
1890
1891    /**
1892     * <p>
1893     * Inserts a specific repetition of GT1 ()
1894     * </p>
1895     * 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]
1896     *
1897     * @see AbstractGroup#insertRepetition(Structure, int) 
1898     */
1899    public GT1 insertGT1(int rep) throws HL7Exception { 
1900       return (GT1)super.insertRepetition("GT1", rep);
1901    }
1902
1903
1904    /**
1905     * <p>
1906     * Removes a specific repetition of GT1 ()
1907     * </p>
1908     * 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]
1909     *
1910     * @see AbstractGroup#removeRepetition(String, int) 
1911     */
1912    public GT1 removeGT1(int rep) throws HL7Exception { 
1913       return (GT1)super.removeRepetition("GT1", rep);
1914    }
1915
1916
1917
1918
1919    /**
1920     * <p>
1921     * Returns
1922     * the first repetition of 
1923     * IN1IN2IN3 () - creates it if necessary
1924     * </p>
1925     * 
1926     *
1927     */
1928    public ADT_AXX_IN1IN2IN3 getIN1IN2IN3() { 
1929       return getTyped("IN1IN2IN3", ADT_AXX_IN1IN2IN3.class);
1930    }
1931
1932
1933    /**
1934     * <p>
1935     * Returns a specific repetition of
1936     * IN1IN2IN3 () - creates it if necessary
1937     * </p>
1938     * 
1939     *
1940     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
1941     * @throws HL7Exception if the repetition requested is more than one 
1942     *     greater than the number of existing repetitions.
1943     */
1944    public ADT_AXX_IN1IN2IN3 getIN1IN2IN3(int rep) { 
1945       return getTyped("IN1IN2IN3", rep, ADT_AXX_IN1IN2IN3.class);
1946    }
1947
1948    /** 
1949     * <p>
1950     * Returns the number of existing repetitions of IN1IN2IN3 
1951     * </p>
1952     * 
1953     */ 
1954    public int getIN1IN2IN3Reps() { 
1955        return getReps("IN1IN2IN3");
1956    } 
1957
1958    /** 
1959     * <p>
1960     * Returns a non-modifiable List containing all current existing repetitions of IN1IN2IN3.
1961     * <p>
1962     * <p>
1963     * Note that unlike {@link #getIN1IN2IN3()}, this method will not create any reps
1964     * if none are already present, so an empty list may be returned.
1965     * </p>
1966     * 
1967     */ 
1968    public java.util.List<ADT_AXX_IN1IN2IN3> getIN1IN2IN3All() throws HL7Exception {
1969        return getAllAsList("IN1IN2IN3", ADT_AXX_IN1IN2IN3.class);
1970    } 
1971
1972    /**
1973     * <p>
1974     * Inserts a specific repetition of IN1IN2IN3 ()
1975     * </p>
1976     * 
1977     *
1978     * @see AbstractGroup#insertRepetition(Structure, int) 
1979     */
1980    public void insertIN1IN2IN3(ADT_AXX_IN1IN2IN3 structure, int rep) throws HL7Exception { 
1981       super.insertRepetition( "IN1IN2IN3", structure, rep);
1982    }
1983
1984
1985    /**
1986     * <p>
1987     * Inserts a specific repetition of IN1IN2IN3 ()
1988     * </p>
1989     * 
1990     *
1991     * @see AbstractGroup#insertRepetition(Structure, int) 
1992     */
1993    public ADT_AXX_IN1IN2IN3 insertIN1IN2IN3(int rep) throws HL7Exception { 
1994       return (ADT_AXX_IN1IN2IN3)super.insertRepetition("IN1IN2IN3", rep);
1995    }
1996
1997
1998    /**
1999     * <p>
2000     * Removes a specific repetition of IN1IN2IN3 ()
2001     * </p>
2002     * 
2003     *
2004     * @see AbstractGroup#removeRepetition(String, int) 
2005     */
2006    public ADT_AXX_IN1IN2IN3 removeIN1IN2IN3(int rep) throws HL7Exception { 
2007       return (ADT_AXX_IN1IN2IN3)super.removeRepetition("IN1IN2IN3", rep);
2008    }
2009
2010
2011
2012
2013    /**
2014     * <p>
2015     * Returns
2016     * ACC () - creates it if necessary
2017     * </p>
2018     * 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]
2019     *
2020     */
2021    public ACC getACC() { 
2022       return getTyped("ACC", ACC.class);
2023    }
2024
2025
2026
2027
2028
2029    /**
2030     * <p>
2031     * Returns
2032     * UB1 () - creates it if necessary
2033     * </p>
2034     * 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]
2035     *
2036     */
2037    public UB1 getUB1() { 
2038       return getTyped("UB1", UB1.class);
2039    }
2040
2041
2042
2043
2044
2045    /**
2046     * <p>
2047     * Returns
2048     * UB2 () - creates it if necessary
2049     * </p>
2050     * 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]
2051     *
2052     */
2053    public UB2 getUB2() { 
2054       return getTyped("UB2", UB2.class);
2055    }
2056
2057
2058
2059
2060
2061    /**
2062     * <p>
2063     * Returns
2064     * PID2 () - creates it if necessary
2065     * </p>
2066     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2067     *
2068     */
2069    public PID getPID2() { 
2070       return getTyped("PID2", PID.class);
2071    }
2072
2073
2074
2075
2076
2077    /**
2078     * <p>
2079     * Returns
2080     * PD12 () - creates it if necessary
2081     * </p>
2082     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2083     *
2084     */
2085    public PD1 getPD12() { 
2086       return getTyped("PD12", PD1.class);
2087    }
2088
2089
2090
2091
2092
2093    /**
2094     * <p>
2095     * Returns
2096     * PV12 () - creates it if necessary
2097     * </p>
2098     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2099     *
2100     */
2101    public PV1 getPV12() { 
2102       return getTyped("PV12", PV1.class);
2103    }
2104
2105
2106
2107
2108
2109    /**
2110     * <p>
2111     * Returns
2112     * PV22 () - creates it if necessary
2113     * </p>
2114     * Used for the following structures: [ADT_A17]
2115     *
2116     */
2117    public PV2 getPV22() { 
2118       return getTyped("PV22", PV2.class);
2119    }
2120
2121
2122
2123
2124
2125    /**
2126     * <p>
2127     * Returns
2128     * the first repetition of 
2129     * DB12 () - creates it if necessary
2130     * </p>
2131     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2132     *
2133     */
2134    public DB1 getDB12() { 
2135       return getTyped("DB12", DB1.class);
2136    }
2137
2138
2139    /**
2140     * <p>
2141     * Returns a specific repetition of
2142     * DB12 () - creates it if necessary
2143     * </p>
2144     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2145     *
2146     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2147     * @throws HL7Exception if the repetition requested is more than one 
2148     *     greater than the number of existing repetitions.
2149     */
2150    public DB1 getDB12(int rep) { 
2151       return getTyped("DB12", rep, DB1.class);
2152    }
2153
2154    /** 
2155     * <p>
2156     * Returns the number of existing repetitions of DB12 
2157     * </p>
2158     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2159     */ 
2160    public int getDB12Reps() { 
2161        return getReps("DB12");
2162    } 
2163
2164    /** 
2165     * <p>
2166     * Returns a non-modifiable List containing all current existing repetitions of DB12.
2167     * <p>
2168     * <p>
2169     * Note that unlike {@link #getDB12()}, this method will not create any reps
2170     * if none are already present, so an empty list may be returned.
2171     * </p>
2172     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2173     */ 
2174    public java.util.List<DB1> getDB12All() throws HL7Exception {
2175        return getAllAsList("DB12", DB1.class);
2176    } 
2177
2178    /**
2179     * <p>
2180     * Inserts a specific repetition of DB12 ()
2181     * </p>
2182     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2183     *
2184     * @see AbstractGroup#insertRepetition(Structure, int) 
2185     */
2186    public void insertDB12(DB1 structure, int rep) throws HL7Exception { 
2187       super.insertRepetition( "DB12", structure, rep);
2188    }
2189
2190
2191    /**
2192     * <p>
2193     * Inserts a specific repetition of DB12 ()
2194     * </p>
2195     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2196     *
2197     * @see AbstractGroup#insertRepetition(Structure, int) 
2198     */
2199    public DB1 insertDB12(int rep) throws HL7Exception { 
2200       return (DB1)super.insertRepetition("DB12", rep);
2201    }
2202
2203
2204    /**
2205     * <p>
2206     * Removes a specific repetition of DB12 ()
2207     * </p>
2208     * Used for the following structures: [ADT_A17, ADT_A24, ADT_A37]
2209     *
2210     * @see AbstractGroup#removeRepetition(String, int) 
2211     */
2212    public DB1 removeDB12(int rep) throws HL7Exception { 
2213       return (DB1)super.removeRepetition("DB12", rep);
2214    }
2215
2216
2217
2218
2219    /**
2220     * <p>
2221     * Returns
2222     * the first repetition of 
2223     * OBX2 () - creates it if necessary
2224     * </p>
2225     * Used for the following structures: [ADT_A17]
2226     *
2227     */
2228    public OBX getOBX2() { 
2229       return getTyped("OBX2", OBX.class);
2230    }
2231
2232
2233    /**
2234     * <p>
2235     * Returns a specific repetition of
2236     * OBX2 () - creates it if necessary
2237     * </p>
2238     * Used for the following structures: [ADT_A17]
2239     *
2240     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2241     * @throws HL7Exception if the repetition requested is more than one 
2242     *     greater than the number of existing repetitions.
2243     */
2244    public OBX getOBX2(int rep) { 
2245       return getTyped("OBX2", rep, OBX.class);
2246    }
2247
2248    /** 
2249     * <p>
2250     * Returns the number of existing repetitions of OBX2 
2251     * </p>
2252     * Used for the following structures: [ADT_A17]
2253     */ 
2254    public int getOBX2Reps() { 
2255        return getReps("OBX2");
2256    } 
2257
2258    /** 
2259     * <p>
2260     * Returns a non-modifiable List containing all current existing repetitions of OBX2.
2261     * <p>
2262     * <p>
2263     * Note that unlike {@link #getOBX2()}, this method will not create any reps
2264     * if none are already present, so an empty list may be returned.
2265     * </p>
2266     * Used for the following structures: [ADT_A17]
2267     */ 
2268    public java.util.List<OBX> getOBX2All() throws HL7Exception {
2269        return getAllAsList("OBX2", OBX.class);
2270    } 
2271
2272    /**
2273     * <p>
2274     * Inserts a specific repetition of OBX2 ()
2275     * </p>
2276     * Used for the following structures: [ADT_A17]
2277     *
2278     * @see AbstractGroup#insertRepetition(Structure, int) 
2279     */
2280    public void insertOBX2(OBX structure, int rep) throws HL7Exception { 
2281       super.insertRepetition( "OBX2", structure, rep);
2282    }
2283
2284
2285    /**
2286     * <p>
2287     * Inserts a specific repetition of OBX2 ()
2288     * </p>
2289     * Used for the following structures: [ADT_A17]
2290     *
2291     * @see AbstractGroup#insertRepetition(Structure, int) 
2292     */
2293    public OBX insertOBX2(int rep) throws HL7Exception { 
2294       return (OBX)super.insertRepetition("OBX2", rep);
2295    }
2296
2297
2298    /**
2299     * <p>
2300     * Removes a specific repetition of OBX2 ()
2301     * </p>
2302     * Used for the following structures: [ADT_A17]
2303     *
2304     * @see AbstractGroup#removeRepetition(String, int) 
2305     */
2306    public OBX removeOBX2(int rep) throws HL7Exception { 
2307       return (OBX)super.removeRepetition("OBX2", rep);
2308    }
2309
2310
2311
2312
2313    /**
2314     * <p>
2315     * Returns
2316     * NPU () - creates it if necessary
2317     * </p>
2318     * Used for the following structures: [ADT_A20]
2319     *
2320     */
2321    public NPU getNPU() { 
2322       return getTyped("NPU", NPU.class);
2323    }
2324
2325
2326
2327
2328
2329    /**
2330     * <p>
2331     * Returns
2332     * the first repetition of 
2333     * PIDPD1MRGPV1 () - creates it if necessary
2334     * </p>
2335     * 
2336     *
2337     */
2338    public ADT_AXX_PIDPD1MRGPV1 getPIDPD1MRGPV1() { 
2339       return getTyped("PIDPD1MRGPV1", ADT_AXX_PIDPD1MRGPV1.class);
2340    }
2341
2342
2343    /**
2344     * <p>
2345     * Returns a specific repetition of
2346     * PIDPD1MRGPV1 () - creates it if necessary
2347     * </p>
2348     * 
2349     *
2350     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2351     * @throws HL7Exception if the repetition requested is more than one 
2352     *     greater than the number of existing repetitions.
2353     */
2354    public ADT_AXX_PIDPD1MRGPV1 getPIDPD1MRGPV1(int rep) { 
2355       return getTyped("PIDPD1MRGPV1", rep, ADT_AXX_PIDPD1MRGPV1.class);
2356    }
2357
2358    /** 
2359     * <p>
2360     * Returns the number of existing repetitions of PIDPD1MRGPV1 
2361     * </p>
2362     * 
2363     */ 
2364    public int getPIDPD1MRGPV1Reps() { 
2365        return getReps("PIDPD1MRGPV1");
2366    } 
2367
2368    /** 
2369     * <p>
2370     * Returns a non-modifiable List containing all current existing repetitions of PIDPD1MRGPV1.
2371     * <p>
2372     * <p>
2373     * Note that unlike {@link #getPIDPD1MRGPV1()}, this method will not create any reps
2374     * if none are already present, so an empty list may be returned.
2375     * </p>
2376     * 
2377     */ 
2378    public java.util.List<ADT_AXX_PIDPD1MRGPV1> getPIDPD1MRGPV1All() throws HL7Exception {
2379        return getAllAsList("PIDPD1MRGPV1", ADT_AXX_PIDPD1MRGPV1.class);
2380    } 
2381
2382    /**
2383     * <p>
2384     * Inserts a specific repetition of PIDPD1MRGPV1 ()
2385     * </p>
2386     * 
2387     *
2388     * @see AbstractGroup#insertRepetition(Structure, int) 
2389     */
2390    public void insertPIDPD1MRGPV1(ADT_AXX_PIDPD1MRGPV1 structure, int rep) throws HL7Exception { 
2391       super.insertRepetition( "PIDPD1MRGPV1", structure, rep);
2392    }
2393
2394
2395    /**
2396     * <p>
2397     * Inserts a specific repetition of PIDPD1MRGPV1 ()
2398     * </p>
2399     * 
2400     *
2401     * @see AbstractGroup#insertRepetition(Structure, int) 
2402     */
2403    public ADT_AXX_PIDPD1MRGPV1 insertPIDPD1MRGPV1(int rep) throws HL7Exception { 
2404       return (ADT_AXX_PIDPD1MRGPV1)super.insertRepetition("PIDPD1MRGPV1", rep);
2405    }
2406
2407
2408    /**
2409     * <p>
2410     * Removes a specific repetition of PIDPD1MRGPV1 ()
2411     * </p>
2412     * 
2413     *
2414     * @see AbstractGroup#removeRepetition(String, int) 
2415     */
2416    public ADT_AXX_PIDPD1MRGPV1 removePIDPD1MRGPV1(int rep) throws HL7Exception { 
2417       return (ADT_AXX_PIDPD1MRGPV1)super.removeRepetition("PIDPD1MRGPV1", rep);
2418    }
2419
2420
2421
2422
2423    /**
2424     * <p>
2425     * Returns
2426     * the first repetition of 
2427     * PIDPD1MRG () - creates it if necessary
2428     * </p>
2429     * 
2430     *
2431     */
2432    public ADT_AXX_PIDPD1MRG getPIDPD1MRG() { 
2433       return getTyped("PIDPD1MRG", ADT_AXX_PIDPD1MRG.class);
2434    }
2435
2436
2437    /**
2438     * <p>
2439     * Returns a specific repetition of
2440     * PIDPD1MRG () - creates it if necessary
2441     * </p>
2442     * 
2443     *
2444     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2445     * @throws HL7Exception if the repetition requested is more than one 
2446     *     greater than the number of existing repetitions.
2447     */
2448    public ADT_AXX_PIDPD1MRG getPIDPD1MRG(int rep) { 
2449       return getTyped("PIDPD1MRG", rep, ADT_AXX_PIDPD1MRG.class);
2450    }
2451
2452    /** 
2453     * <p>
2454     * Returns the number of existing repetitions of PIDPD1MRG 
2455     * </p>
2456     * 
2457     */ 
2458    public int getPIDPD1MRGReps() { 
2459        return getReps("PIDPD1MRG");
2460    } 
2461
2462    /** 
2463     * <p>
2464     * Returns a non-modifiable List containing all current existing repetitions of PIDPD1MRG.
2465     * <p>
2466     * <p>
2467     * Note that unlike {@link #getPIDPD1MRG()}, this method will not create any reps
2468     * if none are already present, so an empty list may be returned.
2469     * </p>
2470     * 
2471     */ 
2472    public java.util.List<ADT_AXX_PIDPD1MRG> getPIDPD1MRGAll() throws HL7Exception {
2473        return getAllAsList("PIDPD1MRG", ADT_AXX_PIDPD1MRG.class);
2474    } 
2475
2476    /**
2477     * <p>
2478     * Inserts a specific repetition of PIDPD1MRG ()
2479     * </p>
2480     * 
2481     *
2482     * @see AbstractGroup#insertRepetition(Structure, int) 
2483     */
2484    public void insertPIDPD1MRG(ADT_AXX_PIDPD1MRG structure, int rep) throws HL7Exception { 
2485       super.insertRepetition( "PIDPD1MRG", structure, rep);
2486    }
2487
2488
2489    /**
2490     * <p>
2491     * Inserts a specific repetition of PIDPD1MRG ()
2492     * </p>
2493     * 
2494     *
2495     * @see AbstractGroup#insertRepetition(Structure, int) 
2496     */
2497    public ADT_AXX_PIDPD1MRG insertPIDPD1MRG(int rep) throws HL7Exception { 
2498       return (ADT_AXX_PIDPD1MRG)super.insertRepetition("PIDPD1MRG", rep);
2499    }
2500
2501
2502    /**
2503     * <p>
2504     * Removes a specific repetition of PIDPD1MRG ()
2505     * </p>
2506     * 
2507     *
2508     * @see AbstractGroup#removeRepetition(String, int) 
2509     */
2510    public ADT_AXX_PIDPD1MRG removePIDPD1MRG(int rep) throws HL7Exception { 
2511       return (ADT_AXX_PIDPD1MRG)super.removeRepetition("PIDPD1MRG", rep);
2512    }
2513
2514
2515
2516
2517    /**
2518     * <p>
2519     * Returns
2520     * the first repetition of 
2521     * MRGPV1 () - creates it if necessary
2522     * </p>
2523     * 
2524     *
2525     */
2526    public ADT_AXX_MRGPV1 getMRGPV1() { 
2527       return getTyped("MRGPV1", ADT_AXX_MRGPV1.class);
2528    }
2529
2530
2531    /**
2532     * <p>
2533     * Returns a specific repetition of
2534     * MRGPV1 () - creates it if necessary
2535     * </p>
2536     * 
2537     *
2538     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
2539     * @throws HL7Exception if the repetition requested is more than one 
2540     *     greater than the number of existing repetitions.
2541     */
2542    public ADT_AXX_MRGPV1 getMRGPV1(int rep) { 
2543       return getTyped("MRGPV1", rep, ADT_AXX_MRGPV1.class);
2544    }
2545
2546    /** 
2547     * <p>
2548     * Returns the number of existing repetitions of MRGPV1 
2549     * </p>
2550     * 
2551     */ 
2552    public int getMRGPV1Reps() { 
2553        return getReps("MRGPV1");
2554    } 
2555
2556    /** 
2557     * <p>
2558     * Returns a non-modifiable List containing all current existing repetitions of MRGPV1.
2559     * <p>
2560     * <p>
2561     * Note that unlike {@link #getMRGPV1()}, this method will not create any reps
2562     * if none are already present, so an empty list may be returned.
2563     * </p>
2564     * 
2565     */ 
2566    public java.util.List<ADT_AXX_MRGPV1> getMRGPV1All() throws HL7Exception {
2567        return getAllAsList("MRGPV1", ADT_AXX_MRGPV1.class);
2568    } 
2569
2570    /**
2571     * <p>
2572     * Inserts a specific repetition of MRGPV1 ()
2573     * </p>
2574     * 
2575     *
2576     * @see AbstractGroup#insertRepetition(Structure, int) 
2577     */
2578    public void insertMRGPV1(ADT_AXX_MRGPV1 structure, int rep) throws HL7Exception { 
2579       super.insertRepetition( "MRGPV1", structure, rep);
2580    }
2581
2582
2583    /**
2584     * <p>
2585     * Inserts a specific repetition of MRGPV1 ()
2586     * </p>
2587     * 
2588     *
2589     * @see AbstractGroup#insertRepetition(Structure, int) 
2590     */
2591    public ADT_AXX_MRGPV1 insertMRGPV1(int rep) throws HL7Exception { 
2592       return (ADT_AXX_MRGPV1)super.insertRepetition("MRGPV1", rep);
2593    }
2594
2595
2596    /**
2597     * <p>
2598     * Removes a specific repetition of MRGPV1 ()
2599     * </p>
2600     * 
2601     *
2602     * @see AbstractGroup#removeRepetition(String, int) 
2603     */
2604    public ADT_AXX_MRGPV1 removeMRGPV1(int rep) throws HL7Exception { 
2605       return (ADT_AXX_MRGPV1)super.removeRepetition("MRGPV1", rep);
2606    }
2607
2608
2609
2610}
2611