use of gov.cms.mpsm.rda.v1.fiss.FissPayer in project beneficiary-fhir-data by CMSgov.
the class FissClaimTransformer method transformMessageArrays.
private void transformMessageArrays(FissClaim from, PreAdjFissClaim to, DataTransformer transformer, Instant now, String namePrefix) {
for (short index = 0; index < from.getFissProcCodesCount(); ++index) {
final String itemNamePrefix = namePrefix + "procCode" + "-" + index + "-";
final FissProcedureCode itemFrom = from.getFissProcCodes(index);
final PreAdjFissProcCode itemTo = transformMessageImpl(itemFrom, transformer, now, itemNamePrefix);
itemTo.setDcn(from.getDcn());
itemTo.setPriority(index);
to.getProcCodes().add(itemTo);
}
for (short index = 0; index < from.getFissDiagCodesCount(); ++index) {
final String itemNamePrefix = namePrefix + "diagCode" + "-" + index + "-";
final FissDiagnosisCode itemFrom = from.getFissDiagCodes(index);
final PreAdjFissDiagnosisCode itemTo = transformMessageImpl(itemFrom, transformer, now, itemNamePrefix);
itemTo.setDcn(from.getDcn());
itemTo.setPriority(index);
to.getDiagCodes().add(itemTo);
}
for (short index = 0; index < from.getFissPayersCount(); ++index) {
final String itemNamePrefix = namePrefix + "payer" + "-" + index + "-";
final FissPayer itemFrom = from.getFissPayers(index);
final PreAdjFissPayer itemTo = transformMessageImpl(itemFrom, transformer, now, itemNamePrefix);
itemTo.setDcn(from.getDcn());
itemTo.setPriority(index);
to.getPayers().add(itemTo);
}
for (short index = 0; index < from.getFissAuditTrailCount(); ++index) {
final String itemNamePrefix = namePrefix + "auditTrail" + "-" + index + "-";
final FissAuditTrail itemFrom = from.getFissAuditTrail(index);
final PreAdjFissAuditTrail itemTo = transformMessageImpl(itemFrom, transformer, now, itemNamePrefix);
itemTo.setDcn(from.getDcn());
itemTo.setPriority(index);
to.getAuditTrail().add(itemTo);
}
}
Aggregations