ca.uhn.hl7v2.model.v21.segment.PV1 Maven / Gradle / Ivy
/*
* This class is an auto-generated source file for a HAPI
* HL7 v2.x standard structure class.
*
* For more information, visit: http://hl7api.sourceforge.net/
*/
package ca.uhn.hl7v2.model.v21.segment;
// import ca.uhn.hl7v2.model.v21.group.*;
import ca.uhn.hl7v2.model.v21.datatype.*;
import ca.uhn.log.HapiLogFactory;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.parser.ModelClassFactory;
import ca.uhn.hl7v2.parser.DefaultModelClassFactory;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.Group;
import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.AbstractSegment;
import ca.uhn.hl7v2.model.Varies;
/**
*Represents an HL7 PV1 message segment (PATIENT VISIT).
* This segment has the following fields:
*
* - PV1-1: SET ID - PATIENT VISIT (SI) optional
*
- PV1-2: PATIENT CLASS (ID)
*
- PV1-3: ASSIGNED PATIENT LOCATION (ID)
*
- PV1-4: ADMISSION TYPE (ID) optional
*
- PV1-5: PRE-ADMIT NUMBER (ST) optional
*
- PV1-6: PRIOR PATIENT LOCATION (ID) optional
*
- PV1-7: ATTENDING DOCTOR (CN) optional
*
- PV1-8: REFERRING DOCTOR (CN) optional
*
- PV1-9: CONSULTING DOCTOR (CN) optional repeating
*
- PV1-10: HOSPITAL SERVICE (ID) optional
*
- PV1-11: TEMPORARY LOCATION (ID) optional
*
- PV1-12: PRE-ADMIT TEST INDICATOR (ID) optional
*
- PV1-13: RE-ADMISSION INDICATOR (ID) optional
*
- PV1-14: ADMIT SOURCE (ID) optional
*
- PV1-15: AMBULATORY STATUS (ID) optional
*
- PV1-16: VIP INDICATOR (ID) optional
*
- PV1-17: ADMITTING DOCTOR (CN) optional
*
- PV1-18: PATIENT TYPE (ID) optional
*
- PV1-19: VISIT NUMBER (NM) optional
*
- PV1-20: FINANCIAL CLASS (ID) optional repeating
*
- PV1-21: CHARGE PRICE INDICATOR (ID) optional
*
- PV1-22: COURTESY CODE (ID) optional
*
- PV1-23: CREDIT RATING (ID) optional
*
- PV1-24: CONTRACT CODE (ID) optional repeating
*
- PV1-25: CONTRACT EFFECTIVE DATE (DT) optional repeating
*
- PV1-26: CONTRACT AMOUNT (NM) optional repeating
*
- PV1-27: CONTRACT PERIOD (NM) optional repeating
*
- PV1-28: INTEREST CODE (ID) optional
*
- PV1-29: TRANSFER TO BAD DEBT CODE (ID) optional
*
- PV1-30: TRANSFER TO BAD DEBT DATE (DT) optional
*
- PV1-31: BAD DEBT AGENCY CODE (ST) optional
*
- PV1-32: BAD DEBT TRANSFER AMOUNT (NM) optional
*
- PV1-33: BAD DEBT RECOVERY AMOUNT (NM) optional
*
- PV1-34: DELETE ACCOUNT INDICATOR (ID) optional
*
- PV1-35: DELETE ACCOUNT DATE (DT) optional
*
- PV1-36: DISCHARGE DISPOSITION (ID) optional
*
- PV1-37: DISCHARGED TO LOCATION (ID) optional
*
- PV1-38: DIET TYPE (ID) optional
*
- PV1-39: SERVICING FACILITY (ID) optional
*
- PV1-40: BED STATUS (ID) optional
*
- PV1-41: ACCOUNT STATUS (ID) optional
*
- PV1-42: PENDING LOCATION (ID) optional
*
- PV1-43: PRIOR TEMPORARY LOCATION (ID) optional
*
- PV1-44: ADMIT DATE/TIME (TS) optional
*
- PV1-45: DISCHARGE DATE/TIME (TS) optional
*
- PV1-46: CURRENT PATIENT BALANCE (NM) optional
*
- PV1-47: TOTAL CHARGES (NM) optional
*
- PV1-48: TOTAL ADJUSTMENTS (NM) optional
*
- PV1-49: TOTAL PAYMENTS (NM) optional
*
*/
public class PV1 extends AbstractSegment {
/**
* Creates a new PV1 segment
*/
public PV1(Group parent, ModelClassFactory factory) {
super(parent, factory);
init(factory);
}
private void init(ModelClassFactory factory) {
try {
this.add(SI.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "SET ID - PATIENT VISIT");
this.add(ID.class, true, 1, 1, new Object[]{ getMessage() }, "PATIENT CLASS");
this.add(ID.class, true, 1, 12, new Object[]{ getMessage() }, "ASSIGNED PATIENT LOCATION");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "ADMISSION TYPE");
this.add(ST.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "PRE-ADMIT NUMBER");
this.add(ID.class, false, 1, 12, new Object[]{ getMessage() }, "PRIOR PATIENT LOCATION");
this.add(CN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(10) }, "ATTENDING DOCTOR");
this.add(CN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(10) }, "REFERRING DOCTOR");
this.add(CN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(10) }, "CONSULTING DOCTOR");
this.add(ID.class, false, 1, 3, new Object[]{ getMessage() }, "HOSPITAL SERVICE");
this.add(ID.class, false, 1, 12, new Object[]{ getMessage() }, "TEMPORARY LOCATION");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "PRE-ADMIT TEST INDICATOR");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "RE-ADMISSION INDICATOR");
this.add(ID.class, false, 1, 3, new Object[]{ getMessage() }, "ADMIT SOURCE");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "AMBULATORY STATUS");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "VIP INDICATOR");
this.add(CN.class, false, 1, 60, new Object[]{ getMessage(), new Integer(10) }, "ADMITTING DOCTOR");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "PATIENT TYPE");
this.add(NM.class, false, 1, 4, new Object[]{ getMessage(), new Integer(0) }, "VISIT NUMBER");
this.add(ID.class, false, 4, 11, new Object[]{ getMessage() }, "FINANCIAL CLASS");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "CHARGE PRICE INDICATOR");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "COURTESY CODE");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "CREDIT RATING");
this.add(ID.class, false, 0, 2, new Object[]{ getMessage() }, "CONTRACT CODE");
this.add(DT.class, false, 0, 8, new Object[]{ getMessage(), new Integer(0) }, "CONTRACT EFFECTIVE DATE");
this.add(NM.class, false, 0, 12, new Object[]{ getMessage(), new Integer(0) }, "CONTRACT AMOUNT");
this.add(NM.class, false, 0, 3, new Object[]{ getMessage(), new Integer(0) }, "CONTRACT PERIOD");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "INTEREST CODE");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "TRANSFER TO BAD DEBT CODE");
this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "TRANSFER TO BAD DEBT DATE");
this.add(ST.class, false, 1, 10, new Object[]{ getMessage(), new Integer(21) }, "BAD DEBT AGENCY CODE");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "BAD DEBT TRANSFER AMOUNT");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "BAD DEBT RECOVERY AMOUNT");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "DELETE ACCOUNT INDICATOR");
this.add(DT.class, false, 1, 8, new Object[]{ getMessage(), new Integer(0) }, "DELETE ACCOUNT DATE");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "DISCHARGE DISPOSITION");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "DISCHARGED TO LOCATION");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "DIET TYPE");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "SERVICING FACILITY");
this.add(ID.class, false, 1, 1, new Object[]{ getMessage() }, "BED STATUS");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "ACCOUNT STATUS");
this.add(ID.class, false, 1, 12, new Object[]{ getMessage() }, "PENDING LOCATION");
this.add(ID.class, false, 1, 12, new Object[]{ getMessage() }, "PRIOR TEMPORARY LOCATION");
this.add(TS.class, false, 1, 19, new Object[]{ getMessage(), new Integer(0) }, "ADMIT DATE/TIME");
this.add(TS.class, false, 1, 19, new Object[]{ getMessage(), new Integer(0) }, "DISCHARGE DATE/TIME");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "CURRENT PATIENT BALANCE");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "TOTAL CHARGES");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "TOTAL ADJUSTMENTS");
this.add(NM.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "TOTAL PAYMENTS");
} catch(HL7Exception e) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected error creating PV1 - this is probably a bug in the source code generator.", e);
}
}
/**
* Returns
* PV1-1: "SET ID - PATIENT VISIT" - creates it if necessary
*/
public SI getSETIDPATIENTVISIT() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-1: "SET ID - PATIENT VISIT" - creates it if necessary
*/
public SI getPv11_SETIDPATIENTVISIT() {
SI ret = null;
try {
Type t = this.getField(1, 0);
ret = (SI)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-2: "PATIENT CLASS" - creates it if necessary
*/
public ID getPATIENTCLASS() {
ID ret = null;
try {
Type t = this.getField(2, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-2: "PATIENT CLASS" - creates it if necessary
*/
public ID getPv12_PATIENTCLASS() {
ID ret = null;
try {
Type t = this.getField(2, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-3: "ASSIGNED PATIENT LOCATION" - creates it if necessary
*/
public ID getASSIGNEDPATIENTLOCATION() {
ID ret = null;
try {
Type t = this.getField(3, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-3: "ASSIGNED PATIENT LOCATION" - creates it if necessary
*/
public ID getPv13_ASSIGNEDPATIENTLOCATION() {
ID ret = null;
try {
Type t = this.getField(3, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-4: "ADMISSION TYPE" - creates it if necessary
*/
public ID getADMISSIONTYPE() {
ID ret = null;
try {
Type t = this.getField(4, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-4: "ADMISSION TYPE" - creates it if necessary
*/
public ID getPv14_ADMISSIONTYPE() {
ID ret = null;
try {
Type t = this.getField(4, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-5: "PRE-ADMIT NUMBER" - creates it if necessary
*/
public ST getPREADMITNUMBER() {
ST ret = null;
try {
Type t = this.getField(5, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-5: "PRE-ADMIT NUMBER" - creates it if necessary
*/
public ST getPv15_PREADMITNUMBER() {
ST ret = null;
try {
Type t = this.getField(5, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-6: "PRIOR PATIENT LOCATION" - creates it if necessary
*/
public ID getPRIORPATIENTLOCATION() {
ID ret = null;
try {
Type t = this.getField(6, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-6: "PRIOR PATIENT LOCATION" - creates it if necessary
*/
public ID getPv16_PRIORPATIENTLOCATION() {
ID ret = null;
try {
Type t = this.getField(6, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-7: "ATTENDING DOCTOR" - creates it if necessary
*/
public CN getATTENDINGDOCTOR() {
CN ret = null;
try {
Type t = this.getField(7, 0);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-7: "ATTENDING DOCTOR" - creates it if necessary
*/
public CN getPv17_ATTENDINGDOCTOR() {
CN ret = null;
try {
Type t = this.getField(7, 0);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-8: "REFERRING DOCTOR" - creates it if necessary
*/
public CN getREFERRINGDOCTOR() {
CN ret = null;
try {
Type t = this.getField(8, 0);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-8: "REFERRING DOCTOR" - creates it if necessary
*/
public CN getPv18_REFERRINGDOCTOR() {
CN ret = null;
try {
Type t = this.getField(8, 0);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of CONSULTING DOCTOR (PV1-9).
*/
public CN[] getCONSULTINGDOCTOR() {
CN[] ret = null;
try {
Type[] t = this.getField(9);
ret = new CN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (CN)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-9: "CONSULTING DOCTOR" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CN getCONSULTINGDOCTOR(int rep) {
CN ret = null;
try {
Type t = this.getField(9, rep);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-9: "CONSULTING DOCTOR" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public CN getPv19_CONSULTINGDOCTOR(int rep) {
CN ret = null;
try {
Type t = this.getField(9, rep);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* PV1-9: "CONSULTING DOCTOR" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CN insertCONSULTINGDOCTOR(int rep) throws HL7Exception {
return (CN) super.insertRepetition(9, rep);
}
/**
* Inserts a repetition of
* PV1-9: "CONSULTING DOCTOR" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CN insertPv19_CONSULTINGDOCTOR(int rep) throws HL7Exception {
return (CN) super.insertRepetition(9, rep);
}
/**
* Removes a repetition of
* PV1-9: "CONSULTING DOCTOR" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CN removeCONSULTINGDOCTOR(int rep) throws HL7Exception {
return (CN) super.removeRepetition(9, rep);
}
/**
* Removes a repetition of
* PV1-9: "CONSULTING DOCTOR" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public CN removePv19_CONSULTINGDOCTOR(int rep) throws HL7Exception {
return (CN) super.removeRepetition(9, rep);
}
/**
* Returns
* PV1-10: "HOSPITAL SERVICE" - creates it if necessary
*/
public ID getHOSPITALSERVICE() {
ID ret = null;
try {
Type t = this.getField(10, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-10: "HOSPITAL SERVICE" - creates it if necessary
*/
public ID getPv110_HOSPITALSERVICE() {
ID ret = null;
try {
Type t = this.getField(10, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-11: "TEMPORARY LOCATION" - creates it if necessary
*/
public ID getTEMPORARYLOCATION() {
ID ret = null;
try {
Type t = this.getField(11, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-11: "TEMPORARY LOCATION" - creates it if necessary
*/
public ID getPv111_TEMPORARYLOCATION() {
ID ret = null;
try {
Type t = this.getField(11, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-12: "PRE-ADMIT TEST INDICATOR" - creates it if necessary
*/
public ID getPREADMITTESTINDICATOR() {
ID ret = null;
try {
Type t = this.getField(12, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-12: "PRE-ADMIT TEST INDICATOR" - creates it if necessary
*/
public ID getPv112_PREADMITTESTINDICATOR() {
ID ret = null;
try {
Type t = this.getField(12, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-13: "RE-ADMISSION INDICATOR" - creates it if necessary
*/
public ID getREADMISSIONINDICATOR() {
ID ret = null;
try {
Type t = this.getField(13, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-13: "RE-ADMISSION INDICATOR" - creates it if necessary
*/
public ID getPv113_READMISSIONINDICATOR() {
ID ret = null;
try {
Type t = this.getField(13, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-14: "ADMIT SOURCE" - creates it if necessary
*/
public ID getADMITSOURCE() {
ID ret = null;
try {
Type t = this.getField(14, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-14: "ADMIT SOURCE" - creates it if necessary
*/
public ID getPv114_ADMITSOURCE() {
ID ret = null;
try {
Type t = this.getField(14, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-15: "AMBULATORY STATUS" - creates it if necessary
*/
public ID getAMBULATORYSTATUS() {
ID ret = null;
try {
Type t = this.getField(15, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-15: "AMBULATORY STATUS" - creates it if necessary
*/
public ID getPv115_AMBULATORYSTATUS() {
ID ret = null;
try {
Type t = this.getField(15, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-16: "VIP INDICATOR" - creates it if necessary
*/
public ID getVIPINDICATOR() {
ID ret = null;
try {
Type t = this.getField(16, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-16: "VIP INDICATOR" - creates it if necessary
*/
public ID getPv116_VIPINDICATOR() {
ID ret = null;
try {
Type t = this.getField(16, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-17: "ADMITTING DOCTOR" - creates it if necessary
*/
public CN getADMITTINGDOCTOR() {
CN ret = null;
try {
Type t = this.getField(17, 0);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-17: "ADMITTING DOCTOR" - creates it if necessary
*/
public CN getPv117_ADMITTINGDOCTOR() {
CN ret = null;
try {
Type t = this.getField(17, 0);
ret = (CN)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-18: "PATIENT TYPE" - creates it if necessary
*/
public ID getPATIENTTYPE() {
ID ret = null;
try {
Type t = this.getField(18, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-18: "PATIENT TYPE" - creates it if necessary
*/
public ID getPv118_PATIENTTYPE() {
ID ret = null;
try {
Type t = this.getField(18, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-19: "VISIT NUMBER" - creates it if necessary
*/
public NM getVISITNUMBER() {
NM ret = null;
try {
Type t = this.getField(19, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-19: "VISIT NUMBER" - creates it if necessary
*/
public NM getPv119_VISITNUMBER() {
NM ret = null;
try {
Type t = this.getField(19, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of FINANCIAL CLASS (PV1-20).
*/
public ID[] getFINANCIALCLASS() {
ID[] ret = null;
try {
Type[] t = this.getField(20);
ret = new ID[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (ID)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-20: "FINANCIAL CLASS" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getFINANCIALCLASS(int rep) {
ID ret = null;
try {
Type t = this.getField(20, rep);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-20: "FINANCIAL CLASS" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getPv120_FINANCIALCLASS(int rep) {
ID ret = null;
try {
Type t = this.getField(20, rep);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* PV1-20: "FINANCIAL CLASS" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertFINANCIALCLASS(int rep) throws HL7Exception {
return (ID) super.insertRepetition(20, rep);
}
/**
* Inserts a repetition of
* PV1-20: "FINANCIAL CLASS" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertPv120_FINANCIALCLASS(int rep) throws HL7Exception {
return (ID) super.insertRepetition(20, rep);
}
/**
* Removes a repetition of
* PV1-20: "FINANCIAL CLASS" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removeFINANCIALCLASS(int rep) throws HL7Exception {
return (ID) super.removeRepetition(20, rep);
}
/**
* Removes a repetition of
* PV1-20: "FINANCIAL CLASS" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removePv120_FINANCIALCLASS(int rep) throws HL7Exception {
return (ID) super.removeRepetition(20, rep);
}
/**
* Returns
* PV1-21: "CHARGE PRICE INDICATOR" - creates it if necessary
*/
public ID getCHARGEPRICEINDICATOR() {
ID ret = null;
try {
Type t = this.getField(21, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-21: "CHARGE PRICE INDICATOR" - creates it if necessary
*/
public ID getPv121_CHARGEPRICEINDICATOR() {
ID ret = null;
try {
Type t = this.getField(21, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-22: "COURTESY CODE" - creates it if necessary
*/
public ID getCOURTESYCODE() {
ID ret = null;
try {
Type t = this.getField(22, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-22: "COURTESY CODE" - creates it if necessary
*/
public ID getPv122_COURTESYCODE() {
ID ret = null;
try {
Type t = this.getField(22, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-23: "CREDIT RATING" - creates it if necessary
*/
public ID getCREDITRATING() {
ID ret = null;
try {
Type t = this.getField(23, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-23: "CREDIT RATING" - creates it if necessary
*/
public ID getPv123_CREDITRATING() {
ID ret = null;
try {
Type t = this.getField(23, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns all repetitions of CONTRACT CODE (PV1-24).
*/
public ID[] getCONTRACTCODE() {
ID[] ret = null;
try {
Type[] t = this.getField(24);
ret = new ID[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (ID)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-24: "CONTRACT CODE" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getCONTRACTCODE(int rep) {
ID ret = null;
try {
Type t = this.getField(24, rep);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-24: "CONTRACT CODE" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public ID getPv124_CONTRACTCODE(int rep) {
ID ret = null;
try {
Type t = this.getField(24, rep);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* PV1-24: "CONTRACT CODE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertCONTRACTCODE(int rep) throws HL7Exception {
return (ID) super.insertRepetition(24, rep);
}
/**
* Inserts a repetition of
* PV1-24: "CONTRACT CODE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID insertPv124_CONTRACTCODE(int rep) throws HL7Exception {
return (ID) super.insertRepetition(24, rep);
}
/**
* Removes a repetition of
* PV1-24: "CONTRACT CODE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removeCONTRACTCODE(int rep) throws HL7Exception {
return (ID) super.removeRepetition(24, rep);
}
/**
* Removes a repetition of
* PV1-24: "CONTRACT CODE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public ID removePv124_CONTRACTCODE(int rep) throws HL7Exception {
return (ID) super.removeRepetition(24, rep);
}
/**
* Returns all repetitions of CONTRACT EFFECTIVE DATE (PV1-25).
*/
public DT[] getCONTRACTEFFECTIVEDATE() {
DT[] ret = null;
try {
Type[] t = this.getField(25);
ret = new DT[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (DT)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-25: "CONTRACT EFFECTIVE DATE" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public DT getCONTRACTEFFECTIVEDATE(int rep) {
DT ret = null;
try {
Type t = this.getField(25, rep);
ret = (DT)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-25: "CONTRACT EFFECTIVE DATE" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public DT getPv125_CONTRACTEFFECTIVEDATE(int rep) {
DT ret = null;
try {
Type t = this.getField(25, rep);
ret = (DT)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DT insertCONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
return (DT) super.insertRepetition(25, rep);
}
/**
* Inserts a repetition of
* PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DT insertPv125_CONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
return (DT) super.insertRepetition(25, rep);
}
/**
* Removes a repetition of
* PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DT removeCONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
return (DT) super.removeRepetition(25, rep);
}
/**
* Removes a repetition of
* PV1-25: "CONTRACT EFFECTIVE DATE" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public DT removePv125_CONTRACTEFFECTIVEDATE(int rep) throws HL7Exception {
return (DT) super.removeRepetition(25, rep);
}
/**
* Returns all repetitions of CONTRACT AMOUNT (PV1-26).
*/
public NM[] getCONTRACTAMOUNT() {
NM[] ret = null;
try {
Type[] t = this.getField(26);
ret = new NM[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (NM)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-26: "CONTRACT AMOUNT" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public NM getCONTRACTAMOUNT(int rep) {
NM ret = null;
try {
Type t = this.getField(26, rep);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-26: "CONTRACT AMOUNT" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public NM getPv126_CONTRACTAMOUNT(int rep) {
NM ret = null;
try {
Type t = this.getField(26, rep);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* PV1-26: "CONTRACT AMOUNT" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM insertCONTRACTAMOUNT(int rep) throws HL7Exception {
return (NM) super.insertRepetition(26, rep);
}
/**
* Inserts a repetition of
* PV1-26: "CONTRACT AMOUNT" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM insertPv126_CONTRACTAMOUNT(int rep) throws HL7Exception {
return (NM) super.insertRepetition(26, rep);
}
/**
* Removes a repetition of
* PV1-26: "CONTRACT AMOUNT" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM removeCONTRACTAMOUNT(int rep) throws HL7Exception {
return (NM) super.removeRepetition(26, rep);
}
/**
* Removes a repetition of
* PV1-26: "CONTRACT AMOUNT" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM removePv126_CONTRACTAMOUNT(int rep) throws HL7Exception {
return (NM) super.removeRepetition(26, rep);
}
/**
* Returns all repetitions of CONTRACT PERIOD (PV1-27).
*/
public NM[] getCONTRACTPERIOD() {
NM[] ret = null;
try {
Type[] t = this.getField(27);
ret = new NM[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (NM)t[i];
}
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-27: "CONTRACT PERIOD" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public NM getCONTRACTPERIOD(int rep) {
NM ret = null;
try {
Type t = this.getField(27, rep);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns a specific repetition of
* PV1-27: "CONTRACT PERIOD" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public NM getPv127_CONTRACTPERIOD(int rep) {
NM ret = null;
try {
Type t = this.getField(27, rep);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Inserts a repetition of
* PV1-27: "CONTRACT PERIOD" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM insertCONTRACTPERIOD(int rep) throws HL7Exception {
return (NM) super.insertRepetition(27, rep);
}
/**
* Inserts a repetition of
* PV1-27: "CONTRACT PERIOD" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM insertPv127_CONTRACTPERIOD(int rep) throws HL7Exception {
return (NM) super.insertRepetition(27, rep);
}
/**
* Removes a repetition of
* PV1-27: "CONTRACT PERIOD" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM removeCONTRACTPERIOD(int rep) throws HL7Exception {
return (NM) super.removeRepetition(27, rep);
}
/**
* Removes a repetition of
* PV1-27: "CONTRACT PERIOD" at a specific index
*
* @param rep The repetition index (0-indexed)
* @throws HL7Exception If the rep is invalid (below 0, or too high for the allowable repetitions)
*/
public NM removePv127_CONTRACTPERIOD(int rep) throws HL7Exception {
return (NM) super.removeRepetition(27, rep);
}
/**
* Returns
* PV1-28: "INTEREST CODE" - creates it if necessary
*/
public ID getINTERESTCODE() {
ID ret = null;
try {
Type t = this.getField(28, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-28: "INTEREST CODE" - creates it if necessary
*/
public ID getPv128_INTERESTCODE() {
ID ret = null;
try {
Type t = this.getField(28, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-29: "TRANSFER TO BAD DEBT CODE" - creates it if necessary
*/
public ID getTRANSFERTOBADDEBTCODE() {
ID ret = null;
try {
Type t = this.getField(29, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-29: "TRANSFER TO BAD DEBT CODE" - creates it if necessary
*/
public ID getPv129_TRANSFERTOBADDEBTCODE() {
ID ret = null;
try {
Type t = this.getField(29, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-30: "TRANSFER TO BAD DEBT DATE" - creates it if necessary
*/
public DT getTRANSFERTOBADDEBTDATE() {
DT ret = null;
try {
Type t = this.getField(30, 0);
ret = (DT)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-30: "TRANSFER TO BAD DEBT DATE" - creates it if necessary
*/
public DT getPv130_TRANSFERTOBADDEBTDATE() {
DT ret = null;
try {
Type t = this.getField(30, 0);
ret = (DT)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-31: "BAD DEBT AGENCY CODE" - creates it if necessary
*/
public ST getBADDEBTAGENCYCODE() {
ST ret = null;
try {
Type t = this.getField(31, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-31: "BAD DEBT AGENCY CODE" - creates it if necessary
*/
public ST getPv131_BADDEBTAGENCYCODE() {
ST ret = null;
try {
Type t = this.getField(31, 0);
ret = (ST)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-32: "BAD DEBT TRANSFER AMOUNT" - creates it if necessary
*/
public NM getBADDEBTTRANSFERAMOUNT() {
NM ret = null;
try {
Type t = this.getField(32, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-32: "BAD DEBT TRANSFER AMOUNT" - creates it if necessary
*/
public NM getPv132_BADDEBTTRANSFERAMOUNT() {
NM ret = null;
try {
Type t = this.getField(32, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-33: "BAD DEBT RECOVERY AMOUNT" - creates it if necessary
*/
public NM getBADDEBTRECOVERYAMOUNT() {
NM ret = null;
try {
Type t = this.getField(33, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-33: "BAD DEBT RECOVERY AMOUNT" - creates it if necessary
*/
public NM getPv133_BADDEBTRECOVERYAMOUNT() {
NM ret = null;
try {
Type t = this.getField(33, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-34: "DELETE ACCOUNT INDICATOR" - creates it if necessary
*/
public ID getDELETEACCOUNTINDICATOR() {
ID ret = null;
try {
Type t = this.getField(34, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-34: "DELETE ACCOUNT INDICATOR" - creates it if necessary
*/
public ID getPv134_DELETEACCOUNTINDICATOR() {
ID ret = null;
try {
Type t = this.getField(34, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-35: "DELETE ACCOUNT DATE" - creates it if necessary
*/
public DT getDELETEACCOUNTDATE() {
DT ret = null;
try {
Type t = this.getField(35, 0);
ret = (DT)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-35: "DELETE ACCOUNT DATE" - creates it if necessary
*/
public DT getPv135_DELETEACCOUNTDATE() {
DT ret = null;
try {
Type t = this.getField(35, 0);
ret = (DT)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-36: "DISCHARGE DISPOSITION" - creates it if necessary
*/
public ID getDISCHARGEDISPOSITION() {
ID ret = null;
try {
Type t = this.getField(36, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-36: "DISCHARGE DISPOSITION" - creates it if necessary
*/
public ID getPv136_DISCHARGEDISPOSITION() {
ID ret = null;
try {
Type t = this.getField(36, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-37: "DISCHARGED TO LOCATION" - creates it if necessary
*/
public ID getDISCHARGEDTOLOCATION() {
ID ret = null;
try {
Type t = this.getField(37, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-37: "DISCHARGED TO LOCATION" - creates it if necessary
*/
public ID getPv137_DISCHARGEDTOLOCATION() {
ID ret = null;
try {
Type t = this.getField(37, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-38: "DIET TYPE" - creates it if necessary
*/
public ID getDIETTYPE() {
ID ret = null;
try {
Type t = this.getField(38, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-38: "DIET TYPE" - creates it if necessary
*/
public ID getPv138_DIETTYPE() {
ID ret = null;
try {
Type t = this.getField(38, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-39: "SERVICING FACILITY" - creates it if necessary
*/
public ID getSERVICINGFACILITY() {
ID ret = null;
try {
Type t = this.getField(39, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-39: "SERVICING FACILITY" - creates it if necessary
*/
public ID getPv139_SERVICINGFACILITY() {
ID ret = null;
try {
Type t = this.getField(39, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-40: "BED STATUS" - creates it if necessary
*/
public ID getBEDSTATUS() {
ID ret = null;
try {
Type t = this.getField(40, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-40: "BED STATUS" - creates it if necessary
*/
public ID getPv140_BEDSTATUS() {
ID ret = null;
try {
Type t = this.getField(40, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-41: "ACCOUNT STATUS" - creates it if necessary
*/
public ID getACCOUNTSTATUS() {
ID ret = null;
try {
Type t = this.getField(41, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-41: "ACCOUNT STATUS" - creates it if necessary
*/
public ID getPv141_ACCOUNTSTATUS() {
ID ret = null;
try {
Type t = this.getField(41, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-42: "PENDING LOCATION" - creates it if necessary
*/
public ID getPENDINGLOCATION() {
ID ret = null;
try {
Type t = this.getField(42, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-42: "PENDING LOCATION" - creates it if necessary
*/
public ID getPv142_PENDINGLOCATION() {
ID ret = null;
try {
Type t = this.getField(42, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-43: "PRIOR TEMPORARY LOCATION" - creates it if necessary
*/
public ID getPRIORTEMPORARYLOCATION() {
ID ret = null;
try {
Type t = this.getField(43, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-43: "PRIOR TEMPORARY LOCATION" - creates it if necessary
*/
public ID getPv143_PRIORTEMPORARYLOCATION() {
ID ret = null;
try {
Type t = this.getField(43, 0);
ret = (ID)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-44: "ADMIT DATE/TIME" - creates it if necessary
*/
public TS getADMITDATETIME() {
TS ret = null;
try {
Type t = this.getField(44, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-44: "ADMIT DATE/TIME" - creates it if necessary
*/
public TS getPv144_ADMITDATETIME() {
TS ret = null;
try {
Type t = this.getField(44, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-45: "DISCHARGE DATE/TIME" - creates it if necessary
*/
public TS getDISCHARGEDATETIME() {
TS ret = null;
try {
Type t = this.getField(45, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-45: "DISCHARGE DATE/TIME" - creates it if necessary
*/
public TS getPv145_DISCHARGEDATETIME() {
TS ret = null;
try {
Type t = this.getField(45, 0);
ret = (TS)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-46: "CURRENT PATIENT BALANCE" - creates it if necessary
*/
public NM getCURRENTPATIENTBALANCE() {
NM ret = null;
try {
Type t = this.getField(46, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-46: "CURRENT PATIENT BALANCE" - creates it if necessary
*/
public NM getPv146_CURRENTPATIENTBALANCE() {
NM ret = null;
try {
Type t = this.getField(46, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-47: "TOTAL CHARGES" - creates it if necessary
*/
public NM getTOTALCHARGES() {
NM ret = null;
try {
Type t = this.getField(47, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-47: "TOTAL CHARGES" - creates it if necessary
*/
public NM getPv147_TOTALCHARGES() {
NM ret = null;
try {
Type t = this.getField(47, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-48: "TOTAL ADJUSTMENTS" - creates it if necessary
*/
public NM getTOTALADJUSTMENTS() {
NM ret = null;
try {
Type t = this.getField(48, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-48: "TOTAL ADJUSTMENTS" - creates it if necessary
*/
public NM getPv148_TOTALADJUSTMENTS() {
NM ret = null;
try {
Type t = this.getField(48, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-49: "TOTAL PAYMENTS" - creates it if necessary
*/
public NM getTOTALPAYMENTS() {
NM ret = null;
try {
Type t = this.getField(49, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/**
* Returns
* PV1-49: "TOTAL PAYMENTS" - creates it if necessary
*/
public NM getPv149_TOTALPAYMENTS() {
NM ret = null;
try {
Type t = this.getField(49, 0);
ret = (NM)t;
} catch (ClassCastException cce) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", cce);
throw new RuntimeException(cce);
} catch (HL7Exception he) {
HapiLogFactory.getHapiLog(this.getClass()).error("Unexpected problem obtaining field value. This is a bug.", he);
throw new RuntimeException(he);
}
return ret;
}
/** {@inheritDoc} */
protected Type createNewTypeWithoutReflection(int field) {
switch (field) {
case 0: return new SI(getMessage());
case 1: return new ID(getMessage(), new Integer( 4 ));
case 2: return new ID(getMessage(), new Integer( 79 ));
case 3: return new ID(getMessage(), new Integer( 7 ));
case 4: return new ST(getMessage());
case 5: return new ID(getMessage(), new Integer( 79 ));
case 6: return new CN(getMessage());
case 7: return new CN(getMessage());
case 8: return new CN(getMessage());
case 9: return new ID(getMessage(), new Integer( 69 ));
case 10: return new ID(getMessage(), new Integer( 79 ));
case 11: return new ID(getMessage(), new Integer( 87 ));
case 12: return new ID(getMessage(), new Integer( 92 ));
case 13: return new ID(getMessage(), new Integer( 23 ));
case 14: return new ID(getMessage(), new Integer( 9 ));
case 15: return new ID(getMessage(), new Integer( 99 ));
case 16: return new CN(getMessage());
case 17: return new ID(getMessage(), new Integer( 18 ));
case 18: return new NM(getMessage());
case 19: return new ID(getMessage(), new Integer( 64 ));
case 20: return new ID(getMessage(), new Integer( 32 ));
case 21: return new ID(getMessage(), new Integer( 45 ));
case 22: return new ID(getMessage(), new Integer( 46 ));
case 23: return new ID(getMessage(), new Integer( 44 ));
case 24: return new DT(getMessage());
case 25: return new NM(getMessage());
case 26: return new NM(getMessage());
case 27: return new ID(getMessage(), new Integer( 73 ));
case 28: return new ID(getMessage(), new Integer( 110 ));
case 29: return new DT(getMessage());
case 30: return new ST(getMessage());
case 31: return new NM(getMessage());
case 32: return new NM(getMessage());
case 33: return new ID(getMessage(), new Integer( 111 ));
case 34: return new DT(getMessage());
case 35: return new ID(getMessage(), new Integer( 112 ));
case 36: return new ID(getMessage(), new Integer( 113 ));
case 37: return new ID(getMessage(), new Integer( 114 ));
case 38: return new ID(getMessage(), new Integer( 115 ));
case 39: return new ID(getMessage(), new Integer( 116 ));
case 40: return new ID(getMessage(), new Integer( 117 ));
case 41: return new ID(getMessage(), new Integer( 79 ));
case 42: return new ID(getMessage(), new Integer( 79 ));
case 43: return new TS(getMessage());
case 44: return new TS(getMessage());
case 45: return new NM(getMessage());
case 46: return new NM(getMessage());
case 47: return new NM(getMessage());
case 48: return new NM(getMessage());
default: return null;
}
}
}