Summary Table

Categories Total Count
PII 0
URL 0
DNS 1
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.med.ewv.model.response;

import java.util.ArrayList;
import java.util.List;
import java.util.StringJoiner;

import com.fasterxml.jackson.annotation.JsonIgnore;

import gov.va.med.ewv.codes.DiagnosisCode;
import gov.va.med.ewv.codes.DiagnosisCodesContainer;
import gov.va.med.ewv.codes.ECode;
import gov.va.med.ewv.codes.ECodesContainer;
import gov.va.med.ewv.codes.ProcedureCode;
import gov.va.med.ewv.codes.ProcedureCodesContainer;
import gov.va.med.ewv.util.ClaimFormat;
import gov.va.med.ewv.util.ClaimType;
import gov.va.med.ewv.util.ServiceLine;

/**
* Contains Java class representation of the response in JSON format for the
* "/api/v1/ewvClaim/{pdiNumber}" RESTFul web Service in the EwvClaimController
* Java class. This class contains information associated with a Claim in the
* EWV database.
*
* @author
DNS
*/
public class EwvClaimDetailResponse{

private PatientHeaderInfo patientHeaderInfo;
private PatientInfo patientInfo;
private VendorInfo serviceLocationInfo;
private VendorInfo billingProviderInfo;
private BillingAndAdmissionInfo billingMiscellanous;

@JsonIgnore
private DiagnosisCodesContainer diagnosisCodesInfo;

private ProcedureCodesContainer procedureCodesInfo;

@JsonIgnore
private ECodesContainer e_CodesInfo;

// private List<String> px;
// private List<String> dx;
// private List<String> eCodes;
private HealthCareInfoResponse healthCareInfo;
private List<ServiceLine> serviceLinesInfo;
private OhiInfoContainer ohiInfo;
private AmbulanceInfo claimLevelAmbulanceInfo;

/**
* Constructor.
*/
public EwvClaimDetailResponse() {
super();
// TODO Auto-generated constructor stub
}

/**
* Gets the Patient Header information of an EWV Claim.
*
* @return - the Patient Header information of an EWV Claim
*/
public PatientHeaderInfo getPatientHeaderInfo() {
return patientHeaderInfo;
}

/**
* Sets the Patient Header information of an EWV Claim.
*
* @param patientHeaderInfo - the Patient Header information that is to
* be set for an EWV Claim
*/
public void setPatientHeaderInfo(PatientHeaderInfo patientHeaderInfo) {
this.patientHeaderInfo = patientHeaderInfo;
}

/**
* Gets the Patient Information of an EWV Claim.
*
* @return - the Patient Information of an EWV Claim
*/
public PatientInfo getPatientInfo() {
return patientInfo;
}

/**
* Sets the Patient Information of an EWV Claim.
*
* @param patientInfo - the Patient Information that is to
* be set for an EWV Claim
*/
public void setPatientInfo(PatientInfo patientInfo) {
this.patientInfo = patientInfo;
}

/**
* Gets the Service Location Information of an EWV Claim.
*
* @return - the Service Location Information of an EWV Claim
*/
public VendorInfo getServiceLocationInfo() {
return serviceLocationInfo;
}

/**
* Sets the Service Location Information of an EWV Claim.
*
* @param serviceLocationInfo - the Service Location Information
* that is to be set for an EWV Claim
*/
public void setServiceLocationInfo(VendorInfo serviceLocationInfo) {
this.serviceLocationInfo = serviceLocationInfo;
}

/**
* Gets the Billing Provider Information of an EWV Claim.
*
* @return - the the Billing Provider Information of an EWV Claim
*/
public VendorInfo getBillingProviderInfo() {
return billingProviderInfo;
}

/**
* Sets the Billing Provider Information of an EWV Claim.
*
* @param billingProviderInfo - the Billing Provider Information
* that is to be set for an EWV Claim
*/
public void setBillingProviderInfo(VendorInfo billingProviderInfo) {
this.billingProviderInfo = billingProviderInfo;
}

/**
* Gets the Billing Miscellaneous information of an EWV Claim.
*
* @return - the Billing Miscellaneous information of an EWV Claim
*/
public BillingAndAdmissionInfo getBillingMiscellanous() {
return billingMiscellanous;
}

/**
* Sets the Billing Miscellaneous information of an EWV Claim.
*
* @param billingMiscellanous - the Billing Miscellaneous information
* that is to be set for an EWV Claim
*/
public void setBillingMiscellanous(BillingAndAdmissionInfo billingMiscellanous) {
this.billingMiscellanous = billingMiscellanous;
}

/**
* Gets the Diagnosis Codes Information of an EWV Claim.
*
* @return - he Diagnosis Codes Information of an EWV Claim
*/
public DiagnosisCodesContainer getDiagnosisCodesInfo() {
return diagnosisCodesInfo;
}

/**
* Sets the Diagnosis Codes Information of an EWV Claim.
*
* @param diagnosisCodesInfo - the Diagnosis Codes Information
* that is to be set for an EWV Claim
*/
public void setDiagnosisCodesInfo(DiagnosisCodesContainer diagnosisCodesInfo) {
this.diagnosisCodesInfo = diagnosisCodesInfo;
}

/**
* Gets the Procedure Codes Information of an EWV Claim.
*
* @return - the Procedure Codes Information of an EWV Claim
*/
public ProcedureCodesContainer getProcedureCodesInfo() {
return procedureCodesInfo;
}

/**
* Sets the Procedure Codes Information of an EWV Claim.
*
* @param procedureCodesInfo - the Procedure Codes Information
* that is to be set for an EWV Claim
*/
public void setProcedureCodesInfo(ProcedureCodesContainer procedureCodesInfo) {
this.procedureCodesInfo = procedureCodesInfo;
}

/**
* Gets the E-Codes Information of an EWV Claim.
*
* @return - the E-Codes Information of an EWV Claim
*/
public ECodesContainer getE_CodesInfo() {
return e_CodesInfo;
}

/**
* Sets the E-Codes Information of an EWV Claim.
*
* @param e_CodesInfo - the E-Codes Information
* that is to be set for an EWV Claim
*/
public void setE_CodesInfo(ECodesContainer e_CodesInfo) {
this.e_CodesInfo = e_CodesInfo;
}

/**
* Gets the List of PX associated with the Procedure Codes
* Information of an EWV Claim.
*
* @return - the List of PX associated with the Procedure Codes
* Information of an EWV Claim; if the Procedure Codes
* Information of the EWV Claim is null, then null is
* returned
*/
public List<String> getPx() {
if(procedureCodesInfo == null) {
return null;
}

return this.procedureCodesInfo.getPx();
}

// /**
// * Sets the List of PX associated with an EWV Claim.
// *
// * @param px - the List of PX
// * that is to be set for an EWV Claim
// */
// public void setPx(List<String> px) {
// this.px = px;
// }

/**
* Gets the List of DX associated with the Diagnosis Codes
* Information of an EWV Claim.
*
* @return - the List of DX associated with the Diagnosis Codes
* Information of an EWV Claim; if the Diagnosis Codes
* Information of the EWV Claim is null, then null is
* returned
*/
public List<String> getDx() {
if(diagnosisCodesInfo == null) {
return null;
}

return this.getDiagnosisCodesInfo().getDx();
}

// /**
// * Sets the List of DX associated with an EWV Claim.
// *
// * @param dx - the List of DX
// * that is to be set for an EWV Claim
// */
// public void setDx(List<String> dx) {
// this.dx = dx;
// }
//
/**
* Gets the List of E-Codes associated with the E-Codes
* Information of an EWV Claim.
*
* @return - the List of E-Codes associated with the E-Codes
* Information of an EWV Claim; if the E-Codes
* Information of the EWV Claim is null, then null is
* returned
*/
public List<String> geteCodes() {
if(e_CodesInfo == null) {
return null;
}

return this.e_CodesInfo.geteCodes();
}

// /**
// * Sets the List of E-Codes associated with an EWV Claim.
// *
// * @param eCodes - the List of E-Codes
// * that is to be set for an EWV Claim
// */
// public void seteCodes(List<String> eCodes) {
// this.eCodes = eCodes;
// }
//
/**
* Gets the Health Care Information Response of an EWV Claim.
*
* @return - the Health Care Information Response of an EWV Claim
*/
public HealthCareInfoResponse getHealthCareInfo() {
return healthCareInfo;
}

/**
* Sets the Health Care Information Response of an EWV Claim.
*
* @param healthCareInfo - the Health Care Information Response
* that is to be set for an EWV Claim
*/
public void setHealthCareInfo(HealthCareInfoResponse healthCareInfo) {
this.healthCareInfo = healthCareInfo;
}

/**
* Gets the Service Lines Information of an EWV Claim.
*
* @return - the Service Lines Information of an EWV Claim
*/
public List<ServiceLine> getServiceLinesInfo() {
return serviceLinesInfo;
}

/**
* Sets the Service Lines Information of an EWV Claim.
*
* @param serviceLinesInfo - the Service Lines Information
* that is to be set for an EWV Claim
*/
public void setServiceLinesInfo(List<ServiceLine> serviceLinesInfo) {
this.serviceLinesInfo = serviceLinesInfo;
}

/**
* Gets the OHI Information of an EWV Claim.
*
* @return - the OHI Information of an EWV Claim
*/
public OhiInfoContainer getOhiInfo() {
return ohiInfo;
}

/**
* Sets the OHI Information of an EWV Claim.
*
* @param ohiInfo - the OHI Information
* that is to be set for an EWV Claim
*/
public void setOhiInfo(OhiInfoContainer ohiInfo) {
this.ohiInfo = ohiInfo;
}

/**
* Gets the Claim Level Ambulance Information of an EWV Claim.
*
* @return - the Claim Level Ambulance Information of an EWV Claim
*/
public AmbulanceInfo getClaimLevelAmbulanceInfo() {
return claimLevelAmbulanceInfo;
}

/**
* Sets the Claim Level Ambulance Information of an EWV Claim.
*
* @param claimLevelAmbulanceInfo - the Claim Level Ambulance Information
* that is to be set for an EWV Claim
*/
public void setClaimLevelAmbulanceInfo(AmbulanceInfo claimLevelAmbulanceInfo) {
this.claimLevelAmbulanceInfo = claimLevelAmbulanceInfo;
}

/**
* Constructor.
*
* @param patientHeaderInfo - the Patient Header Information that is to be set for this EWV Claim
* @param patientInfo - the Patient Information that is to be set for this EWV Claim
* @param serviceLocationInfo - the Service Location Information that is to be set for this EWV Claim
* @param billingProviderInfo - the Billing Provider Information that is to be set for this EWV Claim
* @param billingMiscellanous - the Billing Miscellaneous information that is to be set for this EWV Claim
* @param diagnosisCodesInfo - the Diagnosis Codes Information that is to be set for this EWV Claim
* @param procedureCodesInfo - the Procedure Codes Information that is to be set for this EWV Claim
* @param e_CodesInfo - the E-Codes Information that is to be set for this EWV Claim
* @param healthCareInfo - the Health Care Information that is to be set for this EWV Claim
* @param serviceLinesInfo - the Service Lines Information that is to be set for this EWV Claim
* @param ohiInfo - OHI Information that is to be set for this EWV Claim
* @param claimLevelAmbulanceInfo - the Claim Level Ambulance Information that is to be set for this EWV Claim
*/
public EwvClaimDetailResponse(PatientHeaderInfo patientHeaderInfo, PatientInfo patientInfo,
VendorInfo serviceLocationInfo, VendorInfo billingProviderInfo, BillingAndAdmissionInfo billingMiscellanous,
DiagnosisCodesContainer diagnosisCodesInfo, ProcedureCodesContainer procedureCodesInfo,
ECodesContainer e_CodesInfo, HealthCareInfoResponse healthCareInfo, List<ServiceLine> serviceLinesInfo, OhiInfoContainer ohiInfo,
AmbulanceInfo claimLevelAmbulanceInfo) {
super();
this.patientHeaderInfo = patientHeaderInfo;
this.patientInfo = patientInfo;
this.serviceLocationInfo = serviceLocationInfo;
this.billingProviderInfo = billingProviderInfo;
this.billingMiscellanous = billingMiscellanous;
this.diagnosisCodesInfo = diagnosisCodesInfo;
this.procedureCodesInfo = procedureCodesInfo;
this.e_CodesInfo = e_CodesInfo;
this.healthCareInfo = healthCareInfo;
this.serviceLinesInfo = serviceLinesInfo;
this.ohiInfo = ohiInfo;
this.claimLevelAmbulanceInfo = claimLevelAmbulanceInfo;
}

/**
* Gets a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap.
* See the https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode-- web page for details.
*
* @return - a hash code value for the object
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((billingMiscellanous == null) ? 0 : billingMiscellanous.hashCode());
result = prime * result + ((billingProviderInfo == null) ? 0 : billingProviderInfo.hashCode());
result = prime * result + ((claimLevelAmbulanceInfo == null) ? 0 : claimLevelAmbulanceInfo.hashCode());
result = prime * result + ((diagnosisCodesInfo == null) ? 0 : diagnosisCodesInfo.hashCode());
// result = prime * result + ((dx == null) ? 0 : dx.hashCode());
// result = prime * result + ((eCodes == null) ? 0 : eCodes.hashCode());
result = prime * result + ((e_CodesInfo == null) ? 0 : e_CodesInfo.hashCode());
result = prime * result + ((healthCareInfo == null) ? 0 : healthCareInfo.hashCode());
result = prime * result + ((ohiInfo == null) ? 0 : ohiInfo.hashCode());
result = prime * result + ((patientHeaderInfo == null) ? 0 : patientHeaderInfo.hashCode());
result = prime * result + ((patientInfo == null) ? 0 : patientInfo.hashCode());
result = prime * result + ((procedureCodesInfo == null) ? 0 : procedureCodesInfo.hashCode());
// result = prime * result + ((px == null) ? 0 : px.hashCode());
result = prime * result + ((serviceLinesInfo == null) ? 0 : serviceLinesInfo.hashCode());
result = prime * result + ((serviceLocationInfo == null) ? 0 : serviceLocationInfo.hashCode());
return result;
}

/**
* Indicates whether some other object is "equal to" this one.
* See the https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object- web page for details.
*
* @return - 1) boolean true if some other object is "equal to" this one
* 2) boolean false if some other object is not "equal to" this one
*/
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;

EwvClaimDetailResponse other = (EwvClaimDetailResponse) obj;

if (billingMiscellanous == null) {
if (other.billingMiscellanous != null)
return false;
} else if (!billingMiscellanous.equals(other.billingMiscellanous))
return false;
if (billingProviderInfo == null) {
if (other.billingProviderInfo != null)
return false;
} else if (!billingProviderInfo.equals(other.billingProviderInfo))
return false;
if (claimLevelAmbulanceInfo == null) {
if (other.claimLevelAmbulanceInfo != null)
return false;
} else if (!claimLevelAmbulanceInfo.equals(other.claimLevelAmbulanceInfo))
return false;
if (diagnosisCodesInfo == null) {
if (other.diagnosisCodesInfo != null)
return false;
} else if (!diagnosisCodesInfo.equals(other.diagnosisCodesInfo))
return false;
// if (dx == null) {
// if (other.dx != null)
// return false;
// } else if (!dx.equals(other.dx))
// return false;
// if (eCodes == null) {
// if (other.eCodes != null)
// return false;
// } else if (!eCodes.equals(other.eCodes))
// return false;
if (e_CodesInfo == null) {
if (other.e_CodesInfo != null)
return false;
} else if (!e_CodesInfo.equals(other.e_CodesInfo))
return false;
if (healthCareInfo == null) {
if (other.healthCareInfo != null)
return false;
} else if (!healthCareInfo.equals(other.healthCareInfo))
return false;
if (ohiInfo == null) {
if (other.ohiInfo != null)
return false;
} else if (!ohiInfo.equals(other.ohiInfo))
return false;
if (patientHeaderInfo == null) {
if (other.patientHeaderInfo != null)
return false;
} else if (!patientHeaderInfo.equals(other.patientHeaderInfo))
return false;
if (patientInfo == null) {
if (other.patientInfo != null)
return false;
} else if (!patientInfo.equals(other.patientInfo))
return false;
if (procedureCodesInfo == null) {
if (other.procedureCodesInfo != null)
return false;
} else if (!procedureCodesInfo.equals(other.procedureCodesInfo))
return false;
// if (px == null) {
// if (other.px != null)
// return false;
// } else if (!px.equals(other.px))
// return false;
if (serviceLinesInfo == null) {
if (other.serviceLinesInfo != null)
return false;
} else if (!serviceLinesInfo.equals(other.serviceLinesInfo))
return false;
if (serviceLocationInfo == null) {
if (other.serviceLocationInfo != null)
return false;
} else if (!serviceLocationInfo.equals(other.serviceLocationInfo))
return false;
return true;
}

