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.v25.segment;
035
036// import ca.uhn.hl7v2.model.v25.group.*;
037import ca.uhn.hl7v2.model.v25.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 repeating</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 repeating</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, 250, new Object[]{ getMessage() }, "Event Identifiers Used");
092                                  this.add(CE.class, false, 0, 250, 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, 0, 250, 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, 250, new Object[]{ getMessage() }, "Cause Of Death");
109                                  this.add(XPN.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Observer Name");
110                                  this.add(XAD.class, false, 0, 250, new Object[]{ getMessage() }, "Primary Observer Address");
111                                  this.add(XTN.class, false, 0, 250, 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     * Returns all repetitions of Event Location Occurred Address (PEO-7).
422     */
423    public XAD[] getEventLocationOccurredAddress() {
424        XAD[] retVal = this.getTypedField(7, new XAD[0]);
425        return retVal;
426    }
427
428
429    /**
430     * Returns all repetitions of Event Location Occurred Address (PEO-7).
431     */
432    public XAD[] getPeo7_EventLocationOccurredAddress() {
433        XAD[] retVal = this.getTypedField(7, new XAD[0]);
434        return retVal;
435    }
436
437
438    /**
439     * Returns a count of the current number of repetitions of Event Location Occurred Address (PEO-7).
440     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
441     * it will return zero.
442     */
443    public int getEventLocationOccurredAddressReps() {
444        return this.getReps(7);
445    }
446
447
448    /**
449     * Returns a specific repetition of
450     * PEO-7: "Event Location Occurred Address" - creates it if necessary
451     *
452     * @param rep The repetition index (0-indexed)
453     */
454    public XAD getEventLocationOccurredAddress(int rep) { 
455                XAD retVal = this.getTypedField(7, rep);
456                return retVal;
457    }
458
459    /**
460     * Returns a specific repetition of
461     * PEO-7: "Event Location Occurred Address" - creates it if necessary
462     *
463     * @param rep The repetition index (0-indexed)
464     */
465    public XAD getPeo7_EventLocationOccurredAddress(int rep) { 
466                XAD retVal = this.getTypedField(7, rep);
467                return retVal;
468    }
469
470    /**
471     * Returns a count of the current number of repetitions of Event Location Occurred Address (PEO-7).
472     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
473     * it will return zero.
474     */
475    public int getPeo7_EventLocationOccurredAddressReps() {
476        return this.getReps(7);
477    }
478
479
480    /**
481     * Inserts a repetition of
482     * PEO-7: "Event Location Occurred Address" at a specific index
483     *
484     * @param rep The repetition index (0-indexed)
485     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
486     */
487    public XAD insertEventLocationOccurredAddress(int rep) throws HL7Exception { 
488        return (XAD) super.insertRepetition(7, rep);
489    }
490
491
492    /**
493     * Inserts a repetition of
494     * PEO-7: "Event Location Occurred Address" at a specific index
495     *
496     * @param rep The repetition index (0-indexed)
497     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
498     */
499    public XAD insertPeo7_EventLocationOccurredAddress(int rep) throws HL7Exception { 
500        return (XAD) super.insertRepetition(7, rep);
501    }
502
503
504    /**
505     * Removes a repetition of
506     * PEO-7: "Event Location Occurred Address" at a specific index
507     *
508     * @param rep The repetition index (0-indexed)
509     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
510     */
511    public XAD removeEventLocationOccurredAddress(int rep) throws HL7Exception { 
512        return (XAD) super.removeRepetition(7, rep);
513    }
514
515
516    /**
517     * Removes a repetition of
518     * PEO-7: "Event Location Occurred Address" at a specific index
519     *
520     * @param rep The repetition index (0-indexed)
521     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
522     */
523    public XAD removePeo7_EventLocationOccurredAddress(int rep) throws HL7Exception { 
524        return (XAD) super.removeRepetition(7, rep);
525    }
526
527
528
529    /**
530     * Returns all repetitions of Event Qualification (PEO-8).
531     */
532    public ID[] getEventQualification() {
533        ID[] retVal = this.getTypedField(8, new ID[0]);
534        return retVal;
535    }
536
537
538    /**
539     * Returns all repetitions of Event Qualification (PEO-8).
540     */
541    public ID[] getPeo8_EventQualification() {
542        ID[] retVal = this.getTypedField(8, new ID[0]);
543        return retVal;
544    }
545
546
547    /**
548     * Returns a count of the current number of repetitions of Event Qualification (PEO-8).
549     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
550     * it will return zero.
551     */
552    public int getEventQualificationReps() {
553        return this.getReps(8);
554    }
555
556
557    /**
558     * Returns a specific repetition of
559     * PEO-8: "Event Qualification" - creates it if necessary
560     *
561     * @param rep The repetition index (0-indexed)
562     */
563    public ID getEventQualification(int rep) { 
564                ID retVal = this.getTypedField(8, rep);
565                return retVal;
566    }
567
568    /**
569     * Returns a specific repetition of
570     * PEO-8: "Event Qualification" - creates it if necessary
571     *
572     * @param rep The repetition index (0-indexed)
573     */
574    public ID getPeo8_EventQualification(int rep) { 
575                ID retVal = this.getTypedField(8, rep);
576                return retVal;
577    }
578
579    /**
580     * Returns a count of the current number of repetitions of Event Qualification (PEO-8).
581     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
582     * it will return zero.
583     */
584    public int getPeo8_EventQualificationReps() {
585        return this.getReps(8);
586    }
587
588
589    /**
590     * Inserts a repetition of
591     * PEO-8: "Event Qualification" at a specific index
592     *
593     * @param rep The repetition index (0-indexed)
594     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
595     */
596    public ID insertEventQualification(int rep) throws HL7Exception { 
597        return (ID) super.insertRepetition(8, rep);
598    }
599
600
601    /**
602     * Inserts a repetition of
603     * PEO-8: "Event Qualification" at a specific index
604     *
605     * @param rep The repetition index (0-indexed)
606     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
607     */
608    public ID insertPeo8_EventQualification(int rep) throws HL7Exception { 
609        return (ID) super.insertRepetition(8, rep);
610    }
611
612
613    /**
614     * Removes a repetition of
615     * PEO-8: "Event Qualification" at a specific index
616     *
617     * @param rep The repetition index (0-indexed)
618     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
619     */
620    public ID removeEventQualification(int rep) throws HL7Exception { 
621        return (ID) super.removeRepetition(8, rep);
622    }
623
624
625    /**
626     * Removes a repetition of
627     * PEO-8: "Event Qualification" at a specific index
628     *
629     * @param rep The repetition index (0-indexed)
630     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
631     */
632    public ID removePeo8_EventQualification(int rep) throws HL7Exception { 
633        return (ID) super.removeRepetition(8, rep);
634    }
635
636
637
638
639    /**
640     * Returns
641     * PEO-9: "Event Serious" - creates it if necessary
642     */
643    public ID getEventSerious() { 
644                ID retVal = this.getTypedField(9, 0);
645                return retVal;
646    }
647    
648    /**
649     * Returns
650     * PEO-9: "Event Serious" - creates it if necessary
651     */
652    public ID getPeo9_EventSerious() { 
653                ID retVal = this.getTypedField(9, 0);
654                return retVal;
655    }
656
657
658
659    /**
660     * Returns
661     * PEO-10: "Event Expected" - creates it if necessary
662     */
663    public ID getEventExpected() { 
664                ID retVal = this.getTypedField(10, 0);
665                return retVal;
666    }
667    
668    /**
669     * Returns
670     * PEO-10: "Event Expected" - creates it if necessary
671     */
672    public ID getPeo10_EventExpected() { 
673                ID retVal = this.getTypedField(10, 0);
674                return retVal;
675    }
676
677
678    /**
679     * Returns all repetitions of Event Outcome (PEO-11).
680     */
681    public ID[] getEventOutcome() {
682        ID[] retVal = this.getTypedField(11, new ID[0]);
683        return retVal;
684    }
685
686
687    /**
688     * Returns all repetitions of Event Outcome (PEO-11).
689     */
690    public ID[] getPeo11_EventOutcome() {
691        ID[] retVal = this.getTypedField(11, new ID[0]);
692        return retVal;
693    }
694
695
696    /**
697     * Returns a count of the current number of repetitions of Event Outcome (PEO-11).
698     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
699     * it will return zero.
700     */
701    public int getEventOutcomeReps() {
702        return this.getReps(11);
703    }
704
705
706    /**
707     * Returns a specific repetition of
708     * PEO-11: "Event Outcome" - creates it if necessary
709     *
710     * @param rep The repetition index (0-indexed)
711     */
712    public ID getEventOutcome(int rep) { 
713                ID retVal = this.getTypedField(11, rep);
714                return retVal;
715    }
716
717    /**
718     * Returns a specific repetition of
719     * PEO-11: "Event Outcome" - creates it if necessary
720     *
721     * @param rep The repetition index (0-indexed)
722     */
723    public ID getPeo11_EventOutcome(int rep) { 
724                ID retVal = this.getTypedField(11, rep);
725                return retVal;
726    }
727
728    /**
729     * Returns a count of the current number of repetitions of Event Outcome (PEO-11).
730     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
731     * it will return zero.
732     */
733    public int getPeo11_EventOutcomeReps() {
734        return this.getReps(11);
735    }
736
737
738    /**
739     * Inserts a repetition of
740     * PEO-11: "Event Outcome" at a specific index
741     *
742     * @param rep The repetition index (0-indexed)
743     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
744     */
745    public ID insertEventOutcome(int rep) throws HL7Exception { 
746        return (ID) super.insertRepetition(11, rep);
747    }
748
749
750    /**
751     * Inserts a repetition of
752     * PEO-11: "Event Outcome" at a specific index
753     *
754     * @param rep The repetition index (0-indexed)
755     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
756     */
757    public ID insertPeo11_EventOutcome(int rep) throws HL7Exception { 
758        return (ID) super.insertRepetition(11, rep);
759    }
760
761
762    /**
763     * Removes a repetition of
764     * PEO-11: "Event Outcome" at a specific index
765     *
766     * @param rep The repetition index (0-indexed)
767     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
768     */
769    public ID removeEventOutcome(int rep) throws HL7Exception { 
770        return (ID) super.removeRepetition(11, rep);
771    }
772
773
774    /**
775     * Removes a repetition of
776     * PEO-11: "Event Outcome" at a specific index
777     *
778     * @param rep The repetition index (0-indexed)
779     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
780     */
781    public ID removePeo11_EventOutcome(int rep) throws HL7Exception { 
782        return (ID) super.removeRepetition(11, rep);
783    }
784
785
786
787
788    /**
789     * Returns
790     * PEO-12: "Patient Outcome" - creates it if necessary
791     */
792    public ID getPatientOutcome() { 
793                ID retVal = this.getTypedField(12, 0);
794                return retVal;
795    }
796    
797    /**
798     * Returns
799     * PEO-12: "Patient Outcome" - creates it if necessary
800     */
801    public ID getPeo12_PatientOutcome() { 
802                ID retVal = this.getTypedField(12, 0);
803                return retVal;
804    }
805
806
807    /**
808     * Returns all repetitions of Event Description From Others (PEO-13).
809     */
810    public FT[] getEventDescriptionFromOthers() {
811        FT[] retVal = this.getTypedField(13, new FT[0]);
812        return retVal;
813    }
814
815
816    /**
817     * Returns all repetitions of Event Description From Others (PEO-13).
818     */
819    public FT[] getPeo13_EventDescriptionFromOthers() {
820        FT[] retVal = this.getTypedField(13, new FT[0]);
821        return retVal;
822    }
823
824
825    /**
826     * Returns a count of the current number of repetitions of Event Description From Others (PEO-13).
827     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
828     * it will return zero.
829     */
830    public int getEventDescriptionFromOthersReps() {
831        return this.getReps(13);
832    }
833
834
835    /**
836     * Returns a specific repetition of
837     * PEO-13: "Event Description From Others" - creates it if necessary
838     *
839     * @param rep The repetition index (0-indexed)
840     */
841    public FT getEventDescriptionFromOthers(int rep) { 
842                FT retVal = this.getTypedField(13, rep);
843                return retVal;
844    }
845
846    /**
847     * Returns a specific repetition of
848     * PEO-13: "Event Description From Others" - creates it if necessary
849     *
850     * @param rep The repetition index (0-indexed)
851     */
852    public FT getPeo13_EventDescriptionFromOthers(int rep) { 
853                FT retVal = this.getTypedField(13, rep);
854                return retVal;
855    }
856
857    /**
858     * Returns a count of the current number of repetitions of Event Description From Others (PEO-13).
859     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
860     * it will return zero.
861     */
862    public int getPeo13_EventDescriptionFromOthersReps() {
863        return this.getReps(13);
864    }
865
866
867    /**
868     * Inserts a repetition of
869     * PEO-13: "Event Description From Others" at a specific index
870     *
871     * @param rep The repetition index (0-indexed)
872     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
873     */
874    public FT insertEventDescriptionFromOthers(int rep) throws HL7Exception { 
875        return (FT) super.insertRepetition(13, rep);
876    }
877
878
879    /**
880     * Inserts a repetition of
881     * PEO-13: "Event Description From Others" at a specific index
882     *
883     * @param rep The repetition index (0-indexed)
884     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
885     */
886    public FT insertPeo13_EventDescriptionFromOthers(int rep) throws HL7Exception { 
887        return (FT) super.insertRepetition(13, rep);
888    }
889
890
891    /**
892     * Removes a repetition of
893     * PEO-13: "Event Description From Others" at a specific index
894     *
895     * @param rep The repetition index (0-indexed)
896     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
897     */
898    public FT removeEventDescriptionFromOthers(int rep) throws HL7Exception { 
899        return (FT) super.removeRepetition(13, rep);
900    }
901
902
903    /**
904     * Removes a repetition of
905     * PEO-13: "Event Description From Others" at a specific index
906     *
907     * @param rep The repetition index (0-indexed)
908     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
909     */
910    public FT removePeo13_EventDescriptionFromOthers(int rep) throws HL7Exception { 
911        return (FT) super.removeRepetition(13, rep);
912    }
913
914
915
916    /**
917     * Returns all repetitions of Event From Original Reporter (PEO-14).
918     */
919    public FT[] getEventFromOriginalReporter() {
920        FT[] retVal = this.getTypedField(14, new FT[0]);
921        return retVal;
922    }
923
924
925    /**
926     * Returns all repetitions of Event From Original Reporter (PEO-14).
927     */
928    public FT[] getPeo14_EventFromOriginalReporter() {
929        FT[] retVal = this.getTypedField(14, new FT[0]);
930        return retVal;
931    }
932
933
934    /**
935     * Returns a count of the current number of repetitions of Event From Original Reporter (PEO-14).
936     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
937     * it will return zero.
938     */
939    public int getEventFromOriginalReporterReps() {
940        return this.getReps(14);
941    }
942
943
944    /**
945     * Returns a specific repetition of
946     * PEO-14: "Event From Original Reporter" - creates it if necessary
947     *
948     * @param rep The repetition index (0-indexed)
949     */
950    public FT getEventFromOriginalReporter(int rep) { 
951                FT retVal = this.getTypedField(14, rep);
952                return retVal;
953    }
954
955    /**
956     * Returns a specific repetition of
957     * PEO-14: "Event From Original Reporter" - creates it if necessary
958     *
959     * @param rep The repetition index (0-indexed)
960     */
961    public FT getPeo14_EventFromOriginalReporter(int rep) { 
962                FT retVal = this.getTypedField(14, rep);
963                return retVal;
964    }
965
966    /**
967     * Returns a count of the current number of repetitions of Event From Original Reporter (PEO-14).
968     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
969     * it will return zero.
970     */
971    public int getPeo14_EventFromOriginalReporterReps() {
972        return this.getReps(14);
973    }
974
975
976    /**
977     * Inserts a repetition of
978     * PEO-14: "Event From Original Reporter" at a specific index
979     *
980     * @param rep The repetition index (0-indexed)
981     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
982     */
983    public FT insertEventFromOriginalReporter(int rep) throws HL7Exception { 
984        return (FT) super.insertRepetition(14, rep);
985    }
986
987
988    /**
989     * Inserts a repetition of
990     * PEO-14: "Event From Original Reporter" at a specific index
991     *
992     * @param rep The repetition index (0-indexed)
993     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
994     */
995    public FT insertPeo14_EventFromOriginalReporter(int rep) throws HL7Exception { 
996        return (FT) super.insertRepetition(14, rep);
997    }
998
999
1000    /**
1001     * Removes a repetition of
1002     * PEO-14: "Event From Original Reporter" at a specific index
1003     *
1004     * @param rep The repetition index (0-indexed)
1005     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1006     */
1007    public FT removeEventFromOriginalReporter(int rep) throws HL7Exception { 
1008        return (FT) super.removeRepetition(14, rep);
1009    }
1010
1011
1012    /**
1013     * Removes a repetition of
1014     * PEO-14: "Event From Original Reporter" at a specific index
1015     *
1016     * @param rep The repetition index (0-indexed)
1017     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1018     */
1019    public FT removePeo14_EventFromOriginalReporter(int rep) throws HL7Exception { 
1020        return (FT) super.removeRepetition(14, rep);
1021    }
1022
1023
1024
1025    /**
1026     * Returns all repetitions of Event Description From Patient (PEO-15).
1027     */
1028    public FT[] getEventDescriptionFromPatient() {
1029        FT[] retVal = this.getTypedField(15, new FT[0]);
1030        return retVal;
1031    }
1032
1033
1034    /**
1035     * Returns all repetitions of Event Description From Patient (PEO-15).
1036     */
1037    public FT[] getPeo15_EventDescriptionFromPatient() {
1038        FT[] retVal = this.getTypedField(15, new FT[0]);
1039        return retVal;
1040    }
1041
1042
1043    /**
1044     * Returns a count of the current number of repetitions of Event Description From Patient (PEO-15).
1045     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1046     * it will return zero.
1047     */
1048    public int getEventDescriptionFromPatientReps() {
1049        return this.getReps(15);
1050    }
1051
1052
1053    /**
1054     * Returns a specific repetition of
1055     * PEO-15: "Event Description From Patient" - creates it if necessary
1056     *
1057     * @param rep The repetition index (0-indexed)
1058     */
1059    public FT getEventDescriptionFromPatient(int rep) { 
1060                FT retVal = this.getTypedField(15, rep);
1061                return retVal;
1062    }
1063
1064    /**
1065     * Returns a specific repetition of
1066     * PEO-15: "Event Description From Patient" - creates it if necessary
1067     *
1068     * @param rep The repetition index (0-indexed)
1069     */
1070    public FT getPeo15_EventDescriptionFromPatient(int rep) { 
1071                FT retVal = this.getTypedField(15, rep);
1072                return retVal;
1073    }
1074
1075    /**
1076     * Returns a count of the current number of repetitions of Event Description From Patient (PEO-15).
1077     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1078     * it will return zero.
1079     */
1080    public int getPeo15_EventDescriptionFromPatientReps() {
1081        return this.getReps(15);
1082    }
1083
1084
1085    /**
1086     * Inserts a repetition of
1087     * PEO-15: "Event Description From Patient" at a specific index
1088     *
1089     * @param rep The repetition index (0-indexed)
1090     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1091     */
1092    public FT insertEventDescriptionFromPatient(int rep) throws HL7Exception { 
1093        return (FT) super.insertRepetition(15, rep);
1094    }
1095
1096
1097    /**
1098     * Inserts a repetition of
1099     * PEO-15: "Event Description From Patient" at a specific index
1100     *
1101     * @param rep The repetition index (0-indexed)
1102     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1103     */
1104    public FT insertPeo15_EventDescriptionFromPatient(int rep) throws HL7Exception { 
1105        return (FT) super.insertRepetition(15, rep);
1106    }
1107
1108
1109    /**
1110     * Removes a repetition of
1111     * PEO-15: "Event Description From Patient" at a specific index
1112     *
1113     * @param rep The repetition index (0-indexed)
1114     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1115     */
1116    public FT removeEventDescriptionFromPatient(int rep) throws HL7Exception { 
1117        return (FT) super.removeRepetition(15, rep);
1118    }
1119
1120
1121    /**
1122     * Removes a repetition of
1123     * PEO-15: "Event Description From Patient" at a specific index
1124     *
1125     * @param rep The repetition index (0-indexed)
1126     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1127     */
1128    public FT removePeo15_EventDescriptionFromPatient(int rep) throws HL7Exception { 
1129        return (FT) super.removeRepetition(15, rep);
1130    }
1131
1132
1133
1134    /**
1135     * Returns all repetitions of Event Description From Practitioner (PEO-16).
1136     */
1137    public FT[] getEventDescriptionFromPractitioner() {
1138        FT[] retVal = this.getTypedField(16, new FT[0]);
1139        return retVal;
1140    }
1141
1142
1143    /**
1144     * Returns all repetitions of Event Description From Practitioner (PEO-16).
1145     */
1146    public FT[] getPeo16_EventDescriptionFromPractitioner() {
1147        FT[] retVal = this.getTypedField(16, new FT[0]);
1148        return retVal;
1149    }
1150
1151
1152    /**
1153     * Returns a count of the current number of repetitions of Event Description From Practitioner (PEO-16).
1154     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1155     * it will return zero.
1156     */
1157    public int getEventDescriptionFromPractitionerReps() {
1158        return this.getReps(16);
1159    }
1160
1161
1162    /**
1163     * Returns a specific repetition of
1164     * PEO-16: "Event Description From Practitioner" - creates it if necessary
1165     *
1166     * @param rep The repetition index (0-indexed)
1167     */
1168    public FT getEventDescriptionFromPractitioner(int rep) { 
1169                FT retVal = this.getTypedField(16, rep);
1170                return retVal;
1171    }
1172
1173    /**
1174     * Returns a specific repetition of
1175     * PEO-16: "Event Description From Practitioner" - creates it if necessary
1176     *
1177     * @param rep The repetition index (0-indexed)
1178     */
1179    public FT getPeo16_EventDescriptionFromPractitioner(int rep) { 
1180                FT retVal = this.getTypedField(16, rep);
1181                return retVal;
1182    }
1183
1184    /**
1185     * Returns a count of the current number of repetitions of Event Description From Practitioner (PEO-16).
1186     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1187     * it will return zero.
1188     */
1189    public int getPeo16_EventDescriptionFromPractitionerReps() {
1190        return this.getReps(16);
1191    }
1192
1193
1194    /**
1195     * Inserts a repetition of
1196     * PEO-16: "Event Description From Practitioner" at a specific index
1197     *
1198     * @param rep The repetition index (0-indexed)
1199     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1200     */
1201    public FT insertEventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1202        return (FT) super.insertRepetition(16, rep);
1203    }
1204
1205
1206    /**
1207     * Inserts a repetition of
1208     * PEO-16: "Event Description From Practitioner" at a specific index
1209     *
1210     * @param rep The repetition index (0-indexed)
1211     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1212     */
1213    public FT insertPeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1214        return (FT) super.insertRepetition(16, rep);
1215    }
1216
1217
1218    /**
1219     * Removes a repetition of
1220     * PEO-16: "Event Description From Practitioner" at a specific index
1221     *
1222     * @param rep The repetition index (0-indexed)
1223     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1224     */
1225    public FT removeEventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1226        return (FT) super.removeRepetition(16, rep);
1227    }
1228
1229
1230    /**
1231     * Removes a repetition of
1232     * PEO-16: "Event Description From Practitioner" at a specific index
1233     *
1234     * @param rep The repetition index (0-indexed)
1235     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1236     */
1237    public FT removePeo16_EventDescriptionFromPractitioner(int rep) throws HL7Exception { 
1238        return (FT) super.removeRepetition(16, rep);
1239    }
1240
1241
1242
1243    /**
1244     * Returns all repetitions of Event Description From Autopsy (PEO-17).
1245     */
1246    public FT[] getEventDescriptionFromAutopsy() {
1247        FT[] retVal = this.getTypedField(17, new FT[0]);
1248        return retVal;
1249    }
1250
1251
1252    /**
1253     * Returns all repetitions of Event Description From Autopsy (PEO-17).
1254     */
1255    public FT[] getPeo17_EventDescriptionFromAutopsy() {
1256        FT[] retVal = this.getTypedField(17, new FT[0]);
1257        return retVal;
1258    }
1259
1260
1261    /**
1262     * Returns a count of the current number of repetitions of Event Description From Autopsy (PEO-17).
1263     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1264     * it will return zero.
1265     */
1266    public int getEventDescriptionFromAutopsyReps() {
1267        return this.getReps(17);
1268    }
1269
1270
1271    /**
1272     * Returns a specific repetition of
1273     * PEO-17: "Event Description From Autopsy" - creates it if necessary
1274     *
1275     * @param rep The repetition index (0-indexed)
1276     */
1277    public FT getEventDescriptionFromAutopsy(int rep) { 
1278                FT retVal = this.getTypedField(17, rep);
1279                return retVal;
1280    }
1281
1282    /**
1283     * Returns a specific repetition of
1284     * PEO-17: "Event Description From Autopsy" - creates it if necessary
1285     *
1286     * @param rep The repetition index (0-indexed)
1287     */
1288    public FT getPeo17_EventDescriptionFromAutopsy(int rep) { 
1289                FT retVal = this.getTypedField(17, rep);
1290                return retVal;
1291    }
1292
1293    /**
1294     * Returns a count of the current number of repetitions of Event Description From Autopsy (PEO-17).
1295     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1296     * it will return zero.
1297     */
1298    public int getPeo17_EventDescriptionFromAutopsyReps() {
1299        return this.getReps(17);
1300    }
1301
1302
1303    /**
1304     * Inserts a repetition of
1305     * PEO-17: "Event Description From Autopsy" at a specific index
1306     *
1307     * @param rep The repetition index (0-indexed)
1308     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1309     */
1310    public FT insertEventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1311        return (FT) super.insertRepetition(17, rep);
1312    }
1313
1314
1315    /**
1316     * Inserts a repetition of
1317     * PEO-17: "Event Description From Autopsy" at a specific index
1318     *
1319     * @param rep The repetition index (0-indexed)
1320     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1321     */
1322    public FT insertPeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1323        return (FT) super.insertRepetition(17, rep);
1324    }
1325
1326
1327    /**
1328     * Removes a repetition of
1329     * PEO-17: "Event Description From Autopsy" at a specific index
1330     *
1331     * @param rep The repetition index (0-indexed)
1332     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1333     */
1334    public FT removeEventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1335        return (FT) super.removeRepetition(17, rep);
1336    }
1337
1338
1339    /**
1340     * Removes a repetition of
1341     * PEO-17: "Event Description From Autopsy" at a specific index
1342     *
1343     * @param rep The repetition index (0-indexed)
1344     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1345     */
1346    public FT removePeo17_EventDescriptionFromAutopsy(int rep) throws HL7Exception { 
1347        return (FT) super.removeRepetition(17, rep);
1348    }
1349
1350
1351
1352    /**
1353     * Returns all repetitions of Cause Of Death (PEO-18).
1354     */
1355    public CE[] getCauseOfDeath() {
1356        CE[] retVal = this.getTypedField(18, new CE[0]);
1357        return retVal;
1358    }
1359
1360
1361    /**
1362     * Returns all repetitions of Cause Of Death (PEO-18).
1363     */
1364    public CE[] getPeo18_CauseOfDeath() {
1365        CE[] retVal = this.getTypedField(18, new CE[0]);
1366        return retVal;
1367    }
1368
1369
1370    /**
1371     * Returns a count of the current number of repetitions of Cause Of Death (PEO-18).
1372     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1373     * it will return zero.
1374     */
1375    public int getCauseOfDeathReps() {
1376        return this.getReps(18);
1377    }
1378
1379
1380    /**
1381     * Returns a specific repetition of
1382     * PEO-18: "Cause Of Death" - creates it if necessary
1383     *
1384     * @param rep The repetition index (0-indexed)
1385     */
1386    public CE getCauseOfDeath(int rep) { 
1387                CE retVal = this.getTypedField(18, rep);
1388                return retVal;
1389    }
1390
1391    /**
1392     * Returns a specific repetition of
1393     * PEO-18: "Cause Of Death" - creates it if necessary
1394     *
1395     * @param rep The repetition index (0-indexed)
1396     */
1397    public CE getPeo18_CauseOfDeath(int rep) { 
1398                CE retVal = this.getTypedField(18, rep);
1399                return retVal;
1400    }
1401
1402    /**
1403     * Returns a count of the current number of repetitions of Cause Of Death (PEO-18).
1404     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1405     * it will return zero.
1406     */
1407    public int getPeo18_CauseOfDeathReps() {
1408        return this.getReps(18);
1409    }
1410
1411
1412    /**
1413     * Inserts a repetition of
1414     * PEO-18: "Cause Of Death" at a specific index
1415     *
1416     * @param rep The repetition index (0-indexed)
1417     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1418     */
1419    public CE insertCauseOfDeath(int rep) throws HL7Exception { 
1420        return (CE) super.insertRepetition(18, rep);
1421    }
1422
1423
1424    /**
1425     * Inserts a repetition of
1426     * PEO-18: "Cause Of Death" at a specific index
1427     *
1428     * @param rep The repetition index (0-indexed)
1429     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1430     */
1431    public CE insertPeo18_CauseOfDeath(int rep) throws HL7Exception { 
1432        return (CE) super.insertRepetition(18, rep);
1433    }
1434
1435
1436    /**
1437     * Removes a repetition of
1438     * PEO-18: "Cause Of Death" at a specific index
1439     *
1440     * @param rep The repetition index (0-indexed)
1441     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1442     */
1443    public CE removeCauseOfDeath(int rep) throws HL7Exception { 
1444        return (CE) super.removeRepetition(18, rep);
1445    }
1446
1447
1448    /**
1449     * Removes a repetition of
1450     * PEO-18: "Cause Of Death" at a specific index
1451     *
1452     * @param rep The repetition index (0-indexed)
1453     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1454     */
1455    public CE removePeo18_CauseOfDeath(int rep) throws HL7Exception { 
1456        return (CE) super.removeRepetition(18, rep);
1457    }
1458
1459
1460
1461    /**
1462     * Returns all repetitions of Primary Observer Name (PEO-19).
1463     */
1464    public XPN[] getPrimaryObserverName() {
1465        XPN[] retVal = this.getTypedField(19, new XPN[0]);
1466        return retVal;
1467    }
1468
1469
1470    /**
1471     * Returns all repetitions of Primary Observer Name (PEO-19).
1472     */
1473    public XPN[] getPeo19_PrimaryObserverName() {
1474        XPN[] retVal = this.getTypedField(19, new XPN[0]);
1475        return retVal;
1476    }
1477
1478
1479    /**
1480     * Returns a count of the current number of repetitions of Primary Observer Name (PEO-19).
1481     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1482     * it will return zero.
1483     */
1484    public int getPrimaryObserverNameReps() {
1485        return this.getReps(19);
1486    }
1487
1488
1489    /**
1490     * Returns a specific repetition of
1491     * PEO-19: "Primary Observer Name" - creates it if necessary
1492     *
1493     * @param rep The repetition index (0-indexed)
1494     */
1495    public XPN getPrimaryObserverName(int rep) { 
1496                XPN retVal = this.getTypedField(19, rep);
1497                return retVal;
1498    }
1499
1500    /**
1501     * Returns a specific repetition of
1502     * PEO-19: "Primary Observer Name" - creates it if necessary
1503     *
1504     * @param rep The repetition index (0-indexed)
1505     */
1506    public XPN getPeo19_PrimaryObserverName(int rep) { 
1507                XPN retVal = this.getTypedField(19, rep);
1508                return retVal;
1509    }
1510
1511    /**
1512     * Returns a count of the current number of repetitions of Primary Observer Name (PEO-19).
1513     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1514     * it will return zero.
1515     */
1516    public int getPeo19_PrimaryObserverNameReps() {
1517        return this.getReps(19);
1518    }
1519
1520
1521    /**
1522     * Inserts a repetition of
1523     * PEO-19: "Primary Observer Name" at a specific index
1524     *
1525     * @param rep The repetition index (0-indexed)
1526     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1527     */
1528    public XPN insertPrimaryObserverName(int rep) throws HL7Exception { 
1529        return (XPN) super.insertRepetition(19, rep);
1530    }
1531
1532
1533    /**
1534     * Inserts a repetition of
1535     * PEO-19: "Primary Observer Name" at a specific index
1536     *
1537     * @param rep The repetition index (0-indexed)
1538     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1539     */
1540    public XPN insertPeo19_PrimaryObserverName(int rep) throws HL7Exception { 
1541        return (XPN) super.insertRepetition(19, rep);
1542    }
1543
1544
1545    /**
1546     * Removes a repetition of
1547     * PEO-19: "Primary Observer Name" at a specific index
1548     *
1549     * @param rep The repetition index (0-indexed)
1550     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1551     */
1552    public XPN removePrimaryObserverName(int rep) throws HL7Exception { 
1553        return (XPN) super.removeRepetition(19, rep);
1554    }
1555
1556
1557    /**
1558     * Removes a repetition of
1559     * PEO-19: "Primary Observer Name" at a specific index
1560     *
1561     * @param rep The repetition index (0-indexed)
1562     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1563     */
1564    public XPN removePeo19_PrimaryObserverName(int rep) throws HL7Exception { 
1565        return (XPN) super.removeRepetition(19, rep);
1566    }
1567
1568
1569
1570    /**
1571     * Returns all repetitions of Primary Observer Address (PEO-20).
1572     */
1573    public XAD[] getPrimaryObserverAddress() {
1574        XAD[] retVal = this.getTypedField(20, new XAD[0]);
1575        return retVal;
1576    }
1577
1578
1579    /**
1580     * Returns all repetitions of Primary Observer Address (PEO-20).
1581     */
1582    public XAD[] getPeo20_PrimaryObserverAddress() {
1583        XAD[] retVal = this.getTypedField(20, new XAD[0]);
1584        return retVal;
1585    }
1586
1587
1588    /**
1589     * Returns a count of the current number of repetitions of Primary Observer Address (PEO-20).
1590     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1591     * it will return zero.
1592     */
1593    public int getPrimaryObserverAddressReps() {
1594        return this.getReps(20);
1595    }
1596
1597
1598    /**
1599     * Returns a specific repetition of
1600     * PEO-20: "Primary Observer Address" - creates it if necessary
1601     *
1602     * @param rep The repetition index (0-indexed)
1603     */
1604    public XAD getPrimaryObserverAddress(int rep) { 
1605                XAD retVal = this.getTypedField(20, rep);
1606                return retVal;
1607    }
1608
1609    /**
1610     * Returns a specific repetition of
1611     * PEO-20: "Primary Observer Address" - creates it if necessary
1612     *
1613     * @param rep The repetition index (0-indexed)
1614     */
1615    public XAD getPeo20_PrimaryObserverAddress(int rep) { 
1616                XAD retVal = this.getTypedField(20, rep);
1617                return retVal;
1618    }
1619
1620    /**
1621     * Returns a count of the current number of repetitions of Primary Observer Address (PEO-20).
1622     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1623     * it will return zero.
1624     */
1625    public int getPeo20_PrimaryObserverAddressReps() {
1626        return this.getReps(20);
1627    }
1628
1629
1630    /**
1631     * Inserts a repetition of
1632     * PEO-20: "Primary Observer Address" at a specific index
1633     *
1634     * @param rep The repetition index (0-indexed)
1635     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1636     */
1637    public XAD insertPrimaryObserverAddress(int rep) throws HL7Exception { 
1638        return (XAD) super.insertRepetition(20, rep);
1639    }
1640
1641
1642    /**
1643     * Inserts a repetition of
1644     * PEO-20: "Primary Observer Address" at a specific index
1645     *
1646     * @param rep The repetition index (0-indexed)
1647     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1648     */
1649    public XAD insertPeo20_PrimaryObserverAddress(int rep) throws HL7Exception { 
1650        return (XAD) super.insertRepetition(20, rep);
1651    }
1652
1653
1654    /**
1655     * Removes a repetition of
1656     * PEO-20: "Primary Observer Address" at a specific index
1657     *
1658     * @param rep The repetition index (0-indexed)
1659     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1660     */
1661    public XAD removePrimaryObserverAddress(int rep) throws HL7Exception { 
1662        return (XAD) super.removeRepetition(20, rep);
1663    }
1664
1665
1666    /**
1667     * Removes a repetition of
1668     * PEO-20: "Primary Observer Address" at a specific index
1669     *
1670     * @param rep The repetition index (0-indexed)
1671     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1672     */
1673    public XAD removePeo20_PrimaryObserverAddress(int rep) throws HL7Exception { 
1674        return (XAD) super.removeRepetition(20, rep);
1675    }
1676
1677
1678
1679    /**
1680     * Returns all repetitions of Primary Observer Telephone (PEO-21).
1681     */
1682    public XTN[] getPrimaryObserverTelephone() {
1683        XTN[] retVal = this.getTypedField(21, new XTN[0]);
1684        return retVal;
1685    }
1686
1687
1688    /**
1689     * Returns all repetitions of Primary Observer Telephone (PEO-21).
1690     */
1691    public XTN[] getPeo21_PrimaryObserverTelephone() {
1692        XTN[] retVal = this.getTypedField(21, new XTN[0]);
1693        return retVal;
1694    }
1695
1696
1697    /**
1698     * Returns a count of the current number of repetitions of Primary Observer Telephone (PEO-21).
1699     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1700     * it will return zero.
1701     */
1702    public int getPrimaryObserverTelephoneReps() {
1703        return this.getReps(21);
1704    }
1705
1706
1707    /**
1708     * Returns a specific repetition of
1709     * PEO-21: "Primary Observer Telephone" - creates it if necessary
1710     *
1711     * @param rep The repetition index (0-indexed)
1712     */
1713    public XTN getPrimaryObserverTelephone(int rep) { 
1714                XTN retVal = this.getTypedField(21, rep);
1715                return retVal;
1716    }
1717
1718    /**
1719     * Returns a specific repetition of
1720     * PEO-21: "Primary Observer Telephone" - creates it if necessary
1721     *
1722     * @param rep The repetition index (0-indexed)
1723     */
1724    public XTN getPeo21_PrimaryObserverTelephone(int rep) { 
1725                XTN retVal = this.getTypedField(21, rep);
1726                return retVal;
1727    }
1728
1729    /**
1730     * Returns a count of the current number of repetitions of Primary Observer Telephone (PEO-21).
1731     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1732     * it will return zero.
1733     */
1734    public int getPeo21_PrimaryObserverTelephoneReps() {
1735        return this.getReps(21);
1736    }
1737
1738
1739    /**
1740     * Inserts a repetition of
1741     * PEO-21: "Primary Observer Telephone" at a specific index
1742     *
1743     * @param rep The repetition index (0-indexed)
1744     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1745     */
1746    public XTN insertPrimaryObserverTelephone(int rep) throws HL7Exception { 
1747        return (XTN) super.insertRepetition(21, rep);
1748    }
1749
1750
1751    /**
1752     * Inserts a repetition of
1753     * PEO-21: "Primary Observer Telephone" at a specific index
1754     *
1755     * @param rep The repetition index (0-indexed)
1756     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1757     */
1758    public XTN insertPeo21_PrimaryObserverTelephone(int rep) throws HL7Exception { 
1759        return (XTN) super.insertRepetition(21, rep);
1760    }
1761
1762
1763    /**
1764     * Removes a repetition of
1765     * PEO-21: "Primary Observer Telephone" at a specific index
1766     *
1767     * @param rep The repetition index (0-indexed)
1768     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1769     */
1770    public XTN removePrimaryObserverTelephone(int rep) throws HL7Exception { 
1771        return (XTN) super.removeRepetition(21, rep);
1772    }
1773
1774
1775    /**
1776     * Removes a repetition of
1777     * PEO-21: "Primary Observer Telephone" at a specific index
1778     *
1779     * @param rep The repetition index (0-indexed)
1780     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1781     */
1782    public XTN removePeo21_PrimaryObserverTelephone(int rep) throws HL7Exception { 
1783        return (XTN) super.removeRepetition(21, rep);
1784    }
1785
1786
1787
1788
1789    /**
1790     * Returns
1791     * PEO-22: "Primary Observer's Qualification" - creates it if necessary
1792     */
1793    public ID getPrimaryObserverSQualification() { 
1794                ID retVal = this.getTypedField(22, 0);
1795                return retVal;
1796    }
1797    
1798    /**
1799     * Returns
1800     * PEO-22: "Primary Observer's Qualification" - creates it if necessary
1801     */
1802    public ID getPeo22_PrimaryObserverSQualification() { 
1803                ID retVal = this.getTypedField(22, 0);
1804                return retVal;
1805    }
1806
1807
1808
1809    /**
1810     * Returns
1811     * PEO-23: "Confirmation Provided By" - creates it if necessary
1812     */
1813    public ID getConfirmationProvidedBy() { 
1814                ID retVal = this.getTypedField(23, 0);
1815                return retVal;
1816    }
1817    
1818    /**
1819     * Returns
1820     * PEO-23: "Confirmation Provided By" - creates it if necessary
1821     */
1822    public ID getPeo23_ConfirmationProvidedBy() { 
1823                ID retVal = this.getTypedField(23, 0);
1824                return retVal;
1825    }
1826
1827
1828
1829    /**
1830     * Returns
1831     * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
1832     */
1833    public TS getPrimaryObserverAwareDateTime() { 
1834                TS retVal = this.getTypedField(24, 0);
1835                return retVal;
1836    }
1837    
1838    /**
1839     * Returns
1840     * PEO-24: "Primary Observer Aware Date/Time" - creates it if necessary
1841     */
1842    public TS getPeo24_PrimaryObserverAwareDateTime() { 
1843                TS retVal = this.getTypedField(24, 0);
1844                return retVal;
1845    }
1846
1847
1848
1849    /**
1850     * Returns
1851     * PEO-25: "Primary Observer's identity May Be Divulged" - creates it if necessary
1852     */
1853    public ID getPrimaryObserverSIdentityMayBeDivulged() { 
1854                ID retVal = this.getTypedField(25, 0);
1855                return retVal;
1856    }
1857    
1858    /**
1859     * Returns
1860     * PEO-25: "Primary Observer's identity May Be Divulged" - creates it if necessary
1861     */
1862    public ID getPeo25_PrimaryObserverSIdentityMayBeDivulged() { 
1863                ID retVal = this.getTypedField(25, 0);
1864                return retVal;
1865    }
1866
1867
1868
1869
1870
1871    /** {@inheritDoc} */   
1872    protected Type createNewTypeWithoutReflection(int field) {
1873       switch (field) {
1874          case 0: return new CE(getMessage());
1875          case 1: return new CE(getMessage());
1876          case 2: return new TS(getMessage());
1877          case 3: return new TS(getMessage());
1878          case 4: return new TS(getMessage());
1879          case 5: return new TS(getMessage());
1880          case 6: return new XAD(getMessage());
1881          case 7: return new ID(getMessage(), new Integer( 237 ));
1882          case 8: return new ID(getMessage(), new Integer( 238 ));
1883          case 9: return new ID(getMessage(), new Integer( 239 ));
1884          case 10: return new ID(getMessage(), new Integer( 240 ));
1885          case 11: return new ID(getMessage(), new Integer( 241 ));
1886          case 12: return new FT(getMessage());
1887          case 13: return new FT(getMessage());
1888          case 14: return new FT(getMessage());
1889          case 15: return new FT(getMessage());
1890          case 16: return new FT(getMessage());
1891          case 17: return new CE(getMessage());
1892          case 18: return new XPN(getMessage());
1893          case 19: return new XAD(getMessage());
1894          case 20: return new XTN(getMessage());
1895          case 21: return new ID(getMessage(), new Integer( 242 ));
1896          case 22: return new ID(getMessage(), new Integer( 242 ));
1897          case 23: return new TS(getMessage());
1898          case 24: return new ID(getMessage(), new Integer( 243 ));
1899          default: return null;
1900       }
1901   }
1902
1903
1904}
1905