View Javadoc
1   /*
2    * This class is an auto-generated source file for a HAPI
3    * HL7 v2.x standard structure class.
4    *
5    * For more information, visit: http://hl7api.sourceforge.net/
6    * 
7    * The contents of this file are subject to the Mozilla Public License Version 1.1 
8    * (the "License"); you may not use this file except in compliance with the License. 
9    * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
10   * Software distributed under the License is distributed on an "AS IS" basis, 
11   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
12   * specific language governing rights and limitations under the License. 
13   * 
14   * The Original Code is "[file_name]".  Description: 
15   * "[one_line_description]" 
16   * 
17   * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
18   * 2012.  All Rights Reserved. 
19   * 
20   * Contributor(s): ______________________________________. 
21   * 
22   * Alternatively, the contents of this file may be used under the terms of the 
23   * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
24   * applicable instead of those above.  If you wish to allow use of your version of this 
25   * file only under the terms of the GPL and not to allow others to use your version 
26   * of this file under the MPL, indicate your decision by deleting  the provisions above 
27   * and replace  them with the notice and other provisions required by the GPL License.  
28   * If you do not delete the provisions above, a recipient may use your version of 
29   * this file under either the MPL or the GPL. 
30   * 
31   */
32  
33  
34  package ca.uhn.hl7v2.model.v28.group;
35  
36  import ca.uhn.hl7v2.model.v28.segment.*;
37  
38  import ca.uhn.hl7v2.HL7Exception;
39  import ca.uhn.hl7v2.parser.ModelClassFactory;
40  import ca.uhn.hl7v2.model.*;
41  
42  /**
43   * <p>Represents a OMG_O19_ORDER group structure (a Group object).
44   * A Group is an ordered collection of message segments that can repeat together or be optionally in/excluded together.
45   * This Group contains the following elements:  
46   * </p>
47   * <ul>
48                           * <li>1: ORC (Common Order) <b>  </b></li>
49                           * <li>2: PRT (Participation Information) <b>optional repeating </b></li>
50                           * <li>3: OMG_O19_TIMING (a Group object) <b>optional repeating </b></li>
51                           * <li>4: OBR (Observation Request) <b>  </b></li>
52                           * <li>5: NTE (Notes and Comments) <b>optional repeating </b></li>
53                           * <li>6: PRT (Participation Information) <b>optional repeating </b></li>
54                           * <li>7: CTD (Contact Data) <b>optional  </b></li>
55                           * <li>8: DG1 (Diagnosis) <b>optional repeating </b></li>
56                           * <li>9: OMG_O19_OBSERVATION (a Group object) <b>optional repeating </b></li>
57                           * <li>10: OMG_O19_SPECIMEN (a Group object) <b>optional repeating </b></li>
58                           * <li>11: OMG_O19_PRIOR_RESULT (a Group object) <b>optional repeating </b></li>
59                           * <li>12: FT1 (Financial Transaction) <b>optional repeating </b></li>
60                           * <li>13: CTI (Clinical Trial Identification) <b>optional repeating </b></li>
61                           * <li>14: BLG (Billing) <b>optional  </b></li>
62   * </ul>
63   */
64  //@SuppressWarnings("unused")
65  public class OMG_O19_ORDER extends AbstractGroup {
66  
67      /** 
68       * Creates a new OMG_O19_ORDER group
69       */
70      public OMG_O19_ORDER(Group parent, ModelClassFactory factory) {
71         super(parent, factory);
72         init(factory);
73      }
74  
75      private void init(ModelClassFactory factory) {
76         try {
77                                    this.add(ORC.class, true, false, false);
78                                    this.add(PRT.class, false, true, false);
79                                    this.add(OMG_O19_TIMING.class, false, true, false);
80                                    this.add(OBR.class, true, false, false);
81                                    this.add(NTE.class, false, true, false);
82                                    this.add(PRT.class, false, true, false);
83                                    this.add(CTD.class, false, false, false);
84                                    this.add(DG1.class, false, true, false);
85                                    this.add(OMG_O19_OBSERVATION.class, false, true, false);
86                                    this.add(OMG_O19_SPECIMEN.class, false, true, false);
87                                    this.add(OMG_O19_PRIOR_RESULT.class, false, true, false);
88                                    this.add(FT1.class, false, true, false);
89                                    this.add(CTI.class, false, true, false);
90                                    this.add(BLG.class, false, false, false);
91         } catch(HL7Exception e) {
92            log.error("Unexpected error creating OMG_O19_ORDER - this is probably a bug in the source code generator.", e);
93         }
94      }
95  
96      /** 
97       * Returns "2.8"
98       */
99      public String getVersion() {
100        return "2.8";
101     }
102 
103 
104 
105     /**
106      * Returns
107      * ORC (Common Order) - creates it if necessary
108      */
109     public ORC getORC() { 
110        ORC retVal = getTyped("ORC", ORC.class);
111        return retVal;
112     }
113 
114 
115 
116 
117     /**
118      * Returns
119      * the first repetition of 
120      * PRT (Participation Information) - creates it if necessary
121      */
122     public PRT getPRT() { 
123        PRT retVal = getTyped("PRT", PRT.class);
124        return retVal;
125     }
126 
127 
128     /**
129      * Returns a specific repetition of
130      * PRT (Participation Information) - creates it if necessary
131      *
132      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
133      * @throws HL7Exception if the repetition requested is more than one 
134      *     greater than the number of existing repetitions.
135      */
136     public PRT getPRT(int rep) { 
137        PRT retVal = getTyped("PRT", rep, PRT.class);
138        return retVal;
139     }
140 
141     /** 
142      * Returns the number of existing repetitions of PRT 
143      */ 
144     public int getPRTReps() {  
145         return getReps("PRT");
146     } 
147 
148     /** 
149      * <p>
150      * Returns a non-modifiable List containing all current existing repetitions of PRT.
151      * <p>
152      * <p>
153      * Note that unlike {@link #getPRT()}, this method will not create any reps
154      * if none are already present, so an empty list may be returned.
155      * </p>
156      */ 
157     public java.util.List<PRT> getPRTAll() throws HL7Exception {
158     	return getAllAsList("PRT", PRT.class);
159     } 
160 
161     /**
162      * Inserts a specific repetition of PRT (Participation Information)
163      * @see AbstractGroup#insertRepetition(Structure, int) 
164      */
165     public void insertPRT(PRT structure, int rep) throws HL7Exception { 
166        super.insertRepetition("PRT", structure, rep);
167     }
168 
169 
170     /**
171      * Inserts a specific repetition of PRT (Participation Information)
172      * @see AbstractGroup#insertRepetition(Structure, int) 
173      */
174     public PRT insertPRT(int rep) throws HL7Exception { 
175        return (PRT)super.insertRepetition("PRT", rep);
176     }
177 
178 
179     /**
180      * Removes a specific repetition of PRT (Participation Information)
181      * @see AbstractGroup#removeRepetition(String, int) 
182      */
183     public PRT removePRT(int rep) throws HL7Exception { 
184        return (PRT)super.removeRepetition("PRT", rep);
185     }
186 
187 
188 
189     /**
190      * Returns
191      * the first repetition of 
192      * TIMING (a Group object) - creates it if necessary
193      */
194     public OMG_O19_TIMING getTIMING() { 
195        OMG_O19_TIMING retVal = getTyped("TIMING", OMG_O19_TIMING.class);
196        return retVal;
197     }
198 
199 
200     /**
201      * Returns a specific repetition of
202      * TIMING (a Group object) - creates it if necessary
203      *
204      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
205      * @throws HL7Exception if the repetition requested is more than one 
206      *     greater than the number of existing repetitions.
207      */
208     public OMG_O19_TIMING getTIMING(int rep) { 
209        OMG_O19_TIMING retVal = getTyped("TIMING", rep, OMG_O19_TIMING.class);
210        return retVal;
211     }
212 
213     /** 
214      * Returns the number of existing repetitions of TIMING 
215      */ 
216     public int getTIMINGReps() {  
217         return getReps("TIMING");
218     } 
219 
220     /** 
221      * <p>
222      * Returns a non-modifiable List containing all current existing repetitions of TIMING.
223      * <p>
224      * <p>
225      * Note that unlike {@link #getTIMING()}, this method will not create any reps
226      * if none are already present, so an empty list may be returned.
227      * </p>
228      */ 
229     public java.util.List<OMG_O19_TIMING> getTIMINGAll() throws HL7Exception {
230     	return getAllAsList("TIMING", OMG_O19_TIMING.class);
231     } 
232 
233     /**
234      * Inserts a specific repetition of TIMING (a Group object)
235      * @see AbstractGroup#insertRepetition(Structure, int) 
236      */
237     public void insertTIMING(OMG_O19_TIMING structure, int rep) throws HL7Exception { 
238        super.insertRepetition("TIMING", structure, rep);
239     }
240 
241 
242     /**
243      * Inserts a specific repetition of TIMING (a Group object)
244      * @see AbstractGroup#insertRepetition(Structure, int) 
245      */
246     public OMG_O19_TIMING insertTIMING(int rep) throws HL7Exception { 
247        return (OMG_O19_TIMING)super.insertRepetition("TIMING", rep);
248     }
249 
250 
251     /**
252      * Removes a specific repetition of TIMING (a Group object)
253      * @see AbstractGroup#removeRepetition(String, int) 
254      */
255     public OMG_O19_TIMING removeTIMING(int rep) throws HL7Exception { 
256        return (OMG_O19_TIMING)super.removeRepetition("TIMING", rep);
257     }
258 
259 
260 
261     /**
262      * Returns
263      * OBR (Observation Request) - creates it if necessary
264      */
265     public OBR getOBR() { 
266        OBR retVal = getTyped("OBR", OBR.class);
267        return retVal;
268     }
269 
270 
271 
272 
273     /**
274      * Returns
275      * the first repetition of 
276      * NTE (Notes and Comments) - creates it if necessary
277      */
278     public NTE getNTE() { 
279        NTE retVal = getTyped("NTE", NTE.class);
280        return retVal;
281     }
282 
283 
284     /**
285      * Returns a specific repetition of
286      * NTE (Notes and Comments) - creates it if necessary
287      *
288      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
289      * @throws HL7Exception if the repetition requested is more than one 
290      *     greater than the number of existing repetitions.
291      */
292     public NTE getNTE(int rep) { 
293        NTE retVal = getTyped("NTE", rep, NTE.class);
294        return retVal;
295     }
296 
297     /** 
298      * Returns the number of existing repetitions of NTE 
299      */ 
300     public int getNTEReps() {  
301         return getReps("NTE");
302     } 
303 
304     /** 
305      * <p>
306      * Returns a non-modifiable List containing all current existing repetitions of NTE.
307      * <p>
308      * <p>
309      * Note that unlike {@link #getNTE()}, this method will not create any reps
310      * if none are already present, so an empty list may be returned.
311      * </p>
312      */ 
313     public java.util.List<NTE> getNTEAll() throws HL7Exception {
314     	return getAllAsList("NTE", NTE.class);
315     } 
316 
317     /**
318      * Inserts a specific repetition of NTE (Notes and Comments)
319      * @see AbstractGroup#insertRepetition(Structure, int) 
320      */
321     public void insertNTE(NTE structure, int rep) throws HL7Exception { 
322        super.insertRepetition("NTE", structure, rep);
323     }
324 
325 
326     /**
327      * Inserts a specific repetition of NTE (Notes and Comments)
328      * @see AbstractGroup#insertRepetition(Structure, int) 
329      */
330     public NTE insertNTE(int rep) throws HL7Exception { 
331        return (NTE)super.insertRepetition("NTE", rep);
332     }
333 
334 
335     /**
336      * Removes a specific repetition of NTE (Notes and Comments)
337      * @see AbstractGroup#removeRepetition(String, int) 
338      */
339     public NTE removeNTE(int rep) throws HL7Exception { 
340        return (NTE)super.removeRepetition("NTE", rep);
341     }
342 
343 
344 
345     /**
346      * Returns
347      * the first repetition of 
348      * PRT2 (Participation Information) - creates it if necessary
349      */
350     public PRT getPRT2() { 
351        PRT retVal = getTyped("PRT2", PRT.class);
352        return retVal;
353     }
354 
355 
356     /**
357      * Returns a specific repetition of
358      * PRT (Participation Information) - creates it if necessary
359      *
360      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
361      * @throws HL7Exception if the repetition requested is more than one 
362      *     greater than the number of existing repetitions.
363      */
364     public PRT getPRT2(int rep) { 
365        PRT retVal = getTyped("PRT2", rep, PRT.class);
366        return retVal;
367     }
368 
369     /** 
370      * Returns the number of existing repetitions of PRT2 
371      */ 
372     public int getPRT2Reps() {  
373         return getReps("PRT2");
374     } 
375 
376     /** 
377      * <p>
378      * Returns a non-modifiable List containing all current existing repetitions of PRT2.
379      * <p>
380      * <p>
381      * Note that unlike {@link #getPRT2()}, this method will not create any reps
382      * if none are already present, so an empty list may be returned.
383      * </p>
384      */ 
385     public java.util.List<PRT> getPRT2All() throws HL7Exception {
386     	return getAllAsList("PRT2", PRT.class);
387     } 
388 
389     /**
390      * Inserts a specific repetition of PRT2 (Participation Information)
391      * @see AbstractGroup#insertRepetition(Structure, int) 
392      */
393     public void insertPRT2(PRT structure, int rep) throws HL7Exception { 
394        super.insertRepetition("PRT2", structure, rep);
395     }
396 
397 
398     /**
399      * Inserts a specific repetition of PRT2 (Participation Information)
400      * @see AbstractGroup#insertRepetition(Structure, int) 
401      */
402     public PRT insertPRT2(int rep) throws HL7Exception { 
403        return (PRT)super.insertRepetition("PRT2", rep);
404     }
405 
406 
407     /**
408      * Removes a specific repetition of PRT2 (Participation Information)
409      * @see AbstractGroup#removeRepetition(String, int) 
410      */
411     public PRT removePRT2(int rep) throws HL7Exception { 
412        return (PRT)super.removeRepetition("PRT2", rep);
413     }
414 
415 
416 
417     /**
418      * Returns
419      * CTD (Contact Data) - creates it if necessary
420      */
421     public CTD getCTD() { 
422        CTD retVal = getTyped("CTD", CTD.class);
423        return retVal;
424     }
425 
426 
427 
428 
429     /**
430      * Returns
431      * the first repetition of 
432      * DG1 (Diagnosis) - creates it if necessary
433      */
434     public DG1 getDG1() { 
435        DG1 retVal = getTyped("DG1", DG1.class);
436        return retVal;
437     }
438 
439 
440     /**
441      * Returns a specific repetition of
442      * DG1 (Diagnosis) - creates it if necessary
443      *
444      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
445      * @throws HL7Exception if the repetition requested is more than one 
446      *     greater than the number of existing repetitions.
447      */
448     public DG1 getDG1(int rep) { 
449        DG1 retVal = getTyped("DG1", rep, DG1.class);
450        return retVal;
451     }
452 
453     /** 
454      * Returns the number of existing repetitions of DG1 
455      */ 
456     public int getDG1Reps() {  
457         return getReps("DG1");
458     } 
459 
460     /** 
461      * <p>
462      * Returns a non-modifiable List containing all current existing repetitions of DG1.
463      * <p>
464      * <p>
465      * Note that unlike {@link #getDG1()}, this method will not create any reps
466      * if none are already present, so an empty list may be returned.
467      * </p>
468      */ 
469     public java.util.List<DG1> getDG1All() throws HL7Exception {
470     	return getAllAsList("DG1", DG1.class);
471     } 
472 
473     /**
474      * Inserts a specific repetition of DG1 (Diagnosis)
475      * @see AbstractGroup#insertRepetition(Structure, int) 
476      */
477     public void insertDG1(DG1 structure, int rep) throws HL7Exception { 
478        super.insertRepetition("DG1", structure, rep);
479     }
480 
481 
482     /**
483      * Inserts a specific repetition of DG1 (Diagnosis)
484      * @see AbstractGroup#insertRepetition(Structure, int) 
485      */
486     public DG1 insertDG1(int rep) throws HL7Exception { 
487        return (DG1)super.insertRepetition("DG1", rep);
488     }
489 
490 
491     /**
492      * Removes a specific repetition of DG1 (Diagnosis)
493      * @see AbstractGroup#removeRepetition(String, int) 
494      */
495     public DG1 removeDG1(int rep) throws HL7Exception { 
496        return (DG1)super.removeRepetition("DG1", rep);
497     }
498 
499 
500 
501     /**
502      * Returns
503      * the first repetition of 
504      * OBSERVATION (a Group object) - creates it if necessary
505      */
506     public OMG_O19_OBSERVATION getOBSERVATION() { 
507        OMG_O19_OBSERVATION retVal = getTyped("OBSERVATION", OMG_O19_OBSERVATION.class);
508        return retVal;
509     }
510 
511 
512     /**
513      * Returns a specific repetition of
514      * OBSERVATION (a Group object) - creates it if necessary
515      *
516      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
517      * @throws HL7Exception if the repetition requested is more than one 
518      *     greater than the number of existing repetitions.
519      */
520     public OMG_O19_OBSERVATION getOBSERVATION(int rep) { 
521        OMG_O19_OBSERVATION retVal = getTyped("OBSERVATION", rep, OMG_O19_OBSERVATION.class);
522        return retVal;
523     }
524 
525     /** 
526      * Returns the number of existing repetitions of OBSERVATION 
527      */ 
528     public int getOBSERVATIONReps() {  
529         return getReps("OBSERVATION");
530     } 
531 
532     /** 
533      * <p>
534      * Returns a non-modifiable List containing all current existing repetitions of OBSERVATION.
535      * <p>
536      * <p>
537      * Note that unlike {@link #getOBSERVATION()}, this method will not create any reps
538      * if none are already present, so an empty list may be returned.
539      * </p>
540      */ 
541     public java.util.List<OMG_O19_OBSERVATION> getOBSERVATIONAll() throws HL7Exception {
542     	return getAllAsList("OBSERVATION", OMG_O19_OBSERVATION.class);
543     } 
544 
545     /**
546      * Inserts a specific repetition of OBSERVATION (a Group object)
547      * @see AbstractGroup#insertRepetition(Structure, int) 
548      */
549     public void insertOBSERVATION(OMG_O19_OBSERVATION structure, int rep) throws HL7Exception { 
550        super.insertRepetition("OBSERVATION", structure, rep);
551     }
552 
553 
554     /**
555      * Inserts a specific repetition of OBSERVATION (a Group object)
556      * @see AbstractGroup#insertRepetition(Structure, int) 
557      */
558     public OMG_O19_OBSERVATION insertOBSERVATION(int rep) throws HL7Exception { 
559        return (OMG_O19_OBSERVATION)super.insertRepetition("OBSERVATION", rep);
560     }
561 
562 
563     /**
564      * Removes a specific repetition of OBSERVATION (a Group object)
565      * @see AbstractGroup#removeRepetition(String, int) 
566      */
567     public OMG_O19_OBSERVATION removeOBSERVATION(int rep) throws HL7Exception { 
568        return (OMG_O19_OBSERVATION)super.removeRepetition("OBSERVATION", rep);
569     }
570 
571 
572 
573     /**
574      * Returns
575      * the first repetition of 
576      * SPECIMEN (a Group object) - creates it if necessary
577      */
578     public OMG_O19_SPECIMEN getSPECIMEN() { 
579        OMG_O19_SPECIMEN retVal = getTyped("SPECIMEN", OMG_O19_SPECIMEN.class);
580        return retVal;
581     }
582 
583 
584     /**
585      * Returns a specific repetition of
586      * SPECIMEN (a Group object) - creates it if necessary
587      *
588      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
589      * @throws HL7Exception if the repetition requested is more than one 
590      *     greater than the number of existing repetitions.
591      */
592     public OMG_O19_SPECIMEN getSPECIMEN(int rep) { 
593        OMG_O19_SPECIMEN retVal = getTyped("SPECIMEN", rep, OMG_O19_SPECIMEN.class);
594        return retVal;
595     }
596 
597     /** 
598      * Returns the number of existing repetitions of SPECIMEN 
599      */ 
600     public int getSPECIMENReps() {  
601         return getReps("SPECIMEN");
602     } 
603 
604     /** 
605      * <p>
606      * Returns a non-modifiable List containing all current existing repetitions of SPECIMEN.
607      * <p>
608      * <p>
609      * Note that unlike {@link #getSPECIMEN()}, 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 java.util.List<OMG_O19_SPECIMEN> getSPECIMENAll() throws HL7Exception {
614     	return getAllAsList("SPECIMEN", OMG_O19_SPECIMEN.class);
615     } 
616 
617     /**
618      * Inserts a specific repetition of SPECIMEN (a Group object)
619      * @see AbstractGroup#insertRepetition(Structure, int) 
620      */
621     public void insertSPECIMEN(OMG_O19_SPECIMEN structure, int rep) throws HL7Exception { 
622        super.insertRepetition("SPECIMEN", structure, rep);
623     }
624 
625 
626     /**
627      * Inserts a specific repetition of SPECIMEN (a Group object)
628      * @see AbstractGroup#insertRepetition(Structure, int) 
629      */
630     public OMG_O19_SPECIMEN insertSPECIMEN(int rep) throws HL7Exception { 
631        return (OMG_O19_SPECIMEN)super.insertRepetition("SPECIMEN", rep);
632     }
633 
634 
635     /**
636      * Removes a specific repetition of SPECIMEN (a Group object)
637      * @see AbstractGroup#removeRepetition(String, int) 
638      */
639     public OMG_O19_SPECIMEN removeSPECIMEN(int rep) throws HL7Exception { 
640        return (OMG_O19_SPECIMEN)super.removeRepetition("SPECIMEN", rep);
641     }
642 
643 
644 
645     /**
646      * Returns
647      * the first repetition of 
648      * PRIOR_RESULT (a Group object) - creates it if necessary
649      */
650     public OMG_O19_PRIOR_RESULT getPRIOR_RESULT() { 
651        OMG_O19_PRIOR_RESULT retVal = getTyped("PRIOR_RESULT", OMG_O19_PRIOR_RESULT.class);
652        return retVal;
653     }
654 
655 
656     /**
657      * Returns a specific repetition of
658      * PRIOR_RESULT (a Group object) - creates it if necessary
659      *
660      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
661      * @throws HL7Exception if the repetition requested is more than one 
662      *     greater than the number of existing repetitions.
663      */
664     public OMG_O19_PRIOR_RESULT getPRIOR_RESULT(int rep) { 
665        OMG_O19_PRIOR_RESULT retVal = getTyped("PRIOR_RESULT", rep, OMG_O19_PRIOR_RESULT.class);
666        return retVal;
667     }
668 
669     /** 
670      * Returns the number of existing repetitions of PRIOR_RESULT 
671      */ 
672     public int getPRIOR_RESULTReps() {  
673         return getReps("PRIOR_RESULT");
674     } 
675 
676     /** 
677      * <p>
678      * Returns a non-modifiable List containing all current existing repetitions of PRIOR_RESULT.
679      * <p>
680      * <p>
681      * Note that unlike {@link #getPRIOR_RESULT()}, this method will not create any reps
682      * if none are already present, so an empty list may be returned.
683      * </p>
684      */ 
685     public java.util.List<OMG_O19_PRIOR_RESULT> getPRIOR_RESULTAll() throws HL7Exception {
686     	return getAllAsList("PRIOR_RESULT", OMG_O19_PRIOR_RESULT.class);
687     } 
688 
689     /**
690      * Inserts a specific repetition of PRIOR_RESULT (a Group object)
691      * @see AbstractGroup#insertRepetition(Structure, int) 
692      */
693     public void insertPRIOR_RESULT(OMG_O19_PRIOR_RESULT structure, int rep) throws HL7Exception { 
694        super.insertRepetition("PRIOR_RESULT", structure, rep);
695     }
696 
697 
698     /**
699      * Inserts a specific repetition of PRIOR_RESULT (a Group object)
700      * @see AbstractGroup#insertRepetition(Structure, int) 
701      */
702     public OMG_O19_PRIOR_RESULT insertPRIOR_RESULT(int rep) throws HL7Exception { 
703        return (OMG_O19_PRIOR_RESULT)super.insertRepetition("PRIOR_RESULT", rep);
704     }
705 
706 
707     /**
708      * Removes a specific repetition of PRIOR_RESULT (a Group object)
709      * @see AbstractGroup#removeRepetition(String, int) 
710      */
711     public OMG_O19_PRIOR_RESULT removePRIOR_RESULT(int rep) throws HL7Exception { 
712        return (OMG_O19_PRIOR_RESULT)super.removeRepetition("PRIOR_RESULT", rep);
713     }
714 
715 
716 
717     /**
718      * Returns
719      * the first repetition of 
720      * FT1 (Financial Transaction) - creates it if necessary
721      */
722     public FT1 getFT1() { 
723        FT1 retVal = getTyped("FT1", FT1.class);
724        return retVal;
725     }
726 
727 
728     /**
729      * Returns a specific repetition of
730      * FT1 (Financial Transaction) - creates it if necessary
731      *
732      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
733      * @throws HL7Exception if the repetition requested is more than one 
734      *     greater than the number of existing repetitions.
735      */
736     public FT1 getFT1(int rep) { 
737        FT1 retVal = getTyped("FT1", rep, FT1.class);
738        return retVal;
739     }
740 
741     /** 
742      * Returns the number of existing repetitions of FT1 
743      */ 
744     public int getFT1Reps() {  
745         return getReps("FT1");
746     } 
747 
748     /** 
749      * <p>
750      * Returns a non-modifiable List containing all current existing repetitions of FT1.
751      * <p>
752      * <p>
753      * Note that unlike {@link #getFT1()}, this method will not create any reps
754      * if none are already present, so an empty list may be returned.
755      * </p>
756      */ 
757     public java.util.List<FT1> getFT1All() throws HL7Exception {
758     	return getAllAsList("FT1", FT1.class);
759     } 
760 
761     /**
762      * Inserts a specific repetition of FT1 (Financial Transaction)
763      * @see AbstractGroup#insertRepetition(Structure, int) 
764      */
765     public void insertFT1(FT1 structure, int rep) throws HL7Exception { 
766        super.insertRepetition("FT1", structure, rep);
767     }
768 
769 
770     /**
771      * Inserts a specific repetition of FT1 (Financial Transaction)
772      * @see AbstractGroup#insertRepetition(Structure, int) 
773      */
774     public FT1 insertFT1(int rep) throws HL7Exception { 
775        return (FT1)super.insertRepetition("FT1", rep);
776     }
777 
778 
779     /**
780      * Removes a specific repetition of FT1 (Financial Transaction)
781      * @see AbstractGroup#removeRepetition(String, int) 
782      */
783     public FT1 removeFT1(int rep) throws HL7Exception { 
784        return (FT1)super.removeRepetition("FT1", rep);
785     }
786 
787 
788 
789     /**
790      * Returns
791      * the first repetition of 
792      * CTI (Clinical Trial Identification) - creates it if necessary
793      */
794     public CTI getCTI() { 
795        CTI retVal = getTyped("CTI", CTI.class);
796        return retVal;
797     }
798 
799 
800     /**
801      * Returns a specific repetition of
802      * CTI (Clinical Trial Identification) - creates it if necessary
803      *
804      * @param rep The repetition index (0-indexed, i.e. the first repetition is at index 0)
805      * @throws HL7Exception if the repetition requested is more than one 
806      *     greater than the number of existing repetitions.
807      */
808     public CTI getCTI(int rep) { 
809        CTI retVal = getTyped("CTI", rep, CTI.class);
810        return retVal;
811     }
812 
813     /** 
814      * Returns the number of existing repetitions of CTI 
815      */ 
816     public int getCTIReps() {  
817         return getReps("CTI");
818     } 
819 
820     /** 
821      * <p>
822      * Returns a non-modifiable List containing all current existing repetitions of CTI.
823      * <p>
824      * <p>
825      * Note that unlike {@link #getCTI()}, this method will not create any reps
826      * if none are already present, so an empty list may be returned.
827      * </p>
828      */ 
829     public java.util.List<CTI> getCTIAll() throws HL7Exception {
830     	return getAllAsList("CTI", CTI.class);
831     } 
832 
833     /**
834      * Inserts a specific repetition of CTI (Clinical Trial Identification)
835      * @see AbstractGroup#insertRepetition(Structure, int) 
836      */
837     public void insertCTI(CTI structure, int rep) throws HL7Exception { 
838        super.insertRepetition("CTI", structure, rep);
839     }
840 
841 
842     /**
843      * Inserts a specific repetition of CTI (Clinical Trial Identification)
844      * @see AbstractGroup#insertRepetition(Structure, int) 
845      */
846     public CTI insertCTI(int rep) throws HL7Exception { 
847        return (CTI)super.insertRepetition("CTI", rep);
848     }
849 
850 
851     /**
852      * Removes a specific repetition of CTI (Clinical Trial Identification)
853      * @see AbstractGroup#removeRepetition(String, int) 
854      */
855     public CTI removeCTI(int rep) throws HL7Exception { 
856        return (CTI)super.removeRepetition("CTI", rep);
857     }
858 
859 
860 
861     /**
862      * Returns
863      * BLG (Billing) - creates it if necessary
864      */
865     public BLG getBLG() { 
866        BLG retVal = getTyped("BLG", BLG.class);
867        return retVal;
868     }
869 
870 
871 
872 
873 }
874