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.v21.segment;
035
036// import ca.uhn.hl7v2.model.v21.group.*;
037import ca.uhn.hl7v2.model.v21.datatype.*;
038import ca.uhn.hl7v2.HL7Exception;
039import ca.uhn.hl7v2.parser.ModelClassFactory;
040import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
041import ca.uhn.hl7v2.model.AbstractMessage;
042import ca.uhn.hl7v2.model.Group;
043import ca.uhn.hl7v2.model.Type;
044import ca.uhn.hl7v2.model.AbstractSegment;
045import ca.uhn.hl7v2.model.Varies;
046
047
048/**
049 *<p>Represents an HL7 PV1 message segment (PATIENT VISIT). 
050 * This segment has the following fields:</p>
051 * <ul>
052     * <li>PV1-1: SET ID - PATIENT VISIT (SI) <b>optional </b>
053     * <li>PV1-2: PATIENT CLASS (ID) <b> </b>
054     * <li>PV1-3: ASSIGNED PATIENT LOCATION (ID) <b> </b>
055     * <li>PV1-4: ADMISSION TYPE (ID) <b>optional </b>
056     * <li>PV1-5: PRE-ADMIT NUMBER (ST) <b>optional </b>
057     * <li>PV1-6: PRIOR PATIENT LOCATION (ID) <b>optional </b>
058     * <li>PV1-7: ATTENDING DOCTOR (CN) <b>optional </b>
059     * <li>PV1-8: REFERRING DOCTOR (CN) <b>optional </b>
060     * <li>PV1-9: CONSULTING DOCTOR (CN) <b>optional repeating</b>
061     * <li>PV1-10: HOSPITAL SERVICE (ID) <b>optional </b>
062     * <li>PV1-11: TEMPORARY LOCATION (ID) <b>optional </b>
063     * <li>PV1-12: PRE-ADMIT TEST INDICATOR (ID) <b>optional </b>
064     * <li>PV1-13: RE-ADMISSION INDICATOR (ID) <b>optional </b>
065     * <li>PV1-14: ADMIT SOURCE (ID) <b>optional </b>
066     * <li>PV1-15: AMBULATORY STATUS (ID) <b>optional </b>
067     * <li>PV1-16: VIP INDICATOR (ID) <b>optional </b>
068     * <li>PV1-17: ADMITTING DOCTOR (CN) <b>optional </b>
069     * <li>PV1-18: PATIENT TYPE (ID) <b>optional </b>
070     * <li>PV1-19: VISIT NUMBER (NM) <b>optional </b>
071     * <li>PV1-20: FINANCIAL CLASS (ID) <b>optional repeating</b>
072     * <li>PV1-21: CHARGE PRICE INDICATOR (ID) <b>optional </b>
073     * <li>PV1-22: COURTESY CODE (ID) <b>optional </b>
074     * <li>PV1-23: CREDIT RATING (ID) <b>optional </b>
075     * <li>PV1-24: CONTRACT CODE (ID) <b>optional repeating</b>
076     * <li>PV1-25: CONTRACT EFFECTIVE DATE (DT) <b>optional repeating</b>
077     * <li>PV1-26: CONTRACT AMOUNT (NM) <b>optional repeating</b>
078     * <li>PV1-27: CONTRACT PERIOD (NM) <b>optional repeating</b>
079     * <li>PV1-28: INTEREST CODE (ID) <b>optional </b>
080     * <li>PV1-29: TRANSFER TO BAD DEBT CODE (ID) <b>optional </b>
081     * <li>PV1-30: TRANSFER TO BAD DEBT DATE (DT) <b>optional </b>
082     * <li>PV1-31: BAD DEBT AGENCY CODE (ST) <b>optional </b>
083     * <li>PV1-32: BAD DEBT TRANSFER AMOUNT (NM) <b>optional </b>
084     * <li>PV1-33: BAD DEBT RECOVERY AMOUNT (NM) <b>optional </b>
085     * <li>PV1-34: DELETE ACCOUNT INDICATOR (ID) <b>optional </b>
086     * <li>PV1-35: DELETE ACCOUNT DATE (DT) <b>optional </b>
087     * <li>PV1-36: DISCHARGE DISPOSITION (ID) <b>optional </b>
088     * <li>PV1-37: DISCHARGED TO LOCATION (ID) <b>optional </b>
089     * <li>PV1-38: DIET TYPE (ID) <b>optional </b>
090     * <li>PV1-39: SERVICING FACILITY (ID) <b>optional </b>
091     * <li>PV1-40: BED STATUS (ID) <b>optional </b>
092     * <li>PV1-41: ACCOUNT STATUS (ID) <b>optional </b>
093     * <li>PV1-42: PENDING LOCATION (ID) <b>optional </b>
094     * <li>PV1-43: PRIOR TEMPORARY LOCATION (ID) <b>optional </b>
095     * <li>PV1-44: ADMIT DATE/TIME (TS) <b>optional </b>
096     * <li>PV1-45: DISCHARGE DATE/TIME (TS) <b>optional </b>
097     * <li>PV1-46: CURRENT PATIENT BALANCE (NM) <b>optional </b>
098     * <li>PV1-47: TOTAL CHARGES (NM) <b>optional </b>
099     * <li>PV1-48: TOTAL ADJUSTMENTS (NM) <b>optional </b>
100     * <li>PV1-49: TOTAL PAYMENTS (NM) <b>optional </b>
101 * </ul>
102 */
103@SuppressWarnings("unused")
104public class PV1 extends AbstractSegment {
105
106    /** 
107     * Creates a new PV1 segment
108     */
109    public PV1(Group parent, ModelClassFactory factory) {
110       super(parent, factory);
111       init(factory);
112    }
113
114    private void init(ModelClassFactory factory) {
115       try {
116                                  this.add(SI.class, false, 1, 4, new Object[]{ getMessage() }, "SET ID - PATIENT VISIT");
117                                              this.add(ID.class, true, 1, 1, new Object[]{ getMessage(), new Integer(4) }, "PATIENT CLASS");
118                                              this.add(ID.class, true, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "ASSIGNED PATIENT LOCATION");
119                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(7) }, "ADMISSION TYPE");
120                                  this.add(ST.class, false, 1, 20, new Object[]{ getMessage() }, "PRE-ADMIT NUMBER");
121                                              this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "PRIOR PATIENT LOCATION");
122                                  this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "ATTENDING DOCTOR");
123                                  this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "REFERRING DOCTOR");
124                                  this.add(CN.class, false, 0, 60, new Object[]{ getMessage() }, "CONSULTING DOCTOR");
125                                              this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(69) }, "HOSPITAL SERVICE");
126                                              this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "TEMPORARY LOCATION");
127                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(87) }, "PRE-ADMIT TEST INDICATOR");
128                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(92) }, "RE-ADMISSION INDICATOR");
129                                              this.add(ID.class, false, 1, 3, new Object[]{ getMessage(), new Integer(23) }, "ADMIT SOURCE");
130                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(9) }, "AMBULATORY STATUS");
131                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(99) }, "VIP INDICATOR");
132                                  this.add(CN.class, false, 1, 60, new Object[]{ getMessage() }, "ADMITTING DOCTOR");
133                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(18) }, "PATIENT TYPE");
134                                  this.add(NM.class, false, 1, 4, new Object[]{ getMessage() }, "VISIT NUMBER");
135                                              this.add(ID.class, false, 4, 11, new Object[]{ getMessage(), new Integer(64) }, "FINANCIAL CLASS");
136                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(32) }, "CHARGE PRICE INDICATOR");
137                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(45) }, "COURTESY CODE");
138                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(46) }, "CREDIT RATING");
139                                              this.add(ID.class, false, 0, 2, new Object[]{ getMessage(), new Integer(44) }, "CONTRACT CODE");
140                                  this.add(DT.class, false, 0, 8, new Object[]{ getMessage() }, "CONTRACT EFFECTIVE DATE");
141                                  this.add(NM.class, false, 0, 12, new Object[]{ getMessage() }, "CONTRACT AMOUNT");
142                                  this.add(NM.class, false, 0, 3, new Object[]{ getMessage() }, "CONTRACT PERIOD");
143                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(73) }, "INTEREST CODE");
144                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(110) }, "TRANSFER TO BAD DEBT CODE");
145                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "TRANSFER TO BAD DEBT DATE");
146                                  this.add(ST.class, false, 1, 10, new Object[]{ getMessage() }, "BAD DEBT AGENCY CODE");
147                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "BAD DEBT TRANSFER AMOUNT");
148                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "BAD DEBT RECOVERY AMOUNT");
149                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(111) }, "DELETE ACCOUNT INDICATOR");
150                                  this.add(DT.class, false, 1, 8, new Object[]{ getMessage() }, "DELETE ACCOUNT DATE");
151                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(112) }, "DISCHARGE DISPOSITION");
152                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(113) }, "DISCHARGED TO LOCATION");
153                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(114) }, "DIET TYPE");
154                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(115) }, "SERVICING FACILITY");
155                                              this.add(ID.class, false, 1, 1, new Object[]{ getMessage(), new Integer(116) }, "BED STATUS");
156                                              this.add(ID.class, false, 1, 2, new Object[]{ getMessage(), new Integer(117) }, "ACCOUNT STATUS");
157                                              this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "PENDING LOCATION");
158                                              this.add(ID.class, false, 1, 12, new Object[]{ getMessage(), new Integer(79) }, "PRIOR TEMPORARY LOCATION");
159                                  this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "ADMIT DATE/TIME");
160                                  this.add(TS.class, false, 1, 19, new Object[]{ getMessage() }, "DISCHARGE DATE/TIME");
161                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "CURRENT PATIENT BALANCE");
162                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "TOTAL CHARGES");
163                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "TOTAL ADJUSTMENTS");
164                                  this.add(NM.class, false, 1, 12, new Object[]{ getMessage() }, "TOTAL PAYMENTS");
165       } catch(HL7Exception e) {
166          log.error("Unexpected error creating PV1 - this is probably a bug in the source code generator.", e);
167       }
168    }
169
170
171
172    /**
173     * Returns
174     * PV1-1: "SET ID - PATIENT VISIT" - creates it if necessary
175     */
176    public SI getSETIDPATIENTVISIT() { 
177                SI retVal = this.getTypedField(1, 0);
178                return retVal;
179    }
180    
181    /**
182     * Returns
183     * PV1-1: "SET ID - PATIENT VISIT" - creates it if necessary
184     */
185    public SI getPv11_SETIDPATIENTVISIT() { 
186                SI retVal = this.getTypedField(1, 0);
187                return retVal;
188    }
189
190
191
192    /**
193     * Returns
194     * PV1-2: "PATIENT CLASS" - creates it if necessary
195     */
196    public ID getPATIENTCLASS() { 
197                ID retVal = this.getTypedField(2, 0);
198                return retVal;
199    }
200    
201    /**
202     * Returns
203     * PV1-2: "PATIENT CLASS" - creates it if necessary
204     */
205    public ID getPv12_PATIENTCLASS() { 
206                ID retVal = this.getTypedField(2, 0);
207                return retVal;
208    }
209
210
211
212    /**
213     * Returns
214     * PV1-3: "ASSIGNED PATIENT LOCATION" - creates it if necessary
215     */
216    public ID getASSIGNEDPATIENTLOCATION() { 
217                ID retVal = this.getTypedField(3, 0);
218                return retVal;
219    }
220    
221    /**
222     * Returns
223     * PV1-3: "ASSIGNED PATIENT LOCATION" - creates it if necessary
224     */
225    public ID getPv13_ASSIGNEDPATIENTLOCATION() { 
226                ID retVal = this.getTypedField(3, 0);
227                return retVal;
228    }
229
230
231
232    /**
233     * Returns
234     * PV1-4: "ADMISSION TYPE" - creates it if necessary
235     */
236    public ID getADMISSIONTYPE() { 
237                ID retVal = this.getTypedField(4, 0);
238                return retVal;
239    }
240    
241    /**
242     * Returns
243     * PV1-4: "ADMISSION TYPE" - creates it if necessary
244     */
245    public ID getPv14_ADMISSIONTYPE() { 
246                ID retVal = this.getTypedField(4, 0);
247                return retVal;
248    }
249
250
251
252    /**
253     * Returns
254     * PV1-5: "PRE-ADMIT NUMBER" - creates it if necessary
255     */
256    public ST getPREADMITNUMBER() { 
257                ST retVal = this.getTypedField(5, 0);
258                return retVal;
259    }
260    
261    /**
262     * Returns
263     * PV1-5: "PRE-ADMIT NUMBER" - creates it if necessary
264     */
265    public ST getPv15_PREADMITNUMBER() { 
266                ST retVal = this.getTypedField(5, 0);
267                return retVal;
268    }
269
270
271
272    /**
273     * Returns
274     * PV1-6: "PRIOR PATIENT LOCATION" - creates it if necessary
275     */
276    public ID getPRIORPATIENTLOCATION() { 
277                ID retVal = this.getTypedField(6, 0);
278                return retVal;
279    }
280    
281    /**
282     * Returns
283     * PV1-6: "PRIOR PATIENT LOCATION" - creates it if necessary
284     */
285    public ID getPv16_PRIORPATIENTLOCATION() { 
286                ID retVal = this.getTypedField(6, 0);
287                return retVal;
288    }
289
290
291
292    /**
293     * Returns
294     * PV1-7: "ATTENDING DOCTOR" - creates it if necessary
295     */
296    public CN getATTENDINGDOCTOR() { 
297                CN retVal = this.getTypedField(7, 0);
298                return retVal;
299    }
300    
301    /**
302     * Returns
303     * PV1-7: "ATTENDING DOCTOR" - creates it if necessary
304     */
305    public CN getPv17_ATTENDINGDOCTOR() { 
306                CN retVal = this.getTypedField(7, 0);
307                return retVal;
308    }
309
310
311
312    /**
313     * Returns
314     * PV1-8: "REFERRING DOCTOR" - creates it if necessary
315     */
316    public CN getREFERRINGDOCTOR() { 
317                CN retVal = this.getTypedField(8, 0);
318                return retVal;
319    }
320    
321    /**
322     * Returns
323     * PV1-8: "REFERRING DOCTOR" - creates it if necessary
324     */
325    public CN getPv18_REFERRINGDOCTOR() { 
326                CN retVal = this.getTypedField(8, 0);
327                return retVal;
328    }
329
330
331    /**
332     * Returns all repetitions of CONSULTING DOCTOR (PV1-9).
333     */
334    public CN[] getCONSULTINGDOCTOR() {
335        CN[] retVal = this.getTypedField(9, new CN[0]);
336        return retVal;
337    }
338
339
340    /**
341     * Returns all repetitions of CONSULTING DOCTOR (PV1-9).
342     */
343    public CN[] getPv19_CONSULTINGDOCTOR() {
344        CN[] retVal = this.getTypedField(9, new CN[0]);
345        return retVal;
346    }
347
348
349    /**
350     * Returns a count of the current number of repetitions of CONSULTING DOCTOR (PV1-9).
351     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
352     * it will return zero.
353     */
354    public int getCONSULTINGDOCTORReps() {
355        return this.getReps(9);
356    }
357
358
359    /**
360     * Returns a specific repetition of
361     * PV1-9: "CONSULTING DOCTOR" - creates it if necessary
362     *
363     * @param rep The repetition index (0-indexed)
364     */
365    public CN getCONSULTINGDOCTOR(int rep) { 
366                CN retVal = this.getTypedField(9, rep);
367                return retVal;
368    }
369
370    /**
371     * Returns a specific repetition of
372     * PV1-9: "CONSULTING DOCTOR" - creates it if necessary
373     *
374     * @param rep The repetition index (0-indexed)
375     */
376    public CN getPv19_CONSULTINGDOCTOR(int rep) { 
377                CN retVal = this.getTypedField(9, rep);
378                return retVal;
379    }
380
381    /**
382     * Returns a count of the current number of repetitions of CONSULTING DOCTOR (PV1-9).
383     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
384     * it will return zero.
385     */
386    public int getPv19_CONSULTINGDOCTORReps() {
387        return this.getReps(9);
388    }
389
390
391    /**
392     * Inserts a repetition of
393     * PV1-9: "CONSULTING DOCTOR" at a specific index
394     *
395     * @param rep The repetition index (0-indexed)
396     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
397     */
398    public CN insertCONSULTINGDOCTOR(int rep) throws HL7Exception { 
399        return (CN) super.insertRepetition(9, rep);
400    }
401
402
403    /**
404     * Inserts a repetition of
405     * PV1-9: "CONSULTING DOCTOR" at a specific index
406     *
407     * @param rep The repetition index (0-indexed)
408     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
409     */
410    public CN insertPv19_CONSULTINGDOCTOR(int rep) throws HL7Exception { 
411        return (CN) super.insertRepetition(9, rep);
412    }
413
414
415    /**
416     * Removes a repetition of
417     * PV1-9: "CONSULTING DOCTOR" at a specific index
418     *
419     * @param rep The repetition index (0-indexed)
420     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
421     */
422    public CN removeCONSULTINGDOCTOR(int rep) throws HL7Exception { 
423        return (CN) super.removeRepetition(9, rep);
424    }
425
426
427    /**
428     * Removes a repetition of
429     * PV1-9: "CONSULTING DOCTOR" at a specific index
430     *
431     * @param rep The repetition index (0-indexed)
432     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
433     */
434    public CN removePv19_CONSULTINGDOCTOR(int rep) throws HL7Exception { 
435        return (CN) super.removeRepetition(9, rep);
436    }
437
438
439
440
441    /**
442     * Returns
443     * PV1-10: "HOSPITAL SERVICE" - creates it if necessary
444     */
445    public ID getHOSPITALSERVICE() { 
446                ID retVal = this.getTypedField(10, 0);
447                return retVal;
448    }
449    
450    /**
451     * Returns
452     * PV1-10: "HOSPITAL SERVICE" - creates it if necessary
453     */
454    public ID getPv110_HOSPITALSERVICE() { 
455                ID retVal = this.getTypedField(10, 0);
456                return retVal;
457    }
458
459
460
461    /**
462     * Returns
463     * PV1-11: "TEMPORARY LOCATION" - creates it if necessary
464     */
465    public ID getTEMPORARYLOCATION() { 
466                ID retVal = this.getTypedField(11, 0);
467                return retVal;
468    }
469    
470    /**
471     * Returns
472     * PV1-11: "TEMPORARY LOCATION" - creates it if necessary
473     */
474    public ID getPv111_TEMPORARYLOCATION() { 
475                ID retVal = this.getTypedField(11, 0);
476                return retVal;
477    }
478
479
480
481    /**
482     * Returns
483     * PV1-12: "PRE-ADMIT TEST INDICATOR" - creates it if necessary
484     */
485    public ID getPREADMITTESTINDICATOR() { 
486                ID retVal = this.getTypedField(12, 0);
487                return retVal;
488    }
489    
490    /**
491     * Returns
492     * PV1-12: "PRE-ADMIT TEST INDICATOR" - creates it if necessary
493     */
494    public ID getPv112_PREADMITTESTINDICATOR() { 
495                ID retVal = this.getTypedField(12, 0);
496                return retVal;
497    }
498
499
500
501    /**
502     * Returns
503     * PV1-13: "RE-ADMISSION INDICATOR" - creates it if necessary
504     */
505    public ID getREADMISSIONINDICATOR() { 
506                ID retVal = this.getTypedField(13, 0);
507                return retVal;
508    }
509    
510    /**
511     * Returns
512     * PV1-13: "RE-ADMISSION INDICATOR" - creates it if necessary
513     */
514    public ID getPv113_READMISSIONINDICATOR() { 
515                ID retVal = this.getTypedField(13, 0);
516                return retVal;
517    }
518
519
520
521    /**
522     * Returns
523     * PV1-14: "ADMIT SOURCE" - creates it if necessary
524     */
525    public ID getADMITSOURCE() { 
526                ID retVal = this.getTypedField(14, 0);
527                return retVal;
528    }
529    
530    /**
531     * Returns
532     * PV1-14: "ADMIT SOURCE" - creates it if necessary
533     */
534    public ID getPv114_ADMITSOURCE() { 
535                ID retVal = this.getTypedField(14, 0);
536                return retVal;
537    }
538
539
540
541    /**
542     * Returns
543     * PV1-15: "AMBULATORY STATUS" - creates it if necessary
544     */
545    public ID getAMBULATORYSTATUS() { 
546                ID retVal = this.getTypedField(15, 0);
547                return retVal;
548    }
549    
550    /**
551     * Returns
552     * PV1-15: "AMBULATORY STATUS" - creates it if necessary
553     */
554    public ID getPv115_AMBULATORYSTATUS() { 
555                ID retVal = this.getTypedField(15, 0);
556                return retVal;
557    }
558
559
560
561    /**
562     * Returns
563     * PV1-16: "VIP INDICATOR" - creates it if necessary
564     */
565    public ID getVIPINDICATOR() { 
566                ID retVal = this.getTypedField(16, 0);
567                return retVal;
568    }
569    
570    /**
571     * Returns
572     * PV1-16: "VIP INDICATOR" - creates it if necessary
573     */
574    public ID getPv116_VIPINDICATOR() { 
575                ID retVal = this.getTypedField(16, 0);
576                return retVal;
577    }
578
579
580
581    /**
582     * Returns
583     * PV1-17: "ADMITTING DOCTOR" - creates it if necessary
584     */
585    public CN getADMITTINGDOCTOR() { 
586                CN retVal = this.getTypedField(17, 0);
587                return retVal;
588    }
589    
590    /**
591     * Returns
592     * PV1-17: "ADMITTING DOCTOR" - creates it if necessary
593     */
594    public CN getPv117_ADMITTINGDOCTOR() { 
595                CN retVal = this.getTypedField(17, 0);
596                return retVal;
597    }
598
599
600
601    /**
602     * Returns
603     * PV1-18: "PATIENT TYPE" - creates it if necessary
604     */
605    public ID getPATIENTTYPE() { 
606                ID retVal = this.getTypedField(18, 0);
607                return retVal;
608    }
609    
610    /**
611     * Returns
612     * PV1-18: "PATIENT TYPE" - creates it if necessary
613     */
614    public ID getPv118_PATIENTTYPE() { 
615                ID retVal = this.getTypedField(18, 0);
616                return retVal;
617    }
618
619
620
621    /**
622     * Returns
623     * PV1-19: "VISIT NUMBER" - creates it if necessary
624     */
625    public NM getVISITNUMBER() { 
626                NM retVal = this.getTypedField(19, 0);
627                return retVal;
628    }
629    
630    /**
631     * Returns
632     * PV1-19: "VISIT NUMBER" - creates it if necessary
633     */
634    public NM getPv119_VISITNUMBER() { 
635                NM retVal = this.getTypedField(19, 0);
636                return retVal;
637    }
638
639
640    /**
641     * Returns all repetitions of FINANCIAL CLASS (PV1-20).
642     */
643    public ID[] getFINANCIALCLASS() {
644        ID[] retVal = this.getTypedField(20, new ID[0]);
645        return retVal;
646    }
647
648
649    /**
650     * Returns all repetitions of FINANCIAL CLASS (PV1-20).
651     */
652    public ID[] getPv120_FINANCIALCLASS() {
653        ID[] retVal = this.getTypedField(20, new ID[0]);
654        return retVal;
655    }
656
657
658    /**
659     * Returns a count of the current number of repetitions of FINANCIAL CLASS (PV1-20).
660     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
661     * it will return zero.
662     */
663    public int getFINANCIALCLASSReps() {
664        return this.getReps(20);
665    }
666
667
668    /**
669     * Returns a specific repetition of
670     * PV1-20: "FINANCIAL CLASS" - creates it if necessary
671     *
672     * @param rep The repetition index (0-indexed)
673     */
674    public ID getFINANCIALCLASS(int rep) { 
675                ID retVal = this.getTypedField(20, rep);
676                return retVal;
677    }
678
679    /**
680     * Returns a specific repetition of
681     * PV1-20: "FINANCIAL CLASS" - creates it if necessary
682     *
683     * @param rep The repetition index (0-indexed)
684     */
685    public ID getPv120_FINANCIALCLASS(int rep) { 
686                ID retVal = this.getTypedField(20, rep);
687                return retVal;
688    }
689
690    /**
691     * Returns a count of the current number of repetitions of FINANCIAL CLASS (PV1-20).
692     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
693     * it will return zero.
694     */
695    public int getPv120_FINANCIALCLASSReps() {
696        return this.getReps(20);
697    }
698
699
700    /**
701     * Inserts a repetition of
702     * PV1-20: "FINANCIAL CLASS" at a specific index
703     *
704     * @param rep The repetition index (0-indexed)
705     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
706     */
707    public ID insertFINANCIALCLASS(int rep) throws HL7Exception { 
708        return (ID) super.insertRepetition(20, rep);
709    }
710
711
712    /**
713     * Inserts a repetition of
714     * PV1-20: "FINANCIAL CLASS" at a specific index
715     *
716     * @param rep The repetition index (0-indexed)
717     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
718     */
719    public ID insertPv120_FINANCIALCLASS(int rep) throws HL7Exception { 
720        return (ID) super.insertRepetition(20, rep);
721    }
722
723
724    /**
725     * Removes a repetition of
726     * PV1-20: "FINANCIAL CLASS" at a specific index
727     *
728     * @param rep The repetition index (0-indexed)
729     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
730     */
731    public ID removeFINANCIALCLASS(int rep) throws HL7Exception { 
732        return (ID) super.removeRepetition(20, rep);
733    }
734
735
736    /**
737     * Removes a repetition of
738     * PV1-20: "FINANCIAL CLASS" at a specific index
739     *
740     * @param rep The repetition index (0-indexed)
741     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
742     */
743    public ID removePv120_FINANCIALCLASS(int rep) throws HL7Exception { 
744        return (ID) super.removeRepetition(20, rep);
745    }
746
747
748
749
750    /**
751     * Returns
752     * PV1-21: "CHARGE PRICE INDICATOR" - creates it if necessary
753     */
754    public ID getCHARGEPRICEINDICATOR() { 
755                ID retVal = this.getTypedField(21, 0);
756                return retVal;
757    }
758    
759    /**
760     * Returns
761     * PV1-21: "CHARGE PRICE INDICATOR" - creates it if necessary
762     */
763    public ID getPv121_CHARGEPRICEINDICATOR() { 
764                ID retVal = this.getTypedField(21, 0);
765                return retVal;
766    }
767
768
769
770    /**
771     * Returns
772     * PV1-22: "COURTESY CODE" - creates it if necessary
773     */
774    public ID getCOURTESYCODE() { 
775                ID retVal = this.getTypedField(22, 0);
776                return retVal;
777    }
778    
779    /**
780     * Returns
781     * PV1-22: "COURTESY CODE" - creates it if necessary
782     */
783    public ID getPv122_COURTESYCODE() { 
784                ID retVal = this.getTypedField(22, 0);
785                return retVal;
786    }
787
788
789
790    /**
791     * Returns
792     * PV1-23: "CREDIT RATING" - creates it if necessary
793     */
794    public ID getCREDITRATING() { 
795                ID retVal = this.getTypedField(23, 0);
796                return retVal;
797    }
798    
799    /**
800     * Returns
801     * PV1-23: "CREDIT RATING" - creates it if necessary
802     */
803    public ID getPv123_CREDITRATING() { 
804                ID retVal = this.getTypedField(23, 0);
805                return retVal;
806    }
807
808
809    /**
810     * Returns all repetitions of CONTRACT CODE (PV1-24).
811     */
812    public ID[] getCONTRACTCODE() {
813        ID[] retVal = this.getTypedField(24, new ID[0]);
814        return retVal;
815    }
816
817
818    /**
819     * Returns all repetitions of CONTRACT CODE (PV1-24).
820     */
821    public ID[] getPv124_CONTRACTCODE() {
822        ID[] retVal = this.getTypedField(24, new ID[0]);
823        return retVal;
824    }
825
826
827    /**
828     * Returns a count of the current number of repetitions of CONTRACT CODE (PV1-24).
829     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
830     * it will return zero.
831     */
832    public int getCONTRACTCODEReps() {
833        return this.getReps(24);
834    }
835
836
837    /**
838     * Returns a specific repetition of
839     * PV1-24: "CONTRACT CODE" - creates it if necessary
840     *
841     * @param rep The repetition index (0-indexed)
842     */
843    public ID getCONTRACTCODE(int rep) { 
844                ID retVal = this.getTypedField(24, rep);
845                return retVal;
846    }
847
848    /**
849     * Returns a specific repetition of
850     * PV1-24: "CONTRACT CODE" - creates it if necessary
851     *
852     * @param rep The repetition index (0-indexed)
853     */
854    public ID getPv124_CONTRACTCODE(int rep) { 
855                ID retVal = this.getTypedField(24, rep);
856                return retVal;
857    }
858
859    /**
860     * Returns a count of the current number of repetitions of CONTRACT CODE (PV1-24).
861     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
862     * it will return zero.
863     */
864    public int getPv124_CONTRACTCODEReps() {
865        return this.getReps(24);
866    }
867
868
869    /**
870     * Inserts a repetition of
871     * PV1-24: "CONTRACT CODE" at a specific index
872     *
873     * @param rep The repetition index (0-indexed)
874     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
875     */
876    public ID insertCONTRACTCODE(int rep) throws HL7Exception { 
877        return (ID) super.insertRepetition(24, rep);
878    }
879
880
881    /**
882     * Inserts a repetition of
883     * PV1-24: "CONTRACT CODE" at a specific index
884     *
885     * @param rep The repetition index (0-indexed)
886     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
887     */
888    public ID insertPv124_CONTRACTCODE(int rep) throws HL7Exception { 
889        return (ID) super.insertRepetition(24, rep);
890    }
891
892
893    /**
894     * Removes a repetition of
895     * PV1-24: "CONTRACT CODE" at a specific index
896     *
897     * @param rep The repetition index (0-indexed)
898     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
899     */
900    public ID removeCONTRACTCODE(int rep) throws HL7Exception { 
901        return (ID) super.removeRepetition(24, rep);
902    }
903
904
905    /**
906     * Removes a repetition of
907     * PV1-24: "CONTRACT CODE" at a specific index
908     *
909     * @param rep The repetition index (0-indexed)
910     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
911     */
912    public ID removePv124_CONTRACTCODE(int rep) throws HL7Exception { 
913        return (ID) super.removeRepetition(24, rep);
914    }
915
916
917
918    /**
919     * Returns all repetitions of CONTRACT EFFECTIVE DATE (PV1-25).
920     */
921    public DT[] getCONTRACTEFFECTIVEDATE() {
922        DT[] retVal = this.getTypedField(25, new DT[0]);
923        return retVal;
924    }
925
926
927    /**
928     * Returns all repetitions of CONTRACT EFFECTIVE DATE (PV1-25).
929     */
930    public DT[] getPv125_CONTRACTEFFECTIVEDATE() {
931        DT[] retVal = this.getTypedField(25, new DT[0]);
932        return retVal;
933    }
934
935
936    /**
937     * Returns a count of the current number of repetitions of CONTRACT EFFECTIVE DATE (PV1-25).
938     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
939     * it will return zero.
940     */
941    public int getCONTRACTEFFECTIVEDATEReps() {
942        return this.getReps(25);
943    }
944
945
946    /**
947     * Returns a specific repetition of
948     * PV1-25: "CONTRACT EFFECTIVE DATE" - creates it if necessary
949     *
950     * @param rep The repetition index (0-indexed)
951     */
952    public DT getCONTRACTEFFECTIVEDATE(int rep) { 
953                DT retVal = this.getTypedField(25, rep);
954                return retVal;
955    }
956
957    /**
958     * Returns a specific repetition of
959     * PV1-25: "CONTRACT EFFECTIVE DATE" - creates it if necessary
960     *
961     * @param rep The repetition index (0-indexed)
962     */
963    public DT getPv125_CONTRACTEFFECTIVEDATE(int rep) { 
964                DT retVal = this.getTypedField(25, rep);
965                return retVal;
966    }
967
968    /**
969     * Returns a count of the current number of repetitions of CONTRACT EFFECTIVE DATE (PV1-25).
970     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
971     * it will return zero.
972     */
973    public int getPv125_CONTRACTEFFECTIVEDATEReps() {
974        return this.getReps(25);
975    }
976
977
978    /**
979     * Inserts a repetition of
980     * PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
981     *
982     * @param rep The repetition index (0-indexed)
983     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
984     */
985    public DT insertCONTRACTEFFECTIVEDATE(int rep) throws HL7Exception { 
986        return (DT) super.insertRepetition(25, rep);
987    }
988
989
990    /**
991     * Inserts a repetition of
992     * PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
993     *
994     * @param rep The repetition index (0-indexed)
995     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
996     */
997    public DT insertPv125_CONTRACTEFFECTIVEDATE(int rep) throws HL7Exception { 
998        return (DT) super.insertRepetition(25, rep);
999    }
1000
1001
1002    /**
1003     * Removes a repetition of
1004     * PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
1005     *
1006     * @param rep The repetition index (0-indexed)
1007     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1008     */
1009    public DT removeCONTRACTEFFECTIVEDATE(int rep) throws HL7Exception { 
1010        return (DT) super.removeRepetition(25, rep);
1011    }
1012
1013
1014    /**
1015     * Removes a repetition of
1016     * PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
1017     *
1018     * @param rep The repetition index (0-indexed)
1019     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1020     */
1021    public DT removePv125_CONTRACTEFFECTIVEDATE(int rep) throws HL7Exception { 
1022        return (DT) super.removeRepetition(25, rep);
1023    }
1024
1025
1026
1027    /**
1028     * Returns all repetitions of CONTRACT AMOUNT (PV1-26).
1029     */
1030    public NM[] getCONTRACTAMOUNT() {
1031        NM[] retVal = this.getTypedField(26, new NM[0]);
1032        return retVal;
1033    }
1034
1035
1036    /**
1037     * Returns all repetitions of CONTRACT AMOUNT (PV1-26).
1038     */
1039    public NM[] getPv126_CONTRACTAMOUNT() {
1040        NM[] retVal = this.getTypedField(26, new NM[0]);
1041        return retVal;
1042    }
1043
1044
1045    /**
1046     * Returns a count of the current number of repetitions of CONTRACT AMOUNT (PV1-26).
1047     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1048     * it will return zero.
1049     */
1050    public int getCONTRACTAMOUNTReps() {
1051        return this.getReps(26);
1052    }
1053
1054
1055    /**
1056     * Returns a specific repetition of
1057     * PV1-26: "CONTRACT AMOUNT" - creates it if necessary
1058     *
1059     * @param rep The repetition index (0-indexed)
1060     */
1061    public NM getCONTRACTAMOUNT(int rep) { 
1062                NM retVal = this.getTypedField(26, rep);
1063                return retVal;
1064    }
1065
1066    /**
1067     * Returns a specific repetition of
1068     * PV1-26: "CONTRACT AMOUNT" - creates it if necessary
1069     *
1070     * @param rep The repetition index (0-indexed)
1071     */
1072    public NM getPv126_CONTRACTAMOUNT(int rep) { 
1073                NM retVal = this.getTypedField(26, rep);
1074                return retVal;
1075    }
1076
1077    /**
1078     * Returns a count of the current number of repetitions of CONTRACT AMOUNT (PV1-26).
1079     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1080     * it will return zero.
1081     */
1082    public int getPv126_CONTRACTAMOUNTReps() {
1083        return this.getReps(26);
1084    }
1085
1086
1087    /**
1088     * Inserts a repetition of
1089     * PV1-26: "CONTRACT AMOUNT" at a specific index
1090     *
1091     * @param rep The repetition index (0-indexed)
1092     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1093     */
1094    public NM insertCONTRACTAMOUNT(int rep) throws HL7Exception { 
1095        return (NM) super.insertRepetition(26, rep);
1096    }
1097
1098
1099    /**
1100     * Inserts a repetition of
1101     * PV1-26: "CONTRACT AMOUNT" at a specific index
1102     *
1103     * @param rep The repetition index (0-indexed)
1104     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1105     */
1106    public NM insertPv126_CONTRACTAMOUNT(int rep) throws HL7Exception { 
1107        return (NM) super.insertRepetition(26, rep);
1108    }
1109
1110
1111    /**
1112     * Removes a repetition of
1113     * PV1-26: "CONTRACT AMOUNT" at a specific index
1114     *
1115     * @param rep The repetition index (0-indexed)
1116     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1117     */
1118    public NM removeCONTRACTAMOUNT(int rep) throws HL7Exception { 
1119        return (NM) super.removeRepetition(26, rep);
1120    }
1121
1122
1123    /**
1124     * Removes a repetition of
1125     * PV1-26: "CONTRACT AMOUNT" at a specific index
1126     *
1127     * @param rep The repetition index (0-indexed)
1128     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1129     */
1130    public NM removePv126_CONTRACTAMOUNT(int rep) throws HL7Exception { 
1131        return (NM) super.removeRepetition(26, rep);
1132    }
1133
1134
1135
1136    /**
1137     * Returns all repetitions of CONTRACT PERIOD (PV1-27).
1138     */
1139    public NM[] getCONTRACTPERIOD() {
1140        NM[] retVal = this.getTypedField(27, new NM[0]);
1141        return retVal;
1142    }
1143
1144
1145    /**
1146     * Returns all repetitions of CONTRACT PERIOD (PV1-27).
1147     */
1148    public NM[] getPv127_CONTRACTPERIOD() {
1149        NM[] retVal = this.getTypedField(27, new NM[0]);
1150        return retVal;
1151    }
1152
1153
1154    /**
1155     * Returns a count of the current number of repetitions of CONTRACT PERIOD (PV1-27).
1156     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1157     * it will return zero.
1158     */
1159    public int getCONTRACTPERIODReps() {
1160        return this.getReps(27);
1161    }
1162
1163
1164    /**
1165     * Returns a specific repetition of
1166     * PV1-27: "CONTRACT PERIOD" - creates it if necessary
1167     *
1168     * @param rep The repetition index (0-indexed)
1169     */
1170    public NM getCONTRACTPERIOD(int rep) { 
1171                NM retVal = this.getTypedField(27, rep);
1172                return retVal;
1173    }
1174
1175    /**
1176     * Returns a specific repetition of
1177     * PV1-27: "CONTRACT PERIOD" - creates it if necessary
1178     *
1179     * @param rep The repetition index (0-indexed)
1180     */
1181    public NM getPv127_CONTRACTPERIOD(int rep) { 
1182                NM retVal = this.getTypedField(27, rep);
1183                return retVal;
1184    }
1185
1186    /**
1187     * Returns a count of the current number of repetitions of CONTRACT PERIOD (PV1-27).
1188     * This method does not create a repetition, so if no repetitions have currently been defined or accessed,
1189     * it will return zero.
1190     */
1191    public int getPv127_CONTRACTPERIODReps() {
1192        return this.getReps(27);
1193    }
1194
1195
1196    /**
1197     * Inserts a repetition of
1198     * PV1-27: "CONTRACT PERIOD" at a specific index
1199     *
1200     * @param rep The repetition index (0-indexed)
1201     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1202     */
1203    public NM insertCONTRACTPERIOD(int rep) throws HL7Exception { 
1204        return (NM) super.insertRepetition(27, rep);
1205    }
1206
1207
1208    /**
1209     * Inserts a repetition of
1210     * PV1-27: "CONTRACT PERIOD" at a specific index
1211     *
1212     * @param rep The repetition index (0-indexed)
1213     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1214     */
1215    public NM insertPv127_CONTRACTPERIOD(int rep) throws HL7Exception { 
1216        return (NM) super.insertRepetition(27, rep);
1217    }
1218
1219
1220    /**
1221     * Removes a repetition of
1222     * PV1-27: "CONTRACT PERIOD" at a specific index
1223     *
1224     * @param rep The repetition index (0-indexed)
1225     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1226     */
1227    public NM removeCONTRACTPERIOD(int rep) throws HL7Exception { 
1228        return (NM) super.removeRepetition(27, rep);
1229    }
1230
1231
1232    /**
1233     * Removes a repetition of
1234     * PV1-27: "CONTRACT PERIOD" at a specific index
1235     *
1236     * @param rep The repetition index (0-indexed)
1237     * @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
1238     */
1239    public NM removePv127_CONTRACTPERIOD(int rep) throws HL7Exception { 
1240        return (NM) super.removeRepetition(27, rep);
1241    }
1242
1243
1244
1245
1246    /**
1247     * Returns
1248     * PV1-28: "INTEREST CODE" - creates it if necessary
1249     */
1250    public ID getINTERESTCODE() { 
1251                ID retVal = this.getTypedField(28, 0);
1252                return retVal;
1253    }
1254    
1255    /**
1256     * Returns
1257     * PV1-28: "INTEREST CODE" - creates it if necessary
1258     */
1259    public ID getPv128_INTERESTCODE() { 
1260                ID retVal = this.getTypedField(28, 0);
1261                return retVal;
1262    }
1263
1264
1265
1266    /**
1267     * Returns
1268     * PV1-29: "TRANSFER TO BAD DEBT CODE" - creates it if necessary
1269     */
1270    public ID getTRANSFERTOBADDEBTCODE() { 
1271                ID retVal = this.getTypedField(29, 0);
1272                return retVal;
1273    }
1274    
1275    /**
1276     * Returns
1277     * PV1-29: "TRANSFER TO BAD DEBT CODE" - creates it if necessary
1278     */
1279    public ID getPv129_TRANSFERTOBADDEBTCODE() { 
1280                ID retVal = this.getTypedField(29, 0);
1281                return retVal;
1282    }
1283
1284
1285
1286    /**
1287     * Returns
1288     * PV1-30: "TRANSFER TO BAD DEBT DATE" - creates it if necessary
1289     */
1290    public DT getTRANSFERTOBADDEBTDATE() { 
1291                DT retVal = this.getTypedField(30, 0);
1292                return retVal;
1293    }
1294    
1295    /**
1296     * Returns
1297     * PV1-30: "TRANSFER TO BAD DEBT DATE" - creates it if necessary
1298     */
1299    public DT getPv130_TRANSFERTOBADDEBTDATE() { 
1300                DT retVal = this.getTypedField(30, 0);
1301                return retVal;
1302    }
1303
1304
1305
1306    /**
1307     * Returns
1308     * PV1-31: "BAD DEBT AGENCY CODE" - creates it if necessary
1309     */
1310    public ST getBADDEBTAGENCYCODE() { 
1311                ST retVal = this.getTypedField(31, 0);
1312                return retVal;
1313    }
1314    
1315    /**
1316     * Returns
1317     * PV1-31: "BAD DEBT AGENCY CODE" - creates it if necessary
1318     */
1319    public ST getPv131_BADDEBTAGENCYCODE() { 
1320                ST retVal = this.getTypedField(31, 0);
1321                return retVal;
1322    }
1323
1324
1325
1326    /**
1327     * Returns
1328     * PV1-32: "BAD DEBT TRANSFER AMOUNT" - creates it if necessary
1329     */
1330    public NM getBADDEBTTRANSFERAMOUNT() { 
1331                NM retVal = this.getTypedField(32, 0);
1332                return retVal;
1333    }
1334    
1335    /**
1336     * Returns
1337     * PV1-32: "BAD DEBT TRANSFER AMOUNT" - creates it if necessary
1338     */
1339    public NM getPv132_BADDEBTTRANSFERAMOUNT() { 
1340                NM retVal = this.getTypedField(32, 0);
1341                return retVal;
1342    }
1343
1344
1345
1346    /**
1347     * Returns
1348     * PV1-33: "BAD DEBT RECOVERY AMOUNT" - creates it if necessary
1349     */
1350    public NM getBADDEBTRECOVERYAMOUNT() { 
1351                NM retVal = this.getTypedField(33, 0);
1352                return retVal;
1353    }
1354    
1355    /**
1356     * Returns
1357     * PV1-33: "BAD DEBT RECOVERY AMOUNT" - creates it if necessary
1358     */
1359    public NM getPv133_BADDEBTRECOVERYAMOUNT() { 
1360                NM retVal = this.getTypedField(33, 0);
1361                return retVal;
1362    }
1363
1364
1365
1366    /**
1367     * Returns
1368     * PV1-34: "DELETE ACCOUNT INDICATOR" - creates it if necessary
1369     */
1370    public ID getDELETEACCOUNTINDICATOR() { 
1371                ID retVal = this.getTypedField(34, 0);
1372                return retVal;
1373    }
1374    
1375    /**
1376     * Returns
1377     * PV1-34: "DELETE ACCOUNT INDICATOR" - creates it if necessary
1378     */
1379    public ID getPv134_DELETEACCOUNTINDICATOR() { 
1380                ID retVal = this.getTypedField(34, 0);
1381                return retVal;
1382    }
1383
1384
1385
1386    /**
1387     * Returns
1388     * PV1-35: "DELETE ACCOUNT DATE" - creates it if necessary
1389     */
1390    public DT getDELETEACCOUNTDATE() { 
1391                DT retVal = this.getTypedField(35, 0);
1392                return retVal;
1393    }
1394    
1395    /**
1396     * Returns
1397     * PV1-35: "DELETE ACCOUNT DATE" - creates it if necessary
1398     */
1399    public DT getPv135_DELETEACCOUNTDATE() { 
1400                DT retVal = this.getTypedField(35, 0);
1401                return retVal;
1402    }
1403
1404
1405
1406    /**
1407     * Returns
1408     * PV1-36: "DISCHARGE DISPOSITION" - creates it if necessary
1409     */
1410    public ID getDISCHARGEDISPOSITION() { 
1411                ID retVal = this.getTypedField(36, 0);
1412                return retVal;
1413    }
1414    
1415    /**
1416     * Returns
1417     * PV1-36: "DISCHARGE DISPOSITION" - creates it if necessary
1418     */
1419    public ID getPv136_DISCHARGEDISPOSITION() { 
1420                ID retVal = this.getTypedField(36, 0);
1421                return retVal;
1422    }
1423
1424
1425
1426    /**
1427     * Returns
1428     * PV1-37: "DISCHARGED TO LOCATION" - creates it if necessary
1429     */
1430    public ID getDISCHARGEDTOLOCATION() { 
1431                ID retVal = this.getTypedField(37, 0);
1432                return retVal;
1433    }
1434    
1435    /**
1436     * Returns
1437     * PV1-37: "DISCHARGED TO LOCATION" - creates it if necessary
1438     */
1439    public ID getPv137_DISCHARGEDTOLOCATION() { 
1440                ID retVal = this.getTypedField(37, 0);
1441                return retVal;
1442    }
1443
1444
1445
1446    /**
1447     * Returns
1448     * PV1-38: "DIET TYPE" - creates it if necessary
1449     */
1450    public ID getDIETTYPE() { 
1451                ID retVal = this.getTypedField(38, 0);
1452                return retVal;
1453    }
1454    
1455    /**
1456     * Returns
1457     * PV1-38: "DIET TYPE" - creates it if necessary
1458     */
1459    public ID getPv138_DIETTYPE() { 
1460                ID retVal = this.getTypedField(38, 0);
1461                return retVal;
1462    }
1463
1464
1465
1466    /**
1467     * Returns
1468     * PV1-39: "SERVICING FACILITY" - creates it if necessary
1469     */
1470    public ID getSERVICINGFACILITY() { 
1471                ID retVal = this.getTypedField(39, 0);
1472                return retVal;
1473    }
1474    
1475    /**
1476     * Returns
1477     * PV1-39: "SERVICING FACILITY" - creates it if necessary
1478     */
1479    public ID getPv139_SERVICINGFACILITY() { 
1480                ID retVal = this.getTypedField(39, 0);
1481                return retVal;
1482    }
1483
1484
1485
1486    /**
1487     * Returns
1488     * PV1-40: "BED STATUS" - creates it if necessary
1489     */
1490    public ID getBEDSTATUS() { 
1491                ID retVal = this.getTypedField(40, 0);
1492                return retVal;
1493    }
1494    
1495    /**
1496     * Returns
1497     * PV1-40: "BED STATUS" - creates it if necessary
1498     */
1499    public ID getPv140_BEDSTATUS() { 
1500                ID retVal = this.getTypedField(40, 0);
1501                return retVal;
1502    }
1503
1504
1505
1506    /**
1507     * Returns
1508     * PV1-41: "ACCOUNT STATUS" - creates it if necessary
1509     */
1510    public ID getACCOUNTSTATUS() { 
1511                ID retVal = this.getTypedField(41, 0);
1512                return retVal;
1513    }
1514    
1515    /**
1516     * Returns
1517     * PV1-41: "ACCOUNT STATUS" - creates it if necessary
1518     */
1519    public ID getPv141_ACCOUNTSTATUS() { 
1520                ID retVal = this.getTypedField(41, 0);
1521                return retVal;
1522    }
1523
1524
1525
1526    /**
1527     * Returns
1528     * PV1-42: "PENDING LOCATION" - creates it if necessary
1529     */
1530    public ID getPENDINGLOCATION() { 
1531                ID retVal = this.getTypedField(42, 0);
1532                return retVal;
1533    }
1534    
1535    /**
1536     * Returns
1537     * PV1-42: "PENDING LOCATION" - creates it if necessary
1538     */
1539    public ID getPv142_PENDINGLOCATION() { 
1540                ID retVal = this.getTypedField(42, 0);
1541                return retVal;
1542    }
1543
1544
1545
1546    /**
1547     * Returns
1548     * PV1-43: "PRIOR TEMPORARY LOCATION" - creates it if necessary
1549     */
1550    public ID getPRIORTEMPORARYLOCATION() { 
1551                ID retVal = this.getTypedField(43, 0);
1552                return retVal;
1553    }
1554    
1555    /**
1556     * Returns
1557     * PV1-43: "PRIOR TEMPORARY LOCATION" - creates it if necessary
1558     */
1559    public ID getPv143_PRIORTEMPORARYLOCATION() { 
1560                ID retVal = this.getTypedField(43, 0);
1561                return retVal;
1562    }
1563
1564
1565
1566    /**
1567     * Returns
1568     * PV1-44: "ADMIT DATE/TIME" - creates it if necessary
1569     */
1570    public TS getADMITDATETIME() { 
1571                TS retVal = this.getTypedField(44, 0);
1572                return retVal;
1573    }
1574    
1575    /**
1576     * Returns
1577     * PV1-44: "ADMIT DATE/TIME" - creates it if necessary
1578     */
1579    public TS getPv144_ADMITDATETIME() { 
1580                TS retVal = this.getTypedField(44, 0);
1581                return retVal;
1582    }
1583
1584
1585
1586    /**
1587     * Returns
1588     * PV1-45: "DISCHARGE DATE/TIME" - creates it if necessary
1589     */
1590    public TS getDISCHARGEDATETIME() { 
1591                TS retVal = this.getTypedField(45, 0);
1592                return retVal;
1593    }
1594    
1595    /**
1596     * Returns
1597     * PV1-45: "DISCHARGE DATE/TIME" - creates it if necessary
1598     */
1599    public TS getPv145_DISCHARGEDATETIME() { 
1600                TS retVal = this.getTypedField(45, 0);
1601                return retVal;
1602    }
1603
1604
1605
1606    /**
1607     * Returns
1608     * PV1-46: "CURRENT PATIENT BALANCE" - creates it if necessary
1609     */
1610    public NM getCURRENTPATIENTBALANCE() { 
1611                NM retVal = this.getTypedField(46, 0);
1612                return retVal;
1613    }
1614    
1615    /**
1616     * Returns
1617     * PV1-46: "CURRENT PATIENT BALANCE" - creates it if necessary
1618     */
1619    public NM getPv146_CURRENTPATIENTBALANCE() { 
1620                NM retVal = this.getTypedField(46, 0);
1621                return retVal;
1622    }
1623
1624
1625
1626    /**
1627     * Returns
1628     * PV1-47: "TOTAL CHARGES" - creates it if necessary
1629     */
1630    public NM getTOTALCHARGES() { 
1631                NM retVal = this.getTypedField(47, 0);
1632                return retVal;
1633    }
1634    
1635    /**
1636     * Returns
1637     * PV1-47: "TOTAL CHARGES" - creates it if necessary
1638     */
1639    public NM getPv147_TOTALCHARGES() { 
1640                NM retVal = this.getTypedField(47, 0);
1641                return retVal;
1642    }
1643
1644
1645
1646    /**
1647     * Returns
1648     * PV1-48: "TOTAL ADJUSTMENTS" - creates it if necessary
1649     */
1650    public NM getTOTALADJUSTMENTS() { 
1651                NM retVal = this.getTypedField(48, 0);
1652                return retVal;
1653    }
1654    
1655    /**
1656     * Returns
1657     * PV1-48: "TOTAL ADJUSTMENTS" - creates it if necessary
1658     */
1659    public NM getPv148_TOTALADJUSTMENTS() { 
1660                NM retVal = this.getTypedField(48, 0);
1661                return retVal;
1662    }
1663
1664
1665
1666    /**
1667     * Returns
1668     * PV1-49: "TOTAL PAYMENTS" - creates it if necessary
1669     */
1670    public NM getTOTALPAYMENTS() { 
1671                NM retVal = this.getTypedField(49, 0);
1672                return retVal;
1673    }
1674    
1675    /**
1676     * Returns
1677     * PV1-49: "TOTAL PAYMENTS" - creates it if necessary
1678     */
1679    public NM getPv149_TOTALPAYMENTS() { 
1680                NM retVal = this.getTypedField(49, 0);
1681                return retVal;
1682    }
1683
1684
1685
1686
1687
1688    /** {@inheritDoc} */   
1689    protected Type createNewTypeWithoutReflection(int field) {
1690       switch (field) {
1691          case 0: return new SI(getMessage());
1692          case 1: return new ID(getMessage(), new Integer( 4 ));
1693          case 2: return new ID(getMessage(), new Integer( 79 ));
1694          case 3: return new ID(getMessage(), new Integer( 7 ));
1695          case 4: return new ST(getMessage());
1696          case 5: return new ID(getMessage(), new Integer( 79 ));
1697          case 6: return new CN(getMessage());
1698          case 7: return new CN(getMessage());
1699          case 8: return new CN(getMessage());
1700          case 9: return new ID(getMessage(), new Integer( 69 ));
1701          case 10: return new ID(getMessage(), new Integer( 79 ));
1702          case 11: return new ID(getMessage(), new Integer( 87 ));
1703          case 12: return new ID(getMessage(), new Integer( 92 ));
1704          case 13: return new ID(getMessage(), new Integer( 23 ));
1705          case 14: return new ID(getMessage(), new Integer( 9 ));
1706          case 15: return new ID(getMessage(), new Integer( 99 ));
1707          case 16: return new CN(getMessage());
1708          case 17: return new ID(getMessage(), new Integer( 18 ));
1709          case 18: return new NM(getMessage());
1710          case 19: return new ID(getMessage(), new Integer( 64 ));
1711          case 20: return new ID(getMessage(), new Integer( 32 ));
1712          case 21: return new ID(getMessage(), new Integer( 45 ));
1713          case 22: return new ID(getMessage(), new Integer( 46 ));
1714          case 23: return new ID(getMessage(), new Integer( 44 ));
1715          case 24: return new DT(getMessage());
1716          case 25: return new NM(getMessage());
1717          case 26: return new NM(getMessage());
1718          case 27: return new ID(getMessage(), new Integer( 73 ));
1719          case 28: return new ID(getMessage(), new Integer( 110 ));
1720          case 29: return new DT(getMessage());
1721          case 30: return new ST(getMessage());
1722          case 31: return new NM(getMessage());
1723          case 32: return new NM(getMessage());
1724          case 33: return new ID(getMessage(), new Integer( 111 ));
1725          case 34: return new DT(getMessage());
1726          case 35: return new ID(getMessage(), new Integer( 112 ));
1727          case 36: return new ID(getMessage(), new Integer( 113 ));
1728          case 37: return new ID(getMessage(), new Integer( 114 ));
1729          case 38: return new ID(getMessage(), new Integer( 115 ));
1730          case 39: return new ID(getMessage(), new Integer( 116 ));
1731          case 40: return new ID(getMessage(), new Integer( 117 ));
1732          case 41: return new ID(getMessage(), new Integer( 79 ));
1733          case 42: return new ID(getMessage(), new Integer( 79 ));
1734          case 43: return new TS(getMessage());
1735          case 44: return new TS(getMessage());
1736          case 45: return new NM(getMessage());
1737          case 46: return new NM(getMessage());
1738          case 47: return new NM(getMessage());
1739          case 48: return new NM(getMessage());
1740          default: return null;
1741       }
1742   }
1743
1744
1745}
1746