use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.SupportingInformationComponent in project beneficiary-fhir-data by CMSgov.
the class SNFClaimTransformerV2Test method shouldHaveNchPrmryPyrCdSupInfo.
@Test
public void shouldHaveNchPrmryPyrCdSupInfo() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("https://bluebutton.cms.gov/resources/variables/nch_prmry_pyr_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/nch_prmry_pyr_cd", "NCH Primary Payer Code (if not Medicare)")), // Code
new Coding("https://bluebutton.cms.gov/resources/variables/nch_prmry_pyr_cd", "A", "Employer group health plan (EGHP) insurance for an aged beneficiary"));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.SupportingInformationComponent in project beneficiary-fhir-data by CMSgov.
the class SNFClaimTransformerV2Test method shouldHaveDischargeStatusSupInfo.
@Test
public void shouldHaveDischargeStatusSupInfo() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("discharge-status", 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", "discharge-status", "Discharge Status")), // Code
new Coding("https://bluebutton.cms.gov/resources/variables/ptnt_dschrg_stus_cd", "1", null));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.SupportingInformationComponent in project beneficiary-fhir-data by CMSgov.
the class SNFClaimTransformerV2Test method shouldHaveNchBloodPntsFrnshdQtySupInfo.
@Test
public void shouldHaveNchBloodPntsFrnshdQtySupInfo() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("https://bluebutton.cms.gov/resources/variables/nch_blood_pnts_frnshd_qty", 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/nch_blood_pnts_frnshd_qty", "NCH Blood Pints Furnished Quantity"))).setValue(new Quantity().setValue(19).setUnit("pint").setSystem("http://unitsofmeasure.org").setCode("[pt_us]"));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.SupportingInformationComponent in project beneficiary-fhir-data by CMSgov.
the class SNFClaimTransformerV2Test method shouldHaveClmIpAdmsnTypeCdSupInfo.
@Test
public void shouldHaveClmIpAdmsnTypeCdSupInfo() {
SupportingInformationComponent sic = TransformerTestUtilsV2.findSupportingInfoByCode("https://bluebutton.cms.gov/resources/variables/clm_ip_admsn_type_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_ip_admsn_type_cd", "Claim Inpatient Admission Type Code")), // Code
new Coding("https://bluebutton.cms.gov/resources/variables/clm_ip_admsn_type_cd", "3", "Elective - The patient's condition permitted adequate time to schedule the availability of suitable accommodations."));
assertTrue(compare.equalsDeep(sic));
}
use of org.hl7.fhir.dstu3.model.ExplanationOfBenefit.SupportingInformationComponent in project beneficiary-fhir-data by CMSgov.
the class SNFClaimTransformerV2Test 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));
}
Aggregations