use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.
the class OutpatientClaimTransformerV2Test method shouldHavePayment.
/**
* Payment
*/
@Test
public void shouldHavePayment() {
PaymentComponent compare = new PaymentComponent().setAmount(new Money().setValue(693.11).setCurrency(TransformerConstants.CODED_MONEY_USD));
assertTrue(compare.equalsDeep(eob.getPayment()));
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.
the class PartDEventTransformerV2Test method shouldHavePayment.
/**
* Payment
*/
@Test
public void shouldHavePayment() throws Exception {
PaymentComponent compare = new PaymentComponent().setDate(new SimpleDateFormat("yyy-MM-dd").parse("2015-05-27"));
assertTrue(compare.equalsDeep(eob.getPayment()));
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.
the class HHAClaimTransformerV2Test method shouldHavePayment.
/**
* Payment
*/
@Test
public void shouldHavePayment() {
// Need to maintain trailing 0s in USD amount
BigDecimal amt = new BigDecimal(188.00);
amt = amt.setScale(2, RoundingMode.HALF_DOWN);
PaymentComponent compare = new PaymentComponent().setAmount(new Money().setValue(amt).setCurrency(TransformerConstants.CODED_MONEY_USD));
assertTrue(compare.equalsDeep(eob.getPayment()));
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.
the class DMEClaimTransformerV2Test method shouldHavePayment.
/**
* Payment
*/
@Test
public void shouldHavePayment() {
PaymentComponent compare = new PaymentComponent().setAmount(new Money().setValue(777.75).setCurrency(TransformerConstants.CODED_MONEY_USD));
assertTrue(compare.equalsDeep(eob.getPayment()));
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.
the class SNFClaimTransformerV2Test method shouldHavePayment.
/**
* Payment
*/
@Test
public void shouldHavePayment() {
PaymentComponent compare = new PaymentComponent().setAmount(new Money().setValue(3333.33).setCurrency(TransformerConstants.CODED_MONEY_USD));
assertTrue(compare.equalsDeep(eob.getPayment()));
}
Aggregations