use of org.hl7.fhir.dstu3.model.Coverage in project beneficiary-fhir-data by CMSgov.
the class DMEClaimTransformerV2Test method shouldReferenceCoverageInInsurance.
/**
* Insurance
*/
@Test
public void shouldReferenceCoverageInInsurance() {
// Only one insurance object
assertEquals(1, eob.getInsurance().size());
InsuranceComponent insurance = eob.getInsuranceFirstRep();
InsuranceComponent compare = new InsuranceComponent().setCoverage(new Reference().setReference("Coverage/part-a-567834"));
assertTrue(compare.equalsDeep(insurance));
}
use of org.hl7.fhir.dstu3.model.Coverage in project beneficiary-fhir-data by CMSgov.
the class CoverageTransformerV2Test method verifyPayor.
private static void verifyPayor() {
List<Reference> payers = coverage.getPayor();
assertNotNull(payers);
assertEquals(1, payers.size());
Coverage compare = new Coverage();
compare.addPayor().setIdentifier(new Identifier().setValue("Centers for Medicare and Medicaid Services"));
assertTrue(compare.getPayor().get(0).equalsDeep(coverage.getPayor().get(0)));
}
use of org.hl7.fhir.dstu3.model.Coverage in project beneficiary-fhir-data by CMSgov.
the class CoverageTransformerV2Test method verifyCoverageClass.
private static void verifyCoverageClass(String className) {
assertEquals(2, coverage.getClass_().size());
Coverage compare = new Coverage();
compare.addClass_().setValue("Medicare").getType().addCoding().setCode("group").setDisplay("Group").setSystem("http://terminology.hl7.org/CodeSystem/coverage-class");
compare.addClass_().setValue(className).getType().addCoding().setCode("plan").setDisplay("Plan").setSystem("http://terminology.hl7.org/CodeSystem/coverage-class");
assertTrue(compare.getClass_().get(0).equalsDeep(coverage.getClass_().get(0)));
assertTrue(compare.getClass_().get(1).equalsDeep(coverage.getClass_().get(1)));
}
use of org.hl7.fhir.dstu3.model.Coverage in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldReferenceCoverageInInsurance.
/**
* Insurance
*/
@Test
public void shouldReferenceCoverageInInsurance() {
// Only one insurance object
assertEquals(1, eob.getInsurance().size());
InsuranceComponent insurance = eob.getInsuranceFirstRep();
InsuranceComponent compare = new InsuranceComponent().setCoverage(new Reference().setReference("Coverage/part-a-567834"));
assertTrue(compare.equalsDeep(insurance));
}
use of org.hl7.fhir.dstu3.model.Coverage in project beneficiary-fhir-data by CMSgov.
the class HospiceClaimTransformerV2Test method shouldReferenceCoverageInInsurance.
/**
* Insurance
*/
@Test
public void shouldReferenceCoverageInInsurance() {
// Only one insurance object
assertEquals(1, eob.getInsurance().size());
InsuranceComponent insurance = eob.getInsuranceFirstRep();
InsuranceComponent compare = new InsuranceComponent().setCoverage(new Reference().setReference("Coverage/part-a-567834"));
assertTrue(compare.equalsDeep(insurance));
}
Aggregations