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 java.util.List;
040
041import ca.uhn.hl7v2.HL7Exception;
042import ca.uhn.hl7v2.parser.ModelClassFactory;
043import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
044import ca.uhn.hl7v2.model.AbstractMessage;
045
046/**
047 * <p>Represents a ADT_A07 message structure (see chapter ?). This structure contains the 
048 * following elements: </p>
049 * <ul>
050                 * <li>1: MSH (MSH - message header segment) <b> </b></li>
051                 * <li>2: EVN (EVN - event type segment) <b> </b></li>
052                 * <li>3: PID (PID - patient identification segment) <b> </b></li>
053                 * <li>4: PD1 (PD1 - patient additional demographic segment) <b>optional </b></li>
054                 * <li>5: MRG (MRG - merge patient information segment-) <b>optional </b></li>
055                 * <li>6: NK1 (NK1 - next of kin / associated parties segment-) <b>optional repeating</b></li>
056                 * <li>7: PV1 (PV1 - patient visit segment-) <b> </b></li>
057                 * <li>8: PV2 (PV2 - patient visit - additional information segment) <b>optional </b></li>
058                 * <li>9: DB1 (DB1 - Disability segment) <b>optional repeating</b></li>
059                 * <li>10: OBX (OBX - observation/result segment) <b>optional repeating</b></li>
060                 * <li>11: AL1 (AL1 - patient allergy information segment) <b>optional repeating</b></li>
061                 * <li>12: DG1 (DG1 - diagnosis segment) <b>optional repeating</b></li>
062                 * <li>13: DRG (DRG - diagnosis related group segment) <b>optional </b></li>
063                 * <li>14: ADT_A07_PR1ROL (a Group object) <b>optional repeating</b></li>
064                 * <li>15: GT1 (GT1 - guarantor segment) <b>optional repeating</b></li>
065                 * <li>16: ADT_A07_IN1IN2IN3 (a Group object) <b>optional repeating</b></li>
066                 * <li>17: ACC (ACC - accident segment) <b>optional </b></li>
067                 * <li>18: UB1 (UB1 - UB82 data segment) <b>optional </b></li>
068                 * <li>19: UB2 (UB2 - UB92 data segment) <b>optional </b></li>
069 * </ul>
070 */
071@SuppressWarnings("unused")
072public class ADT_A07 extends AbstractMessage  {
073
074    /**
075     * Creates a new ADT_A07 message with DefaultModelClassFactory. 
076     */ 
077    public ADT_A07() { 
078       this(new DefaultModelClassFactory());
079    }
080
081    /** 
082     * Creates a new ADT_A07 message with custom ModelClassFactory.
083     */
084    public ADT_A07(ModelClassFactory factory) {
085       super(factory);
086       init(factory);
087    }
088
089    private void init(ModelClassFactory factory) {
090       try {
091                          this.add(MSH.class, true, false);
092                          this.add(EVN.class, true, false);
093                          this.add(PID.class, true, false);
094                          this.add(PD1.class, false, false);
095                          this.add(MRG.class, false, false);
096                          this.add(NK1.class, false, true);
097                          this.add(PV1.class, true, false);
098                          this.add(PV2.class, false, false);
099                          this.add(DB1.class, false, true);
100                          this.add(OBX.class, false, true);
101                          this.add(AL1.class, false, true);
102                          this.add(DG1.class, false, true);
103                          this.add(DRG.class, false, false);
104                          this.add(ADT_A07_PR1ROL.class, false, true);
105                          this.add(GT1.class, false, true);
106                          this.add(ADT_A07_IN1IN2IN3.class, false, true);
107                          this.add(ACC.class, false, false);
108                          this.add(UB1.class, false, false);
109                          this.add(UB2.class, false, false);
110       } catch(HL7Exception e) {
111          log.error("Unexpected error creating ADT_A07 - this is probably a bug in the source code generator.", e);
112       }
113    }
114
115    /** 
116     * Returns "2.3.1"
117     */
118    public String getVersion() {
119       return "2.3.1";
120    }
121
122
123
124    /**
125     * Returns
126     * MSH (MSH - message header segment) - creates it if necessary
127     */
128    public MSH getMSH() { 
129       return getTyped("MSH", MSH.class);
130    }
131
132
133
134
135    /**
136     * Returns
137     * EVN (EVN - event type segment) - creates it if necessary
138     */
139    public EVN getEVN() { 
140       return getTyped("EVN", EVN.class);
141    }
142
143
144
145
146    /**
147     * Returns
148     * PID (PID - patient identification segment) - creates it if necessary
149     */
150    public PID getPID() { 
151       return getTyped("PID", PID.class);
152    }
153
154
155
156
157    /**
158     * Returns
159     * PD1 (PD1 - patient additional demographic segment) - creates it if necessary
160     */
161    public PD1 getPD1() { 
162       return getTyped("PD1", PD1.class);
163    }
164
165
166
167
168    /**
169     * Returns
170     * MRG (MRG - merge patient information segment-) - creates it if necessary
171     */
172    public MRG getMRG() { 
173       return getTyped("MRG", MRG.class);
174    }
175
176
177
178
179    /**
180     * Returns
181     * the first repetition of 
182     * NK1 (NK1 - next of kin / associated parties segment-) - creates it if necessary
183     */
184    public NK1 getNK1() { 
185       return getTyped("NK1", NK1.class);
186    }
187
188
189    /**
190     * Returns a specific repetition of
191     * NK1 (NK1 - next of kin / associated parties segment-) - creates it if necessary
192     *
193     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
194     * @throws HL7Exception if the repetition requested is more than one 
195     *     greater than the number of existing repetitions.
196     */
197    public NK1 getNK1(int rep) { 
198       return getTyped("NK1", rep, NK1.class);
199    }
200
201    /** 
202     * Returns the number of existing repetitions of NK1 
203     */ 
204    public int getNK1Reps() { 
205        return getReps("NK1");
206    } 
207
208    /** 
209     * <p>
210     * Returns a non-modifiable List containing all current existing repetitions of NK1.
211     * <p>
212     * <p>
213     * Note that unlike {@link #getNK1()}, this method will not create any reps
214     * if none are already present, so an empty list may be returned.
215     * </p>
216     */ 
217    public List<NK1> getNK1All() throws HL7Exception {
218        return getAllAsList("NK1", NK1.class);
219    } 
220
221    /**
222     * Inserts a specific repetition of NK1 (NK1 - next of kin / associated parties segment-)
223     * @see AbstractGroup#insertRepetition(Structure, int) 
224     */
225    public void insertNK1(NK1 structure, int rep) throws HL7Exception { 
226       super.insertRepetition( "NK1", structure, rep);
227    }
228
229
230    /**
231     * Inserts a specific repetition of NK1 (NK1 - next of kin / associated parties segment-)
232     * @see AbstractGroup#insertRepetition(Structure, int) 
233     */
234    public NK1 insertNK1(int rep) throws HL7Exception { 
235       return (NK1)super.insertRepetition("NK1", rep);
236    }
237
238
239    /**
240     * Removes a specific repetition of NK1 (NK1 - next of kin / associated parties segment-)
241     * @see AbstractGroup#removeRepetition(String, int) 
242     */
243    public NK1 removeNK1(int rep) throws HL7Exception { 
244       return (NK1)super.removeRepetition("NK1", rep);
245    }
246
247
248
249    /**
250     * Returns
251     * PV1 (PV1 - patient visit segment-) - creates it if necessary
252     */
253    public PV1 getPV1() { 
254       return getTyped("PV1", PV1.class);
255    }
256
257
258
259
260    /**
261     * Returns
262     * PV2 (PV2 - patient visit - additional information segment) - creates it if necessary
263     */
264    public PV2 getPV2() { 
265       return getTyped("PV2", PV2.class);
266    }
267
268
269
270
271    /**
272     * Returns
273     * the first repetition of 
274     * DB1 (DB1 - Disability segment) - creates it if necessary
275     */
276    public DB1 getDB1() { 
277       return getTyped("DB1", DB1.class);
278    }
279
280
281    /**
282     * Returns a specific repetition of
283     * DB1 (DB1 - Disability segment) - creates it if necessary
284     *
285     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
286     * @throws HL7Exception if the repetition requested is more than one 
287     *     greater than the number of existing repetitions.
288     */
289    public DB1 getDB1(int rep) { 
290       return getTyped("DB1", rep, DB1.class);
291    }
292
293    /** 
294     * Returns the number of existing repetitions of DB1 
295     */ 
296    public int getDB1Reps() { 
297        return getReps("DB1");
298    } 
299
300    /** 
301     * <p>
302     * Returns a non-modifiable List containing all current existing repetitions of DB1.
303     * <p>
304     * <p>
305     * Note that unlike {@link #getDB1()}, this method will not create any reps
306     * if none are already present, so an empty list may be returned.
307     * </p>
308     */ 
309    public List<DB1> getDB1All() throws HL7Exception {
310        return getAllAsList("DB1", DB1.class);
311    } 
312
313    /**
314     * Inserts a specific repetition of DB1 (DB1 - Disability segment)
315     * @see AbstractGroup#insertRepetition(Structure, int) 
316     */
317    public void insertDB1(DB1 structure, int rep) throws HL7Exception { 
318       super.insertRepetition( "DB1", structure, rep);
319    }
320
321
322    /**
323     * Inserts a specific repetition of DB1 (DB1 - Disability segment)
324     * @see AbstractGroup#insertRepetition(Structure, int) 
325     */
326    public DB1 insertDB1(int rep) throws HL7Exception { 
327       return (DB1)super.insertRepetition("DB1", rep);
328    }
329
330
331    /**
332     * Removes a specific repetition of DB1 (DB1 - Disability segment)
333     * @see AbstractGroup#removeRepetition(String, int) 
334     */
335    public DB1 removeDB1(int rep) throws HL7Exception { 
336       return (DB1)super.removeRepetition("DB1", rep);
337    }
338
339
340
341    /**
342     * Returns
343     * the first repetition of 
344     * OBX (OBX - observation/result segment) - creates it if necessary
345     */
346    public OBX getOBX() { 
347       return getTyped("OBX", OBX.class);
348    }
349
350
351    /**
352     * Returns a specific repetition of
353     * OBX (OBX - observation/result segment) - creates it if necessary
354     *
355     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
356     * @throws HL7Exception if the repetition requested is more than one 
357     *     greater than the number of existing repetitions.
358     */
359    public OBX getOBX(int rep) { 
360       return getTyped("OBX", rep, OBX.class);
361    }
362
363    /** 
364     * Returns the number of existing repetitions of OBX 
365     */ 
366    public int getOBXReps() { 
367        return getReps("OBX");
368    } 
369
370    /** 
371     * <p>
372     * Returns a non-modifiable List containing all current existing repetitions of OBX.
373     * <p>
374     * <p>
375     * Note that unlike {@link #getOBX()}, this method will not create any reps
376     * if none are already present, so an empty list may be returned.
377     * </p>
378     */ 
379    public List<OBX> getOBXAll() throws HL7Exception {
380        return getAllAsList("OBX", OBX.class);
381    } 
382
383    /**
384     * Inserts a specific repetition of OBX (OBX - observation/result segment)
385     * @see AbstractGroup#insertRepetition(Structure, int) 
386     */
387    public void insertOBX(OBX structure, int rep) throws HL7Exception { 
388       super.insertRepetition( "OBX", structure, rep);
389    }
390
391
392    /**
393     * Inserts a specific repetition of OBX (OBX - observation/result segment)
394     * @see AbstractGroup#insertRepetition(Structure, int) 
395     */
396    public OBX insertOBX(int rep) throws HL7Exception { 
397       return (OBX)super.insertRepetition("OBX", rep);
398    }
399
400
401    /**
402     * Removes a specific repetition of OBX (OBX - observation/result segment)
403     * @see AbstractGroup#removeRepetition(String, int) 
404     */
405    public OBX removeOBX(int rep) throws HL7Exception { 
406       return (OBX)super.removeRepetition("OBX", rep);
407    }
408
409
410
411    /**
412     * Returns
413     * the first repetition of 
414     * AL1 (AL1 - patient allergy information segment) - creates it if necessary
415     */
416    public AL1 getAL1() { 
417       return getTyped("AL1", AL1.class);
418    }
419
420
421    /**
422     * Returns a specific repetition of
423     * AL1 (AL1 - patient allergy information segment) - creates it if necessary
424     *
425     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
426     * @throws HL7Exception if the repetition requested is more than one 
427     *     greater than the number of existing repetitions.
428     */
429    public AL1 getAL1(int rep) { 
430       return getTyped("AL1", rep, AL1.class);
431    }
432
433    /** 
434     * Returns the number of existing repetitions of AL1 
435     */ 
436    public int getAL1Reps() { 
437        return getReps("AL1");
438    } 
439
440    /** 
441     * <p>
442     * Returns a non-modifiable List containing all current existing repetitions of AL1.
443     * <p>
444     * <p>
445     * Note that unlike {@link #getAL1()}, this method will not create any reps
446     * if none are already present, so an empty list may be returned.
447     * </p>
448     */ 
449    public List<AL1> getAL1All() throws HL7Exception {
450        return getAllAsList("AL1", AL1.class);
451    } 
452
453    /**
454     * Inserts a specific repetition of AL1 (AL1 - patient allergy information segment)
455     * @see AbstractGroup#insertRepetition(Structure, int) 
456     */
457    public void insertAL1(AL1 structure, int rep) throws HL7Exception { 
458       super.insertRepetition( "AL1", structure, rep);
459    }
460
461
462    /**
463     * Inserts a specific repetition of AL1 (AL1 - patient allergy information segment)
464     * @see AbstractGroup#insertRepetition(Structure, int) 
465     */
466    public AL1 insertAL1(int rep) throws HL7Exception { 
467       return (AL1)super.insertRepetition("AL1", rep);
468    }
469
470
471    /**
472     * Removes a specific repetition of AL1 (AL1 - patient allergy information segment)
473     * @see AbstractGroup#removeRepetition(String, int) 
474     */
475    public AL1 removeAL1(int rep) throws HL7Exception { 
476       return (AL1)super.removeRepetition("AL1", rep);
477    }
478
479
480
481    /**
482     * Returns
483     * the first repetition of 
484     * DG1 (DG1 - diagnosis segment) - creates it if necessary
485     */
486    public DG1 getDG1() { 
487       return getTyped("DG1", DG1.class);
488    }
489
490
491    /**
492     * Returns a specific repetition of
493     * DG1 (DG1 - diagnosis segment) - creates it if necessary
494     *
495     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
496     * @throws HL7Exception if the repetition requested is more than one 
497     *     greater than the number of existing repetitions.
498     */
499    public DG1 getDG1(int rep) { 
500       return getTyped("DG1", rep, DG1.class);
501    }
502
503    /** 
504     * Returns the number of existing repetitions of DG1 
505     */ 
506    public int getDG1Reps() { 
507        return getReps("DG1");
508    } 
509
510    /** 
511     * <p>
512     * Returns a non-modifiable List containing all current existing repetitions of DG1.
513     * <p>
514     * <p>
515     * Note that unlike {@link #getDG1()}, this method will not create any reps
516     * if none are already present, so an empty list may be returned.
517     * </p>
518     */ 
519    public List<DG1> getDG1All() throws HL7Exception {
520        return getAllAsList("DG1", DG1.class);
521    } 
522
523    /**
524     * Inserts a specific repetition of DG1 (DG1 - diagnosis segment)
525     * @see AbstractGroup#insertRepetition(Structure, int) 
526     */
527    public void insertDG1(DG1 structure, int rep) throws HL7Exception { 
528       super.insertRepetition( "DG1", structure, rep);
529    }
530
531
532    /**
533     * Inserts a specific repetition of DG1 (DG1 - diagnosis segment)
534     * @see AbstractGroup#insertRepetition(Structure, int) 
535     */
536    public DG1 insertDG1(int rep) throws HL7Exception { 
537       return (DG1)super.insertRepetition("DG1", rep);
538    }
539
540
541    /**
542     * Removes a specific repetition of DG1 (DG1 - diagnosis segment)
543     * @see AbstractGroup#removeRepetition(String, int) 
544     */
545    public DG1 removeDG1(int rep) throws HL7Exception { 
546       return (DG1)super.removeRepetition("DG1", rep);
547    }
548
549
550
551    /**
552     * Returns
553     * DRG (DRG - diagnosis related group segment) - creates it if necessary
554     */
555    public DRG getDRG() { 
556       return getTyped("DRG", DRG.class);
557    }
558
559
560
561
562    /**
563     * Returns
564     * the first repetition of 
565     * PR1ROL (a Group object) - creates it if necessary
566     */
567    public ADT_A07_PR1ROL getPR1ROL() { 
568       return getTyped("PR1ROL", ADT_A07_PR1ROL.class);
569    }
570
571
572    /**
573     * Returns a specific repetition of
574     * PR1ROL (a Group object) - creates it if necessary
575     *
576     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
577     * @throws HL7Exception if the repetition requested is more than one 
578     *     greater than the number of existing repetitions.
579     */
580    public ADT_A07_PR1ROL getPR1ROL(int rep) { 
581       return getTyped("PR1ROL", rep, ADT_A07_PR1ROL.class);
582    }
583
584    /** 
585     * Returns the number of existing repetitions of PR1ROL 
586     */ 
587    public int getPR1ROLReps() { 
588        return getReps("PR1ROL");
589    } 
590
591    /** 
592     * <p>
593     * Returns a non-modifiable List containing all current existing repetitions of PR1ROL.
594     * <p>
595     * <p>
596     * Note that unlike {@link #getPR1ROL()}, this method will not create any reps
597     * if none are already present, so an empty list may be returned.
598     * </p>
599     */ 
600    public List<ADT_A07_PR1ROL> getPR1ROLAll() throws HL7Exception {
601        return getAllAsList("PR1ROL", ADT_A07_PR1ROL.class);
602    } 
603
604    /**
605     * Inserts a specific repetition of PR1ROL (a Group object)
606     * @see AbstractGroup#insertRepetition(Structure, int) 
607     */
608    public void insertPR1ROL(ADT_A07_PR1ROL structure, int rep) throws HL7Exception { 
609       super.insertRepetition( "PR1ROL", structure, rep);
610    }
611
612
613    /**
614     * Inserts a specific repetition of PR1ROL (a Group object)
615     * @see AbstractGroup#insertRepetition(Structure, int) 
616     */
617    public ADT_A07_PR1ROL insertPR1ROL(int rep) throws HL7Exception { 
618       return (ADT_A07_PR1ROL)super.insertRepetition("PR1ROL", rep);
619    }
620
621
622    /**
623     * Removes a specific repetition of PR1ROL (a Group object)
624     * @see AbstractGroup#removeRepetition(String, int) 
625     */
626    public ADT_A07_PR1ROL removePR1ROL(int rep) throws HL7Exception { 
627       return (ADT_A07_PR1ROL)super.removeRepetition("PR1ROL", rep);
628    }
629
630
631
632    /**
633     * Returns
634     * the first repetition of 
635     * GT1 (GT1 - guarantor segment) - creates it if necessary
636     */
637    public GT1 getGT1() { 
638       return getTyped("GT1", GT1.class);
639    }
640
641
642    /**
643     * Returns a specific repetition of
644     * GT1 (GT1 - guarantor segment) - creates it if necessary
645     *
646     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
647     * @throws HL7Exception if the repetition requested is more than one 
648     *     greater than the number of existing repetitions.
649     */
650    public GT1 getGT1(int rep) { 
651       return getTyped("GT1", rep, GT1.class);
652    }
653
654    /** 
655     * Returns the number of existing repetitions of GT1 
656     */ 
657    public int getGT1Reps() { 
658        return getReps("GT1");
659    } 
660
661    /** 
662     * <p>
663     * Returns a non-modifiable List containing all current existing repetitions of GT1.
664     * <p>
665     * <p>
666     * Note that unlike {@link #getGT1()}, this method will not create any reps
667     * if none are already present, so an empty list may be returned.
668     * </p>
669     */ 
670    public List<GT1> getGT1All() throws HL7Exception {
671        return getAllAsList("GT1", GT1.class);
672    } 
673
674    /**
675     * Inserts a specific repetition of GT1 (GT1 - guarantor segment)
676     * @see AbstractGroup#insertRepetition(Structure, int) 
677     */
678    public void insertGT1(GT1 structure, int rep) throws HL7Exception { 
679       super.insertRepetition( "GT1", structure, rep);
680    }
681
682
683    /**
684     * Inserts a specific repetition of GT1 (GT1 - guarantor segment)
685     * @see AbstractGroup#insertRepetition(Structure, int) 
686     */
687    public GT1 insertGT1(int rep) throws HL7Exception { 
688       return (GT1)super.insertRepetition("GT1", rep);
689    }
690
691
692    /**
693     * Removes a specific repetition of GT1 (GT1 - guarantor segment)
694     * @see AbstractGroup#removeRepetition(String, int) 
695     */
696    public GT1 removeGT1(int rep) throws HL7Exception { 
697       return (GT1)super.removeRepetition("GT1", rep);
698    }
699
700
701
702    /**
703     * Returns
704     * the first repetition of 
705     * IN1IN2IN3 (a Group object) - creates it if necessary
706     */
707    public ADT_A07_IN1IN2IN3 getIN1IN2IN3() { 
708       return getTyped("IN1IN2IN3", ADT_A07_IN1IN2IN3.class);
709    }
710
711
712    /**
713     * Returns a specific repetition of
714     * IN1IN2IN3 (a Group object) - creates it if necessary
715     *
716     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
717     * @throws HL7Exception if the repetition requested is more than one 
718     *     greater than the number of existing repetitions.
719     */
720    public ADT_A07_IN1IN2IN3 getIN1IN2IN3(int rep) { 
721       return getTyped("IN1IN2IN3", rep, ADT_A07_IN1IN2IN3.class);
722    }
723
724    /** 
725     * Returns the number of existing repetitions of IN1IN2IN3 
726     */ 
727    public int getIN1IN2IN3Reps() { 
728        return getReps("IN1IN2IN3");
729    } 
730
731    /** 
732     * <p>
733     * Returns a non-modifiable List containing all current existing repetitions of IN1IN2IN3.
734     * <p>
735     * <p>
736     * Note that unlike {@link #getIN1IN2IN3()}, this method will not create any reps
737     * if none are already present, so an empty list may be returned.
738     * </p>
739     */ 
740    public List<ADT_A07_IN1IN2IN3> getIN1IN2IN3All() throws HL7Exception {
741        return getAllAsList("IN1IN2IN3", ADT_A07_IN1IN2IN3.class);
742    } 
743
744    /**
745     * Inserts a specific repetition of IN1IN2IN3 (a Group object)
746     * @see AbstractGroup#insertRepetition(Structure, int) 
747     */
748    public void insertIN1IN2IN3(ADT_A07_IN1IN2IN3 structure, int rep) throws HL7Exception { 
749       super.insertRepetition( "IN1IN2IN3", structure, rep);
750    }
751
752
753    /**
754     * Inserts a specific repetition of IN1IN2IN3 (a Group object)
755     * @see AbstractGroup#insertRepetition(Structure, int) 
756     */
757    public ADT_A07_IN1IN2IN3 insertIN1IN2IN3(int rep) throws HL7Exception { 
758       return (ADT_A07_IN1IN2IN3)super.insertRepetition("IN1IN2IN3", rep);
759    }
760
761
762    /**
763     * Removes a specific repetition of IN1IN2IN3 (a Group object)
764     * @see AbstractGroup#removeRepetition(String, int) 
765     */
766    public ADT_A07_IN1IN2IN3 removeIN1IN2IN3(int rep) throws HL7Exception { 
767       return (ADT_A07_IN1IN2IN3)super.removeRepetition("IN1IN2IN3", rep);
768    }
769
770
771
772    /**
773     * Returns
774     * ACC (ACC - accident segment) - creates it if necessary
775     */
776    public ACC getACC() { 
777       return getTyped("ACC", ACC.class);
778    }
779
780
781
782
783    /**
784     * Returns
785     * UB1 (UB1 - UB82 data segment) - creates it if necessary
786     */
787    public UB1 getUB1() { 
788       return getTyped("UB1", UB1.class);
789    }
790
791
792
793
794    /**
795     * Returns
796     * UB2 (UB2 - UB92 data segment) - creates it if necessary
797     */
798    public UB2 getUB2() { 
799       return getTyped("UB2", UB2.class);
800    }
801
802
803
804
805}
806