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