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