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