Search in sources :

Example 11 with BenefitComponent

use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent in project beneficiary-fhir-data by CMSgov.

the class InpatientClaimTransformerV2Test method shouldHaveClmNonUtlztnDaysCntFinancial.

@Test
public void shouldHaveClmNonUtlztnDaysCntFinancial() {
    BenefitComponent benefit = TransformerTestUtilsV2.findFinancial("https://bluebutton.cms.gov/resources/variables/clm_non_utlztn_days_cnt", eob.getBenefitBalanceFirstRep().getFinancial());
    BenefitComponent compare = new BenefitComponent().setType(new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/codesystem/benefit-balance", "https://bluebutton.cms.gov/resources/variables/clm_non_utlztn_days_cnt", "Claim Medicare Non Utilization Days Count")))).setUsed(new UnsignedIntType(0));
    assertTrue(compare.equalsDeep(benefit));
}
Also used : Coding(org.hl7.fhir.r4.model.Coding) UnsignedIntType(org.hl7.fhir.r4.model.UnsignedIntType) BenefitComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept) Test(org.junit.jupiter.api.Test)

Example 12 with BenefitComponent

use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent in project beneficiary-fhir-data by CMSgov.

the class InpatientClaimTransformerV2Test method shouldHaveClmPpsCptlFspAmtFinancial.

@Test
public void shouldHaveClmPpsCptlFspAmtFinancial() {
    BenefitComponent benefit = TransformerTestUtilsV2.findFinancial("https://bluebutton.cms.gov/resources/variables/clm_pps_cptl_fsp_amt", eob.getBenefitBalanceFirstRep().getFinancial());
    BenefitComponent compare = new BenefitComponent().setType(new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/codesystem/benefit-balance", "https://bluebutton.cms.gov/resources/variables/clm_pps_cptl_fsp_amt", "Claim PPS Capital Federal Specific Portion (FSP) Amount")))).setUsed(new Money().setValue(552.56).setCurrency(TransformerConstants.CODED_MONEY_USD));
    assertTrue(compare.equalsDeep(benefit));
}
Also used : Money(org.hl7.fhir.r4.model.Money) Coding(org.hl7.fhir.r4.model.Coding) BenefitComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept) Test(org.junit.jupiter.api.Test)

Example 13 with BenefitComponent

use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent in project beneficiary-fhir-data by CMSgov.

the class InpatientClaimTransformerV2Test method shouldHaveClmTotPpsCptlAmtFinancial.

@Test
public void shouldHaveClmTotPpsCptlAmtFinancial() {
    BenefitComponent benefit = TransformerTestUtilsV2.findFinancial("https://bluebutton.cms.gov/resources/variables/clm_tot_pps_cptl_amt", eob.getBenefitBalanceFirstRep().getFinancial());
    BenefitComponent compare = new BenefitComponent().setType(new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/codesystem/benefit-balance", "https://bluebutton.cms.gov/resources/variables/clm_tot_pps_cptl_amt", "Claim Total PPS Capital Amount")))).setUsed(new Money().setValue(646.23).setCurrency(TransformerConstants.CODED_MONEY_USD));
    assertTrue(compare.equalsDeep(benefit));
}
Also used : Money(org.hl7.fhir.r4.model.Money) Coding(org.hl7.fhir.r4.model.Coding) BenefitComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept) Test(org.junit.jupiter.api.Test)

Example 14 with BenefitComponent

use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent in project beneficiary-fhir-data by CMSgov.

the class InpatientClaimTransformerV2Test method shouldHaveClmPpsCptlImeAmtFinancial.

@Test
public void shouldHaveClmPpsCptlImeAmtFinancial() {
    BenefitComponent benefit = TransformerTestUtilsV2.findFinancial("https://bluebutton.cms.gov/resources/variables/clm_pps_cptl_ime_amt", eob.getBenefitBalanceFirstRep().getFinancial());
    BenefitComponent compare = new BenefitComponent().setType(new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/codesystem/benefit-balance", "https://bluebutton.cms.gov/resources/variables/clm_pps_cptl_ime_amt", "Claim PPS Capital Indirect Medical Education (IME) Amount")))).setUsed(new Money().setValue(68.58).setCurrency(TransformerConstants.CODED_MONEY_USD));
    assertTrue(compare.equalsDeep(benefit));
}
Also used : Money(org.hl7.fhir.r4.model.Money) Coding(org.hl7.fhir.r4.model.Coding) BenefitComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept) Test(org.junit.jupiter.api.Test)

Example 15 with BenefitComponent

use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent in project beneficiary-fhir-data by CMSgov.

the class CarrierClaimTransformerV2Test method shouldHaveClmPassThruClaimSubmittedChargeFinancial.

@Test
public void shouldHaveClmPassThruClaimSubmittedChargeFinancial() {
    BenefitComponent benefit = TransformerTestUtilsV2.findFinancial("https://bluebutton.cms.gov/resources/variables/nch_carr_clm_sbmtd_chrg_amt", eob.getBenefitBalanceFirstRep().getFinancial());
    BenefitComponent compare = new BenefitComponent().setType(new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/codesystem/benefit-balance", "https://bluebutton.cms.gov/resources/variables/nch_carr_clm_sbmtd_chrg_amt", "NCH Carrier Claim Submitted Charge Amount (sum of all line-level submitted charges)")))).setUsed(new Money().setValueElement(new DecimalType("245.04")).setCurrency(TransformerConstants.CODED_MONEY_USD));
    assertTrue(compare.equalsDeep(benefit));
}
Also used : Money(org.hl7.fhir.r4.model.Money) Coding(org.hl7.fhir.r4.model.Coding) DecimalType(org.hl7.fhir.r4.model.DecimalType) BenefitComponent(org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent) CodeableConcept(org.hl7.fhir.r4.model.CodeableConcept) Test(org.junit.jupiter.api.Test)

Aggregations

BenefitComponent (org.hl7.fhir.r4.model.ExplanationOfBenefit.BenefitComponent)59 CodeableConcept (org.hl7.fhir.r4.model.CodeableConcept)58 Coding (org.hl7.fhir.r4.model.Coding)57 Test (org.junit.jupiter.api.Test)56 Money (org.hl7.fhir.r4.model.Money)49 DecimalType (org.hl7.fhir.r4.model.DecimalType)31 BenefitComponent (org.hl7.fhir.dstu3.model.ExplanationOfBenefit.BenefitComponent)11 UnsignedIntType (org.hl7.fhir.r4.model.UnsignedIntType)10 TemporalPrecisionEnum (ca.uhn.fhir.model.api.TemporalPrecisionEnum)7 CcwCodebookVariable (gov.cms.bfd.model.codebook.data.CcwCodebookVariable)7 CcwCodebookInterface (gov.cms.bfd.model.codebook.model.CcwCodebookInterface)7 CarrierClaim (gov.cms.bfd.model.rif.CarrierClaim)7 HHAClaimLine (gov.cms.bfd.model.rif.HHAClaimLine)7 CCWUtils (gov.cms.bfd.server.war.commons.CCWUtils)7 Diagnosis (gov.cms.bfd.server.war.commons.Diagnosis)7 MedicareSegment (gov.cms.bfd.server.war.commons.MedicareSegment)7 CarrierClaimColumn (gov.cms.bfd.model.rif.CarrierClaimColumn)6 CarrierClaimLine (gov.cms.bfd.model.rif.CarrierClaimLine)6 DMEClaim (gov.cms.bfd.model.rif.DMEClaim)6 DMEClaimColumn (gov.cms.bfd.model.rif.DMEClaimColumn)6