001/*
002 * This class is an auto-generated source file for a HAPI
003 * HL7 v2.x standard structure class.
004 *
005 * For more information, visit: http://hl7api.sourceforge.net/
006 * 
007 * The contents of this file are subject to the Mozilla Public License Version 1.1 
008 * (the "License"); you may not use this file except in compliance with the License. 
009 * You may obtain a copy of the License at http://www.mozilla.org/MPL/ 
010 * Software distributed under the License is distributed on an "AS IS" basis, 
011 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 
012 * specific language governing rights and limitations under the License. 
013 * 
014 * The Original Code is "[file_name]".  Description: 
015 * "[one_line_description]" 
016 * 
017 * The Initial Developer of the Original Code is University Health Network. Copyright (C) 
018 * 2012.  All Rights Reserved. 
019 * 
020 * Contributor(s): ______________________________________. 
021 * 
022 * Alternatively, the contents of this file may be used under the terms of the 
023 * GNU General Public License (the  "GPL"), in which case the provisions of the GPL are 
024 * applicable instead of those above.  If you wish to allow use of your version of this 
025 * file only under the terms of the GPL and not to allow others to use your version 
026 * of this file under the MPL, indicate your decision by deleting  the provisions above 
027 * and replace  them with the notice and other provisions required by the GPL License.  
028 * If you do not delete the provisions above, a recipient may use your version of 
029 * this file under either the MPL or the GPL. 
030 * 
031 */
032
033
034package ca.uhn.hl7v2.model.v23.segment;
035
036// import ca.uhn.hl7v2.model.v23.group.*;
037import ca.uhn.hl7v2.model.v23.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 *<p>Represents an HL7 PEO message segment (Product Experience Observation). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>PEO-1: Event Identifiers Used (CE) <b>optional repeating</b>
052     * <li>PEO-2: Event Symptom/Diagnosis Code (CE) <b>optional repeating</b>
053     * <li>PEO-3: Event Onset Date/Time (TS) <b> </b>
054     * <li>PEO-4: Event Exacerbation Date/Time (TS) <b>optional </b>
055     * <li>PEO-5: Event Improved Date/Time (TS) <b>optional </b>
056     * <li>PEO-6: Event Ended Data/Time (TS) <b>optional </b>
057     * <li>PEO-7: Event Location Occurred Address (XAD) <b>optional </b>
058     * <li>PEO-8: Event Qualification (ID) <b>optional repeating</b>
059     * <li>PEO-9: Event Serious (ID) <b>optional </b>
060     * <li>PEO-10: Event Expected (ID) <b>optional </b>
061     * <li>PEO-11: Event Outcome (ID) <b>optional repeating</b>
062     * <li>PEO-12: Patient Outcome (ID) <b>optional </b>
063     * <li>PEO-13: Event Description From Others (FT) <b>optional repeating</b>
064     * <li>PEO-14: Event From Original Reporter (FT) <b>optional repeating</b>
065     * <li>PEO-15: Event Description From Patient (FT) <b>optional repeating</b>
066     * <li>PEO-16: Event Description From Practitioner (FT) <b>optional repeating</b>
067     * <li>PEO-17: Event Description From Autopsy (FT) <b>optional repeating</b>
068     * <li>PEO-18: Cause Of Death (CE) <b>optional repeating</b>
069     * <li>PEO-19: Primary Observer Name (XPN) <b>optional </b>
070     * <li>PEO-20: Primary Observer Address (XAD) <b>optional repeating</b>
071     * <li>PEO-21: Primary Observer Telephone (XTN) <b>optional repeating</b>
072     * <li>PEO-22: Primary Observer’s Qualification (ID) <b>optional </b>
073     * <li>PEO-23: Confirmation Provided By (ID) <b>optional </b>
074     * <li>PEO-24: Primary Observer Aware Date/Time (TS) <b>optional </b>
075     * <li>PEO-25: Primary Observer’s Identity May Be Divulged (ID) <b>optional </b>
076 * </ul>
077 */
078@SuppressWarnings("unused")
079public class PEO extends AbstractSegment {
080
081    /** 
082     * Creates a new PEO segment
083     */
084    public PEO(Group parent, ModelClassFactory factory) {
085       super(parent, factory);
086       init(factory);
087    }
088
089    private void init(ModelClassFactory factory) {
090       try {
091                                  this.add(CE.class, false, 0, 60, new Object[]{ getMessage() }, "Event Identifiers Used");
092                                  this.add(CE.class, false, 0, 60, new Object[]{ getMessage() }, "Event Symptom/Diagnosis Code");
093                                  this.add(TS.class, true, 1, 26, new Object[]{ getMessage() }, "Event Onset Date/Time");
094                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Exacerbation Date/Time");
095                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Improved Date/Time");
096                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Event Ended Data/Time");
097                                  this.add(XAD.class, false, 1, 106, new Object[]{ getMessage() }, "Event Location Occurred Address");
098                                              this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(237) }, "Event Qualification");
099                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(238) }, "Event Serious");
100                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(239) }, "Event Expected");
101                                              this.add(ID.class, false, 0, 1, new Object[]{ getMessage(), new Integer(240) }, "Event Outcome");
102                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(241) }, "Patient Outcome");
103                                  this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Others");
104                                  this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event From Original Reporter");
105                                  this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Patient");
106                                  this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Practitioner");
107                                  this.add(FT.class, false, 0, 600, new Object[]{ getMessage() }, "Event Description From Autopsy");
108                                  this.add(CE.class, false, 0, 30, new Object[]{ getMessage() }, "Cause Of Death");
109                                  this.add(XPN.class, false, 1, 46, new Object[]{ getMessage() }, "Primary Observer Name");
110                                  this.add(XAD.class, false, 0, 106, new Object[]{ getMessage() }, "Primary Observer Address");
111                                  this.add(XTN.class, false, 0, 40, new Object[]{ getMessage() }, "Primary Observer Telephone");
112                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Primary Observer’s Qualification");
113                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(242) }, "Confirmation Provided By");
114                                  this.add(TS.class, false, 1, 26, new Object[]{ getMessage() }, "Primary Observer Aware Date/Time");
115                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(243) }, "Primary Observer’s Identity May Be Divulged");
116       } catch(HL7Exception e) {
117          log.error("Unexpected error creating PEO - this is probably a bug in the source code generator.", e);
118       }
119    }
120
121
122    /**
123     * Returns all repetitions of Event Identifiers Used (PEO-1).
124     */
125    public CE[] getEventIdentifiersUsed() {
126        CE[] retVal = this.getTypedField(1, new CE[0]);
127        return retVal;
128    }
129
130
131    /**
132     * Returns all repetitions of Event Identifiers Used (PEO-1).
133     */
134    public CE[] getPeo1_EventIdentifiersUsed() {
135        CE[] retVal = this.getTypedField(1, new CE[0]);
136        return retVal;
137    }
138
139
140    /**
141     * Returns a count of the current number of repetitions of Event Identifiers Used (PEO-1).
142     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
143     * it will return zero.
144     */
145    public int getEventIdentifiersUsedReps() {
146        return this.getReps(1);
147    }
148
149
150    /**
151     * Returns a specific repetition of
152     * PEO-1: "Event Identifiers Used" - creates it if necessary
153     *
154     * @param rep The repetition index (0-indexed)
155     */
156    public CE getEventIdentifiersUsed(int rep) { 
157                CE retVal = this.getTypedField(1, rep);
158                return retVal;
159    }
160
161    /**
162     * Returns a specific repetition of
163     * PEO-1: "Event Identifiers Used" - creates it if necessary
164     *
165     * @param rep The repetition index (0-indexed)
166     */
167    public CE getPeo1_EventIdentifiersUsed(int rep) { 
168                CE retVal = this.getTypedField(1, rep);
169                return retVal;
170    }
171
172    /**
173     * Returns a count of the current number of repetitions of Event Identifiers Used (PEO-1).
174     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
175     * it will return zero.
176     */
177    public int getPeo1_EventIdentifiersUsedReps() {
178        return this.getReps(1);
179    }
180
181
182    /**
183     * Inserts a repetition of
184     * PEO-1: "Event Identifiers Used" at a specific index
185     *
186     * @param rep The repetition index (0-indexed)
187     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
188     */
189    public CE insertEventIdentifiersUsed(int rep) throws HL7Exception { 
190        return (CE) super.insertRepetition(1, rep);
191    }
192
193
194    /**
195     * Inserts a repetition of
196     * PEO-1: "Event Identifiers Used" at a specific index
197     *
198     * @param rep The repetition index (0-indexed)
199     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
200     */
201    public CE insertPeo1_EventIdentifiersUsed(int rep) throws HL7Exception { 
202        return (CE) super.insertRepetition(1, rep);
203    }
204
205
206    /**
207     * Removes a repetition of
208     * PEO-1: "Event Identifiers Used" at a specific index
209     *
210     * @param rep The repetition index (0-indexed)
211     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
212     */
213    public CE removeEventIdentifiersUsed(int rep) throws HL7Exception { 
214        return (CE) super.removeRepetition(1, rep);
215    }
216
217
218    /**
219     * Removes a repetition of
220     * PEO-1: "Event Identifiers Used" at a specific index
221     *
222     * @param rep The repetition index (0-indexed)
223     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
224     */
225    public CE removePeo1_EventIdentifiersUsed(int rep) throws HL7Exception { 
226        return (CE) super.removeRepetition(1, rep);
227    }
228
229
230
231    /**
232     * Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2).
233     */
234    public CE[] getEventSymptomDiagnosisCode() {
235        CE[] retVal = this.getTypedField(2, new CE[0]);
236        return retVal;
237    }
238
239
240    /**
241     * Returns all repetitions of Event Symptom/Diagnosis Code (PEO-2).
242     */
243    public CE[] getPeo2_EventSymptomDiagnosisCode() {
244        CE[] retVal = this.getTypedField(2, new CE[0]);
245        return retVal;
246    }
247
248
249    /**
250     * Returns a count of the current number of repetitions of Event Symptom/Diagnosis Code (PEO-2).
251     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
252     * it will return zero.
253     */
254    public int getEventSymptomDiagnosisCodeReps() {
255        return this.getReps(2);
256    }
257
258
259    /**
260     * Returns a specific repetition of
261     * PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary
262     *
263     * @param rep The repetition index (0-indexed)
264     */
265    public CE getEventSymptomDiagnosisCode(int rep) { 
266                CE retVal = this.getTypedField(2, rep);
267                return retVal;
268    }
269
270    /**
271     * Returns a specific repetition of
272     * PEO-2: "Event Symptom/Diagnosis Code" - creates it if necessary
273     *
274     * @param rep The repetition index (0-indexed)
275     */
276    public CE getPeo2_EventSymptomDiagnosisCode(int rep) { 
277                CE retVal = this.getTypedField(2, rep);
278                return retVal;
279    }
280
281    /**
282     * Returns a count of the current number of repetitions of Event Symptom/Diagnosis Code (PEO-2).
283     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
284     * it will return zero.
285     */
286    public int getPeo2_EventSymptomDiagnosisCodeReps() {
287        return this.getReps(2);
288    }
289
290
291    /**
292     * Inserts a repetition of
293     * PEO-2: "Event Symptom/Diagnosis Code" at a specific index
294     *
295     * @param rep The repetition index (0-indexed)
296     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
297     */
298    public CE insertEventSymptomDiagnosisCode(int rep) throws HL7Exception { 
299        return (CE) super.insertRepetition(2, rep);
300    }
301
302
303    /**
304     * Inserts a repetition of
305     * PEO-2: "Event Symptom/Diagnosis Code" at a specific index
306     *
307     * @param rep The repetition index (0-indexed)
308     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
309     */
310    public CE insertPeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception { 
311        return (CE) super.insertRepetition(2, rep);
312    }
313
314
315    /**
316     * Removes a repetition of
317     * PEO-2: "Event Symptom/Diagnosis Code" at a specific index
318     *
319     * @param rep The repetition index (0-indexed)
320     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
321     */
322    public CE removeEventSymptomDiagnosisCode(int rep) throws HL7Exception { 
323        return (CE) super.removeRepetition(2, rep);
324    }
325
326
327    /**
328     * Removes a repetition of
329     * PEO-2: "Event Symptom/Diagnosis Code" at a specific index
330     *
331     * @param rep The repetition index (0-indexed)
332     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
333     */
334    public CE removePeo2_EventSymptomDiagnosisCode(int rep) throws HL7Exception { 
335        return (CE) super.removeRepetition(2, rep);
336    }
337
338
339
340
341    /**
342     * Returns
343     * PEO-3: "Event Onset Date/Time" - creates it if necessary
344     */
345    public TS getEventOnsetDateTime() { 
346                TS retVal = this.getTypedField(3, 0);
347                return retVal;
348    }
349    
350    /**
351     * Returns
352     * PEO-3: "Event Onset Date/Time" - creates it if necessary
353     */
354    public TS getPeo3_EventOnsetDateTime() { 
355                TS retVal = this.getTypedField(3, 0);
356                return retVal;
357    }
358
359
360
361    /**
362     * Returns
363     * PEO-4: "Event Exacerbation Date/Time" - creates it if necessary
364     */
365    public TS getEventExacerbationDateTime() { 
366                TS retVal = this.getTypedField(4, 0);
367                return retVal;
368    }
369    
370    /**
371     * Returns
372     * PEO-4: "Event Exacerbation Date/Time" - creates it if necessary
373     */
374    public TS getPeo4_EventExacerbationDateTime() { 
375                TS retVal = this.getTypedField(4, 0);
376                return retVal;
377    }
378
379
380
381    /**
382     * Returns
383     * PEO-5: "Event Improved Date/Time" - creates it if necessary
384     */
385    public TS getEventImprovedDateTime() { 
386                TS retVal = this.getTypedField(5, 0);
387                return retVal;
388    }
389    
390    /**
391     * Returns
392     * PEO-5: "Event Improved Date/Time" - creates it if necessary
393     */
394    public TS getPeo5_EventImprovedDateTime() { 
395                TS retVal = this.getTypedField(5, 0);
396                return retVal;
397    }
398
399
400
401    /**
402     * Returns
403     * PEO-6: "Event Ended Data/Time" - creates it if necessary
404     */
405    public TS getEventEndedDataTime() { 
406                TS retVal = this.getTypedField(6, 0);
407                return retVal;
408    }
409    
410    /**
411     * Returns
412     * PEO-6: "Event Ended Data/Time" - creates it if necessary
413     */
414    public TS getPeo6_EventEndedDataTime() { 
415                TS retVal = this.getTypedField(6, 0);
416                return retVal;
417    }
418
419
420
421    /**
422     * Returns
423     * PEO-7: "Event Location Occurred Address" - creates it if necessary
424     */
425    public XAD getEventLocationOccurredAddress() { 
426                XAD retVal = this.getTypedField(7, 0);
427                return retVal;
428    }
429    
430    /**
431     * Returns
432     * PEO-7: "Event Location Occurred Address" - creates it if necessary
433     */
434    public XAD getPeo7_EventLocationOccurredAddress() { 
435                XAD retVal = this.getTypedField(7, 0);
436                return retVal;
437    }
438
439
440    /**
441     * Returns all repetitions of Event Qualification (PEO-8).
442     */
443    public ID[] getEventQualification() {
444        ID[] retVal = this.getTypedField(8, new ID[0]);
445        return retVal;
446    }
447
448
449    /**
450     * Returns all repetitions of Event Qualification (PEO-8).
451     */
452    public ID[] getPeo8_EventQualification() {
453        ID[] retVal = this.getTypedField(8, new ID[0]);
454        return retVal;
455    }
456
457
458    /**
459     * Returns a count of the current number of repetitions of Event Qualification (PEO-8).
460     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
461     * it will return zero.
462     */
463    public int getEventQualificationReps() {
464        return this.getReps(8);
465    }
466
467
468    /**
469     * Returns a specific repetition of
470     * PEO-8: "Event Qualification" - creates it if necessary
471     *
472     * @param rep The repetition index (0-indexed)
473     */
474    public ID getEventQualification(int rep) { 
475                ID retVal = this.getTypedField(8, rep);
476                return retVal;
477    }
478
479    /**
480     * Returns a specific repetition of
481     * PEO-8: "Event Qualification" - creates it if necessary
482     *
483     * @param rep The repetition index (0-indexed)
484     */
485    public ID getPeo8_EventQualification(int rep) { 
486                ID retVal = this.getTypedField(8, rep);
487                return retVal;
488    }
489
490    /**
491     * Returns a count of the current number of repetitions of Event Qualification (PEO-8).
492     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
493     * it will return zero.
494     */
495    public int getPeo8_EventQualificationReps() {
496        return this.getReps(8);
497    }
498
499
500    /**
501     * Inserts a repetition of
502     * PEO-8: "Event Qualification" at a specific index
503     *
504     * @param rep The repetition index (0-indexed)
505     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
506     */
507    public ID insertEventQualification(int rep) throws HL7Exception { 
508        return (ID) super.insertRepetition(8, rep);
509    }
510
511
512    /**
513     * Inserts a repetition of
514     * PEO-8: "Event Qualification" at a specific index
515     *
516     * @param rep The repetition index (0-indexed)
517     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
518     */
519    public ID insertPeo8_EventQualification(int rep) throws HL7Exception { 
520        return (ID) super.insertRepetition(8, rep);
521    }
522
523
524    /**
525     * Removes a repetition of
526     * PEO-8: "Event Qualification" at a specific index
527     *
528     * @param rep The repetition index (0-indexed)
529     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
530     */
531    public ID removeEventQualification(int rep) throws HL7Exception { 
532        return (ID) super.removeRepetition(8, rep);
533    }
534
535
536    /**
537     * Removes a repetition of
538     * PEO-8: "Event Qualification" at a specific index
539     *
540     * @param rep The repetition index (0-indexed)
541     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
542     */
543    public ID removePeo8_EventQualification(int rep) throws HL7Exception { 
544        return (ID) super.removeRepetition(8, rep);
545    }
546
547
548
549
550    /**
551     * Returns
552     * PEO-9: "Event Serious" - creates it if necessary
553     */
554    public ID getEventSerious() { 
555                ID retVal = this.getTypedField(9, 0);
556                return retVal;
557    }
558    
559    /**
560     * Returns
561     * PEO-9: "Event Serious" - creates it if necessary
562     */
563    public ID getPeo9_EventSerious() { 
564                ID retVal = this.getTypedField(9, 0);
565                return retVal;
566    }
567
568
569
570    /**
571     * Returns
572     * PEO-10: "Event Expected" - creates it if necessary
573     */
574    public ID getEventExpected() { 
575                ID retVal = this.getTypedField(10, 0);
576                return retVal;
577    }
578    
579    /**
580     * Returns
581     * PEO-10: "Event Expected" - creates it if necessary
582     */
583    public ID getPeo10_EventExpected() { 
584                ID retVal = this.getTypedField(10, 0);
585                return retVal;
586    }
587
588
589    /**
590     * Returns all repetitions of Event Outcome (PEO-11).
591     */
592    public ID[] getEventOutcome() {
593        ID[] retVal = this.getTypedField(11, new ID[0]);
594        return retVal;
595    }
596
597
598    /**
599     * Returns all repetitions of Event Outcome (PEO-11).
600     */
601    public ID[] getPeo11_EventOutcome() {
602        ID[] retVal = this.getTypedField(11, new ID[0]);
603        return retVal;
604    }
605
606
607    /**
608     * Returns a count of the current number of repetitions of Event Outcome (PEO-11).
609     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
610     * it will return zero.
611     */
612    public int getEventOutcomeReps() {
613        return this.getReps(11);
614    }
615
616
617    /**
618     * Returns a specific repetition of
619     * PEO-11: "Event Outcome" - creates it if necessary
620     *
621     * @param rep The repetition index (0-indexed)
622     */
623    public ID getEventOutcome(int rep) { 
624                ID retVal = this.getTypedField(11, rep);
625                return retVal;
626    }
627
628    /**
629     * Returns a specific repetition of
630     * PEO-11: "Event Outcome" - creates it if necessary
631     *
632     * @param rep The repetition index (0-indexed)
633     */
634    public ID getPeo11_EventOutcome(int rep) { 
635                ID retVal = this.getTypedField(11, rep);
636                return retVal;
637    }
638
639    /**
640     * Returns a count of the current number of repetitions of Event Outcome (PEO-11).
641     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
642     * it will return zero.
643     */
644    public int getPeo11_EventOutcomeReps() {
645        return this.getReps(11);
646    }
647
648
649    /**
650     * Inserts a repetition of
651     * PEO-11: "Event Outcome" at a specific index
652     *
653     * @param rep The repetition index (0-indexed)
654     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
655     */
656    public ID insertEventOutcome(int rep) throws HL7Exception { 
657        return (ID) super.insertRepetition(11, rep);
658    }
659
660
661    /**
662     * Inserts a repetition of
663     * PEO-11: "Event Outcome" at a specific index
664     *
665     * @param rep The repetition index (0-indexed)
666     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
667     */
668    public ID insertPeo11_EventOutcome(int rep) throws HL7Exception { 
669        return (ID) super.insertRepetition(11, rep);
670    }
671
672
673    /**
674     * Removes a repetition of
675     * PEO-11: "Event Outcome" at a specific index
676     *
677     * @param rep The repetition index (0-indexed)
678     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
679     */
680    public ID removeEventOutcome(int rep) throws HL7Exception { 
681        return (ID) super.removeRepetition(11, rep);
682    }
683
684
685    /**
686     * Removes a repetition of
687     * PEO-11: "Event Outcome" at a specific index
688     *
689     * @param rep The repetition index (0-indexed)
690     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
691     */
692    public ID removePeo11_EventOutcome(int rep) throws HL7Exception { 
693        return (ID) super.removeRepetition(11, rep);
694    }
695
696
697
698
699    /**
700     * Returns
701     * PEO-12: "Patient Outcome" - creates it if necessary
702     */
703    public ID getPatientOutcome() { 
704                ID retVal = this.getTypedField(12, 0);
705                return retVal;
706    }
707    
708    /**
709     * Returns
710     * PEO-12: "Patient Outcome" - creates it if necessary
711     */
712    public ID getPeo12_PatientOutcome() { 
713                ID retVal = this.getTypedField(12, 0);
714                return retVal;
715    }
716
717
718    /**
719     * Returns all repetitions of Event Description From Others (PEO-13).
720     */
721    public FT[] getEventDescriptionFromOthers() {
722        FT[] retVal = this.getTypedField(13, new FT[0]);
723        return retVal;
724    }
725
726
727    /**
728     * Returns all repetitions of Event Description From Others (PEO-13).
729     */
730    public FT[] getPeo13_EventDescriptionFromOthers() {
731        FT[] retVal = this.getTypedField(13, new FT[0]);
732        return retVal;
733    }
734
735
736    /**
737     * Returns a count of the current number of repetitions of Event Description From Others (PEO-13).
738     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
739     * it will return zero.
740     */
741    public int getEventDescriptionFromOthersReps() {
742        return this.getReps(13);
743    }
744
745
746    /**
747     * Returns a specific repetition of
748     * PEO-13: "Event Description From Others" - creates it if necessary
749     *
750     * @param rep The repetition index (0-indexed)
751     */
752    public FT getEventDescriptionFromOthers(int rep) { 
753                FT retVal = this.getTypedField(13, rep);
754                return retVal;
755    }
756
757    /**
758     * Returns a specific repetition of
759     * PEO-13: "Event Description From Others" - creates it if necessary
760     *
761     * @param rep The repetition index (0-indexed)
762     */
763    public FT getPeo13_EventDescriptionFromOthers(int rep) { 
764                FT retVal = this.getTypedField(13, rep);
765                return retVal;
766    }
767
768    /**
769     * Returns a count of the current number of repetitions of Event Description From Others (PEO-13).
770     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
771     * it will return zero.
772     */
773    public int getPeo13_EventDescriptionFromOthersReps() {
774        return this.getReps(13);
775    }
776
777
778    /**
779     * Inserts a repetition of
780     * PEO-13: "Event Description From Others" at a specific index
781     *
782     * @param rep The repetition index (0-indexed)
783     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
784     */
785    public FT insertEventDescriptionFromOthers(int rep) throws HL7Exception { 
786        return (FT) super.insertRepetition(13, rep);
787    }
788
789
790    /**
791     * Inserts a repetition of
792     * PEO-13: "Event Description From Others" at a specific index
793     *
794     * @param rep The repetition index (0-indexed)
795     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
796     */
797    public FT insertPeo13_EventDescriptionFromOthers(int rep) throws HL7Exception { 
798        return (FT) super.insertRepetition(13, rep);
799    }
800
801
802    /**
803     * Removes a repetition of
804     * PEO-13: "Event Description From Others" at a specific index
805     *
806     * @param rep The repetition index (0-indexed)
807     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
808     */
809    public FT removeEventDescriptionFromOthers(int rep) throws HL7Exception { 
810        return (FT) super.removeRepetition(13, rep);
811    }
812
813
814    /**
815     * Removes a repetition of
816     * PEO-13: "Event Description From Others" at a specific index
817     *
818     * @param rep The repetition index (0-indexed)
819     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
820     */
821    public FT removePeo13_EventDescriptionFromOthers(int rep) throws HL7Exception { 
822        return (FT) super.removeRepetition(13, rep);
823    }
824
825
826
827    /**
828     * Returns all repetitions of Event From Original Reporter (PEO-14).
829     */
830    public FT[] getEventFromOriginalReporter() {
831        FT[] retVal = this.getTypedField(14, new FT[0]);
832        return retVal;
833    }
834
835
836    /**
837     * Returns all repetitions of Event From Original Reporter (PEO-14).
838     */
839    public FT[] getPeo14_EventFromOriginalReporter() {
840        FT[] retVal = this.getTypedField(14, new FT[0]);
841        return retVal;
842    }
843
844
845    /**
846     * Returns a count of the current number of repetitions of Event From Original Reporter (PEO-14).
847     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
848     * it will return zero.
849     */
850    public int getEventFromOriginalReporterReps() {
851        return this.getReps(14);
852    }
853
854
855    /**
856     * Returns a specific repetition of
857     * PEO-14: "Event From Original Reporter" - creates it if necessary
858     *
859     * @param rep The repetition index (0-indexed)
860     */
861    public FT getEventFromOriginalReporter(int rep) { 
862                FT retVal = this.getTypedField(14, rep);
863                return retVal;
864    }
865
866    /**
867     * Returns a specific repetition of
868     * PEO-14: "Event From Original Reporter" - creates it if necessary
869     *
870     * @param rep The repetition index (0-indexed)
871     */
872    public FT getPeo14_EventFromOriginalReporter(int rep) { 
873                FT retVal = this.getTypedField(14, rep);
874                return retVal;
875    }
876
877    /**
878     * Returns a count of the current number of repetitions of Event From Original Reporter (PEO-14).
879     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
880     * it will return zero.
881     */
882    public int getPeo14_EventFromOriginalReporterReps() {
883        return this.getReps(14);
884    }
885
886
887    /**
888     * Inserts a repetition of
889     * PEO-14: "Event From Original Reporter" at a specific index
890     *
891     * @param rep The repetition index (0-indexed)
892     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
893     */
894    public FT insertEventFromOriginalReporter(int rep) throws HL7Exception { 
895        return (FT) super.insertRepetition(14, rep);
896    }
897
898
899    /**
900     * Inserts a repetition of
901     * PEO-14: "Event From Original Reporter" at a specific index
902     *
903     * @param rep The repetition index (0-indexed)
904     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
905     */
906    public FT insertPeo14_EventFromOriginalReporter(int rep) throws HL7Exception { 
907        return (FT) super.insertRepetition(14, rep);
908    }
909
910
911    /**
912     * Removes a repetition of
913     * PEO-14: "Event From Original Reporter" at a specific index
914     *
915     * @param rep The repetition index (0-indexed)
916     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
917     */
918    public FT removeEventFromOriginalReporter(int rep) throws HL7Exception { 
919        return (FT) super.removeRepetition(14, rep);
920    }
921
922
923    /**
924     * Removes a repetition of
925     * PEO-14: "Event From Original Reporter" at a specific index
926     *
927     * @param rep The repetition index (0-indexed)
928     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
929     */
930    public FT removePeo14_EventFromOriginalReporter(int rep) throws HL7Exception { 
931        return (FT) super.removeRepetition(14, rep);
932    }
933
934
935
936    /**
937     * Returns all repetitions of Event Description From Patient (PEO-15).
938     */
939    public FT[] getEventDescriptionFromPatient() {
940        FT[] retVal = this.getTypedField(15, new FT[0]);
941        return retVal;
942    }
943
944
945    /**
946     * Returns all repetitions of Event Description From Patient (PEO-15).
947     */
948    public FT[] getPeo15_EventDescriptionFromPatient() {
949        FT[] retVal = this.getTypedField(15, new FT[0]);
950        return retVal;
951    }
952
953
954    /**
955     * Returns a count of the current number of repetitions of Event Description From Patient (PEO-15).
956     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
957     * it will return zero.
958     */
959    public int getEventDescriptionFromPatientReps() {
960        return this.getReps(15);
961    }
962
963
964    /**
965     * Returns a specific repetition of
966     * PEO-15: "Event Description From Patient" - creates it if necessary
967     *
968     * @param rep The repetition index (0-indexed)
969     */
970    public FT getEventDescriptionFromPatient(int rep) { 
971                FT retVal = this.getTypedField(15, rep);
972                return retVal;
973    }
974
975    /**
976     * Returns a specific repetition of
977     * PEO-15: "Event Description From Patient" - creates it if necessary
978     *
979     * @param rep The repetition index (0-indexed)
980     */
981    public FT getPeo15_EventDescriptionFromPatient(int rep) { 
982                FT retVal = this.getTypedField(15, rep);
983                return retVal;
984    }
985
986    /**
987     * Returns a count of the current number of repetitions of Event Description From Patient (PEO-15).
988     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
989     * it will return zero.
990     */
991    public int getPeo15_EventDescriptionFromPatientReps() {
992        return this.getReps(15);
993    }
994
995
996    /**
997     * Inserts a repetition of
998     * PEO-15: "Event Description From Patient" at a specific index
999     *
1000     * @param rep The repetition index (0-indexed)
1001     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1002     */
1003    public FT insertEventDescriptionFromPatient(int rep) throws HL7Exception { 
1004        return (FT) super.insertRepetition(15, rep);
1005    }
1006
1007
1008    /**
1009     * Inserts a repetition of
1010     * PEO-15: "Event Description From Patient" at a specific index
1011     *
1012     * @param rep The repetition index (0-indexed)
1013     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1014     */
1015    public FT insertPeo15_EventDescriptionFromPatient(int rep) throws HL7Exception { 
1016        return (FT) super.insertRepetition(15, rep);
1017    }
1018
1019
1020    /**
1021     * Removes a repetition of
1022     * PEO-15: "Event Description From Patient" at a specific index
1023     *
1024     * @param rep The repetition index (0-indexed)
1025     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1026     */
1027    public FT removeEventDescriptionFromPatient(int rep) throws HL7Exception { 
1028        return (FT) super.removeRepetition(15, rep);
1029    }
1030
1031
1032    /**
1033     * Removes a repetition of
1034     * PEO-15: "Event Description From Patient" at a specific index
1035     *
1036     * @param rep The repetition index (0-indexed)
1037     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1038     */
1039    public FT removePeo15_EventDescriptionFromPatient(int rep) throws HL7Exception { 
1040        return (FT) super.removeRepetition(15, rep);
1041    }
1042
1043
1044
1045    /**
1046     * Returns all repetitions of Event Description From Practitioner (PEO-16).
1047     */
1048    public FT[] getEventDescriptionFromPractitioner() {
1049        FT[] retVal = this.getTypedField(16, new FT[0]);
1050        return retVal;
1051    }
1052
1053
1054    /**
1055     * Returns all repetitions of Event Description From Practitioner (PEO-16).
1056     */
1057    public FT[] getPeo16_EventDescriptionFromPractitioner() {
1058        FT[] retVal = this.getTypedField(16, new FT[0]);
1059        return retVal;
1060    }
1061
1062
1063    /**
1064     * Returns a count of the current number of repetitions of Event Description From Practitioner (PEO-16).
1065     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1066     * it will return zero.
1067     */
1068    public int getEventDescriptionFromPractitionerReps() {
1069        return this.getReps(16);
1070    }
1071
1072
1073    /**
1074     * Returns a specific repetition of
1075     * PEO-16: "Event Description From Practitioner" - creates it if necessary
1076     *
1077     * @param rep The repetition index (0-indexed)
1078     */
1079    public FT getEventDescriptionFromPractitioner(int rep) { 
1080                FT retVal = this.getTypedField(16, rep);
1081                return retVal;
1082    }
1083
1084    /**
1085     * Returns a specific repetition of
1086     * PEO-16: "Event Description From Practitioner" - creates it if necessary
1087     *
1088     * @param rep The repetition index (0-indexed)
1089     */
1090    public FT getPeo16_EventDescriptionFromPractitioner(int rep) { 
1091                FT retVal = this.getTypedField(16, rep);
1092                return retVal;
1093    }
1094
1095    /**
1096     * Returns a count of the current number of repetitions of Event Description From Practitioner (PEO-16).
1097     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1098     * it will return zero.
1099     */
1100    public int getPeo16_EventDescriptionFromPractitionerReps() {
1101        return this.getReps(16);
1102    }
1103
1104
1105    /**
1106     * Inserts a repetition of
1107     * PEO-16: "Event Description From Practitioner" at a specific index
1108     *
1109     * @param rep The repetition index (0-indexed)
1110     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1111     */
1112    public FT insertEventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1113        return (FT) super.insertRepetition(16, rep);
1114    }
1115
1116
1117    /**
1118     * Inserts a repetition of
1119     * PEO-16: "Event Description From Practitioner" at a specific index
1120     *
1121     * @param rep The repetition index (0-indexed)
1122     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1123     */
1124    public FT insertPeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1125        return (FT) super.insertRepetition(16, rep);
1126    }
1127
1128
1129    /**
1130     * Removes a repetition of
1131     * PEO-16: "Event Description From Practitioner" at a specific index
1132     *
1133     * @param rep The repetition index (0-indexed)
1134     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1135     */
1136    public FT removeEventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1137        return (FT) super.removeRepetition(16, rep);
1138    }
1139
1140
1141    /**
1142     * Removes a repetition of
1143     * PEO-16: "Event Description From Practitioner" at a specific index
1144     *
1145     * @param rep The repetition index (0-indexed)
1146     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1147     */
1148    public FT removePeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1149        return (FT) super.removeRepetition(16, rep);
1150    }
1151
1152
1153
1154    /**
1155     * Returns all repetitions of Event Description From Autopsy (PEO-17).
1156     */
1157    public FT[] getEventDescriptionFromAutopsy() {
1158        FT[] retVal = this.getTypedField(17, new FT[0]);
1159        return retVal;
1160    }
1161
1162
1163    /**
1164     * Returns all repetitions of Event Description From Autopsy (PEO-17).
1165     */
1166    public FT[] getPeo17_EventDescriptionFromAutopsy() {
1167        FT[] retVal = this.getTypedField(17, new FT[0]);
1168        return retVal;
1169    }
1170
1171
1172    /**
1173     * Returns a count of the current number of repetitions of Event Description From Autopsy (PEO-17).
1174     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1175     * it will return zero.
1176     */
1177    public int getEventDescriptionFromAutopsyReps() {
1178        return this.getReps(17);
1179    }
1180
1181
1182    /**
1183     * Returns a specific repetition of
1184     * PEO-17: "Event Description From Autopsy" - creates it if necessary
1185     *
1186     * @param rep The repetition index (0-indexed)
1187     */
1188    public FT getEventDescriptionFromAutopsy(int rep) { 
1189                FT retVal = this.getTypedField(17, rep);
1190                return retVal;
1191    }
1192
1193    /**
1194     * Returns a specific repetition of
1195     * PEO-17: "Event Description From Autopsy" - creates it if necessary
1196     *
1197     * @param rep The repetition index (0-indexed)
1198     */
1199    public FT getPeo17_EventDescriptionFromAutopsy(int rep) { 
1200                FT retVal = this.getTypedField(17, rep);
1201                return retVal;
1202    }
1203
1204    /**
1205     * Returns a count of the current number of repetitions of Event Description From Autopsy (PEO-17).
1206     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1207     * it will return zero.
1208     */
1209    public int getPeo17_EventDescriptionFromAutopsyReps() {
1210        return this.getReps(17);
1211    }
1212
1213
1214    /**
1215     * Inserts a repetition of
1216     * PEO-17: "Event Description From Autopsy" at a specific index
1217     *
1218     * @param rep The repetition index (0-indexed)
1219     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1220     */
1221    public FT insertEventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1222        return (FT) super.insertRepetition(17, rep);
1223    }
1224
1225
1226    /**
1227     * Inserts a repetition of
1228     * PEO-17: "Event Description From Autopsy" at a specific index
1229     *
1230     * @param rep The repetition index (0-indexed)
1231     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1232     */
1233    public FT insertPeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1234        return (FT) super.insertRepetition(17, rep);
1235    }
1236
1237
1238    /**
1239     * Removes a repetition of
1240     * PEO-17: "Event Description From Autopsy" at a specific index
1241     *
1242     * @param rep The repetition index (0-indexed)
1243     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1244     */
1245    public FT removeEventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1246        return (FT) super.removeRepetition(17, rep);
1247    }
1248
1249
1250    /**
1251     * Removes a repetition of
1252     * PEO-17: "Event Description From Autopsy" at a specific index
1253     *
1254     * @param rep The repetition index (0-indexed)
1255     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1256     */
1257    public FT removePeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1258        return (FT) super.removeRepetition(17, rep);
1259    }
1260
1261
1262
1263    /**
1264     * Returns all repetitions of Cause Of Death (PEO-18).
1265     */
1266    public CE[] getCauseOfDeath() {
1267        CE[] retVal = this.getTypedField(18, new CE[0]);
1268        return retVal;
1269    }
1270
1271
1272    /**
1273     * Returns all repetitions of Cause Of Death (PEO-18).
1274     */
1275    public CE[] getPeo18_CauseOfDeath() {
1276        CE[] retVal = this.getTypedField(18, new CE[0]);
1277        return retVal;
1278    }
1279
1280
1281    /**
1282     * Returns a count of the current number of repetitions of Cause Of Death (PEO-18).
1283     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1284     * it will return zero.
1285     */
1286    public int getCauseOfDeathReps() {
1287        return this.getReps(18);
1288    }
1289
1290
1291    /**
1292     * Returns a specific repetition of
1293     * PEO-18: "Cause Of Death" - creates it if necessary
1294     *
1295     * @param rep The repetition index (0-indexed)
1296     */
1297    public CE getCauseOfDeath(int rep) { 
1298                CE retVal = this.getTypedField(18, rep);
1299                return retVal;
1300    }
1301
1302    /**
1303     * Returns a specific repetition of
1304     * PEO-18: "Cause Of Death" - creates it if necessary
1305     *
1306     * @param rep The repetition index (0-indexed)
1307     */
1308    public CE getPeo18_CauseOfDeath(int rep) { 
1309                CE retVal = this.getTypedField(18, rep);
1310                return retVal;
1311    }
1312
1313    /**
1314     * Returns a count of the current number of repetitions of Cause Of Death (PEO-18).
1315     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1316     * it will return zero.
1317     */
1318    public int getPeo18_CauseOfDeathReps() {
1319        return this.getReps(18);
1320    }
1321
1322
1323    /**
1324     * Inserts a repetition of
1325     * PEO-18: "Cause Of Death" at a specific index
1326     *
1327     * @param rep The repetition index (0-indexed)
1328     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1329     */
1330    public CE insertCauseOfDeath(int rep) throws HL7Exception { 
1331        return (CE) super.insertRepetition(18, rep);
1332    }
1333
1334
1335    /**
1336     * Inserts a repetition of
1337     * PEO-18: "Cause Of Death" at a specific index
1338     *
1339     * @param rep The repetition index (0-indexed)
1340     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1341     */
1342    public CE insertPeo18_CauseOfDeath(int rep) throws HL7Exception { 
1343        return (CE) super.insertRepetition(18, rep);
1344    }
1345
1346
1347    /**
1348     * Removes a repetition of
1349     * PEO-18: "Cause Of Death" at a specific index
1350     *
1351     * @param rep The repetition index (0-indexed)
1352     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1353     */
1354    public CE removeCauseOfDeath(int rep) throws HL7Exception { 
1355        return (CE) super.removeRepetition(18, rep);
1356    }
1357
1358
1359    /**
1360     * Removes a repetition of
1361     * PEO-18: "Cause Of Death" at a specific index
1362     *
1363     * @param rep The repetition index (0-indexed)
1364     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1365     */
1366    public CE removePeo18_CauseOfDeath(int rep) throws HL7Exception { 
1367        return (CE) super.removeRepetition(18, rep);
1368    }
1369
1370
1371
1372
1373    /**
1374     * Returns
1375     * PEO-19: "Primary Observer Name" - creates it if necessary
1376     */
1377    public XPN getPrimaryObserverName() { 
1378                XPN retVal = this.getTypedField(19, 0);
1379                return retVal;
1380    }
1381    
1382    /**
1383     * Returns
1384     * PEO-19: "Primary Observer Name" - creates it if necessary
1385     */
1386    public XPN getPeo19_PrimaryObserverName() { 
1387                XPN retVal = this.getTypedField(19, 0);
1388                return retVal;
1389    }
1390
1391
1392    /**
1393     * Returns all repetitions of Primary Observer Address (PEO-20).
1394     */
1395    public XAD[] getPrimaryObserverAddress() {
1396        XAD[] retVal = this.getTypedField(20, new XAD[0]);
1397        return retVal;
1398    }
1399
1400
1401    /**
1402     * Returns all repetitions of Primary Observer Address (PEO-20).
1403     */
1404    public XAD[] getPeo20_PrimaryObserverAddress() {
1405        XAD[] retVal = this.getTypedField(20, new XAD[0]);
1406        return retVal;
1407    }
1408
1409
1410    /**
1411     * Returns a count of the current number of repetitions of Primary Observer Address (PEO-20).
1412     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1413     * it will return zero.
1414     */
1415    public int getPrimaryObserverAddressReps() {
1416        return this.getReps(20);
1417    }
1418
1419
1420    /**
1421     * Returns a specific repetition of
1422     * PEO-20: "Primary Observer Address" - creates it if necessary
1423     *
1424     * @param rep The repetition index (0-indexed)
1425     */
1426    public XAD getPrimaryObserverAddress(int rep) { 
1427                XAD retVal = this.getTypedField(20, rep);
1428                return retVal;
1429    }
1430
1431    /**
1432     * Returns a specific repetition of
1433     * PEO-20: "Primary Observer Address" - creates it if necessary
1434     *
1435     * @param rep The repetition index (0-indexed)
1436     */
1437    public XAD getPeo20_PrimaryObserverAddress(int rep) { 
1438                XAD retVal = this.getTypedField(20, rep);
1439                return retVal;
1440    }
1441
1442    /**
1443     * Returns a count of the current number of repetitions of Primary Observer Address (PEO-20).
1444     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1445     * it will return zero.
1446     */
1447    public int getPeo20_PrimaryObserverAddressReps() {
1448        return this.getReps(20);
1449    }
1450
1451
1452    /**
1453     * Inserts a repetition of
1454     * PEO-20: "Primary Observer Address" at a specific index
1455     *
1456     * @param rep The repetition index (0-indexed)
1457     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1458     */
1459    public XAD insertPrimaryObserverAddress(int rep) throws HL7Exception { 
1460        return (XAD) super.insertRepetition(20, rep);
1461    }
1462
1463
1464    /**
1465     * Inserts a repetition of
1466     * PEO-20: "Primary Observer Address" at a specific index
1467     *
1468     * @param rep The repetition index (0-indexed)
1469     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1470     */
1471    public XAD insertPeo20_PrimaryObserverAddress(int rep) throws HL7Exception { 
1472        return (XAD) super.insertRepetition(20, rep);
1473    }
1474
1475
1476    /**
1477     * Removes a repetition of
1478     * PEO-20: "Primary Observer Address" at a specific index
1479     *
1480     * @param rep The repetition index (0-indexed)
1481     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1482     */
1483    public XAD removePrimaryObserverAddress(int rep) throws HL7Exception { 
1484        return (XAD) super.removeRepetition(20, rep);
1485    }
1486
1487
1488    /**
1489     * Removes a repetition of
1490     * PEO-20: "Primary Observer Address" at a specific index
1491     *
1492     * @param rep The repetition index (0-indexed)
1493     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1494     */
1495    public XAD removePeo20_PrimaryObserverAddress(int rep) throws HL7Exception { 
1496        return (XAD) super.removeRepetition(20, rep);
1497    }
1498
1499
1500
1501    /**
1502     * Returns all repetitions of Primary Observer Telephone (PEO-21).
1503     */
1504    public XTN[] getPrimaryObserverTelephone() {
1505        XTN[] retVal = this.getTypedField(21, new XTN[0]);
1506        return retVal;
1507    }
1508
1509
1510    /**
1511     * Returns all repetitions of Primary Observer Telephone (PEO-21).
1512     */
1513    public XTN[] getPeo21_PrimaryObserverTelephone() {
1514        XTN[] retVal = this.getTypedField(21, new XTN[0]);
1515        return retVal;
1516    }
1517
1518
1519    /**
1520     * Returns a count of the current number of repetitions of Primary Observer Telephone (PEO-21).
1521     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1522     * it will return zero.
1523     */
1524    public int getPrimaryObserverTelephoneReps() {
1525        return this.getReps(21);
1526    }
1527
1528
1529    /**
1530     * Returns a specific repetition of
1531     * PEO-21: "Primary Observer Telephone" - creates it if necessary
1532     *
1533     * @param rep The repetition index (0-indexed)
1534     */
1535    public XTN getPrimaryObserverTelephone(int rep) { 
1536                XTN retVal = this.getTypedField(21, rep);
1537                return retVal;
1538    }
1539
1540    /**
1541     * Returns a specific repetition of
1542     * PEO-21: "Primary Observer Telephone" - creates it if necessary
1543     *
1544     * @param rep The repetition index (0-indexed)
1545     */
1546    public XTN getPeo21_PrimaryObserverTelephone(int rep) { 
1547                XTN retVal = this.getTypedField(21, rep);
1548                return retVal;
1549    }
1550
1551    /**
1552     * Returns a count of the current number of repetitions of Primary Observer Telephone (PEO-21).
1553     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1554     * it will return zero.
1555     */
1556    public int getPeo21_PrimaryObserverTelephoneReps() {
1557        return this.getReps(21);
1558    }
1559
1560
1561    /**
1562     * Inserts a repetition of
1563     * PEO-21: "Primary Observer Telephone" at a specific index
1564     *
1565     * @param rep The repetition index (0-indexed)
1566     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1567     */
1568    public XTN insertPrimaryObserverTelephone(int rep) throws HL7Exception { 
1569        return (XTN) super.insertRepetition(21, rep);
1570    }
1571
1572
1573    /**
1574     * Inserts a repetition of
1575     * PEO-21: "Primary Observer Telephone" at a specific index
1576     *
1577     * @param rep The repetition index (0-indexed)
1578     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1579     */
1580    public XTN insertPeo21_PrimaryObserverTelephone(int rep) throws HL7Exception { 
1581        return (XTN) super.insertRepetition(21, rep);
1582    }
1583
1584
1585    /**
1586     * Removes a repetition of
1587     * PEO-21: "Primary Observer Telephone" at a specific index
1588     *
1589     * @param rep The repetition index (0-indexed)
1590     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1591     */
1592    public XTN removePrimaryObserverTelephone(int rep) throws HL7Exception { 
1593        return (XTN) super.removeRepetition(21, rep);
1594    }
1595
1596
1597    /**
1598     * Removes a repetition of
1599     * PEO-21: "Primary Observer Telephone" at a specific index
1600     *
1601     * @param rep The repetition index (0-indexed)
1602     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1603     */
1604    public XTN removePeo21_PrimaryObserverTelephone(int rep) throws HL7Exception { 
1605        return (XTN) super.removeRepetition(21, rep);
1606    }
1607
1608
1609
1610
1611    /**
1612     * Returns
1613     * PEO-22: "Primary Observer’s Qualification" - creates it if necessary
1614     */
1615    public ID getPrimaryObserverSQualification() { 
1616                ID retVal = this.getTypedField(22, 0);
1617                return retVal;
1618    }
1619    
1620    /**
1621     * Returns
1622     * PEO-22: "Primary Observer’s Qualification" - creates it if necessary
1623     */
1624    public ID getPeo22_PrimaryObserverSQualification() { 
1625                ID retVal = this.getTypedField(22, 0);
1626                return retVal;
1627    }
1628
1629
1630
1631    /**
1632     * Returns
1633     * PEO-23: "Confirmation Provided By" - creates it if necessary
1634     */
1635    public ID getConfirmationProvidedBy() { 
1636                ID retVal = this.getTypedField(23, 0);
1637                return retVal;
1638    }
1639    
1640    /**
1641     * Returns
1642     * PEO-23: "Confirmation Provided By" - creates it if necessary
1643     */
1644    public ID getPeo23_ConfirmationProvidedBy() { 
1645                ID retVal = this.getTypedField(23, 0);
1646                return retVal;
1647    }
1648
1649
1650
1651    /**
1652     * Returns
1653     * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
1654     */
1655    public TS getPrimaryObserverAwareDateTime() { 
1656                TS retVal = this.getTypedField(24, 0);
1657                return retVal;
1658    }
1659    
1660    /**
1661     * Returns
1662     * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
1663     */
1664    public TS getPeo24_PrimaryObserverAwareDateTime() { 
1665                TS retVal = this.getTypedField(24, 0);
1666                return retVal;
1667    }
1668
1669
1670
1671    /**
1672     * Returns
1673     * PEO-25: "Primary Observer’s Identity May Be Divulged" - creates it if necessary
1674     */
1675    public ID getPrimaryObserverSIdentityMayBeDivulged() { 
1676                ID retVal = this.getTypedField(25, 0);
1677                return retVal;
1678    }
1679    
1680    /**
1681     * Returns
1682     * PEO-25: "Primary Observer’s Identity May Be Divulged" - creates it if necessary
1683     */
1684    public ID getPeo25_PrimaryObserverSIdentityMayBeDivulged() { 
1685                ID retVal = this.getTypedField(25, 0);
1686                return retVal;
1687    }
1688
1689
1690
1691
1692
1693    /** {@inheritDoc} */   
1694    protected Type createNewTypeWithoutReflection(int field) {
1695       switch (field) {
1696          case 0: return new CE(getMessage());
1697          case 1: return new CE(getMessage());
1698          case 2: return new TS(getMessage());
1699          case 3: return new TS(getMessage());
1700          case 4: return new TS(getMessage());
1701          case 5: return new TS(getMessage());
1702          case 6: return new XAD(getMessage());
1703          case 7: return new ID(getMessage(), new Integer( 237 ));
1704          case 8: return new ID(getMessage(), new Integer( 238 ));
1705          case 9: return new ID(getMessage(), new Integer( 239 ));
1706          case 10: return new ID(getMessage(), new Integer( 240 ));
1707          case 11: return new ID(getMessage(), new Integer( 241 ));
1708          case 12: return new FT(getMessage());
1709          case 13: return new FT(getMessage());
1710          case 14: return new FT(getMessage());
1711          case 15: return new FT(getMessage());
1712          case 16: return new FT(getMessage());
1713          case 17: return new CE(getMessage());
1714          case 18: return new XPN(getMessage());
1715          case 19: return new XAD(getMessage());
1716          case 20: return new XTN(getMessage());
1717          case 21: return new ID(getMessage(), new Integer( 242 ));
1718          case 22: return new ID(getMessage(), new Integer( 242 ));
1719          case 23: return new TS(getMessage());
1720          case 24: return new ID(getMessage(), new Integer( 243 ));
1721          default: return null;
1722       }
1723   }
1724
1725
1726}
1727