use of org.hl7.fhir.r4b.model.Coding in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldHaveClmSrcIpAdmsnCdSupInfo.
@Test
public void shouldHaveClmSrcIpAdmsnCdSupInfo() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("https://bluebutton.cms.gov/resources/variables/clm_src_ip_admsn_cd", eob.getSupportingInfo());
SupportingInformationComponent compare = TransformerTestUtilsV2.createSupportingInfo(// We don't care what the sequence number is here
sic.getSequence(), // Category
Arrays.asList(new Coding("http://terminology.hl7.org/CodeSystem/claiminformationcategory", "info", "Information"), new Coding("https://bluebutton.cms.gov/resources/codesystem/information", "https://bluebutton.cms.gov/resources/variables/clm_src_ip_admsn_cd", "Claim Source Inpatient Admission Code")), // Code
new Coding("https://bluebutton.cms.gov/resources/variables/clm_src_ip_admsn_cd", "4", null));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.r4b.model.Coding in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldHaveClaimReceivedDateSupInfo.
@Test
public void shouldHaveClaimReceivedDateSupInfo() {
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"))).setTiming(new DateType("2016-02-26"));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.r4b.model.Coding in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldHaveTypeOfBillSupInfo.
@Test
public void shouldHaveTypeOfBillSupInfo() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("typeofbill", 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", "typeofbill", "Type of Bill")), // Code
new Coding("https://bluebutton.cms.gov/resources/variables/clm_freq_cd", "1", "Admit thru discharge claim"));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.r4b.model.Coding 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.r4b.model.Coding in project beneficiary-fhir-data by CMSgov.
the class InpatientClaimTransformerV2Test method shouldHaveExpectedCodingValues.
@Test
public void shouldHaveExpectedCodingValues() {
CodeableConcept compare = new CodeableConcept().setCoding(Arrays.asList(new Coding("https://bluebutton.cms.gov/resources/variables/nch_clm_type_cd", "60", "Inpatient claim"), new Coding("https://bluebutton.cms.gov/resources/codesystem/eob-type", "INPATIENT", null), new Coding("http://terminology.hl7.org/CodeSystem/claim-type", "institutional", "Institutional")));
assertTrue(compare.equalsDeep(eob.getType()));
}
Aggregations