use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class CarrierClaimTransformerV2Test method shouldHaveExtensionsWithCarrierAssignedClaim.
@Test
public void shouldHaveExtensionsWithCarrierAssignedClaim() {
Extension ex = TransformerTestUtilsV2.findExtensionByUrl("https://bluebutton.cms.gov/resources/variables/asgmntcd", eob.getExtension());
Coding coding = new Coding().setSystem("https://bluebutton.cms.gov/resources/variables/asgmntcd").setDisplay("Assigned claim").setCode("A");
Extension compare = new Extension("https://bluebutton.cms.gov/resources/variables/asgmntcd", coding);
assertTrue(compare.equalsDeep(ex));
}
use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class CarrierClaimTransformerV2Test method shouldHaveLineItemProductOrServiceCoding.
@Test
public void shouldHaveLineItemProductOrServiceCoding() {
CodeableConcept pos = eob.getItemFirstRep().getProductOrService();
CodeableConcept compare = new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/codesystem/hcpcs", "92999", null)));
compare.setExtension(Arrays.asList(new Extension("http://hl7.org/fhir/sid/ndc", new Coding("http://hl7.org/fhir/sid/ndc", "49035044700", null))));
assertTrue(compare.equalsDeep(pos));
}
use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldContainNchNearLineRecIdentCdExt.
@Test
public void shouldContainNchNearLineRecIdentCdExt() {
Extension ex = TransformerTestUtilsV2.findExtensionByUrl("https://bluebutton.cms.gov/resources/variables/nch_near_line_rec_ident_cd", eob.getExtension());
Extension compare = new Extension("https://bluebutton.cms.gov/resources/variables/nch_near_line_rec_ident_cd", new Coding("https://bluebutton.cms.gov/resources/variables/nch_near_line_rec_ident_cd", "V", "Part A institutional claim record (inpatient [IP], skilled nursing facility" + " [SNF], hospice [HOS], or home health agency [HHA])"));
assertTrue(compare.equalsDeep(ex));
}
use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldContainClmSrvcClsfctnTypeCdExt.
@Test
public void shouldContainClmSrvcClsfctnTypeCdExt() {
Extension ex = TransformerTestUtilsV2.findExtensionByUrl("https://bluebutton.cms.gov/resources/variables/clm_srvc_clsfctn_type_cd", eob.getExtension());
Extension compare = new Extension("https://bluebutton.cms.gov/resources/variables/clm_srvc_clsfctn_type_cd", new Coding("https://bluebutton.cms.gov/resources/variables/clm_srvc_clsfctn_type_cd", "1", null));
assertTrue(compare.equalsDeep(ex));
}
use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class HospiceClaimTransformerV2Test method shouldHaveFacilityTypeExtension.
@Test
public void shouldHaveFacilityTypeExtension() {
assertNotNull(eob.getFacility());
assertEquals(1, eob.getFacility().getExtension().size());
Extension ex = TransformerTestUtilsV2.findExtensionByUrl("https://bluebutton.cms.gov/resources/variables/clm_fac_type_cd", eob.getFacility().getExtension());
Extension compare = new Extension("https://bluebutton.cms.gov/resources/variables/clm_fac_type_cd", new Coding("https://bluebutton.cms.gov/resources/variables/clm_fac_type_cd", "8", "Ambulatory Surgery Center (ASC) or other special facility (e.g. hospice)"));
assertTrue(compare.equalsDeep(ex));
}
Aggregations