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