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.v27.segment;
035
036// import ca.uhn.hl7v2.model.v27.group.*;
037import ca.uhn.hl7v2.model.v27.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047
048/**
049 *<p>Represents an HL7 PRT message segment (Participation Information). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>PRT-1: Participation Instance ID (EI) <b>optional </b>
053     * <li>PRT-2: Action Code (ID) <b> </b>
054     * <li>PRT-3: Action Reason (CWE) <b>optional </b>
055     * <li>PRT-4: Participation (CWE) <b> </b>
056     * <li>PRT-5: Participation Person (XCN) <b>optional repeating</b>
057     * <li>PRT-6: Participation Person Provider Type (CWE) <b>optional </b>
058     * <li>PRT-7: Participant Organization Unit Type (CWE) <b>optional </b>
059     * <li>PRT-8: Participation Organization (XON) <b>optional repeating</b>
060     * <li>PRT-9: Participant Location (PL) <b>optional repeating</b>
061     * <li>PRT-10: Participation Device (EI) <b>optional repeating</b>
062     * <li>PRT-11: Participation Begin Date/Time (arrival time) (DTM) <b>optional </b>
063     * <li>PRT-12: Participation End Date/Time (departure time) (DTM) <b>optional </b>
064     * <li>PRT-13: Participation Qualitative Duration (CWE) <b>optional </b>
065     * <li>PRT-14: Participation Address (XAD) <b>optional repeating</b>
066     * <li>PRT-15: Participant Telecommunication Address (XTN) <b>optional repeating</b>
067 * </ul>
068 */
069@SuppressWarnings("unused")
070public class PRT extends AbstractSegment {
071
072    /** 
073     * Creates a new PRT segment
074     */
075    public PRT(Group parent, ModelClassFactory factory) {
076       super(parent, factory);
077       init(factory);
078    }
079
080    private void init(ModelClassFactory factory) {
081       try {
082                                  this.add(EI.class, false, 1, 4, new Object[]{ getMessage() }, "Participation Instance ID");
083                                              this.add(ID.class, true, 1, 2, new Object[]{ getMessage(), new Integer(287) }, "Action Code");
084                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Action Reason");
085                                  this.add(CWE.class, true, 1, 0, new Object[]{ getMessage() }, "Participation");
086                                  this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Participation Person");
087                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Participation Person Provider Type");
088                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Participant Organization Unit Type");
089                                  this.add(XON.class, false, 0, 0, new Object[]{ getMessage() }, "Participation Organization");
090                                  this.add(PL.class, false, 0, 0, new Object[]{ getMessage() }, "Participant Location");
091                                  this.add(EI.class, false, 0, 0, new Object[]{ getMessage() }, "Participation Device");
092                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Participation Begin Date/Time (arrival time)");
093                                  this.add(DTM.class, false, 1, 0, new Object[]{ getMessage() }, "Participation End Date/Time (departure time)");
094                                  this.add(CWE.class, false, 1, 0, new Object[]{ getMessage() }, "Participation Qualitative Duration");
095                                  this.add(XAD.class, false, 0, 0, new Object[]{ getMessage() }, "Participation Address");
096                                  this.add(XTN.class, false, 0, 0, new Object[]{ getMessage() }, "Participant Telecommunication Address");
097       } catch(HL7Exception e) {
098          log.error("Unexpected error creating PRT - this is probably a bug in the source code generator.", e);
099       }
100    }
101
102
103
104    /**
105     * Returns
106     * PRT-1: "Participation Instance ID" - creates it if necessary
107     */
108    public EI getParticipationInstanceID() { 
109                EI retVal = this.getTypedField(1, 0);
110                return retVal;
111    }
112    
113    /**
114     * Returns
115     * PRT-1: "Participation Instance ID" - creates it if necessary
116     */
117    public EI getPrt1_ParticipationInstanceID() { 
118                EI retVal = this.getTypedField(1, 0);
119                return retVal;
120    }
121
122
123
124    /**
125     * Returns
126     * PRT-2: "Action Code" - creates it if necessary
127     */
128    public ID getActionCode() { 
129                ID retVal = this.getTypedField(2, 0);
130                return retVal;
131    }
132    
133    /**
134     * Returns
135     * PRT-2: "Action Code" - creates it if necessary
136     */
137    public ID getPrt2_ActionCode() { 
138                ID retVal = this.getTypedField(2, 0);
139                return retVal;
140    }
141
142
143
144    /**
145     * Returns
146     * PRT-3: "Action Reason" - creates it if necessary
147     */
148    public CWE getActionReason() { 
149                CWE retVal = this.getTypedField(3, 0);
150                return retVal;
151    }
152    
153    /**
154     * Returns
155     * PRT-3: "Action Reason" - creates it if necessary
156     */
157    public CWE getPrt3_ActionReason() { 
158                CWE retVal = this.getTypedField(3, 0);
159                return retVal;
160    }
161
162
163
164    /**
165     * Returns
166     * PRT-4: "Participation" - creates it if necessary
167     */
168    public CWE getParticipation() { 
169                CWE retVal = this.getTypedField(4, 0);
170                return retVal;
171    }
172    
173    /**
174     * Returns
175     * PRT-4: "Participation" - creates it if necessary
176     */
177    public CWE getPrt4_Participation() { 
178                CWE retVal = this.getTypedField(4, 0);
179                return retVal;
180    }
181
182
183    /**
184     * Returns all repetitions of Participation Person (PRT-5).
185     */
186    public XCN[] getParticipationPerson() {
187        XCN[] retVal = this.getTypedField(5, new XCN[0]);
188        return retVal;
189    }
190
191
192    /**
193     * Returns all repetitions of Participation Person (PRT-5).
194     */
195    public XCN[] getPrt5_ParticipationPerson() {
196        XCN[] retVal = this.getTypedField(5, new XCN[0]);
197        return retVal;
198    }
199
200
201    /**
202     * Returns a count of the current number of repetitions of Participation Person (PRT-5).
203     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
204     * it will return zero.
205     */
206    public int getParticipationPersonReps() {
207        return this.getReps(5);
208    }
209
210
211    /**
212     * Returns a specific repetition of
213     * PRT-5: "Participation Person" - creates it if necessary
214     *
215     * @param rep The repetition index (0-indexed)
216     */
217    public XCN getParticipationPerson(int rep) { 
218                XCN retVal = this.getTypedField(5, rep);
219                return retVal;
220    }
221
222    /**
223     * Returns a specific repetition of
224     * PRT-5: "Participation Person" - creates it if necessary
225     *
226     * @param rep The repetition index (0-indexed)
227     */
228    public XCN getPrt5_ParticipationPerson(int rep) { 
229                XCN retVal = this.getTypedField(5, rep);
230                return retVal;
231    }
232
233    /**
234     * Returns a count of the current number of repetitions of Participation Person (PRT-5).
235     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
236     * it will return zero.
237     */
238    public int getPrt5_ParticipationPersonReps() {
239        return this.getReps(5);
240    }
241
242
243    /**
244     * Inserts a repetition of
245     * PRT-5: "Participation Person" at a specific index
246     *
247     * @param rep The repetition index (0-indexed)
248     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
249     */
250    public XCN insertParticipationPerson(int rep) throws HL7Exception { 
251        return (XCN) super.insertRepetition(5, rep);
252    }
253
254
255    /**
256     * Inserts a repetition of
257     * PRT-5: "Participation Person" at a specific index
258     *
259     * @param rep The repetition index (0-indexed)
260     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
261     */
262    public XCN insertPrt5_ParticipationPerson(int rep) throws HL7Exception { 
263        return (XCN) super.insertRepetition(5, rep);
264    }
265
266
267    /**
268     * Removes a repetition of
269     * PRT-5: "Participation Person" at a specific index
270     *
271     * @param rep The repetition index (0-indexed)
272     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
273     */
274    public XCN removeParticipationPerson(int rep) throws HL7Exception { 
275        return (XCN) super.removeRepetition(5, rep);
276    }
277
278
279    /**
280     * Removes a repetition of
281     * PRT-5: "Participation Person" at a specific index
282     *
283     * @param rep The repetition index (0-indexed)
284     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
285     */
286    public XCN removePrt5_ParticipationPerson(int rep) throws HL7Exception { 
287        return (XCN) super.removeRepetition(5, rep);
288    }
289
290
291
292
293    /**
294     * Returns
295     * PRT-6: "Participation Person Provider Type" - creates it if necessary
296     */
297    public CWE getParticipationPersonProviderType() { 
298                CWE retVal = this.getTypedField(6, 0);
299                return retVal;
300    }
301    
302    /**
303     * Returns
304     * PRT-6: "Participation Person Provider Type" - creates it if necessary
305     */
306    public CWE getPrt6_ParticipationPersonProviderType() { 
307                CWE retVal = this.getTypedField(6, 0);
308                return retVal;
309    }
310
311
312
313    /**
314     * Returns
315     * PRT-7: "Participant Organization Unit Type" - creates it if necessary
316     */
317    public CWE getParticipantOrganizationUnitType() { 
318                CWE retVal = this.getTypedField(7, 0);
319                return retVal;
320    }
321    
322    /**
323     * Returns
324     * PRT-7: "Participant Organization Unit Type" - creates it if necessary
325     */
326    public CWE getPrt7_ParticipantOrganizationUnitType() { 
327                CWE retVal = this.getTypedField(7, 0);
328                return retVal;
329    }
330
331
332    /**
333     * Returns all repetitions of Participation Organization (PRT-8).
334     */
335    public XON[] getParticipationOrganization() {
336        XON[] retVal = this.getTypedField(8, new XON[0]);
337        return retVal;
338    }
339
340
341    /**
342     * Returns all repetitions of Participation Organization (PRT-8).
343     */
344    public XON[] getPrt8_ParticipationOrganization() {
345        XON[] retVal = this.getTypedField(8, new XON[0]);
346        return retVal;
347    }
348
349
350    /**
351     * Returns a count of the current number of repetitions of Participation Organization (PRT-8).
352     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
353     * it will return zero.
354     */
355    public int getParticipationOrganizationReps() {
356        return this.getReps(8);
357    }
358
359
360    /**
361     * Returns a specific repetition of
362     * PRT-8: "Participation Organization" - creates it if necessary
363     *
364     * @param rep The repetition index (0-indexed)
365     */
366    public XON getParticipationOrganization(int rep) { 
367                XON retVal = this.getTypedField(8, rep);
368                return retVal;
369    }
370
371    /**
372     * Returns a specific repetition of
373     * PRT-8: "Participation Organization" - creates it if necessary
374     *
375     * @param rep The repetition index (0-indexed)
376     */
377    public XON getPrt8_ParticipationOrganization(int rep) { 
378                XON retVal = this.getTypedField(8, rep);
379                return retVal;
380    }
381
382    /**
383     * Returns a count of the current number of repetitions of Participation Organization (PRT-8).
384     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
385     * it will return zero.
386     */
387    public int getPrt8_ParticipationOrganizationReps() {
388        return this.getReps(8);
389    }
390
391
392    /**
393     * Inserts a repetition of
394     * PRT-8: "Participation Organization" at a specific index
395     *
396     * @param rep The repetition index (0-indexed)
397     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
398     */
399    public XON insertParticipationOrganization(int rep) throws HL7Exception { 
400        return (XON) super.insertRepetition(8, rep);
401    }
402
403
404    /**
405     * Inserts a repetition of
406     * PRT-8: "Participation Organization" at a specific index
407     *
408     * @param rep The repetition index (0-indexed)
409     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
410     */
411    public XON insertPrt8_ParticipationOrganization(int rep) throws HL7Exception { 
412        return (XON) super.insertRepetition(8, rep);
413    }
414
415
416    /**
417     * Removes a repetition of
418     * PRT-8: "Participation Organization" at a specific index
419     *
420     * @param rep The repetition index (0-indexed)
421     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
422     */
423    public XON removeParticipationOrganization(int rep) throws HL7Exception { 
424        return (XON) super.removeRepetition(8, rep);
425    }
426
427
428    /**
429     * Removes a repetition of
430     * PRT-8: "Participation Organization" at a specific index
431     *
432     * @param rep The repetition index (0-indexed)
433     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
434     */
435    public XON removePrt8_ParticipationOrganization(int rep) throws HL7Exception { 
436        return (XON) super.removeRepetition(8, rep);
437    }
438
439
440
441    /**
442     * Returns all repetitions of Participant Location (PRT-9).
443     */
444    public PL[] getParticipantLocation() {
445        PL[] retVal = this.getTypedField(9, new PL[0]);
446        return retVal;
447    }
448
449
450    /**
451     * Returns all repetitions of Participant Location (PRT-9).
452     */
453    public PL[] getPrt9_ParticipantLocation() {
454        PL[] retVal = this.getTypedField(9, new PL[0]);
455        return retVal;
456    }
457
458
459    /**
460     * Returns a count of the current number of repetitions of Participant Location (PRT-9).
461     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
462     * it will return zero.
463     */
464    public int getParticipantLocationReps() {
465        return this.getReps(9);
466    }
467
468
469    /**
470     * Returns a specific repetition of
471     * PRT-9: "Participant Location" - creates it if necessary
472     *
473     * @param rep The repetition index (0-indexed)
474     */
475    public PL getParticipantLocation(int rep) { 
476                PL retVal = this.getTypedField(9, rep);
477                return retVal;
478    }
479
480    /**
481     * Returns a specific repetition of
482     * PRT-9: "Participant Location" - creates it if necessary
483     *
484     * @param rep The repetition index (0-indexed)
485     */
486    public PL getPrt9_ParticipantLocation(int rep) { 
487                PL retVal = this.getTypedField(9, rep);
488                return retVal;
489    }
490
491    /**
492     * Returns a count of the current number of repetitions of Participant Location (PRT-9).
493     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
494     * it will return zero.
495     */
496    public int getPrt9_ParticipantLocationReps() {
497        return this.getReps(9);
498    }
499
500
501    /**
502     * Inserts a repetition of
503     * PRT-9: "Participant Location" at a specific index
504     *
505     * @param rep The repetition index (0-indexed)
506     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
507     */
508    public PL insertParticipantLocation(int rep) throws HL7Exception { 
509        return (PL) super.insertRepetition(9, rep);
510    }
511
512
513    /**
514     * Inserts a repetition of
515     * PRT-9: "Participant Location" at a specific index
516     *
517     * @param rep The repetition index (0-indexed)
518     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
519     */
520    public PL insertPrt9_ParticipantLocation(int rep) throws HL7Exception { 
521        return (PL) super.insertRepetition(9, rep);
522    }
523
524
525    /**
526     * Removes a repetition of
527     * PRT-9: "Participant Location" at a specific index
528     *
529     * @param rep The repetition index (0-indexed)
530     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
531     */
532    public PL removeParticipantLocation(int rep) throws HL7Exception { 
533        return (PL) super.removeRepetition(9, rep);
534    }
535
536
537    /**
538     * Removes a repetition of
539     * PRT-9: "Participant Location" at a specific index
540     *
541     * @param rep The repetition index (0-indexed)
542     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
543     */
544    public PL removePrt9_ParticipantLocation(int rep) throws HL7Exception { 
545        return (PL) super.removeRepetition(9, rep);
546    }
547
548
549
550    /**
551     * Returns all repetitions of Participation Device (PRT-10).
552     */
553    public EI[] getParticipationDevice() {
554        EI[] retVal = this.getTypedField(10, new EI[0]);
555        return retVal;
556    }
557
558
559    /**
560     * Returns all repetitions of Participation Device (PRT-10).
561     */
562    public EI[] getPrt10_ParticipationDevice() {
563        EI[] retVal = this.getTypedField(10, new EI[0]);
564        return retVal;
565    }
566
567
568    /**
569     * Returns a count of the current number of repetitions of Participation Device (PRT-10).
570     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
571     * it will return zero.
572     */
573    public int getParticipationDeviceReps() {
574        return this.getReps(10);
575    }
576
577
578    /**
579     * Returns a specific repetition of
580     * PRT-10: "Participation Device" - creates it if necessary
581     *
582     * @param rep The repetition index (0-indexed)
583     */
584    public EI getParticipationDevice(int rep) { 
585                EI retVal = this.getTypedField(10, rep);
586                return retVal;
587    }
588
589    /**
590     * Returns a specific repetition of
591     * PRT-10: "Participation Device" - creates it if necessary
592     *
593     * @param rep The repetition index (0-indexed)
594     */
595    public EI getPrt10_ParticipationDevice(int rep) { 
596                EI retVal = this.getTypedField(10, rep);
597                return retVal;
598    }
599
600    /**
601     * Returns a count of the current number of repetitions of Participation Device (PRT-10).
602     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
603     * it will return zero.
604     */
605    public int getPrt10_ParticipationDeviceReps() {
606        return this.getReps(10);
607    }
608
609
610    /**
611     * Inserts a repetition of
612     * PRT-10: "Participation Device" at a specific index
613     *
614     * @param rep The repetition index (0-indexed)
615     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
616     */
617    public EI insertParticipationDevice(int rep) throws HL7Exception { 
618        return (EI) super.insertRepetition(10, rep);
619    }
620
621
622    /**
623     * Inserts a repetition of
624     * PRT-10: "Participation Device" at a specific index
625     *
626     * @param rep The repetition index (0-indexed)
627     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
628     */
629    public EI insertPrt10_ParticipationDevice(int rep) throws HL7Exception { 
630        return (EI) super.insertRepetition(10, rep);
631    }
632
633
634    /**
635     * Removes a repetition of
636     * PRT-10: "Participation Device" at a specific index
637     *
638     * @param rep The repetition index (0-indexed)
639     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
640     */
641    public EI removeParticipationDevice(int rep) throws HL7Exception { 
642        return (EI) super.removeRepetition(10, rep);
643    }
644
645
646    /**
647     * Removes a repetition of
648     * PRT-10: "Participation Device" at a specific index
649     *
650     * @param rep The repetition index (0-indexed)
651     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
652     */
653    public EI removePrt10_ParticipationDevice(int rep) throws HL7Exception { 
654        return (EI) super.removeRepetition(10, rep);
655    }
656
657
658
659
660    /**
661     * Returns
662     * PRT-11: "Participation Begin Date/Time (arrival time)" - creates it if necessary
663     */
664    public DTM getParticipationBeginDateTimeArrivaltime() { 
665                DTM retVal = this.getTypedField(11, 0);
666                return retVal;
667    }
668    
669    /**
670     * Returns
671     * PRT-11: "Participation Begin Date/Time (arrival time)" - creates it if necessary
672     */
673    public DTM getPrt11_ParticipationBeginDateTimeArrivaltime() { 
674                DTM retVal = this.getTypedField(11, 0);
675                return retVal;
676    }
677
678
679
680    /**
681     * Returns
682     * PRT-12: "Participation End Date/Time (departure time)" - creates it if necessary
683     */
684    public DTM getParticipationEndDateTimeDeparturetime() { 
685                DTM retVal = this.getTypedField(12, 0);
686                return retVal;
687    }
688    
689    /**
690     * Returns
691     * PRT-12: "Participation End Date/Time (departure time)" - creates it if necessary
692     */
693    public DTM getPrt12_ParticipationEndDateTimeDeparturetime() { 
694                DTM retVal = this.getTypedField(12, 0);
695                return retVal;
696    }
697
698
699
700    /**
701     * Returns
702     * PRT-13: "Participation Qualitative Duration" - creates it if necessary
703     */
704    public CWE getParticipationQualitativeDuration() { 
705                CWE retVal = this.getTypedField(13, 0);
706                return retVal;
707    }
708    
709    /**
710     * Returns
711     * PRT-13: "Participation Qualitative Duration" - creates it if necessary
712     */
713    public CWE getPrt13_ParticipationQualitativeDuration() { 
714                CWE retVal = this.getTypedField(13, 0);
715                return retVal;
716    }
717
718
719    /**
720     * Returns all repetitions of Participation Address (PRT-14).
721     */
722    public XAD[] getParticipationAddress() {
723        XAD[] retVal = this.getTypedField(14, new XAD[0]);
724        return retVal;
725    }
726
727
728    /**
729     * Returns all repetitions of Participation Address (PRT-14).
730     */
731    public XAD[] getPrt14_ParticipationAddress() {
732        XAD[] retVal = this.getTypedField(14, new XAD[0]);
733        return retVal;
734    }
735
736
737    /**
738     * Returns a count of the current number of repetitions of Participation Address (PRT-14).
739     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
740     * it will return zero.
741     */
742    public int getParticipationAddressReps() {
743        return this.getReps(14);
744    }
745
746
747    /**
748     * Returns a specific repetition of
749     * PRT-14: "Participation Address" - creates it if necessary
750     *
751     * @param rep The repetition index (0-indexed)
752     */
753    public XAD getParticipationAddress(int rep) { 
754                XAD retVal = this.getTypedField(14, rep);
755                return retVal;
756    }
757
758    /**
759     * Returns a specific repetition of
760     * PRT-14: "Participation Address" - creates it if necessary
761     *
762     * @param rep The repetition index (0-indexed)
763     */
764    public XAD getPrt14_ParticipationAddress(int rep) { 
765                XAD retVal = this.getTypedField(14, rep);
766                return retVal;
767    }
768
769    /**
770     * Returns a count of the current number of repetitions of Participation Address (PRT-14).
771     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
772     * it will return zero.
773     */
774    public int getPrt14_ParticipationAddressReps() {
775        return this.getReps(14);
776    }
777
778
779    /**
780     * Inserts a repetition of
781     * PRT-14: "Participation Address" at a specific index
782     *
783     * @param rep The repetition index (0-indexed)
784     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
785     */
786    public XAD insertParticipationAddress(int rep) throws HL7Exception { 
787        return (XAD) super.insertRepetition(14, rep);
788    }
789
790
791    /**
792     * Inserts a repetition of
793     * PRT-14: "Participation Address" at a specific index
794     *
795     * @param rep The repetition index (0-indexed)
796     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
797     */
798    public XAD insertPrt14_ParticipationAddress(int rep) throws HL7Exception { 
799        return (XAD) super.insertRepetition(14, rep);
800    }
801
802
803    /**
804     * Removes a repetition of
805     * PRT-14: "Participation Address" at a specific index
806     *
807     * @param rep The repetition index (0-indexed)
808     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
809     */
810    public XAD removeParticipationAddress(int rep) throws HL7Exception { 
811        return (XAD) super.removeRepetition(14, rep);
812    }
813
814
815    /**
816     * Removes a repetition of
817     * PRT-14: "Participation Address" at a specific index
818     *
819     * @param rep The repetition index (0-indexed)
820     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
821     */
822    public XAD removePrt14_ParticipationAddress(int rep) throws HL7Exception { 
823        return (XAD) super.removeRepetition(14, rep);
824    }
825
826
827
828    /**
829     * Returns all repetitions of Participant Telecommunication Address (PRT-15).
830     */
831    public XTN[] getParticipantTelecommunicationAddress() {
832        XTN[] retVal = this.getTypedField(15, new XTN[0]);
833        return retVal;
834    }
835
836
837    /**
838     * Returns all repetitions of Participant Telecommunication Address (PRT-15).
839     */
840    public XTN[] getPrt15_ParticipantTelecommunicationAddress() {
841        XTN[] retVal = this.getTypedField(15, new XTN[0]);
842        return retVal;
843    }
844
845
846    /**
847     * Returns a count of the current number of repetitions of Participant Telecommunication Address (PRT-15).
848     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
849     * it will return zero.
850     */
851    public int getParticipantTelecommunicationAddressReps() {
852        return this.getReps(15);
853    }
854
855
856    /**
857     * Returns a specific repetition of
858     * PRT-15: "Participant Telecommunication Address" - creates it if necessary
859     *
860     * @param rep The repetition index (0-indexed)
861     */
862    public XTN getParticipantTelecommunicationAddress(int rep) { 
863                XTN retVal = this.getTypedField(15, rep);
864                return retVal;
865    }
866
867    /**
868     * Returns a specific repetition of
869     * PRT-15: "Participant Telecommunication Address" - creates it if necessary
870     *
871     * @param rep The repetition index (0-indexed)
872     */
873    public XTN getPrt15_ParticipantTelecommunicationAddress(int rep) { 
874                XTN retVal = this.getTypedField(15, rep);
875                return retVal;
876    }
877
878    /**
879     * Returns a count of the current number of repetitions of Participant Telecommunication Address (PRT-15).
880     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
881     * it will return zero.
882     */
883    public int getPrt15_ParticipantTelecommunicationAddressReps() {
884        return this.getReps(15);
885    }
886
887
888    /**
889     * Inserts a repetition of
890     * PRT-15: "Participant Telecommunication Address" at a specific index
891     *
892     * @param rep The repetition index (0-indexed)
893     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
894     */
895    public XTN insertParticipantTelecommunicationAddress(int rep) throws HL7Exception { 
896        return (XTN) super.insertRepetition(15, rep);
897    }
898
899
900    /**
901     * Inserts a repetition of
902     * PRT-15: "Participant Telecommunication Address" at a specific index
903     *
904     * @param rep The repetition index (0-indexed)
905     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
906     */
907    public XTN insertPrt15_ParticipantTelecommunicationAddress(int rep) throws HL7Exception { 
908        return (XTN) super.insertRepetition(15, rep);
909    }
910
911
912    /**
913     * Removes a repetition of
914     * PRT-15: "Participant Telecommunication Address" at a specific index
915     *
916     * @param rep The repetition index (0-indexed)
917     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
918     */
919    public XTN removeParticipantTelecommunicationAddress(int rep) throws HL7Exception { 
920        return (XTN) super.removeRepetition(15, rep);
921    }
922
923
924    /**
925     * Removes a repetition of
926     * PRT-15: "Participant Telecommunication Address" at a specific index
927     *
928     * @param rep The repetition index (0-indexed)
929     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
930     */
931    public XTN removePrt15_ParticipantTelecommunicationAddress(int rep) throws HL7Exception { 
932        return (XTN) super.removeRepetition(15, rep);
933    }
934
935
936
937
938
939
940    /** {@inheritDoc} */   
941    protected Type createNewTypeWithoutReflection(int field) {
942       switch (field) {
943          case 0: return new EI(getMessage());
944          case 1: return new ID(getMessage(), new Integer( 287 ));
945          case 2: return new CWE(getMessage());
946          case 3: return new CWE(getMessage());
947          case 4: return new XCN(getMessage());
948          case 5: return new CWE(getMessage());
949          case 6: return new CWE(getMessage());
950          case 7: return new XON(getMessage());
951          case 8: return new PL(getMessage());
952          case 9: return new EI(getMessage());
953          case 10: return new DTM(getMessage());
954          case 11: return new DTM(getMessage());
955          case 12: return new CWE(getMessage());
956          case 13: return new XAD(getMessage());
957          case 14: return new XTN(getMessage());
958          default: return null;
959       }
960   }
961
962
963}
964