use of org.hl7.fhir.r4b.model.Coding in project beneficiary-fhir-data by CMSgov.
the class CarrierClaimTransformerV2Test method shouldHaveSupportingInfoListForClaimReceivedDate.
@Test
public void shouldHaveSupportingInfoListForClaimReceivedDate() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("clmrecvddate", eob.getSupportingInfo());
SupportingInformationComponent compare = TransformerTestUtilsV2.createSupportingInfo(// We don't care what the sequence number is here
sic.getSequence(), // Category
Arrays.asList(new Coding("http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBSupportingInfoType", "clmrecvddate", "Claim Received Date"), new Coding("https://bluebutton.cms.gov/resources/codesystem/information", "https://bluebutton.cms.gov/resources/variables/nch_wkly_proc_dt", "NCH Weekly Claim Processing Date")));
compare.setTiming(new DateType("1999-11-06"));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.r4b.model.Coding 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.r4b.model.Coding 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.r4b.model.Coding in project beneficiary-fhir-data by CMSgov.
the class CarrierClaimTransformerV2Test method shouldHaveCareTeamMembers.
@Test
public void shouldHaveCareTeamMembers() {
// First member
CareTeamComponent member1 = TransformerTestUtilsV2.findCareTeamBySequence(1, eob.getCareTeam());
CareTeamComponent compare1 = TransformerTestUtilsV2.createNpiCareTeamMember(1, "8765676", "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBClaimCareTeamRole", "referring", "Referring");
assertTrue(compare1.equalsDeep(member1));
// Second member
CareTeamComponent member2 = TransformerTestUtilsV2.findCareTeamBySequence(2, eob.getCareTeam());
CareTeamComponent compare2 = TransformerTestUtilsV2.createNpiCareTeamMember(2, "K25852", "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBClaimCareTeamRole", "referring", "Referring");
assertTrue(compare2.equalsDeep(member2));
// // Third member
CareTeamComponent member3 = TransformerTestUtilsV2.findCareTeamBySequence(3, eob.getCareTeam());
CareTeamComponent compare3 = TransformerTestUtilsV2.createNpiCareTeamMember(3, "1923124", "http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBClaimCareTeamRole", "performing", "Performing provider");
compare3.setResponsible(true);
compare3.setQualification(new CodeableConcept().setCoding(Arrays.asList(new Coding().setSystem("https://bluebutton.cms.gov/resources/variables/prvdr_spclty").setDisplay("Optometrist").setCode("41"))));
compare3.addExtension("https://bluebutton.cms.gov/resources/variables/carr_line_prvdr_type_cd", new Coding().setSystem("https://bluebutton.cms.gov/resources/variables/carr_line_prvdr_type_cd").setCode("0"));
compare3.addExtension("https://bluebutton.cms.gov/resources/variables/prtcptng_ind_cd", new Coding().setSystem("https://bluebutton.cms.gov/resources/variables/prtcptng_ind_cd").setCode("1").setDisplay("Participating"));
assertTrue(compare3.equalsDeep(member3));
// Fourth member
CareTeamComponent member4 = TransformerTestUtilsV2.findCareTeamBySequence(4, eob.getCareTeam());
CareTeamComponent compare4 = TransformerTestUtilsV2.createNpiCareTeamMember(4, "1497758544", "http://terminology.hl7.org/CodeSystem/claimcareteamrole", "primary", "Primary provider");
compare4.getProvider().setDisplay("CUMBERLAND COUNTY HOSPITAL SYSTEM, INC");
assertTrue(compare4.equalsDeep(member4));
}
use of org.hl7.fhir.r4b.model.Coding 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));
}
Aggregations