/**
* Returns a string representation of this object. In general, the toString method
* returns a string that "textually represents" this object. The result should be
* a concise but informative representation that is easy for a person to read.
* It is recommended that all subclasses override this method.
*
* See the https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--
* web page for details.
*
* @return - a string representation of an instance of this class
*/
@Override
public String toString() {
// recall that ("x=" + null) yields "x=null", so we don't have to do anything special.
StringJoiner sj = new StringJoiner(", ", "EwvClaimDetailResponse [", "]");
sj.add("patientHeaderInfo=" + patientHeaderInfo);
sj.add("patientInfo=" + patientInfo);
sj.add("serviceLocationInfo=" + serviceLocationInfo);
sj.add("billingProviderInfo=" + billingProviderInfo);
sj.add("billingMiscellanous=" + billingMiscellanous);
sj.add("diagnosisCodesInfo=" + diagnosisCodesInfo);
sj.add("procedureCodesInfo=" + procedureCodesInfo);
sj.add("e_CodesInfo=" + e_CodesInfo);
// I'm not certain that these virtual members should be in the string.
sj.add("px=" + getPx()); // virtual member
sj.add("dx=" + getDx()); // virtual member
sj.add("eCodes=" + geteCodes()); // virtual member
sj.add("healthCareInfo=" + healthCareInfo);
sj.add("serviceLinesInfo=" + serviceLinesInfo);
sj.add("ohiInfo=" + ohiInfo);
sj.add("claimLevelAmbulanceInfo=" + claimLevelAmbulanceInfo);
return sj.toString();
}

}