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