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