Search in sources :

Example 6 with PaymentComponent

use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.

the class HospiceClaimTransformerV2Test method shouldHavePaymentTotal.

@Test
public void shouldHavePaymentTotal() {
    PaymentComponent expected = eob.getPayment();
    PaymentComponent compare = new PaymentComponent().setAmount(new Money().setValueElement(new DecimalType("130.32")).setCurrency(TransformerConstants.CODED_MONEY_USD));
    assertTrue(compare.equalsDeep(expected));
}
Also used : Money(org.hl7.fhir.r4.model.Money) DecimalType(org.hl7.fhir.r4.model.DecimalType) PaymentComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent) Test(org.junit.jupiter.api.Test)

Example 7 with PaymentComponent

use of org.hl7.fhir.r4.model.ExplanationOfBenefit.PaymentComponent in project beneficiary-fhir-data by CMSgov.

the class InpatientClaimTransformerV2Test method shouldHavePayment.

/**
 * Payment
 */
@Test
public void shouldHavePayment() {
    PaymentComponent compare = new PaymentComponent().setAmount(new Money().setValue(7699.48).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