use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class OutpatientClaimTransformerV2Test method shouldHaveLineItemProductOrServiceExtension.
@Test
public void shouldHaveLineItemProductOrServiceExtension() {
assertNotNull(eob.getItemFirstRep().getProductOrService());
assertEquals(1, eob.getItemFirstRep().getProductOrService().getExtension().size());
Extension ex = TransformerTestUtilsV2.findExtensionByUrl("http://hl7.org/fhir/sid/ndc", eob.getItemFirstRep().getProductOrService().getExtension());
Extension compare = new Extension("http://hl7.org/fhir/sid/ndc", new Coding("http://hl7.org/fhir/sid/ndc", "987654321", null));
assertTrue(compare.equalsDeep(ex));
}
use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class DMEClaimTransformerV2Test method shouldHaveLineItemLocationCodeableConcept.
@Test
public void shouldHaveLineItemLocationCodeableConcept() {
CodeableConcept location = eob.getItemFirstRep().getLocationCodeableConcept();
CodeableConcept compare = new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/variables/line_place_of_srvc_cd", "12", "Home. Location, other than a hospital or other facility, where the patient receives care in a private residence.")));
compare.setExtension(Arrays.asList(new Extension("https://bluebutton.cms.gov/resources/variables/prvdr_state_cd", new Coding("https://bluebutton.cms.gov/resources/variables/prvdr_state_cd", "MO", null))));
assertTrue(compare.equalsDeep(location));
}
use of org.hl7.fhir.r4.model.Extension in project beneficiary-fhir-data by CMSgov.
the class DMEClaimTransformerV2Test method shouldHaveLineItemAdjudicationLineNchPmtAmt.
@Test
public void shouldHaveLineItemAdjudicationLineNchPmtAmt() {
AdjudicationComponent adjudication = TransformerTestUtilsV2.findAdjudicationByCategory("https://bluebutton.cms.gov/resources/variables/line_nch_pmt_amt", eob.getItemFirstRep().getAdjudication());
AdjudicationComponent compare = new AdjudicationComponent().setCategory(new CodeableConcept().setCoding(Arrays.asList(new Coding("http://terminology.hl7.org/CodeSystem/adjudication", "benefit", "Benefit Amount"), new Coding("https://bluebutton.cms.gov/resources/codesystem/adjudication", "https://bluebutton.cms.gov/resources/variables/line_nch_pmt_amt", "Line NCH Medicare Payment Amount"))));
compare.setExtension(Arrays.asList(new Extension("https://bluebutton.cms.gov/resources/variables/line_pmt_80_100_cd", new Coding("https://bluebutton.cms.gov/resources/variables/line_pmt_80_100_cd", "0", "80%"))));
compare.setAmount(new Money().setValue(123.45).setCurrency(TransformerConstants.CODED_MONEY_USD));
assertTrue(compare.equalsDeep(adjudication));
}
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));
}
Aggregations