Search in sources :

Example 1 with FissPayer

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);
    }
}
Also used : FissProcedureCode(gov.cms.mpsm.rda.v1.fiss.FissProcedureCode) PreAdjFissPayer(gov.cms.bfd.model.rda.PreAdjFissPayer) FissPayer(gov.cms.mpsm.rda.v1.fiss.FissPayer) PreAdjFissDiagnosisCode(gov.cms.bfd.model.rda.PreAdjFissDiagnosisCode) PreAdjFissProcCode(gov.cms.bfd.model.rda.PreAdjFissProcCode) PreAdjFissAuditTrail(gov.cms.bfd.model.rda.PreAdjFissAuditTrail) FissDiagnosisCode(gov.cms.mpsm.rda.v1.fiss.FissDiagnosisCode) PreAdjFissDiagnosisCode(gov.cms.bfd.model.rda.PreAdjFissDiagnosisCode) PreAdjFissAuditTrail(gov.cms.bfd.model.rda.PreAdjFissAuditTrail) FissAuditTrail(gov.cms.mpsm.rda.v1.fiss.FissAuditTrail) PreAdjFissPayer(gov.cms.bfd.model.rda.PreAdjFissPayer)

Aggregations

PreAdjFissAuditTrail (gov.cms.bfd.model.rda.PreAdjFissAuditTrail)1 PreAdjFissDiagnosisCode (gov.cms.bfd.model.rda.PreAdjFissDiagnosisCode)1 PreAdjFissPayer (gov.cms.bfd.model.rda.PreAdjFissPayer)1 PreAdjFissProcCode (gov.cms.bfd.model.rda.PreAdjFissProcCode)1 FissAuditTrail (gov.cms.mpsm.rda.v1.fiss.FissAuditTrail)1 FissDiagnosisCode (gov.cms.mpsm.rda.v1.fiss.FissDiagnosisCode)1 FissPayer (gov.cms.mpsm.rda.v1.fiss.FissPayer)1 FissProcedureCode (gov.cms.mpsm.rda.v1.fiss.FissProcedureCode)1