ca.uhn.hl7v2.model.v23.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.v23.segment;
// import ca.uhn.hl7v2.model.v23.group.*;
import ca.uhn.hl7v2.model.v23.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 (PL) optional
*
- PV1-4: Admission Type (ID) optional
*
- PV1-5: Preadmit Number (CX) optional
*
- PV1-6: Prior Patient Location (PL) optional
*
- PV1-7: Attending Doctor (XCN) optional repeating
*
- PV1-8: Referring Doctor (XCN) optional repeating
*
- PV1-9: Consulting Doctor (XCN) optional repeating
*
- PV1-10: Hospital Service (ID) optional
*
- PV1-11: Temporary Location (PL) optional
*
- PV1-12: Preadmit Test Indicator (ID) optional
*
- PV1-13: Readmission Indicator (ID) optional
*
- PV1-14: Admit Source (ID) optional
*
- PV1-15: Ambulatory Status (IS) optional repeating
*
- PV1-16: VIP Indicator (ID) optional
*
- PV1-17: Admitting Doctor (XCN) optional repeating
*
- PV1-18: Patient Type (ID) optional
*
- PV1-19: Visit Number (CX) optional
*
- PV1-20: Financial Class (FC) 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 (ID) 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 (CM_DLD) optional
*
- PV1-38: Diet Type (ID) optional
*
- PV1-39: Servicing Facility (ID) optional
*
- PV1-40: Bed Status (IS) optional
*
- PV1-41: Account Status (ID) optional
*
- PV1-42: Pending Location (PL) optional
*
- PV1-43: Prior Temporary Location (PL) 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
*
- PV1-50: Alternate Visit ID (CX) optional
*
- PV1-51: Visit Indicator (IS) optional
*
- PV1-52: Other Healthcare Provider (XCN) optional repeating
*
*/
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(PL.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Assigned Patient Location");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Admission Type");
this.add(CX.class, false, 1, 20, new Object[]{ getMessage(), new Integer(0) }, "Preadmit Number");
this.add(PL.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Prior Patient Location");
this.add(XCN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(10) }, "Attending Doctor");
this.add(XCN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(10) }, "Referring Doctor");
this.add(XCN.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(PL.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Temporary Location");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Preadmit Test Indicator");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Readmission Indicator");
this.add(ID.class, false, 1, 3, new Object[]{ getMessage() }, "Admit Source");
this.add(IS.class, false, 0, 2, new Object[]{ getMessage() }, "Ambulatory Status");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "VIP Indicator");
this.add(XCN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(10) }, "Admitting Doctor");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Patient Type");
this.add(CX.class, false, 1, 15, new Object[]{ getMessage(), new Integer(0) }, "Visit Number");
this.add(FC.class, false, 0, 50, new Object[]{ getMessage(), new Integer(64) }, "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(ID.class, false, 1, 10, new Object[]{ getMessage() }, "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, 3, new Object[]{ getMessage() }, "Discharge Disposition");
this.add(CM_DLD.class, false, 1, 25, new Object[]{ getMessage(), new Integer(113) }, "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(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Bed Status");
this.add(ID.class, false, 1, 2, new Object[]{ getMessage() }, "Account Status");
this.add(PL.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Pending Location");
this.add(PL.class, false, 1, 12, new Object[]{ getMessage(), new Integer(0) }, "Prior Temporary Location");
this.add(TS.class, false, 1, 26, new Object[]{ getMessage(), new Integer(0) }, "Admit Date/Time");
this.add(TS.class, false, 1, 26, 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");
this.add(CX.class, false, 1, 20, new Object[]{ getMessage(), new Integer(192) }, "Alternate Visit ID");
this.add(IS.class, false, 1, 1, new Object[]{ getMessage() }, "Visit Indicator");
this.add(XCN.class, false, 0, 60, new Object[]{ getMessage(), new Integer(10) }, "Other Healthcare Provider");
} 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 PL getAssignedPatientLocation() {
PL ret = null;
try {
Type t = this.getField(3, 0);
ret = (PL)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 PL getPv13_AssignedPatientLocation() {
PL ret = null;
try {
Type t = this.getField(3, 0);
ret = (PL)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: "Preadmit Number" - creates it if necessary
*/
public CX getPreadmitNumber() {
CX ret = null;
try {
Type t = this.getField(5, 0);
ret = (CX)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: "Preadmit Number" - creates it if necessary
*/
public CX getPv15_PreadmitNumber() {
CX ret = null;
try {
Type t = this.getField(5, 0);
ret = (CX)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 PL getPriorPatientLocation() {
PL ret = null;
try {
Type t = this.getField(6, 0);
ret = (PL)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 PL getPv16_PriorPatientLocation() {
PL ret = null;
try {
Type t = this.getField(6, 0);
ret = (PL)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 Attending Doctor (PV1-7).
*/
public XCN[] getAttendingDoctor() {
XCN[] ret = null;
try {
Type[] t = this.getField(7);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 count of the current number of repetitions of Attending Doctor (PV1-7).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAttendingDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(7);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-7: "Attending Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getAttendingDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(7, rep);
ret = (XCN)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-7: "Attending Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getPv17_AttendingDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(7, rep);
ret = (XCN)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 count of the current number of repetitions of Attending Doctor (PV1-7).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv17_AttendingDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(7);
return t.length;
} 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);
}
}
/**
* Inserts a repetition of
* PV1-7: "Attending 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 XCN insertAttendingDoctor(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(7, rep);
}
/**
* Inserts a repetition of
* PV1-7: "Attending 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 XCN insertPv17_AttendingDoctor(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(7, rep);
}
/**
* Removes a repetition of
* PV1-7: "Attending 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 XCN removeAttendingDoctor(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(7, rep);
}
/**
* Removes a repetition of
* PV1-7: "Attending 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 XCN removePv17_AttendingDoctor(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(7, rep);
}
/**
* Returns all repetitions of Referring Doctor (PV1-8).
*/
public XCN[] getReferringDoctor() {
XCN[] ret = null;
try {
Type[] t = this.getField(8);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 count of the current number of repetitions of Referring Doctor (PV1-8).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getReferringDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(8);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-8: "Referring Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getReferringDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(8, rep);
ret = (XCN)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-8: "Referring Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getPv18_ReferringDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(8, rep);
ret = (XCN)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 count of the current number of repetitions of Referring Doctor (PV1-8).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv18_ReferringDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(8);
return t.length;
} 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);
}
}
/**
* Inserts a repetition of
* PV1-8: "Referring 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 XCN insertReferringDoctor(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(8, rep);
}
/**
* Inserts a repetition of
* PV1-8: "Referring 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 XCN insertPv18_ReferringDoctor(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(8, rep);
}
/**
* Removes a repetition of
* PV1-8: "Referring 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 XCN removeReferringDoctor(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(8, rep);
}
/**
* Removes a repetition of
* PV1-8: "Referring 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 XCN removePv18_ReferringDoctor(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(8, rep);
}
/**
* Returns all repetitions of Consulting Doctor (PV1-9).
*/
public XCN[] getConsultingDoctor() {
XCN[] ret = null;
try {
Type[] t = this.getField(9);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 count of the current number of repetitions of Consulting Doctor (PV1-9).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getConsultingDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(9);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-9: "Consulting Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getConsultingDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(9, rep);
ret = (XCN)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 XCN getPv19_ConsultingDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(9, rep);
ret = (XCN)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 count of the current number of repetitions of Consulting Doctor (PV1-9).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv19_ConsultingDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(9);
return t.length;
} 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);
}
}
/**
* 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 XCN insertConsultingDoctor(int rep) throws HL7Exception {
return (XCN) 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 XCN insertPv19_ConsultingDoctor(int rep) throws HL7Exception {
return (XCN) 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 XCN removeConsultingDoctor(int rep) throws HL7Exception {
return (XCN) 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 XCN removePv19_ConsultingDoctor(int rep) throws HL7Exception {
return (XCN) 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 PL getTemporaryLocation() {
PL ret = null;
try {
Type t = this.getField(11, 0);
ret = (PL)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 PL getPv111_TemporaryLocation() {
PL ret = null;
try {
Type t = this.getField(11, 0);
ret = (PL)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: "Preadmit 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: "Preadmit 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: "Readmission 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: "Readmission 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 all repetitions of Ambulatory Status (PV1-15).
*/
public IS[] getAmbulatoryStatus() {
IS[] ret = null;
try {
Type[] t = this.getField(15);
ret = new IS[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (IS)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 count of the current number of repetitions of Ambulatory Status (PV1-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAmbulatoryStatusReps() {
IS[] ret = null;
try {
Type[] t = this.getField(15);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-15: "Ambulatory Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getAmbulatoryStatus(int rep) {
IS ret = null;
try {
Type t = this.getField(15, rep);
ret = (IS)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-15: "Ambulatory Status" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public IS getPv115_AmbulatoryStatus(int rep) {
IS ret = null;
try {
Type t = this.getField(15, rep);
ret = (IS)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 count of the current number of repetitions of Ambulatory Status (PV1-15).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv115_AmbulatoryStatusReps() {
IS[] ret = null;
try {
Type[] t = this.getField(15);
return t.length;
} 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);
}
}
/**
* Inserts a repetition of
* PV1-15: "Ambulatory Status" 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 IS insertAmbulatoryStatus(int rep) throws HL7Exception {
return (IS) super.insertRepetition(15, rep);
}
/**
* Inserts a repetition of
* PV1-15: "Ambulatory Status" 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 IS insertPv115_AmbulatoryStatus(int rep) throws HL7Exception {
return (IS) super.insertRepetition(15, rep);
}
/**
* Removes a repetition of
* PV1-15: "Ambulatory Status" 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 IS removeAmbulatoryStatus(int rep) throws HL7Exception {
return (IS) super.removeRepetition(15, rep);
}
/**
* Removes a repetition of
* PV1-15: "Ambulatory Status" 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 IS removePv115_AmbulatoryStatus(int rep) throws HL7Exception {
return (IS) super.removeRepetition(15, rep);
}
/**
* 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 all repetitions of Admitting Doctor (PV1-17).
*/
public XCN[] getAdmittingDoctor() {
XCN[] ret = null;
try {
Type[] t = this.getField(17);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 count of the current number of repetitions of Admitting Doctor (PV1-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getAdmittingDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(17);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-17: "Admitting Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getAdmittingDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(17, rep);
ret = (XCN)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-17: "Admitting Doctor" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getPv117_AdmittingDoctor(int rep) {
XCN ret = null;
try {
Type t = this.getField(17, rep);
ret = (XCN)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 count of the current number of repetitions of Admitting Doctor (PV1-17).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv117_AdmittingDoctorReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(17);
return t.length;
} 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);
}
}
/**
* Inserts a repetition of
* PV1-17: "Admitting 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 XCN insertAdmittingDoctor(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(17, rep);
}
/**
* Inserts a repetition of
* PV1-17: "Admitting 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 XCN insertPv117_AdmittingDoctor(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(17, rep);
}
/**
* Removes a repetition of
* PV1-17: "Admitting 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 XCN removeAdmittingDoctor(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(17, rep);
}
/**
* Removes a repetition of
* PV1-17: "Admitting 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 XCN removePv117_AdmittingDoctor(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(17, rep);
}
/**
* 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 CX getVisitNumber() {
CX ret = null;
try {
Type t = this.getField(19, 0);
ret = (CX)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 CX getPv119_VisitNumber() {
CX ret = null;
try {
Type t = this.getField(19, 0);
ret = (CX)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 FC[] getFinancialClass() {
FC[] ret = null;
try {
Type[] t = this.getField(20);
ret = new FC[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (FC)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 count of the current number of repetitions of Financial Class (PV1-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getFinancialClassReps() {
FC[] ret = null;
try {
Type[] t = this.getField(20);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-20: "Financial Class" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public FC getFinancialClass(int rep) {
FC ret = null;
try {
Type t = this.getField(20, rep);
ret = (FC)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 FC getPv120_FinancialClass(int rep) {
FC ret = null;
try {
Type t = this.getField(20, rep);
ret = (FC)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 count of the current number of repetitions of Financial Class (PV1-20).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv120_FinancialClassReps() {
FC[] ret = null;
try {
Type[] t = this.getField(20);
return t.length;
} 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);
}
}
/**
* 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 FC insertFinancialClass(int rep) throws HL7Exception {
return (FC) 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 FC insertPv120_FinancialClass(int rep) throws HL7Exception {
return (FC) 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 FC removeFinancialClass(int rep) throws HL7Exception {
return (FC) 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 FC removePv120_FinancialClass(int rep) throws HL7Exception {
return (FC) 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 count of the current number of repetitions of Contract Code (PV1-24).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContractCodeReps() {
ID[] ret = null;
try {
Type[] t = this.getField(24);
return t.length;
} 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);
}
}
/**
* 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;
}
/**
* Returns a count of the current number of repetitions of Contract Code (PV1-24).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv124_ContractCodeReps() {
ID[] ret = null;
try {
Type[] t = this.getField(24);
return t.length;
} 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);
}
}
/**
* 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 count of the current number of repetitions of Contract Effective Date (PV1-25).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContractEffectiveDateReps() {
DT[] ret = null;
try {
Type[] t = this.getField(25);
return t.length;
} 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);
}
}
/**
* 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;
}
/**
* Returns a count of the current number of repetitions of Contract Effective Date (PV1-25).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv125_ContractEffectiveDateReps() {
DT[] ret = null;
try {
Type[] t = this.getField(25);
return t.length;
} 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);
}
}
/**
* 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 count of the current number of repetitions of Contract Amount (PV1-26).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContractAmountReps() {
NM[] ret = null;
try {
Type[] t = this.getField(26);
return t.length;
} 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);
}
}
/**
* 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;
}
/**
* Returns a count of the current number of repetitions of Contract Amount (PV1-26).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv126_ContractAmountReps() {
NM[] ret = null;
try {
Type[] t = this.getField(26);
return t.length;
} 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);
}
}
/**
* 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 count of the current number of repetitions of Contract Period (PV1-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getContractPeriodReps() {
NM[] ret = null;
try {
Type[] t = this.getField(27);
return t.length;
} 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);
}
}
/**
* 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;
}
/**
* Returns a count of the current number of repetitions of Contract Period (PV1-27).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv127_ContractPeriodReps() {
NM[] ret = null;
try {
Type[] t = this.getField(27);
return t.length;
} 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);
}
}
/**
* 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 ID getBadDebtAgencyCode() {
ID ret = null;
try {
Type t = this.getField(31, 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-31: "Bad Debt Agency Code" - creates it if necessary
*/
public ID getPv131_BadDebtAgencyCode() {
ID ret = null;
try {
Type t = this.getField(31, 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-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 CM_DLD getDischargedToLocation() {
CM_DLD ret = null;
try {
Type t = this.getField(37, 0);
ret = (CM_DLD)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 CM_DLD getPv137_DischargedToLocation() {
CM_DLD ret = null;
try {
Type t = this.getField(37, 0);
ret = (CM_DLD)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 IS getBedStatus() {
IS ret = null;
try {
Type t = this.getField(40, 0);
ret = (IS)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 IS getPv140_BedStatus() {
IS ret = null;
try {
Type t = this.getField(40, 0);
ret = (IS)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 PL getPendingLocation() {
PL ret = null;
try {
Type t = this.getField(42, 0);
ret = (PL)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 PL getPv142_PendingLocation() {
PL ret = null;
try {
Type t = this.getField(42, 0);
ret = (PL)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 PL getPriorTemporaryLocation() {
PL ret = null;
try {
Type t = this.getField(43, 0);
ret = (PL)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 PL getPv143_PriorTemporaryLocation() {
PL ret = null;
try {
Type t = this.getField(43, 0);
ret = (PL)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;
}
/**
* Returns
* PV1-50: "Alternate Visit ID" - creates it if necessary
*/
public CX getAlternateVisitID() {
CX ret = null;
try {
Type t = this.getField(50, 0);
ret = (CX)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-50: "Alternate Visit ID" - creates it if necessary
*/
public CX getPv150_AlternateVisitID() {
CX ret = null;
try {
Type t = this.getField(50, 0);
ret = (CX)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-51: "Visit Indicator" - creates it if necessary
*/
public IS getVisitIndicator() {
IS ret = null;
try {
Type t = this.getField(51, 0);
ret = (IS)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-51: "Visit Indicator" - creates it if necessary
*/
public IS getPv151_VisitIndicator() {
IS ret = null;
try {
Type t = this.getField(51, 0);
ret = (IS)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 Other Healthcare Provider (PV1-52).
*/
public XCN[] getOtherHealthcareProvider() {
XCN[] ret = null;
try {
Type[] t = this.getField(52);
ret = new XCN[t.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (XCN)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 count of the current number of repetitions of Other Healthcare Provider (PV1-52).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getOtherHealthcareProviderReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(52);
return t.length;
} 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);
}
}
/**
* Returns a specific repetition of
* PV1-52: "Other Healthcare Provider" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getOtherHealthcareProvider(int rep) {
XCN ret = null;
try {
Type t = this.getField(52, rep);
ret = (XCN)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-52: "Other Healthcare Provider" - creates it if necessary
*
* @param rep The repetition index (0-indexed)
*/
public XCN getPv152_OtherHealthcareProvider(int rep) {
XCN ret = null;
try {
Type t = this.getField(52, rep);
ret = (XCN)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 count of the current number of repetitions of Other Healthcare Provider (PV1-52).
* This method does not create a repetition, so if no repetitions have currently been defined or accessed,
* it will return zero.
*/
public int getPv152_OtherHealthcareProviderReps() {
XCN[] ret = null;
try {
Type[] t = this.getField(52);
return t.length;
} 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);
}
}
/**
* Inserts a repetition of
* PV1-52: "Other Healthcare Provider" 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 XCN insertOtherHealthcareProvider(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(52, rep);
}
/**
* Inserts a repetition of
* PV1-52: "Other Healthcare Provider" 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 XCN insertPv152_OtherHealthcareProvider(int rep) throws HL7Exception {
return (XCN) super.insertRepetition(52, rep);
}
/**
* Removes a repetition of
* PV1-52: "Other Healthcare Provider" 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 XCN removeOtherHealthcareProvider(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(52, rep);
}
/**
* Removes a repetition of
* PV1-52: "Other Healthcare Provider" 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 XCN removePv152_OtherHealthcareProvider(int rep) throws HL7Exception {
return (XCN) super.removeRepetition(52, rep);
}
/** {@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 PL(getMessage());
case 3: return new ID(getMessage(), new Integer( 7 ));
case 4: return new CX(getMessage());
case 5: return new PL(getMessage());
case 6: return new XCN(getMessage());
case 7: return new XCN(getMessage());
case 8: return new XCN(getMessage());
case 9: return new ID(getMessage(), new Integer( 69 ));
case 10: return new PL(getMessage());
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 IS(getMessage(), new Integer( 9 ));
case 15: return new ID(getMessage(), new Integer( 99 ));
case 16: return new XCN(getMessage());
case 17: return new ID(getMessage(), new Integer( 18 ));
case 18: return new CX(getMessage());
case 19: return new FC(getMessage());
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 ID(getMessage(), new Integer( 21 ));
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 CM_DLD(getMessage());
case 37: return new ID(getMessage(), new Integer( 114 ));
case 38: return new ID(getMessage(), new Integer( 115 ));
case 39: return new IS(getMessage(), new Integer( 116 ));
case 40: return new ID(getMessage(), new Integer( 117 ));
case 41: return new PL(getMessage());
case 42: return new PL(getMessage());
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());
case 49: return new CX(getMessage());
case 50: return new IS(getMessage(), new Integer( 326 ));
case 51: return new XCN(getMessage());
default: return null;
}
}
}