public class MedicareRecord
extends java.lang.Object
This class demonstrates how a COBOL copybook can be represented in Java using the
JZOS Field
classes. An instance of the CobolDatatypeFactory
is
used to construct static member fields which represent the various fields from the
copybook. The actual copybook field definitions are included as comments prior
to each Java field definition.
Instances of this class accept a byte array (either on the constructor or via the method
setBytes(byte[])
. This byte array represents a COBOL record matching
the MedicareRecord described by the copybook. Individual fields can be accessed via
the supplied getter and setter methods.
Modifier and Type | Field and Description |
---|---|
static int |
BUF_LEN |
Constructor and Description |
---|
MedicareRecord() |
MedicareRecord(byte[] buffer) |
Modifier and Type | Method and Description |
---|---|
int |
getAdmissionDate() |
java.lang.String |
getAutoAdjustmentInd() |
int |
getBenefitsExhaustInd() |
int |
getBenefitsPayInd() |
int |
getBillSource() |
java.math.BigDecimal |
getBloodDed() |
int |
getBloodPintsFurnished() |
int |
getBloodPintsReplaced() |
byte[] |
getBytes()
Answer the underlying byte array mapped by this object.
|
java.lang.String |
getClaimNumber()
Get the ClaimNumber.
|
int |
getCoinsuranceDays()
Get the CoinsuranceDays.
|
int |
getDischargeDate()
Get the DischargeDate.
|
int |
getFromDate()
Get the FromDate.
|
int |
getFullDays()
Get the FullDays.
|
java.math.BigDecimal |
getInpatientDed()
Get the InpatientDed.
|
java.lang.String |
getIntermediaryCtrlNum()
Get the IntermediaryCtrlNum.
|
long |
getIntermediaryNum()
Get the IntermediaryNum.
|
int |
getLifetimeResDays()
Get the LifetimeResDays.
|
java.lang.String |
getMedicareProvider()
Get the MedicareProvider.
|
java.lang.String |
getPatientStatus()
Get the PatientStatus.
|
int |
getSequenceCounter()
Get the SequenceCounter.
|
int |
getThruDate()
Get the ThruDate.
|
java.math.BigDecimal |
getTotalCharges()
Get the TotalCharges.
|
int |
getTransactionInd()
Get the TransactionInd.
|
void |
setAdmissionDate(int admissionDate) |
void |
setAutoAdjustmentInd(java.lang.String autoAdjustmentInd) |
void |
setBenefitsExhaustInd(int benefitsExhaustInd) |
void |
setBenefitsPayInd(int benefitsPayInd) |
void |
setBillSource(int billSource) |
void |
setBloodDed(java.math.BigDecimal bloodDed) |
void |
setBloodPintsFurnished(int bloodPintsFurnished) |
void |
setBloodPintsReplaced(int bloodPintsReplaced) |
void |
setBytes(byte[] buffer) |
void |
setClaimNumber(java.lang.String claimNumber) |
void |
setCoinsuranceDays(int coinsuranceDays) |
void |
setDischargeDate(int dischargeDate) |
void |
setFromDate(int fromDate) |
void |
setFullDays(int fullDays) |
void |
setInpatientDed(java.math.BigDecimal inpatientDed) |
void |
setIntermediaryCtrlNum(java.lang.String intermediaryCtrlNum) |
void |
setIntermediaryNum(long intermediaryNum) |
void |
setLifetimeResDays(int lifetimeResDays) |
void |
setMedicareProvider(java.lang.String medicareProvider) |
void |
setPatientStatus(java.lang.String patientStatus) |
void |
setSequenceCounter(int sequenceCounter) |
void |
setThruDate(int thruDate) |
void |
setTotalCharges(java.math.BigDecimal totalCharges) |
void |
setTransactionInd(int transactionInd) |
public static final int BUF_LEN
public MedicareRecord()
public MedicareRecord(byte[] buffer)
public byte[] getBytes()
public void setBytes(byte[] buffer)
public int getAdmissionDate()
public void setAdmissionDate(int admissionDate)
public java.lang.String getAutoAdjustmentInd()
public void setAutoAdjustmentInd(java.lang.String autoAdjustmentInd)
public int getBenefitsExhaustInd()
public void setBenefitsExhaustInd(int benefitsExhaustInd)
public int getBenefitsPayInd()
public void setBenefitsPayInd(int benefitsPayInd)
public int getBillSource()
public void setBillSource(int billSource)
public java.math.BigDecimal getBloodDed()
public void setBloodDed(java.math.BigDecimal bloodDed)
public int getBloodPintsFurnished()
public void setBloodPintsFurnished(int bloodPintsFurnished)
public int getBloodPintsReplaced()
public void setBloodPintsReplaced(int bloodPintsReplaced)
public java.lang.String getClaimNumber()
05 ClaimNumber PIC X(19).
public void setClaimNumber(java.lang.String claimNumber)
getClaimNumber()
public int getCoinsuranceDays()
05 CoinsuranceDays BINARY PIC 9(4).
public void setCoinsuranceDays(int coinsuranceDays)
getCoinsuranceDays()
public int getDischargeDate()
05 DischargeDate PACKED-DECIMAL PIC S9(7).
public void setDischargeDate(int dischargeDate)
getDischargeDate()
public int getFromDate()
05 FromDate PACKED-DECIMAL PIC S9(7).
public void setFromDate(int fromDate)
getFromDate()
public int getFullDays()
05 FullDays PACKED-DECIMAL PIC S9(5).
public void setFullDays(int fullDays)
getFullDays()
public java.math.BigDecimal getInpatientDed()
05 InpatientDed PACKED-DECIMAL PIC S9(4)V99.
public void setInpatientDed(java.math.BigDecimal inpatientDed)
getInpatientDed()
public java.lang.String getIntermediaryCtrlNum()
05 IntermediaryCtrlNum PIC X(23).
public void setIntermediaryCtrlNum(java.lang.String intermediaryCtrlNum)
getIntermediaryCtrlNum()
public long getIntermediaryNum()
05 IntermediaryNum BINARY PIC 9(10).
public void setIntermediaryNum(long intermediaryNum)
getIntermediaryNum()
public int getLifetimeResDays()
05 LifetimeResDays BINARY PIC 9(6).
public void setLifetimeResDays(int lifetimeResDays)
getLifetimeResDays()
public java.lang.String getMedicareProvider()
05 MedicareProvider PIC X(13).
public void setMedicareProvider(java.lang.String medicareProvider)
getMedicareProvider()
public java.lang.String getPatientStatus()
05 PatientStatus PIC X(2).
public void setPatientStatus(java.lang.String patientStatus)
getPatientStatus()
public int getSequenceCounter()
05 SequenceCounter BINARY PIC 9(3).
public void setSequenceCounter(int sequenceCounter)
getSequenceCounter()
public int getThruDate()
05 ThruDate PACKED-DECIMAL PIC S9(7).
public void setThruDate(int thruDate)
getThruDate()
public java.math.BigDecimal getTotalCharges()
05 TotalCharges PIC S9(7)V99 DISPLAY SIGN LEADING.
public void setTotalCharges(java.math.BigDecimal totalCharges)
getTotalCharges()
public int getTransactionInd()
05 TransactionInd PIC 9.
public void setTransactionInd(int transactionInd)
getTransactionInd()