Search in sources :

Example 1 with PaymentComponent

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()));
}
Also used : Money(org.hl7.fhir.r4.model.Money) PaymentComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent) Test(org.junit.jupiter.api.Test)

Example 2 with PaymentComponent

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()));
}
Also used : PaymentComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent) SimpleDateFormat(java.text.SimpleDateFormat) Test(org.junit.jupiter.api.Test)

Example 3 with PaymentComponent

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()));
}
Also used : Money(org.hl7.fhir.r4.model.Money) PaymentComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent) BigDecimal(java.math.BigDecimal) Test(org.junit.jupiter.api.Test)

Example 4 with PaymentComponent

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()));
}
Also used : Money(org.hl7.fhir.r4.model.Money) PaymentComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent) Test(org.junit.jupiter.api.Test)

Example 5 with PaymentComponent

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()));
}
Also used : Money(org.hl7.fhir.r4.model.Money) PaymentComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent) Test(org.junit.jupiter.api.Test)

Aggregations

PaymentComponent (org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent)7 Test (org.junit.jupiter.api.Test)7 Money (org.hl7.fhir.r4.model.Money)6 BigDecimal (java.math.BigDecimal)1 SimpleDateFormat (java.text.SimpleDateFormat)1 DecimalType (org.hl7.fhir.r4.model.DecimalType)1