001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v231.message;
035
036import ca.uhn.hl7v2.model.v231.group.*;
037import ca.uhn.hl7v2.model.v231.segment.*;
038
039import java.util.List;
040
041import ca.uhn.hl7v2.HL7Exception;
042import ca.uhn.hl7v2.parser.ModelClassFactory;
043import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
044import ca.uhn.hl7v2.model.AbstractMessage;
045
046/**
047 * <p>Represents a RQA_I08 message structure (see chapter ${chapter}). This structure contains the 
048 * following elements: </p>
049 * <ul>
050                 * <li>1: MSH (MSH - message header segment) <b> </b></li>
051                 * <li>2: RF1 (Referral Infomation) <b>optional </b></li>
052                 * <li>3: RQA_I08_AUTCTD (a Group object) <b>optional </b></li>
053                 * <li>4: RQA_I08_PRDCTD (a Group object) <b> repeating</b></li>
054                 * <li>5: PID (PID - patient identification segment) <b> </b></li>
055                 * <li>6: NK1 (NK1 - next of kin / associated parties segment-) <b>optional repeating</b></li>
056                 * <li>7: RQA_I08_GT1IN1IN2IN3 (a Group object) <b>optional </b></li>
057                 * <li>8: ACC (ACC - accident segment) <b>optional </b></li>
058                 * <li>9: DG1 (DG1 - diagnosis segment) <b>optional repeating</b></li>
059                 * <li>10: DRG (DRG - diagnosis related group segment) <b>optional repeating</b></li>
060                 * <li>11: AL1 (AL1 - patient allergy information segment) <b>optional repeating</b></li>
061                 * <li>12: RQA_I08_PR1AUTCTD (a Group object) <b>optional repeating</b></li>
062                 * <li>13: RQA_I08_OBRNTEOBXNTE (a Group object) <b>optional repeating</b></li>
063                 * <li>14: RQA_I08_PV1PV2 (a Group object) <b>optional </b></li>
064                 * <li>15: NTE (NTE - notes and comments segment) <b>optional repeating</b></li>
065 * </ul>
066 */
067@SuppressWarnings("unused")
068public class RQA_I08 extends AbstractMessage  {
069
070    /**
071     * Creates a new RQA_I08 message with DefaultModelClassFactory. 
072     */ 
073    public RQA_I08() { 
074       this(new DefaultModelClassFactory());
075    }
076
077    /** 
078     * Creates a new RQA_I08 message with custom ModelClassFactory.
079     */
080    public RQA_I08(ModelClassFactory factory) {
081       super(factory);
082       init(factory);
083    }
084
085    private void init(ModelClassFactory factory) {
086       try {
087                          this.add(MSH.class, true, false);
088                          this.add(RF1.class, false, false);
089                          this.add(RQA_I08_AUTCTD.class, false, false);
090                          this.add(RQA_I08_PRDCTD.class, true, true);
091                          this.add(PID.class, true, false);
092                          this.add(NK1.class, false, true);
093                          this.add(RQA_I08_GT1IN1IN2IN3.class, false, false);
094                          this.add(ACC.class, false, false);
095                          this.add(DG1.class, false, true);
096                          this.add(DRG.class, false, true);
097                          this.add(AL1.class, false, true);
098                          this.add(RQA_I08_PR1AUTCTD.class, false, true);
099                          this.add(RQA_I08_OBRNTEOBXNTE.class, false, true);
100                          this.add(RQA_I08_PV1PV2.class, false, false);
101                          this.add(NTE.class, false, true);
102       } catch(HL7Exception e) {
103          log.error("Unexpected error creating RQA_I08 - this is probably a bug in the source code generator.", e);
104       }
105    }
106
107    /** 
108     * Returns "2.3.1"
109     */
110    public String getVersion() {
111       return "2.3.1";
112    }
113
114
115
116    /**
117     * Returns
118     * MSH (MSH - message header segment) - creates it if necessary
119     */
120    public MSH getMSH() { 
121       return getTyped("MSH", MSH.class);
122    }
123
124
125
126
127    /**
128     * Returns
129     * RF1 (Referral Infomation) - creates it if necessary
130     */
131    public RF1 getRF1() { 
132       return getTyped("RF1", RF1.class);
133    }
134
135
136
137
138    /**
139     * Returns
140     * AUTCTD (a Group object) - creates it if necessary
141     */
142    public RQA_I08_AUTCTD getAUTCTD() { 
143       return getTyped("AUTCTD", RQA_I08_AUTCTD.class);
144    }
145
146
147
148
149    /**
150     * Returns
151     * the first repetition of 
152     * PRDCTD (a Group object) - creates it if necessary
153     */
154    public RQA_I08_PRDCTD getPRDCTD() { 
155       return getTyped("PRDCTD", RQA_I08_PRDCTD.class);
156    }
157
158
159    /**
160     * Returns a specific repetition of
161     * PRDCTD (a Group object) - creates it if necessary
162     *
163     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
164     * @throws HL7Exception if the repetition requested is more than one 
165     *     greater than the number of existing repetitions.
166     */
167    public RQA_I08_PRDCTD getPRDCTD(int rep) { 
168       return getTyped("PRDCTD", rep, RQA_I08_PRDCTD.class);
169    }
170
171    /** 
172     * Returns the number of existing repetitions of PRDCTD 
173     */ 
174    public int getPRDCTDReps() { 
175        return getReps("PRDCTD");
176    } 
177
178    /** 
179     * <p>
180     * Returns a non-modifiable List containing all current existing repetitions of PRDCTD.
181     * <p>
182     * <p>
183     * Note that unlike {@link #getPRDCTD()}, this method will not create any reps
184     * if none are already present, so an empty list may be returned.
185     * </p>
186     */ 
187    public List<RQA_I08_PRDCTD> getPRDCTDAll() throws HL7Exception {
188        return getAllAsList("PRDCTD", RQA_I08_PRDCTD.class);
189    } 
190
191    /**
192     * Inserts a specific repetition of PRDCTD (a Group object)
193     * @see AbstractGroup#insertRepetition(Structure, int) 
194     */
195    public void insertPRDCTD(RQA_I08_PRDCTD structure, int rep) throws HL7Exception { 
196       super.insertRepetition( "PRDCTD", structure, rep);
197    }
198
199
200    /**
201     * Inserts a specific repetition of PRDCTD (a Group object)
202     * @see AbstractGroup#insertRepetition(Structure, int) 
203     */
204    public RQA_I08_PRDCTD insertPRDCTD(int rep) throws HL7Exception { 
205       return (RQA_I08_PRDCTD)super.insertRepetition("PRDCTD", rep);
206    }
207
208
209    /**
210     * Removes a specific repetition of PRDCTD (a Group object)
211     * @see AbstractGroup#removeRepetition(String, int) 
212     */
213    public RQA_I08_PRDCTD removePRDCTD(int rep) throws HL7Exception { 
214       return (RQA_I08_PRDCTD)super.removeRepetition("PRDCTD", rep);
215    }
216
217
218
219    /**
220     * Returns
221     * PID (PID - patient identification segment) - creates it if necessary
222     */
223    public PID getPID() { 
224       return getTyped("PID", PID.class);
225    }
226
227
228
229
230    /**
231     * Returns
232     * the first repetition of 
233     * NK1 (NK1 - next of kin / associated parties segment-) - creates it if necessary
234     */
235    public NK1 getNK1() { 
236       return getTyped("NK1", NK1.class);
237    }
238
239
240    /**
241     * Returns a specific repetition of
242     * NK1 (NK1 - next of kin / associated parties segment-) - creates it if necessary
243     *
244     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
245     * @throws HL7Exception if the repetition requested is more than one 
246     *     greater than the number of existing repetitions.
247     */
248    public NK1 getNK1(int rep) { 
249       return getTyped("NK1", rep, NK1.class);
250    }
251
252    /** 
253     * Returns the number of existing repetitions of NK1 
254     */ 
255    public int getNK1Reps() { 
256        return getReps("NK1");
257    } 
258
259    /** 
260     * <p>
261     * Returns a non-modifiable List containing all current existing repetitions of NK1.
262     * <p>
263     * <p>
264     * Note that unlike {@link #getNK1()}, this method will not create any reps
265     * if none are already present, so an empty list may be returned.
266     * </p>
267     */ 
268    public List<NK1> getNK1All() throws HL7Exception {
269        return getAllAsList("NK1", NK1.class);
270    } 
271
272    /**
273     * Inserts a specific repetition of NK1 (NK1 - next of kin / associated parties segment-)
274     * @see AbstractGroup#insertRepetition(Structure, int) 
275     */
276    public void insertNK1(NK1 structure, int rep) throws HL7Exception { 
277       super.insertRepetition( "NK1", structure, rep);
278    }
279
280
281    /**
282     * Inserts a specific repetition of NK1 (NK1 - next of kin / associated parties segment-)
283     * @see AbstractGroup#insertRepetition(Structure, int) 
284     */
285    public NK1 insertNK1(int rep) throws HL7Exception { 
286       return (NK1)super.insertRepetition("NK1", rep);
287    }
288
289
290    /**
291     * Removes a specific repetition of NK1 (NK1 - next of kin / associated parties segment-)
292     * @see AbstractGroup#removeRepetition(String, int) 
293     */
294    public NK1 removeNK1(int rep) throws HL7Exception { 
295       return (NK1)super.removeRepetition("NK1", rep);
296    }
297
298
299
300    /**
301     * Returns
302     * GT1IN1IN2IN3 (a Group object) - creates it if necessary
303     */
304    public RQA_I08_GT1IN1IN2IN3 getGT1IN1IN2IN3() { 
305       return getTyped("GT1IN1IN2IN3", RQA_I08_GT1IN1IN2IN3.class);
306    }
307
308
309
310
311    /**
312     * Returns
313     * ACC (ACC - accident segment) - creates it if necessary
314     */
315    public ACC getACC() { 
316       return getTyped("ACC", ACC.class);
317    }
318
319
320
321
322    /**
323     * Returns
324     * the first repetition of 
325     * DG1 (DG1 - diagnosis segment) - creates it if necessary
326     */
327    public DG1 getDG1() { 
328       return getTyped("DG1", DG1.class);
329    }
330
331
332    /**
333     * Returns a specific repetition of
334     * DG1 (DG1 - diagnosis segment) - creates it if necessary
335     *
336     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
337     * @throws HL7Exception if the repetition requested is more than one 
338     *     greater than the number of existing repetitions.
339     */
340    public DG1 getDG1(int rep) { 
341       return getTyped("DG1", rep, DG1.class);
342    }
343
344    /** 
345     * Returns the number of existing repetitions of DG1 
346     */ 
347    public int getDG1Reps() { 
348        return getReps("DG1");
349    } 
350
351    /** 
352     * <p>
353     * Returns a non-modifiable List containing all current existing repetitions of DG1.
354     * <p>
355     * <p>
356     * Note that unlike {@link #getDG1()}, this method will not create any reps
357     * if none are already present, so an empty list may be returned.
358     * </p>
359     */ 
360    public List<DG1> getDG1All() throws HL7Exception {
361        return getAllAsList("DG1", DG1.class);
362    } 
363
364    /**
365     * Inserts a specific repetition of DG1 (DG1 - diagnosis segment)
366     * @see AbstractGroup#insertRepetition(Structure, int) 
367     */
368    public void insertDG1(DG1 structure, int rep) throws HL7Exception { 
369       super.insertRepetition( "DG1", structure, rep);
370    }
371
372
373    /**
374     * Inserts a specific repetition of DG1 (DG1 - diagnosis segment)
375     * @see AbstractGroup#insertRepetition(Structure, int) 
376     */
377    public DG1 insertDG1(int rep) throws HL7Exception { 
378       return (DG1)super.insertRepetition("DG1", rep);
379    }
380
381
382    /**
383     * Removes a specific repetition of DG1 (DG1 - diagnosis segment)
384     * @see AbstractGroup#removeRepetition(String, int) 
385     */
386    public DG1 removeDG1(int rep) throws HL7Exception { 
387       return (DG1)super.removeRepetition("DG1", rep);
388    }
389
390
391
392    /**
393     * Returns
394     * the first repetition of 
395     * DRG (DRG - diagnosis related group segment) - creates it if necessary
396     */
397    public DRG getDRG() { 
398       return getTyped("DRG", DRG.class);
399    }
400
401
402    /**
403     * Returns a specific repetition of
404     * DRG (DRG - diagnosis related group segment) - creates it if necessary
405     *
406     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
407     * @throws HL7Exception if the repetition requested is more than one 
408     *     greater than the number of existing repetitions.
409     */
410    public DRG getDRG(int rep) { 
411       return getTyped("DRG", rep, DRG.class);
412    }
413
414    /** 
415     * Returns the number of existing repetitions of DRG 
416     */ 
417    public int getDRGReps() { 
418        return getReps("DRG");
419    } 
420
421    /** 
422     * <p>
423     * Returns a non-modifiable List containing all current existing repetitions of DRG.
424     * <p>
425     * <p>
426     * Note that unlike {@link #getDRG()}, this method will not create any reps
427     * if none are already present, so an empty list may be returned.
428     * </p>
429     */ 
430    public List<DRG> getDRGAll() throws HL7Exception {
431        return getAllAsList("DRG", DRG.class);
432    } 
433
434    /**
435     * Inserts a specific repetition of DRG (DRG - diagnosis related group segment)
436     * @see AbstractGroup#insertRepetition(Structure, int) 
437     */
438    public void insertDRG(DRG structure, int rep) throws HL7Exception { 
439       super.insertRepetition( "DRG", structure, rep);
440    }
441
442
443    /**
444     * Inserts a specific repetition of DRG (DRG - diagnosis related group segment)
445     * @see AbstractGroup#insertRepetition(Structure, int) 
446     */
447    public DRG insertDRG(int rep) throws HL7Exception { 
448       return (DRG)super.insertRepetition("DRG", rep);
449    }
450
451
452    /**
453     * Removes a specific repetition of DRG (DRG - diagnosis related group segment)
454     * @see AbstractGroup#removeRepetition(String, int) 
455     */
456    public DRG removeDRG(int rep) throws HL7Exception { 
457       return (DRG)super.removeRepetition("DRG", rep);
458    }
459
460
461
462    /**
463     * Returns
464     * the first repetition of 
465     * AL1 (AL1 - patient allergy information segment) - creates it if necessary
466     */
467    public AL1 getAL1() { 
468       return getTyped("AL1", AL1.class);
469    }
470
471
472    /**
473     * Returns a specific repetition of
474     * AL1 (AL1 - patient allergy information segment) - 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 AL1 getAL1(int rep) { 
481       return getTyped("AL1", rep, AL1.class);
482    }
483
484    /** 
485     * Returns the number of existing repetitions of AL1 
486     */ 
487    public int getAL1Reps() { 
488        return getReps("AL1");
489    } 
490
491    /** 
492     * <p>
493     * Returns a non-modifiable List containing all current existing repetitions of AL1.
494     * <p>
495     * <p>
496     * Note that unlike {@link #getAL1()}, this method will not create any reps
497     * if none are already present, so an empty list may be returned.
498     * </p>
499     */ 
500    public List<AL1> getAL1All() throws HL7Exception {
501        return getAllAsList("AL1", AL1.class);
502    } 
503
504    /**
505     * Inserts a specific repetition of AL1 (AL1 - patient allergy information segment)
506     * @see AbstractGroup#insertRepetition(Structure, int) 
507     */
508    public void insertAL1(AL1 structure, int rep) throws HL7Exception { 
509       super.insertRepetition( "AL1", structure, rep);
510    }
511
512
513    /**
514     * Inserts a specific repetition of AL1 (AL1 - patient allergy information segment)
515     * @see AbstractGroup#insertRepetition(Structure, int) 
516     */
517    public AL1 insertAL1(int rep) throws HL7Exception { 
518       return (AL1)super.insertRepetition("AL1", rep);
519    }
520
521
522    /**
523     * Removes a specific repetition of AL1 (AL1 - patient allergy information segment)
524     * @see AbstractGroup#removeRepetition(String, int) 
525     */
526    public AL1 removeAL1(int rep) throws HL7Exception { 
527       return (AL1)super.removeRepetition("AL1", rep);
528    }
529
530
531
532    /**
533     * Returns
534     * the first repetition of 
535     * PR1AUTCTD (a Group object) - creates it if necessary
536     */
537    public RQA_I08_PR1AUTCTD getPR1AUTCTD() { 
538       return getTyped("PR1AUTCTD", RQA_I08_PR1AUTCTD.class);
539    }
540
541
542    /**
543     * Returns a specific repetition of
544     * PR1AUTCTD (a Group object) - creates it if necessary
545     *
546     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
547     * @throws HL7Exception if the repetition requested is more than one 
548     *     greater than the number of existing repetitions.
549     */
550    public RQA_I08_PR1AUTCTD getPR1AUTCTD(int rep) { 
551       return getTyped("PR1AUTCTD", rep, RQA_I08_PR1AUTCTD.class);
552    }
553
554    /** 
555     * Returns the number of existing repetitions of PR1AUTCTD 
556     */ 
557    public int getPR1AUTCTDReps() { 
558        return getReps("PR1AUTCTD");
559    } 
560
561    /** 
562     * <p>
563     * Returns a non-modifiable List containing all current existing repetitions of PR1AUTCTD.
564     * <p>
565     * <p>
566     * Note that unlike {@link #getPR1AUTCTD()}, this method will not create any reps
567     * if none are already present, so an empty list may be returned.
568     * </p>
569     */ 
570    public List<RQA_I08_PR1AUTCTD> getPR1AUTCTDAll() throws HL7Exception {
571        return getAllAsList("PR1AUTCTD", RQA_I08_PR1AUTCTD.class);
572    } 
573
574    /**
575     * Inserts a specific repetition of PR1AUTCTD (a Group object)
576     * @see AbstractGroup#insertRepetition(Structure, int) 
577     */
578    public void insertPR1AUTCTD(RQA_I08_PR1AUTCTD structure, int rep) throws HL7Exception { 
579       super.insertRepetition( "PR1AUTCTD", structure, rep);
580    }
581
582
583    /**
584     * Inserts a specific repetition of PR1AUTCTD (a Group object)
585     * @see AbstractGroup#insertRepetition(Structure, int) 
586     */
587    public RQA_I08_PR1AUTCTD insertPR1AUTCTD(int rep) throws HL7Exception { 
588       return (RQA_I08_PR1AUTCTD)super.insertRepetition("PR1AUTCTD", rep);
589    }
590
591
592    /**
593     * Removes a specific repetition of PR1AUTCTD (a Group object)
594     * @see AbstractGroup#removeRepetition(String, int) 
595     */
596    public RQA_I08_PR1AUTCTD removePR1AUTCTD(int rep) throws HL7Exception { 
597       return (RQA_I08_PR1AUTCTD)super.removeRepetition("PR1AUTCTD", rep);
598    }
599
600
601
602    /**
603     * Returns
604     * the first repetition of 
605     * OBRNTEOBXNTE (a Group object) - creates it if necessary
606     */
607    public RQA_I08_OBRNTEOBXNTE getOBRNTEOBXNTE() { 
608       return getTyped("OBRNTEOBXNTE", RQA_I08_OBRNTEOBXNTE.class);
609    }
610
611
612    /**
613     * Returns a specific repetition of
614     * OBRNTEOBXNTE (a Group object) - creates it if necessary
615     *
616     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
617     * @throws HL7Exception if the repetition requested is more than one 
618     *     greater than the number of existing repetitions.
619     */
620    public RQA_I08_OBRNTEOBXNTE getOBRNTEOBXNTE(int rep) { 
621       return getTyped("OBRNTEOBXNTE", rep, RQA_I08_OBRNTEOBXNTE.class);
622    }
623
624    /** 
625     * Returns the number of existing repetitions of OBRNTEOBXNTE 
626     */ 
627    public int getOBRNTEOBXNTEReps() { 
628        return getReps("OBRNTEOBXNTE");
629    } 
630
631    /** 
632     * <p>
633     * Returns a non-modifiable List containing all current existing repetitions of OBRNTEOBXNTE.
634     * <p>
635     * <p>
636     * Note that unlike {@link #getOBRNTEOBXNTE()}, this method will not create any reps
637     * if none are already present, so an empty list may be returned.
638     * </p>
639     */ 
640    public List<RQA_I08_OBRNTEOBXNTE> getOBRNTEOBXNTEAll() throws HL7Exception {
641        return getAllAsList("OBRNTEOBXNTE", RQA_I08_OBRNTEOBXNTE.class);
642    } 
643
644    /**
645     * Inserts a specific repetition of OBRNTEOBXNTE (a Group object)
646     * @see AbstractGroup#insertRepetition(Structure, int) 
647     */
648    public void insertOBRNTEOBXNTE(RQA_I08_OBRNTEOBXNTE structure, int rep) throws HL7Exception { 
649       super.insertRepetition( "OBRNTEOBXNTE", structure, rep);
650    }
651
652
653    /**
654     * Inserts a specific repetition of OBRNTEOBXNTE (a Group object)
655     * @see AbstractGroup#insertRepetition(Structure, int) 
656     */
657    public RQA_I08_OBRNTEOBXNTE insertOBRNTEOBXNTE(int rep) throws HL7Exception { 
658       return (RQA_I08_OBRNTEOBXNTE)super.insertRepetition("OBRNTEOBXNTE", rep);
659    }
660
661
662    /**
663     * Removes a specific repetition of OBRNTEOBXNTE (a Group object)
664     * @see AbstractGroup#removeRepetition(String, int) 
665     */
666    public RQA_I08_OBRNTEOBXNTE removeOBRNTEOBXNTE(int rep) throws HL7Exception { 
667       return (RQA_I08_OBRNTEOBXNTE)super.removeRepetition("OBRNTEOBXNTE", rep);
668    }
669
670
671
672    /**
673     * Returns
674     * PV1PV2 (a Group object) - creates it if necessary
675     */
676    public RQA_I08_PV1PV2 getPV1PV2() { 
677       return getTyped("PV1PV2", RQA_I08_PV1PV2.class);
678    }
679
680
681
682
683    /**
684     * Returns
685     * the first repetition of 
686     * NTE (NTE - notes and comments segment) - creates it if necessary
687     */
688    public NTE getNTE() { 
689       return getTyped("NTE", NTE.class);
690    }
691
692
693    /**
694     * Returns a specific repetition of
695     * NTE (NTE - notes and comments segment) - creates it if necessary
696     *
697     * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
698     * @throws HL7Exception if the repetition requested is more than one 
699     *     greater than the number of existing repetitions.
700     */
701    public NTE getNTE(int rep) { 
702       return getTyped("NTE", rep, NTE.class);
703    }
704
705    /** 
706     * Returns the number of existing repetitions of NTE 
707     */ 
708    public int getNTEReps() { 
709        return getReps("NTE");
710    } 
711
712    /** 
713     * <p>
714     * Returns a non-modifiable List containing all current existing repetitions of NTE.
715     * <p>
716     * <p>
717     * Note that unlike {@link #getNTE()}, this method will not create any reps
718     * if none are already present, so an empty list may be returned.
719     * </p>
720     */ 
721    public List<NTE> getNTEAll() throws HL7Exception {
722        return getAllAsList("NTE", NTE.class);
723    } 
724
725    /**
726     * Inserts a specific repetition of NTE (NTE - notes and comments segment)
727     * @see AbstractGroup#insertRepetition(Structure, int) 
728     */
729    public void insertNTE(NTE structure, int rep) throws HL7Exception { 
730       super.insertRepetition( "NTE", structure, rep);
731    }
732
733
734    /**
735     * Inserts a specific repetition of NTE (NTE - notes and comments segment)
736     * @see AbstractGroup#insertRepetition(Structure, int) 
737     */
738    public NTE insertNTE(int rep) throws HL7Exception { 
739       return (NTE)super.insertRepetition("NTE", rep);
740    }
741
742
743    /**
744     * Removes a specific repetition of NTE (NTE - notes and comments segment)
745     * @see AbstractGroup#removeRepetition(String, int) 
746     */
747    public NTE removeNTE(int rep) throws HL7Exception { 
748       return (NTE)super.removeRepetition("NTE", rep);
749    }
750
751
752
753}
754