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.v26.segment;
035
036// import ca.uhn.hl7v2.model.v26.group.*;
037import ca.uhn.hl7v2.model.v26.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 PV1 message segment (Patient Visit). 
049 * This segment has the following fields:</p>
050 * <ul>
051     * <li>PV1-1: Set ID - PV1 (SI) <b>optional </b>
052     * <li>PV1-2: Patient Class (IS) <b> </b>
053     * <li>PV1-3: Assigned Patient Location (PL) <b>optional </b>
054     * <li>PV1-4: Admission Type (IS) <b>optional </b>
055     * <li>PV1-5: Preadmit Number (CX) <b>optional </b>
056     * <li>PV1-6: Prior Patient Location (PL) <b>optional </b>
057     * <li>PV1-7: Attending Doctor (XCN) <b>optional repeating</b>
058     * <li>PV1-8: Referring Doctor (XCN) <b>optional repeating</b>
059     * <li>PV1-9: Consulting Doctor (XCN) <b>optional repeating</b>
060     * <li>PV1-10: Hospital Service (IS) <b>optional </b>
061     * <li>PV1-11: Temporary Location (PL) <b>optional </b>
062     * <li>PV1-12: Preadmit Test Indicator (IS) <b>optional </b>
063     * <li>PV1-13: Re-admission Indicator (IS) <b>optional </b>
064     * <li>PV1-14: Admit Source (IS) <b>optional </b>
065     * <li>PV1-15: Ambulatory Status (IS) <b>optional repeating</b>
066     * <li>PV1-16: VIP Indicator (IS) <b>optional </b>
067     * <li>PV1-17: Admitting Doctor (XCN) <b>optional repeating</b>
068     * <li>PV1-18: Patient Type (IS) <b>optional </b>
069     * <li>PV1-19: Visit Number (CX) <b>optional </b>
070     * <li>PV1-20: Financial Class (FC) <b>optional repeating</b>
071     * <li>PV1-21: Charge Price Indicator (IS) <b>optional </b>
072     * <li>PV1-22: Courtesy Code (IS) <b>optional </b>
073     * <li>PV1-23: Credit Rating (IS) <b>optional </b>
074     * <li>PV1-24: Contract Code (IS) <b>optional repeating</b>
075     * <li>PV1-25: Contract Effective Date (DT) <b>optional repeating</b>
076     * <li>PV1-26: Contract Amount (NM) <b>optional repeating</b>
077     * <li>PV1-27: Contract Period (NM) <b>optional repeating</b>
078     * <li>PV1-28: Interest Code (IS) <b>optional </b>
079     * <li>PV1-29: Transfer to Bad Debt Code (IS) <b>optional </b>
080     * <li>PV1-30: Transfer to Bad Debt Date (DT) <b>optional </b>
081     * <li>PV1-31: Bad Debt Agency Code (IS) <b>optional </b>
082     * <li>PV1-32: Bad Debt Transfer Amount (NM) <b>optional </b>
083     * <li>PV1-33: Bad Debt Recovery Amount (NM) <b>optional </b>
084     * <li>PV1-34: Delete Account Indicator (IS) <b>optional </b>
085     * <li>PV1-35: Delete Account Date (DT) <b>optional </b>
086     * <li>PV1-36: Discharge Disposition (IS) <b>optional </b>
087     * <li>PV1-37: Discharged to Location (DLD) <b>optional </b>
088     * <li>PV1-38: Diet Type (CWE) <b>optional </b>
089     * <li>PV1-39: Servicing Facility (IS) <b>optional </b>
090     * <li>PV1-40: Bed Status (IS) <b>optional </b>
091     * <li>PV1-41: Account Status (IS) <b>optional </b>
092     * <li>PV1-42: Pending Location (PL) <b>optional </b>
093     * <li>PV1-43: Prior Temporary Location (PL) <b>optional </b>
094     * <li>PV1-44: Admit Date/Time (DTM) <b>optional </b>
095     * <li>PV1-45: Discharge Date/Time (DTM) <b>optional </b>
096     * <li>PV1-46: Current Patient Balance (NM) <b>optional </b>
097     * <li>PV1-47: Total Charges (NM) <b>optional </b>
098     * <li>PV1-48: Total Adjustments (NM) <b>optional </b>
099     * <li>PV1-49: Total Payments (NM) <b>optional </b>
100     * <li>PV1-50: Alternate Visit ID (CX) <b>optional </b>
101     * <li>PV1-51: Visit Indicator (IS) <b>optional </b>
102     * <li>PV1-52: Other Healthcare Provider (XCN) <b>optional repeating</b>
103 * </ul>
104 */
105@SuppressWarnings("unused")
106public class PV1 extends AbstractSegment {
107
108    /** 
109     * Creates a new PV1 segment
110     */
111    public PV1(Group parent, ModelClassFactory factory) {
112       super(parent, factory);
113       init(factory);
114    }
115
116    private void init(ModelClassFactory factory) {
117       try {
118                                  this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "Set ID - PV1");
119                                              this.add(IS.class, true, 1, 1, new Object[]{ getMessage(), new Integer(4) }, "Patient Class");
120                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Assigned Patient Location");
121                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(7) }, "Admission Type");
122                                  this.add(CX.class, false, 1, 250, new Object[]{ getMessage() }, "Preadmit Number");
123                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Prior Patient Location");
124                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Attending Doctor");
125                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Referring Doctor");
126                                  this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Consulting Doctor");
127                                              this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(69) }, "Hospital Service");
128                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Temporary Location");
129                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(87) }, "Preadmit Test Indicator");
130                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(92) }, "Re-admission Indicator");
131                                              this.add(IS.class, false, 1, 6, new Object[]{ getMessage(), new Integer(23) }, "Admit Source");
132                                              this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(9) }, "Ambulatory Status");
133                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(99) }, "VIP Indicator");
134                                  this.add(XCN.class, false, 0, 250, new Object[]{ getMessage() }, "Admitting Doctor");
135                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(18) }, "Patient Type");
136                                  this.add(CX.class, false, 1, 250, new Object[]{ getMessage() }, "Visit Number");
137                                  this.add(FC.class, false, 0, 50, new Object[]{ getMessage() }, "Financial Class");
138                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(32) }, "Charge Price Indicator");
139                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(45) }, "Courtesy Code");
140                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(46) }, "Credit Rating");
141                                              this.add(IS.class, false, 0, 2, new Object[]{ getMessage(), new Integer(44) }, "Contract Code");
142                                  this.add(DT.class, false, 0, 8, new Object[]{ getMessage() }, "Contract Effective Date");
143                                  this.add(NM.class, false, 0, 12, new Object[]{ getMessage() }, "Contract Amount");
144                                  this.add(NM.class, false, 0, 3, new Object[]{ getMessage() }, "Contract Period");
145                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(73) }, "Interest Code");
146                                              this.add(IS.class, false, 1, 4, new Object[]{ getMessage(), new Integer(110) }, "Transfer to Bad Debt Code");
147                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Transfer to Bad Debt Date");
148                                              this.add(IS.class, false, 1, 10, new Object[]{ getMessage(), new Integer(21) }, "Bad Debt Agency Code");
149                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Bad Debt Transfer Amount");
150                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Bad Debt Recovery Amount");
151                                              this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(111) }, "Delete Account Indicator");
152                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "Delete Account Date");
153                                              this.add(IS.class, false, 1, 3, new Object[]{ getMessage(), new Integer(112) }, "Discharge Disposition");
154                                  this.add(DLD.class, false, 1, 47, new Object[]{ getMessage() }, "Discharged to Location");
155                                  this.add(CWE.class, false, 1, 705, new Object[]{ getMessage() }, "Diet Type");
156                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(115) }, "Servicing Facility");
157                                              this.add(IS.class, false, 1, 0, new Object[]{ getMessage(), new Integer(116) }, "Bed Status");
158                                              this.add(IS.class, false, 1, 2, new Object[]{ getMessage(), new Integer(117) }, "Account Status");
159                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Pending Location");
160                                  this.add(PL.class, false, 1, 80, new Object[]{ getMessage() }, "Prior Temporary Location");
161                                  this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Admit Date/Time");
162                                  this.add(DTM.class, false, 1, 24, new Object[]{ getMessage() }, "Discharge Date/Time");
163                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Current Patient Balance");
164                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Total Charges");
165                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Total Adjustments");
166                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "Total Payments");
167                                  this.add(CX.class, false, 1, 250, new Object[]{ getMessage() }, "Alternate Visit ID");
168                                              this.add(IS.class, false, 1, 1, new Object[]{ getMessage(), new Integer(326) }, "Visit Indicator");
169                                  this.add(XCN.class, false, 0, 0, new Object[]{ getMessage() }, "Other Healthcare Provider");
170       } catch(HL7Exception e) {
171          log.error("Unexpected error creating PV1 - this is probably a bug in the source code generator.", e);
172       }
173    }
174
175
176
177    /**
178     * Returns
179     * PV1-1: "Set ID - PV1" - creates it if necessary
180     */
181    public SI getSetIDPV1() { 
182                SI retVal = this.getTypedField(1, 0);
183                return retVal;
184    }
185    
186    /**
187     * Returns
188     * PV1-1: "Set ID - PV1" - creates it if necessary
189     */
190    public SI getPv11_SetIDPV1() { 
191                SI retVal = this.getTypedField(1, 0);
192                return retVal;
193    }
194
195
196
197    /**
198     * Returns
199     * PV1-2: "Patient Class" - creates it if necessary
200     */
201    public IS getPatientClass() { 
202                IS retVal = this.getTypedField(2, 0);
203                return retVal;
204    }
205    
206    /**
207     * Returns
208     * PV1-2: "Patient Class" - creates it if necessary
209     */
210    public IS getPv12_PatientClass() { 
211                IS retVal = this.getTypedField(2, 0);
212                return retVal;
213    }
214
215
216
217    /**
218     * Returns
219     * PV1-3: "Assigned Patient Location" - creates it if necessary
220     */
221    public PL getAssignedPatientLocation() { 
222                PL retVal = this.getTypedField(3, 0);
223                return retVal;
224    }
225    
226    /**
227     * Returns
228     * PV1-3: "Assigned Patient Location" - creates it if necessary
229     */
230    public PL getPv13_AssignedPatientLocation() { 
231                PL retVal = this.getTypedField(3, 0);
232                return retVal;
233    }
234
235
236
237    /**
238     * Returns
239     * PV1-4: "Admission Type" - creates it if necessary
240     */
241    public IS getAdmissionType() { 
242                IS retVal = this.getTypedField(4, 0);
243                return retVal;
244    }
245    
246    /**
247     * Returns
248     * PV1-4: "Admission Type" - creates it if necessary
249     */
250    public IS getPv14_AdmissionType() { 
251                IS retVal = this.getTypedField(4, 0);
252                return retVal;
253    }
254
255
256
257    /**
258     * Returns
259     * PV1-5: "Preadmit Number" - creates it if necessary
260     */
261    public CX getPreadmitNumber() { 
262                CX retVal = this.getTypedField(5, 0);
263                return retVal;
264    }
265    
266    /**
267     * Returns
268     * PV1-5: "Preadmit Number" - creates it if necessary
269     */
270    public CX getPv15_PreadmitNumber() { 
271                CX retVal = this.getTypedField(5, 0);
272                return retVal;
273    }
274
275
276
277    /**
278     * Returns
279     * PV1-6: "Prior Patient Location" - creates it if necessary
280     */
281    public PL getPriorPatientLocation() { 
282                PL retVal = this.getTypedField(6, 0);
283                return retVal;
284    }
285    
286    /**
287     * Returns
288     * PV1-6: "Prior Patient Location" - creates it if necessary
289     */
290    public PL getPv16_PriorPatientLocation() { 
291                PL retVal = this.getTypedField(6, 0);
292                return retVal;
293    }
294
295
296    /**
297     * Returns all repetitions of Attending Doctor (PV1-7).
298     */
299    public XCN[] getAttendingDoctor() {
300        XCN[] retVal = this.getTypedField(7, new XCN[0]);
301        return retVal;
302    }
303
304
305    /**
306     * Returns all repetitions of Attending Doctor (PV1-7).
307     */
308    public XCN[] getPv17_AttendingDoctor() {
309        XCN[] retVal = this.getTypedField(7, new XCN[0]);
310        return retVal;
311    }
312
313
314    /**
315     * Returns a count of the current number of repetitions of Attending Doctor (PV1-7).
316     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
317     * it will return zero.
318     */
319    public int getAttendingDoctorReps() {
320        return this.getReps(7);
321    }
322
323
324    /**
325     * Returns a specific repetition of
326     * PV1-7: "Attending Doctor" - creates it if necessary
327     *
328     * @param rep The repetition index (0-indexed)
329     */
330    public XCN getAttendingDoctor(int rep) { 
331                XCN retVal = this.getTypedField(7, rep);
332                return retVal;
333    }
334
335    /**
336     * Returns a specific repetition of
337     * PV1-7: "Attending Doctor" - creates it if necessary
338     *
339     * @param rep The repetition index (0-indexed)
340     */
341    public XCN getPv17_AttendingDoctor(int rep) { 
342                XCN retVal = this.getTypedField(7, rep);
343                return retVal;
344    }
345
346    /**
347     * Returns a count of the current number of repetitions of Attending Doctor (PV1-7).
348     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
349     * it will return zero.
350     */
351    public int getPv17_AttendingDoctorReps() {
352        return this.getReps(7);
353    }
354
355
356    /**
357     * Inserts a repetition of
358     * PV1-7: "Attending Doctor" at a specific index
359     *
360     * @param rep The repetition index (0-indexed)
361     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
362     */
363    public XCN insertAttendingDoctor(int rep) throws HL7Exception { 
364        return (XCN) super.insertRepetition(7, rep);
365    }
366
367
368    /**
369     * Inserts a repetition of
370     * PV1-7: "Attending Doctor" at a specific index
371     *
372     * @param rep The repetition index (0-indexed)
373     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
374     */
375    public XCN insertPv17_AttendingDoctor(int rep) throws HL7Exception { 
376        return (XCN) super.insertRepetition(7, rep);
377    }
378
379
380    /**
381     * Removes a repetition of
382     * PV1-7: "Attending Doctor" at a specific index
383     *
384     * @param rep The repetition index (0-indexed)
385     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
386     */
387    public XCN removeAttendingDoctor(int rep) throws HL7Exception { 
388        return (XCN) super.removeRepetition(7, rep);
389    }
390
391
392    /**
393     * Removes a repetition of
394     * PV1-7: "Attending Doctor" at a specific index
395     *
396     * @param rep The repetition index (0-indexed)
397     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
398     */
399    public XCN removePv17_AttendingDoctor(int rep) throws HL7Exception { 
400        return (XCN) super.removeRepetition(7, rep);
401    }
402
403
404
405    /**
406     * Returns all repetitions of Referring Doctor (PV1-8).
407     */
408    public XCN[] getReferringDoctor() {
409        XCN[] retVal = this.getTypedField(8, new XCN[0]);
410        return retVal;
411    }
412
413
414    /**
415     * Returns all repetitions of Referring Doctor (PV1-8).
416     */
417    public XCN[] getPv18_ReferringDoctor() {
418        XCN[] retVal = this.getTypedField(8, new XCN[0]);
419        return retVal;
420    }
421
422
423    /**
424     * Returns a count of the current number of repetitions of Referring Doctor (PV1-8).
425     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
426     * it will return zero.
427     */
428    public int getReferringDoctorReps() {
429        return this.getReps(8);
430    }
431
432
433    /**
434     * Returns a specific repetition of
435     * PV1-8: "Referring Doctor" - creates it if necessary
436     *
437     * @param rep The repetition index (0-indexed)
438     */
439    public XCN getReferringDoctor(int rep) { 
440                XCN retVal = this.getTypedField(8, rep);
441                return retVal;
442    }
443
444    /**
445     * Returns a specific repetition of
446     * PV1-8: "Referring Doctor" - creates it if necessary
447     *
448     * @param rep The repetition index (0-indexed)
449     */
450    public XCN getPv18_ReferringDoctor(int rep) { 
451                XCN retVal = this.getTypedField(8, rep);
452                return retVal;
453    }
454
455    /**
456     * Returns a count of the current number of repetitions of Referring Doctor (PV1-8).
457     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
458     * it will return zero.
459     */
460    public int getPv18_ReferringDoctorReps() {
461        return this.getReps(8);
462    }
463
464
465    /**
466     * Inserts a repetition of
467     * PV1-8: "Referring Doctor" at a specific index
468     *
469     * @param rep The repetition index (0-indexed)
470     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
471     */
472    public XCN insertReferringDoctor(int rep) throws HL7Exception { 
473        return (XCN) super.insertRepetition(8, rep);
474    }
475
476
477    /**
478     * Inserts a repetition of
479     * PV1-8: "Referring Doctor" at a specific index
480     *
481     * @param rep The repetition index (0-indexed)
482     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
483     */
484    public XCN insertPv18_ReferringDoctor(int rep) throws HL7Exception { 
485        return (XCN) super.insertRepetition(8, rep);
486    }
487
488
489    /**
490     * Removes a repetition of
491     * PV1-8: "Referring Doctor" at a specific index
492     *
493     * @param rep The repetition index (0-indexed)
494     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
495     */
496    public XCN removeReferringDoctor(int rep) throws HL7Exception { 
497        return (XCN) super.removeRepetition(8, rep);
498    }
499
500
501    /**
502     * Removes a repetition of
503     * PV1-8: "Referring Doctor" at a specific index
504     *
505     * @param rep The repetition index (0-indexed)
506     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
507     */
508    public XCN removePv18_ReferringDoctor(int rep) throws HL7Exception { 
509        return (XCN) super.removeRepetition(8, rep);
510    }
511
512
513
514    /**
515     * Returns all repetitions of Consulting Doctor (PV1-9).
516     */
517    public XCN[] getConsultingDoctor() {
518        XCN[] retVal = this.getTypedField(9, new XCN[0]);
519        return retVal;
520    }
521
522
523    /**
524     * Returns all repetitions of Consulting Doctor (PV1-9).
525     */
526    public XCN[] getPv19_ConsultingDoctor() {
527        XCN[] retVal = this.getTypedField(9, new XCN[0]);
528        return retVal;
529    }
530
531
532    /**
533     * Returns a count of the current number of repetitions of Consulting Doctor (PV1-9).
534     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
535     * it will return zero.
536     */
537    public int getConsultingDoctorReps() {
538        return this.getReps(9);
539    }
540
541
542    /**
543     * Returns a specific repetition of
544     * PV1-9: "Consulting Doctor" - creates it if necessary
545     *
546     * @param rep The repetition index (0-indexed)
547     */
548    public XCN getConsultingDoctor(int rep) { 
549                XCN retVal = this.getTypedField(9, rep);
550                return retVal;
551    }
552
553    /**
554     * Returns a specific repetition of
555     * PV1-9: "Consulting Doctor" - creates it if necessary
556     *
557     * @param rep The repetition index (0-indexed)
558     */
559    public XCN getPv19_ConsultingDoctor(int rep) { 
560                XCN retVal = this.getTypedField(9, rep);
561                return retVal;
562    }
563
564    /**
565     * Returns a count of the current number of repetitions of Consulting Doctor (PV1-9).
566     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
567     * it will return zero.
568     */
569    public int getPv19_ConsultingDoctorReps() {
570        return this.getReps(9);
571    }
572
573
574    /**
575     * Inserts a repetition of
576     * PV1-9: "Consulting Doctor" at a specific index
577     *
578     * @param rep The repetition index (0-indexed)
579     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
580     */
581    public XCN insertConsultingDoctor(int rep) throws HL7Exception { 
582        return (XCN) super.insertRepetition(9, rep);
583    }
584
585
586    /**
587     * Inserts a repetition of
588     * PV1-9: "Consulting Doctor" at a specific index
589     *
590     * @param rep The repetition index (0-indexed)
591     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
592     */
593    public XCN insertPv19_ConsultingDoctor(int rep) throws HL7Exception { 
594        return (XCN) super.insertRepetition(9, rep);
595    }
596
597
598    /**
599     * Removes a repetition of
600     * PV1-9: "Consulting Doctor" at a specific index
601     *
602     * @param rep The repetition index (0-indexed)
603     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
604     */
605    public XCN removeConsultingDoctor(int rep) throws HL7Exception { 
606        return (XCN) super.removeRepetition(9, rep);
607    }
608
609
610    /**
611     * Removes a repetition of
612     * PV1-9: "Consulting Doctor" at a specific index
613     *
614     * @param rep The repetition index (0-indexed)
615     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
616     */
617    public XCN removePv19_ConsultingDoctor(int rep) throws HL7Exception { 
618        return (XCN) super.removeRepetition(9, rep);
619    }
620
621
622
623
624    /**
625     * Returns
626     * PV1-10: "Hospital Service" - creates it if necessary
627     */
628    public IS getHospitalService() { 
629                IS retVal = this.getTypedField(10, 0);
630                return retVal;
631    }
632    
633    /**
634     * Returns
635     * PV1-10: "Hospital Service" - creates it if necessary
636     */
637    public IS getPv110_HospitalService() { 
638                IS retVal = this.getTypedField(10, 0);
639                return retVal;
640    }
641
642
643
644    /**
645     * Returns
646     * PV1-11: "Temporary Location" - creates it if necessary
647     */
648    public PL getTemporaryLocation() { 
649                PL retVal = this.getTypedField(11, 0);
650                return retVal;
651    }
652    
653    /**
654     * Returns
655     * PV1-11: "Temporary Location" - creates it if necessary
656     */
657    public PL getPv111_TemporaryLocation() { 
658                PL retVal = this.getTypedField(11, 0);
659                return retVal;
660    }
661
662
663
664    /**
665     * Returns
666     * PV1-12: "Preadmit Test Indicator" - creates it if necessary
667     */
668    public IS getPreadmitTestIndicator() { 
669                IS retVal = this.getTypedField(12, 0);
670                return retVal;
671    }
672    
673    /**
674     * Returns
675     * PV1-12: "Preadmit Test Indicator" - creates it if necessary
676     */
677    public IS getPv112_PreadmitTestIndicator() { 
678                IS retVal = this.getTypedField(12, 0);
679                return retVal;
680    }
681
682
683
684    /**
685     * Returns
686     * PV1-13: "Re-admission Indicator" - creates it if necessary
687     */
688    public IS getReAdmissionIndicator() { 
689                IS retVal = this.getTypedField(13, 0);
690                return retVal;
691    }
692    
693    /**
694     * Returns
695     * PV1-13: "Re-admission Indicator" - creates it if necessary
696     */
697    public IS getPv113_ReAdmissionIndicator() { 
698                IS retVal = this.getTypedField(13, 0);
699                return retVal;
700    }
701
702
703
704    /**
705     * Returns
706     * PV1-14: "Admit Source" - creates it if necessary
707     */
708    public IS getAdmitSource() { 
709                IS retVal = this.getTypedField(14, 0);
710                return retVal;
711    }
712    
713    /**
714     * Returns
715     * PV1-14: "Admit Source" - creates it if necessary
716     */
717    public IS getPv114_AdmitSource() { 
718                IS retVal = this.getTypedField(14, 0);
719                return retVal;
720    }
721
722
723    /**
724     * Returns all repetitions of Ambulatory Status (PV1-15).
725     */
726    public IS[] getAmbulatoryStatus() {
727        IS[] retVal = this.getTypedField(15, new IS[0]);
728        return retVal;
729    }
730
731
732    /**
733     * Returns all repetitions of Ambulatory Status (PV1-15).
734     */
735    public IS[] getPv115_AmbulatoryStatus() {
736        IS[] retVal = this.getTypedField(15, new IS[0]);
737        return retVal;
738    }
739
740
741    /**
742     * Returns a count of the current number of repetitions of Ambulatory Status (PV1-15).
743     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
744     * it will return zero.
745     */
746    public int getAmbulatoryStatusReps() {
747        return this.getReps(15);
748    }
749
750
751    /**
752     * Returns a specific repetition of
753     * PV1-15: "Ambulatory Status" - creates it if necessary
754     *
755     * @param rep The repetition index (0-indexed)
756     */
757    public IS getAmbulatoryStatus(int rep) { 
758                IS retVal = this.getTypedField(15, rep);
759                return retVal;
760    }
761
762    /**
763     * Returns a specific repetition of
764     * PV1-15: "Ambulatory Status" - creates it if necessary
765     *
766     * @param rep The repetition index (0-indexed)
767     */
768    public IS getPv115_AmbulatoryStatus(int rep) { 
769                IS retVal = this.getTypedField(15, rep);
770                return retVal;
771    }
772
773    /**
774     * Returns a count of the current number of repetitions of Ambulatory Status (PV1-15).
775     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
776     * it will return zero.
777     */
778    public int getPv115_AmbulatoryStatusReps() {
779        return this.getReps(15);
780    }
781
782
783    /**
784     * Inserts a repetition of
785     * PV1-15: "Ambulatory Status" at a specific index
786     *
787     * @param rep The repetition index (0-indexed)
788     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
789     */
790    public IS insertAmbulatoryStatus(int rep) throws HL7Exception { 
791        return (IS) super.insertRepetition(15, rep);
792    }
793
794
795    /**
796     * Inserts a repetition of
797     * PV1-15: "Ambulatory Status" at a specific index
798     *
799     * @param rep The repetition index (0-indexed)
800     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
801     */
802    public IS insertPv115_AmbulatoryStatus(int rep) throws HL7Exception { 
803        return (IS) super.insertRepetition(15, rep);
804    }
805
806
807    /**
808     * Removes a repetition of
809     * PV1-15: "Ambulatory Status" at a specific index
810     *
811     * @param rep The repetition index (0-indexed)
812     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
813     */
814    public IS removeAmbulatoryStatus(int rep) throws HL7Exception { 
815        return (IS) super.removeRepetition(15, rep);
816    }
817
818
819    /**
820     * Removes a repetition of
821     * PV1-15: "Ambulatory Status" at a specific index
822     *
823     * @param rep The repetition index (0-indexed)
824     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
825     */
826    public IS removePv115_AmbulatoryStatus(int rep) throws HL7Exception { 
827        return (IS) super.removeRepetition(15, rep);
828    }
829
830
831
832
833    /**
834     * Returns
835     * PV1-16: "VIP Indicator" - creates it if necessary
836     */
837    public IS getVIPIndicator() { 
838                IS retVal = this.getTypedField(16, 0);
839                return retVal;
840    }
841    
842    /**
843     * Returns
844     * PV1-16: "VIP Indicator" - creates it if necessary
845     */
846    public IS getPv116_VIPIndicator() { 
847                IS retVal = this.getTypedField(16, 0);
848                return retVal;
849    }
850
851
852    /**
853     * Returns all repetitions of Admitting Doctor (PV1-17).
854     */
855    public XCN[] getAdmittingDoctor() {
856        XCN[] retVal = this.getTypedField(17, new XCN[0]);
857        return retVal;
858    }
859
860
861    /**
862     * Returns all repetitions of Admitting Doctor (PV1-17).
863     */
864    public XCN[] getPv117_AdmittingDoctor() {
865        XCN[] retVal = this.getTypedField(17, new XCN[0]);
866        return retVal;
867    }
868
869
870    /**
871     * Returns a count of the current number of repetitions of Admitting Doctor (PV1-17).
872     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
873     * it will return zero.
874     */
875    public int getAdmittingDoctorReps() {
876        return this.getReps(17);
877    }
878
879
880    /**
881     * Returns a specific repetition of
882     * PV1-17: "Admitting Doctor" - creates it if necessary
883     *
884     * @param rep The repetition index (0-indexed)
885     */
886    public XCN getAdmittingDoctor(int rep) { 
887                XCN retVal = this.getTypedField(17, rep);
888                return retVal;
889    }
890
891    /**
892     * Returns a specific repetition of
893     * PV1-17: "Admitting Doctor" - creates it if necessary
894     *
895     * @param rep The repetition index (0-indexed)
896     */
897    public XCN getPv117_AdmittingDoctor(int rep) { 
898                XCN retVal = this.getTypedField(17, rep);
899                return retVal;
900    }
901
902    /**
903     * Returns a count of the current number of repetitions of Admitting Doctor (PV1-17).
904     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
905     * it will return zero.
906     */
907    public int getPv117_AdmittingDoctorReps() {
908        return this.getReps(17);
909    }
910
911
912    /**
913     * Inserts a repetition of
914     * PV1-17: "Admitting Doctor" at a specific index
915     *
916     * @param rep The repetition index (0-indexed)
917     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
918     */
919    public XCN insertAdmittingDoctor(int rep) throws HL7Exception { 
920        return (XCN) super.insertRepetition(17, rep);
921    }
922
923
924    /**
925     * Inserts a repetition of
926     * PV1-17: "Admitting Doctor" at a specific index
927     *
928     * @param rep The repetition index (0-indexed)
929     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
930     */
931    public XCN insertPv117_AdmittingDoctor(int rep) throws HL7Exception { 
932        return (XCN) super.insertRepetition(17, rep);
933    }
934
935
936    /**
937     * Removes a repetition of
938     * PV1-17: "Admitting Doctor" at a specific index
939     *
940     * @param rep The repetition index (0-indexed)
941     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
942     */
943    public XCN removeAdmittingDoctor(int rep) throws HL7Exception { 
944        return (XCN) super.removeRepetition(17, rep);
945    }
946
947
948    /**
949     * Removes a repetition of
950     * PV1-17: "Admitting Doctor" at a specific index
951     *
952     * @param rep The repetition index (0-indexed)
953     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
954     */
955    public XCN removePv117_AdmittingDoctor(int rep) throws HL7Exception { 
956        return (XCN) super.removeRepetition(17, rep);
957    }
958
959
960
961
962    /**
963     * Returns
964     * PV1-18: "Patient Type" - creates it if necessary
965     */
966    public IS getPatientType() { 
967                IS retVal = this.getTypedField(18, 0);
968                return retVal;
969    }
970    
971    /**
972     * Returns
973     * PV1-18: "Patient Type" - creates it if necessary
974     */
975    public IS getPv118_PatientType() { 
976                IS retVal = this.getTypedField(18, 0);
977                return retVal;
978    }
979
980
981
982    /**
983     * Returns
984     * PV1-19: "Visit Number" - creates it if necessary
985     */
986    public CX getVisitNumber() { 
987                CX retVal = this.getTypedField(19, 0);
988                return retVal;
989    }
990    
991    /**
992     * Returns
993     * PV1-19: "Visit Number" - creates it if necessary
994     */
995    public CX getPv119_VisitNumber() { 
996                CX retVal = this.getTypedField(19, 0);
997                return retVal;
998    }
999
1000
1001    /**
1002     * Returns all repetitions of Financial Class (PV1-20).
1003     */
1004    public FC[] getFinancialClass() {
1005        FC[] retVal = this.getTypedField(20, new FC[0]);
1006        return retVal;
1007    }
1008
1009
1010    /**
1011     * Returns all repetitions of Financial Class (PV1-20).
1012     */
1013    public FC[] getPv120_FinancialClass() {
1014        FC[] retVal = this.getTypedField(20, new FC[0]);
1015        return retVal;
1016    }
1017
1018
1019    /**
1020     * Returns a count of the current number of repetitions of Financial Class (PV1-20).
1021     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1022     * it will return zero.
1023     */
1024    public int getFinancialClassReps() {
1025        return this.getReps(20);
1026    }
1027
1028
1029    /**
1030     * Returns a specific repetition of
1031     * PV1-20: "Financial Class" - creates it if necessary
1032     *
1033     * @param rep The repetition index (0-indexed)
1034     */
1035    public FC getFinancialClass(int rep) { 
1036                FC retVal = this.getTypedField(20, rep);
1037                return retVal;
1038    }
1039
1040    /**
1041     * Returns a specific repetition of
1042     * PV1-20: "Financial Class" - creates it if necessary
1043     *
1044     * @param rep The repetition index (0-indexed)
1045     */
1046    public FC getPv120_FinancialClass(int rep) { 
1047                FC retVal = this.getTypedField(20, rep);
1048                return retVal;
1049    }
1050
1051    /**
1052     * Returns a count of the current number of repetitions of Financial Class (PV1-20).
1053     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1054     * it will return zero.
1055     */
1056    public int getPv120_FinancialClassReps() {
1057        return this.getReps(20);
1058    }
1059
1060
1061    /**
1062     * Inserts a repetition of
1063     * PV1-20: "Financial Class" at a specific index
1064     *
1065     * @param rep The repetition index (0-indexed)
1066     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1067     */
1068    public FC insertFinancialClass(int rep) throws HL7Exception { 
1069        return (FC) super.insertRepetition(20, rep);
1070    }
1071
1072
1073    /**
1074     * Inserts a repetition of
1075     * PV1-20: "Financial Class" at a specific index
1076     *
1077     * @param rep The repetition index (0-indexed)
1078     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1079     */
1080    public FC insertPv120_FinancialClass(int rep) throws HL7Exception { 
1081        return (FC) super.insertRepetition(20, rep);
1082    }
1083
1084
1085    /**
1086     * Removes a repetition of
1087     * PV1-20: "Financial Class" 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 FC removeFinancialClass(int rep) throws HL7Exception { 
1093        return (FC) super.removeRepetition(20, rep);
1094    }
1095
1096
1097    /**
1098     * Removes a repetition of
1099     * PV1-20: "Financial Class" 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 FC removePv120_FinancialClass(int rep) throws HL7Exception { 
1105        return (FC) super.removeRepetition(20, rep);
1106    }
1107
1108
1109
1110
1111    /**
1112     * Returns
1113     * PV1-21: "Charge Price Indicator" - creates it if necessary
1114     */
1115    public IS getChargePriceIndicator() { 
1116                IS retVal = this.getTypedField(21, 0);
1117                return retVal;
1118    }
1119    
1120    /**
1121     * Returns
1122     * PV1-21: "Charge Price Indicator" - creates it if necessary
1123     */
1124    public IS getPv121_ChargePriceIndicator() { 
1125                IS retVal = this.getTypedField(21, 0);
1126                return retVal;
1127    }
1128
1129
1130
1131    /**
1132     * Returns
1133     * PV1-22: "Courtesy Code" - creates it if necessary
1134     */
1135    public IS getCourtesyCode() { 
1136                IS retVal = this.getTypedField(22, 0);
1137                return retVal;
1138    }
1139    
1140    /**
1141     * Returns
1142     * PV1-22: "Courtesy Code" - creates it if necessary
1143     */
1144    public IS getPv122_CourtesyCode() { 
1145                IS retVal = this.getTypedField(22, 0);
1146                return retVal;
1147    }
1148
1149
1150
1151    /**
1152     * Returns
1153     * PV1-23: "Credit Rating" - creates it if necessary
1154     */
1155    public IS getCreditRating() { 
1156                IS retVal = this.getTypedField(23, 0);
1157                return retVal;
1158    }
1159    
1160    /**
1161     * Returns
1162     * PV1-23: "Credit Rating" - creates it if necessary
1163     */
1164    public IS getPv123_CreditRating() { 
1165                IS retVal = this.getTypedField(23, 0);
1166                return retVal;
1167    }
1168
1169
1170    /**
1171     * Returns all repetitions of Contract Code (PV1-24).
1172     */
1173    public IS[] getContractCode() {
1174        IS[] retVal = this.getTypedField(24, new IS[0]);
1175        return retVal;
1176    }
1177
1178
1179    /**
1180     * Returns all repetitions of Contract Code (PV1-24).
1181     */
1182    public IS[] getPv124_ContractCode() {
1183        IS[] retVal = this.getTypedField(24, new IS[0]);
1184        return retVal;
1185    }
1186
1187
1188    /**
1189     * Returns a count of the current number of repetitions of Contract Code (PV1-24).
1190     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1191     * it will return zero.
1192     */
1193    public int getContractCodeReps() {
1194        return this.getReps(24);
1195    }
1196
1197
1198    /**
1199     * Returns a specific repetition of
1200     * PV1-24: "Contract Code" - creates it if necessary
1201     *
1202     * @param rep The repetition index (0-indexed)
1203     */
1204    public IS getContractCode(int rep) { 
1205                IS retVal = this.getTypedField(24, rep);
1206                return retVal;
1207    }
1208
1209    /**
1210     * Returns a specific repetition of
1211     * PV1-24: "Contract Code" - creates it if necessary
1212     *
1213     * @param rep The repetition index (0-indexed)
1214     */
1215    public IS getPv124_ContractCode(int rep) { 
1216                IS retVal = this.getTypedField(24, rep);
1217                return retVal;
1218    }
1219
1220    /**
1221     * Returns a count of the current number of repetitions of Contract Code (PV1-24).
1222     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1223     * it will return zero.
1224     */
1225    public int getPv124_ContractCodeReps() {
1226        return this.getReps(24);
1227    }
1228
1229
1230    /**
1231     * Inserts a repetition of
1232     * PV1-24: "Contract Code" 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 IS insertContractCode(int rep) throws HL7Exception { 
1238        return (IS) super.insertRepetition(24, rep);
1239    }
1240
1241
1242    /**
1243     * Inserts a repetition of
1244     * PV1-24: "Contract Code" at a specific index
1245     *
1246     * @param rep The repetition index (0-indexed)
1247     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1248     */
1249    public IS insertPv124_ContractCode(int rep) throws HL7Exception { 
1250        return (IS) super.insertRepetition(24, rep);
1251    }
1252
1253
1254    /**
1255     * Removes a repetition of
1256     * PV1-24: "Contract Code" at a specific index
1257     *
1258     * @param rep The repetition index (0-indexed)
1259     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1260     */
1261    public IS removeContractCode(int rep) throws HL7Exception { 
1262        return (IS) super.removeRepetition(24, rep);
1263    }
1264
1265
1266    /**
1267     * Removes a repetition of
1268     * PV1-24: "Contract Code" at a specific index
1269     *
1270     * @param rep The repetition index (0-indexed)
1271     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1272     */
1273    public IS removePv124_ContractCode(int rep) throws HL7Exception { 
1274        return (IS) super.removeRepetition(24, rep);
1275    }
1276
1277
1278
1279    /**
1280     * Returns all repetitions of Contract Effective Date (PV1-25).
1281     */
1282    public DT[] getContractEffectiveDate() {
1283        DT[] retVal = this.getTypedField(25, new DT[0]);
1284        return retVal;
1285    }
1286
1287
1288    /**
1289     * Returns all repetitions of Contract Effective Date (PV1-25).
1290     */
1291    public DT[] getPv125_ContractEffectiveDate() {
1292        DT[] retVal = this.getTypedField(25, new DT[0]);
1293        return retVal;
1294    }
1295
1296
1297    /**
1298     * Returns a count of the current number of repetitions of Contract Effective Date (PV1-25).
1299     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1300     * it will return zero.
1301     */
1302    public int getContractEffectiveDateReps() {
1303        return this.getReps(25);
1304    }
1305
1306
1307    /**
1308     * Returns a specific repetition of
1309     * PV1-25: "Contract Effective Date" - creates it if necessary
1310     *
1311     * @param rep The repetition index (0-indexed)
1312     */
1313    public DT getContractEffectiveDate(int rep) { 
1314                DT retVal = this.getTypedField(25, rep);
1315                return retVal;
1316    }
1317
1318    /**
1319     * Returns a specific repetition of
1320     * PV1-25: "Contract Effective Date" - creates it if necessary
1321     *
1322     * @param rep The repetition index (0-indexed)
1323     */
1324    public DT getPv125_ContractEffectiveDate(int rep) { 
1325                DT retVal = this.getTypedField(25, rep);
1326                return retVal;
1327    }
1328
1329    /**
1330     * Returns a count of the current number of repetitions of Contract Effective Date (PV1-25).
1331     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1332     * it will return zero.
1333     */
1334    public int getPv125_ContractEffectiveDateReps() {
1335        return this.getReps(25);
1336    }
1337
1338
1339    /**
1340     * Inserts a repetition of
1341     * PV1-25: "Contract Effective Date" 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 DT insertContractEffectiveDate(int rep) throws HL7Exception { 
1347        return (DT) super.insertRepetition(25, rep);
1348    }
1349
1350
1351    /**
1352     * Inserts a repetition of
1353     * PV1-25: "Contract Effective Date" at a specific index
1354     *
1355     * @param rep The repetition index (0-indexed)
1356     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1357     */
1358    public DT insertPv125_ContractEffectiveDate(int rep) throws HL7Exception { 
1359        return (DT) super.insertRepetition(25, rep);
1360    }
1361
1362
1363    /**
1364     * Removes a repetition of
1365     * PV1-25: "Contract Effective Date" at a specific index
1366     *
1367     * @param rep The repetition index (0-indexed)
1368     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1369     */
1370    public DT removeContractEffectiveDate(int rep) throws HL7Exception { 
1371        return (DT) super.removeRepetition(25, rep);
1372    }
1373
1374
1375    /**
1376     * Removes a repetition of
1377     * PV1-25: "Contract Effective Date" at a specific index
1378     *
1379     * @param rep The repetition index (0-indexed)
1380     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1381     */
1382    public DT removePv125_ContractEffectiveDate(int rep) throws HL7Exception { 
1383        return (DT) super.removeRepetition(25, rep);
1384    }
1385
1386
1387
1388    /**
1389     * Returns all repetitions of Contract Amount (PV1-26).
1390     */
1391    public NM[] getContractAmount() {
1392        NM[] retVal = this.getTypedField(26, new NM[0]);
1393        return retVal;
1394    }
1395
1396
1397    /**
1398     * Returns all repetitions of Contract Amount (PV1-26).
1399     */
1400    public NM[] getPv126_ContractAmount() {
1401        NM[] retVal = this.getTypedField(26, new NM[0]);
1402        return retVal;
1403    }
1404
1405
1406    /**
1407     * Returns a count of the current number of repetitions of Contract Amount (PV1-26).
1408     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1409     * it will return zero.
1410     */
1411    public int getContractAmountReps() {
1412        return this.getReps(26);
1413    }
1414
1415
1416    /**
1417     * Returns a specific repetition of
1418     * PV1-26: "Contract Amount" - creates it if necessary
1419     *
1420     * @param rep The repetition index (0-indexed)
1421     */
1422    public NM getContractAmount(int rep) { 
1423                NM retVal = this.getTypedField(26, rep);
1424                return retVal;
1425    }
1426
1427    /**
1428     * Returns a specific repetition of
1429     * PV1-26: "Contract Amount" - creates it if necessary
1430     *
1431     * @param rep The repetition index (0-indexed)
1432     */
1433    public NM getPv126_ContractAmount(int rep) { 
1434                NM retVal = this.getTypedField(26, rep);
1435                return retVal;
1436    }
1437
1438    /**
1439     * Returns a count of the current number of repetitions of Contract Amount (PV1-26).
1440     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1441     * it will return zero.
1442     */
1443    public int getPv126_ContractAmountReps() {
1444        return this.getReps(26);
1445    }
1446
1447
1448    /**
1449     * Inserts a repetition of
1450     * PV1-26: "Contract Amount" 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 NM insertContractAmount(int rep) throws HL7Exception { 
1456        return (NM) super.insertRepetition(26, rep);
1457    }
1458
1459
1460    /**
1461     * Inserts a repetition of
1462     * PV1-26: "Contract Amount" at a specific index
1463     *
1464     * @param rep The repetition index (0-indexed)
1465     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1466     */
1467    public NM insertPv126_ContractAmount(int rep) throws HL7Exception { 
1468        return (NM) super.insertRepetition(26, rep);
1469    }
1470
1471
1472    /**
1473     * Removes a repetition of
1474     * PV1-26: "Contract Amount" at a specific index
1475     *
1476     * @param rep The repetition index (0-indexed)
1477     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1478     */
1479    public NM removeContractAmount(int rep) throws HL7Exception { 
1480        return (NM) super.removeRepetition(26, rep);
1481    }
1482
1483
1484    /**
1485     * Removes a repetition of
1486     * PV1-26: "Contract Amount" at a specific index
1487     *
1488     * @param rep The repetition index (0-indexed)
1489     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1490     */
1491    public NM removePv126_ContractAmount(int rep) throws HL7Exception { 
1492        return (NM) super.removeRepetition(26, rep);
1493    }
1494
1495
1496
1497    /**
1498     * Returns all repetitions of Contract Period (PV1-27).
1499     */
1500    public NM[] getContractPeriod() {
1501        NM[] retVal = this.getTypedField(27, new NM[0]);
1502        return retVal;
1503    }
1504
1505
1506    /**
1507     * Returns all repetitions of Contract Period (PV1-27).
1508     */
1509    public NM[] getPv127_ContractPeriod() {
1510        NM[] retVal = this.getTypedField(27, new NM[0]);
1511        return retVal;
1512    }
1513
1514
1515    /**
1516     * Returns a count of the current number of repetitions of Contract Period (PV1-27).
1517     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1518     * it will return zero.
1519     */
1520    public int getContractPeriodReps() {
1521        return this.getReps(27);
1522    }
1523
1524
1525    /**
1526     * Returns a specific repetition of
1527     * PV1-27: "Contract Period" - creates it if necessary
1528     *
1529     * @param rep The repetition index (0-indexed)
1530     */
1531    public NM getContractPeriod(int rep) { 
1532                NM retVal = this.getTypedField(27, rep);
1533                return retVal;
1534    }
1535
1536    /**
1537     * Returns a specific repetition of
1538     * PV1-27: "Contract Period" - creates it if necessary
1539     *
1540     * @param rep The repetition index (0-indexed)
1541     */
1542    public NM getPv127_ContractPeriod(int rep) { 
1543                NM retVal = this.getTypedField(27, rep);
1544                return retVal;
1545    }
1546
1547    /**
1548     * Returns a count of the current number of repetitions of Contract Period (PV1-27).
1549     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1550     * it will return zero.
1551     */
1552    public int getPv127_ContractPeriodReps() {
1553        return this.getReps(27);
1554    }
1555
1556
1557    /**
1558     * Inserts a repetition of
1559     * PV1-27: "Contract Period" 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 NM insertContractPeriod(int rep) throws HL7Exception { 
1565        return (NM) super.insertRepetition(27, rep);
1566    }
1567
1568
1569    /**
1570     * Inserts a repetition of
1571     * PV1-27: "Contract Period" at a specific index
1572     *
1573     * @param rep The repetition index (0-indexed)
1574     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1575     */
1576    public NM insertPv127_ContractPeriod(int rep) throws HL7Exception { 
1577        return (NM) super.insertRepetition(27, rep);
1578    }
1579
1580
1581    /**
1582     * Removes a repetition of
1583     * PV1-27: "Contract Period" at a specific index
1584     *
1585     * @param rep The repetition index (0-indexed)
1586     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1587     */
1588    public NM removeContractPeriod(int rep) throws HL7Exception { 
1589        return (NM) super.removeRepetition(27, rep);
1590    }
1591
1592
1593    /**
1594     * Removes a repetition of
1595     * PV1-27: "Contract Period" at a specific index
1596     *
1597     * @param rep The repetition index (0-indexed)
1598     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1599     */
1600    public NM removePv127_ContractPeriod(int rep) throws HL7Exception { 
1601        return (NM) super.removeRepetition(27, rep);
1602    }
1603
1604
1605
1606
1607    /**
1608     * Returns
1609     * PV1-28: "Interest Code" - creates it if necessary
1610     */
1611    public IS getInterestCode() { 
1612                IS retVal = this.getTypedField(28, 0);
1613                return retVal;
1614    }
1615    
1616    /**
1617     * Returns
1618     * PV1-28: "Interest Code" - creates it if necessary
1619     */
1620    public IS getPv128_InterestCode() { 
1621                IS retVal = this.getTypedField(28, 0);
1622                return retVal;
1623    }
1624
1625
1626
1627    /**
1628     * Returns
1629     * PV1-29: "Transfer to Bad Debt Code" - creates it if necessary
1630     */
1631    public IS getTransferToBadDebtCode() { 
1632                IS retVal = this.getTypedField(29, 0);
1633                return retVal;
1634    }
1635    
1636    /**
1637     * Returns
1638     * PV1-29: "Transfer to Bad Debt Code" - creates it if necessary
1639     */
1640    public IS getPv129_TransferToBadDebtCode() { 
1641                IS retVal = this.getTypedField(29, 0);
1642                return retVal;
1643    }
1644
1645
1646
1647    /**
1648     * Returns
1649     * PV1-30: "Transfer to Bad Debt Date" - creates it if necessary
1650     */
1651    public DT getTransferToBadDebtDate() { 
1652                DT retVal = this.getTypedField(30, 0);
1653                return retVal;
1654    }
1655    
1656    /**
1657     * Returns
1658     * PV1-30: "Transfer to Bad Debt Date" - creates it if necessary
1659     */
1660    public DT getPv130_TransferToBadDebtDate() { 
1661                DT retVal = this.getTypedField(30, 0);
1662                return retVal;
1663    }
1664
1665
1666
1667    /**
1668     * Returns
1669     * PV1-31: "Bad Debt Agency Code" - creates it if necessary
1670     */
1671    public IS getBadDebtAgencyCode() { 
1672                IS retVal = this.getTypedField(31, 0);
1673                return retVal;
1674    }
1675    
1676    /**
1677     * Returns
1678     * PV1-31: "Bad Debt Agency Code" - creates it if necessary
1679     */
1680    public IS getPv131_BadDebtAgencyCode() { 
1681                IS retVal = this.getTypedField(31, 0);
1682                return retVal;
1683    }
1684
1685
1686
1687    /**
1688     * Returns
1689     * PV1-32: "Bad Debt Transfer Amount" - creates it if necessary
1690     */
1691    public NM getBadDebtTransferAmount() { 
1692                NM retVal = this.getTypedField(32, 0);
1693                return retVal;
1694    }
1695    
1696    /**
1697     * Returns
1698     * PV1-32: "Bad Debt Transfer Amount" - creates it if necessary
1699     */
1700    public NM getPv132_BadDebtTransferAmount() { 
1701                NM retVal = this.getTypedField(32, 0);
1702                return retVal;
1703    }
1704
1705
1706
1707    /**
1708     * Returns
1709     * PV1-33: "Bad Debt Recovery Amount" - creates it if necessary
1710     */
1711    public NM getBadDebtRecoveryAmount() { 
1712                NM retVal = this.getTypedField(33, 0);
1713                return retVal;
1714    }
1715    
1716    /**
1717     * Returns
1718     * PV1-33: "Bad Debt Recovery Amount" - creates it if necessary
1719     */
1720    public NM getPv133_BadDebtRecoveryAmount() { 
1721                NM retVal = this.getTypedField(33, 0);
1722                return retVal;
1723    }
1724
1725
1726
1727    /**
1728     * Returns
1729     * PV1-34: "Delete Account Indicator" - creates it if necessary
1730     */
1731    public IS getDeleteAccountIndicator() { 
1732                IS retVal = this.getTypedField(34, 0);
1733                return retVal;
1734    }
1735    
1736    /**
1737     * Returns
1738     * PV1-34: "Delete Account Indicator" - creates it if necessary
1739     */
1740    public IS getPv134_DeleteAccountIndicator() { 
1741                IS retVal = this.getTypedField(34, 0);
1742                return retVal;
1743    }
1744
1745
1746
1747    /**
1748     * Returns
1749     * PV1-35: "Delete Account Date" - creates it if necessary
1750     */
1751    public DT getDeleteAccountDate() { 
1752                DT retVal = this.getTypedField(35, 0);
1753                return retVal;
1754    }
1755    
1756    /**
1757     * Returns
1758     * PV1-35: "Delete Account Date" - creates it if necessary
1759     */
1760    public DT getPv135_DeleteAccountDate() { 
1761                DT retVal = this.getTypedField(35, 0);
1762                return retVal;
1763    }
1764
1765
1766
1767    /**
1768     * Returns
1769     * PV1-36: "Discharge Disposition" - creates it if necessary
1770     */
1771    public IS getDischargeDisposition() { 
1772                IS retVal = this.getTypedField(36, 0);
1773                return retVal;
1774    }
1775    
1776    /**
1777     * Returns
1778     * PV1-36: "Discharge Disposition" - creates it if necessary
1779     */
1780    public IS getPv136_DischargeDisposition() { 
1781                IS retVal = this.getTypedField(36, 0);
1782                return retVal;
1783    }
1784
1785
1786
1787    /**
1788     * Returns
1789     * PV1-37: "Discharged to Location" - creates it if necessary
1790     */
1791    public DLD getDischargedToLocation() { 
1792                DLD retVal = this.getTypedField(37, 0);
1793                return retVal;
1794    }
1795    
1796    /**
1797     * Returns
1798     * PV1-37: "Discharged to Location" - creates it if necessary
1799     */
1800    public DLD getPv137_DischargedToLocation() { 
1801                DLD retVal = this.getTypedField(37, 0);
1802                return retVal;
1803    }
1804
1805
1806
1807    /**
1808     * Returns
1809     * PV1-38: "Diet Type" - creates it if necessary
1810     */
1811    public CWE getDietType() { 
1812                CWE retVal = this.getTypedField(38, 0);
1813                return retVal;
1814    }
1815    
1816    /**
1817     * Returns
1818     * PV1-38: "Diet Type" - creates it if necessary
1819     */
1820    public CWE getPv138_DietType() { 
1821                CWE retVal = this.getTypedField(38, 0);
1822                return retVal;
1823    }
1824
1825
1826
1827    /**
1828     * Returns
1829     * PV1-39: "Servicing Facility" - creates it if necessary
1830     */
1831    public IS getServicingFacility() { 
1832                IS retVal = this.getTypedField(39, 0);
1833                return retVal;
1834    }
1835    
1836    /**
1837     * Returns
1838     * PV1-39: "Servicing Facility" - creates it if necessary
1839     */
1840    public IS getPv139_ServicingFacility() { 
1841                IS retVal = this.getTypedField(39, 0);
1842                return retVal;
1843    }
1844
1845
1846
1847    /**
1848     * Returns
1849     * PV1-40: "Bed Status" - creates it if necessary
1850     */
1851    public IS getBedStatus() { 
1852                IS retVal = this.getTypedField(40, 0);
1853                return retVal;
1854    }
1855    
1856    /**
1857     * Returns
1858     * PV1-40: "Bed Status" - creates it if necessary
1859     */
1860    public IS getPv140_BedStatus() { 
1861                IS retVal = this.getTypedField(40, 0);
1862                return retVal;
1863    }
1864
1865
1866
1867    /**
1868     * Returns
1869     * PV1-41: "Account Status" - creates it if necessary
1870     */
1871    public IS getAccountStatus() { 
1872                IS retVal = this.getTypedField(41, 0);
1873                return retVal;
1874    }
1875    
1876    /**
1877     * Returns
1878     * PV1-41: "Account Status" - creates it if necessary
1879     */
1880    public IS getPv141_AccountStatus() { 
1881                IS retVal = this.getTypedField(41, 0);
1882                return retVal;
1883    }
1884
1885
1886
1887    /**
1888     * Returns
1889     * PV1-42: "Pending Location" - creates it if necessary
1890     */
1891    public PL getPendingLocation() { 
1892                PL retVal = this.getTypedField(42, 0);
1893                return retVal;
1894    }
1895    
1896    /**
1897     * Returns
1898     * PV1-42: "Pending Location" - creates it if necessary
1899     */
1900    public PL getPv142_PendingLocation() { 
1901                PL retVal = this.getTypedField(42, 0);
1902                return retVal;
1903    }
1904
1905
1906
1907    /**
1908     * Returns
1909     * PV1-43: "Prior Temporary Location" - creates it if necessary
1910     */
1911    public PL getPriorTemporaryLocation() { 
1912                PL retVal = this.getTypedField(43, 0);
1913                return retVal;
1914    }
1915    
1916    /**
1917     * Returns
1918     * PV1-43: "Prior Temporary Location" - creates it if necessary
1919     */
1920    public PL getPv143_PriorTemporaryLocation() { 
1921                PL retVal = this.getTypedField(43, 0);
1922                return retVal;
1923    }
1924
1925
1926
1927    /**
1928     * Returns
1929     * PV1-44: "Admit Date/Time" - creates it if necessary
1930     */
1931    public DTM getAdmitDateTime() { 
1932                DTM retVal = this.getTypedField(44, 0);
1933                return retVal;
1934    }
1935    
1936    /**
1937     * Returns
1938     * PV1-44: "Admit Date/Time" - creates it if necessary
1939     */
1940    public DTM getPv144_AdmitDateTime() { 
1941                DTM retVal = this.getTypedField(44, 0);
1942                return retVal;
1943    }
1944
1945
1946
1947    /**
1948     * Returns
1949     * PV1-45: "Discharge Date/Time" - creates it if necessary
1950     */
1951    public DTM getDischargeDateTime() { 
1952                DTM retVal = this.getTypedField(45, 0);
1953                return retVal;
1954    }
1955    
1956    /**
1957     * Returns
1958     * PV1-45: "Discharge Date/Time" - creates it if necessary
1959     */
1960    public DTM getPv145_DischargeDateTime() { 
1961                DTM retVal = this.getTypedField(45, 0);
1962                return retVal;
1963    }
1964
1965
1966
1967    /**
1968     * Returns
1969     * PV1-46: "Current Patient Balance" - creates it if necessary
1970     */
1971    public NM getCurrentPatientBalance() { 
1972                NM retVal = this.getTypedField(46, 0);
1973                return retVal;
1974    }
1975    
1976    /**
1977     * Returns
1978     * PV1-46: "Current Patient Balance" - creates it if necessary
1979     */
1980    public NM getPv146_CurrentPatientBalance() { 
1981                NM retVal = this.getTypedField(46, 0);
1982                return retVal;
1983    }
1984
1985
1986
1987    /**
1988     * Returns
1989     * PV1-47: "Total Charges" - creates it if necessary
1990     */
1991    public NM getTotalCharges() { 
1992                NM retVal = this.getTypedField(47, 0);
1993                return retVal;
1994    }
1995    
1996    /**
1997     * Returns
1998     * PV1-47: "Total Charges" - creates it if necessary
1999     */
2000    public NM getPv147_TotalCharges() { 
2001                NM retVal = this.getTypedField(47, 0);
2002                return retVal;
2003    }
2004
2005
2006
2007    /**
2008     * Returns
2009     * PV1-48: "Total Adjustments" - creates it if necessary
2010     */
2011    public NM getTotalAdjustments() { 
2012                NM retVal = this.getTypedField(48, 0);
2013                return retVal;
2014    }
2015    
2016    /**
2017     * Returns
2018     * PV1-48: "Total Adjustments" - creates it if necessary
2019     */
2020    public NM getPv148_TotalAdjustments() { 
2021                NM retVal = this.getTypedField(48, 0);
2022                return retVal;
2023    }
2024
2025
2026
2027    /**
2028     * Returns
2029     * PV1-49: "Total Payments" - creates it if necessary
2030     */
2031    public NM getTotalPayments() { 
2032                NM retVal = this.getTypedField(49, 0);
2033                return retVal;
2034    }
2035    
2036    /**
2037     * Returns
2038     * PV1-49: "Total Payments" - creates it if necessary
2039     */
2040    public NM getPv149_TotalPayments() { 
2041                NM retVal = this.getTypedField(49, 0);
2042                return retVal;
2043    }
2044
2045
2046
2047    /**
2048     * Returns
2049     * PV1-50: "Alternate Visit ID" - creates it if necessary
2050     */
2051    public CX getAlternateVisitID() { 
2052                CX retVal = this.getTypedField(50, 0);
2053                return retVal;
2054    }
2055    
2056    /**
2057     * Returns
2058     * PV1-50: "Alternate Visit ID" - creates it if necessary
2059     */
2060    public CX getPv150_AlternateVisitID() { 
2061                CX retVal = this.getTypedField(50, 0);
2062                return retVal;
2063    }
2064
2065
2066
2067    /**
2068     * Returns
2069     * PV1-51: "Visit Indicator" - creates it if necessary
2070     */
2071    public IS getVisitIndicator() { 
2072                IS retVal = this.getTypedField(51, 0);
2073                return retVal;
2074    }
2075    
2076    /**
2077     * Returns
2078     * PV1-51: "Visit Indicator" - creates it if necessary
2079     */
2080    public IS getPv151_VisitIndicator() { 
2081                IS retVal = this.getTypedField(51, 0);
2082                return retVal;
2083    }
2084
2085
2086    /**
2087     * Returns all repetitions of Other Healthcare Provider (PV1-52).
2088     */
2089    public XCN[] getOtherHealthcareProvider() {
2090        XCN[] retVal = this.getTypedField(52, new XCN[0]);
2091        return retVal;
2092    }
2093
2094
2095    /**
2096     * Returns all repetitions of Other Healthcare Provider (PV1-52).
2097     */
2098    public XCN[] getPv152_OtherHealthcareProvider() {
2099        XCN[] retVal = this.getTypedField(52, new XCN[0]);
2100        return retVal;
2101    }
2102
2103
2104    /**
2105     * Returns a count of the current number of repetitions of Other Healthcare Provider (PV1-52).
2106     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2107     * it will return zero.
2108     */
2109    public int getOtherHealthcareProviderReps() {
2110        return this.getReps(52);
2111    }
2112
2113
2114    /**
2115     * Returns a specific repetition of
2116     * PV1-52: "Other Healthcare Provider" - creates it if necessary
2117     *
2118     * @param rep The repetition index (0-indexed)
2119     */
2120    public XCN getOtherHealthcareProvider(int rep) { 
2121                XCN retVal = this.getTypedField(52, rep);
2122                return retVal;
2123    }
2124
2125    /**
2126     * Returns a specific repetition of
2127     * PV1-52: "Other Healthcare Provider" - creates it if necessary
2128     *
2129     * @param rep The repetition index (0-indexed)
2130     */
2131    public XCN getPv152_OtherHealthcareProvider(int rep) { 
2132                XCN retVal = this.getTypedField(52, rep);
2133                return retVal;
2134    }
2135
2136    /**
2137     * Returns a count of the current number of repetitions of Other Healthcare Provider (PV1-52).
2138     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
2139     * it will return zero.
2140     */
2141    public int getPv152_OtherHealthcareProviderReps() {
2142        return this.getReps(52);
2143    }
2144
2145
2146    /**
2147     * Inserts a repetition of
2148     * PV1-52: "Other Healthcare Provider" at a specific index
2149     *
2150     * @param rep The repetition index (0-indexed)
2151     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2152     */
2153    public XCN insertOtherHealthcareProvider(int rep) throws HL7Exception { 
2154        return (XCN) super.insertRepetition(52, rep);
2155    }
2156
2157
2158    /**
2159     * Inserts a repetition of
2160     * PV1-52: "Other Healthcare Provider" at a specific index
2161     *
2162     * @param rep The repetition index (0-indexed)
2163     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2164     */
2165    public XCN insertPv152_OtherHealthcareProvider(int rep) throws HL7Exception { 
2166        return (XCN) super.insertRepetition(52, rep);
2167    }
2168
2169
2170    /**
2171     * Removes a repetition of
2172     * PV1-52: "Other Healthcare Provider" at a specific index
2173     *
2174     * @param rep The repetition index (0-indexed)
2175     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2176     */
2177    public XCN removeOtherHealthcareProvider(int rep) throws HL7Exception { 
2178        return (XCN) super.removeRepetition(52, rep);
2179    }
2180
2181
2182    /**
2183     * Removes a repetition of
2184     * PV1-52: "Other Healthcare Provider" at a specific index
2185     *
2186     * @param rep The repetition index (0-indexed)
2187     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
2188     */
2189    public XCN removePv152_OtherHealthcareProvider(int rep) throws HL7Exception { 
2190        return (XCN) super.removeRepetition(52, rep);
2191    }
2192
2193
2194
2195
2196
2197
2198    /** {@inheritDoc} */   
2199    protected Type createNewTypeWithoutReflection(int field) {
2200       switch (field) {
2201          case 0: return new SI(getMessage());
2202          case 1: return new IS(getMessage(), new Integer( 4 ));
2203          case 2: return new PL(getMessage());
2204          case 3: return new IS(getMessage(), new Integer( 7 ));
2205          case 4: return new CX(getMessage());
2206          case 5: return new PL(getMessage());
2207          case 6: return new XCN(getMessage());
2208          case 7: return new XCN(getMessage());
2209          case 8: return new XCN(getMessage());
2210          case 9: return new IS(getMessage(), new Integer( 69 ));
2211          case 10: return new PL(getMessage());
2212          case 11: return new IS(getMessage(), new Integer( 87 ));
2213          case 12: return new IS(getMessage(), new Integer( 92 ));
2214          case 13: return new IS(getMessage(), new Integer( 23 ));
2215          case 14: return new IS(getMessage(), new Integer( 9 ));
2216          case 15: return new IS(getMessage(), new Integer( 99 ));
2217          case 16: return new XCN(getMessage());
2218          case 17: return new IS(getMessage(), new Integer( 18 ));
2219          case 18: return new CX(getMessage());
2220          case 19: return new FC(getMessage());
2221          case 20: return new IS(getMessage(), new Integer( 32 ));
2222          case 21: return new IS(getMessage(), new Integer( 45 ));
2223          case 22: return new IS(getMessage(), new Integer( 46 ));
2224          case 23: return new IS(getMessage(), new Integer( 44 ));
2225          case 24: return new DT(getMessage());
2226          case 25: return new NM(getMessage());
2227          case 26: return new NM(getMessage());
2228          case 27: return new IS(getMessage(), new Integer( 73 ));
2229          case 28: return new IS(getMessage(), new Integer( 110 ));
2230          case 29: return new DT(getMessage());
2231          case 30: return new IS(getMessage(), new Integer( 21 ));
2232          case 31: return new NM(getMessage());
2233          case 32: return new NM(getMessage());
2234          case 33: return new IS(getMessage(), new Integer( 111 ));
2235          case 34: return new DT(getMessage());
2236          case 35: return new IS(getMessage(), new Integer( 112 ));
2237          case 36: return new DLD(getMessage());
2238          case 37: return new CWE(getMessage());
2239          case 38: return new IS(getMessage(), new Integer( 115 ));
2240          case 39: return new IS(getMessage(), new Integer( 116 ));
2241          case 40: return new IS(getMessage(), new Integer( 117 ));
2242          case 41: return new PL(getMessage());
2243          case 42: return new PL(getMessage());
2244          case 43: return new DTM(getMessage());
2245          case 44: return new DTM(getMessage());
2246          case 45: return new NM(getMessage());
2247          case 46: return new NM(getMessage());
2248          case 47: return new NM(getMessage());
2249          case 48: return new NM(getMessage());
2250          case 49: return new CX(getMessage());
2251          case 50: return new IS(getMessage(), new Integer( 326 ));
2252          case 51: return new XCN(getMessage());
2253          default: return null;
2254       }
2255   }
2256
2257
2258}
2259