use of gov.cms.qpp.conversion.model.error.Detail in project qpp-conversion-tool by CMSgov.
the class CpcQualityMeasureScopedValidatonTest method validateCms137V5FailMissingDenomStrata.
@Test
void validateCms137V5FailMissingDenomStrata() {
Node result = scopedConversion(QrdaScope.MEASURE_REFERENCE_RESULTS_CMS_V2, "cms137v5.xml");
removeMeasureStrata(result, SubPopulationLabel.DENOM.name());
Set<Detail> details = validateNode(result);
assertWithMessage("Missing CMS137v5 DENOM strata should result in errors").that(details).comparingElementsUsing(DetailsErrorEquals.INSTANCE).containsExactly(getMessages(SubPopulationLabel.DENOM.name(), "BC948E65-B908-493B-B48B-04AC342D3E6C", "EFB5B088-CE10-43DE-ACCD-9913B7AC12A2", "94B9555F-8700-45EF-B69F-433EBEDE8051"));
}
use of gov.cms.qpp.conversion.model.error.Detail in project qpp-conversion-tool by CMSgov.
the class CpcQualityMeasureScopedValidatonTest method validateCms137V5FailMissingDenexStrata.
@Test
void validateCms137V5FailMissingDenexStrata() {
Node result = scopedConversion(QrdaScope.MEASURE_REFERENCE_RESULTS_CMS_V2, "cms137v5.xml");
removeMeasureStrata(result, SubPopulationLabel.DENEX.name());
Set<Detail> details = validateNode(result);
assertWithMessage("Missing CMS137v5 DENEX strata should result in errors").that(details).comparingElementsUsing(DetailsErrorEquals.INSTANCE).containsExactly(getMessages(SubPopulationLabel.DENEX.name(), "56BC7FA2-C22A-4440-8652-2D3568852C60", "EFB5B088-CE10-43DE-ACCD-9913B7AC12A2", "94B9555F-8700-45EF-B69F-433EBEDE8051"));
}
use of gov.cms.qpp.conversion.model.error.Detail in project qpp-conversion-tool by CMSgov.
the class CpcQualityMeasureScopedValidatonTest method validateCms137V5FailMissingNumerStrata.
@Test
void validateCms137V5FailMissingNumerStrata() {
Node result = scopedConversion(QrdaScope.MEASURE_REFERENCE_RESULTS_CMS_V2, "cms137v5.xml");
removeMeasureStrata(result, SubPopulationLabel.NUMER.name());
Set<Detail> details = validateNode(result);
assertWithMessage("Missing CMS137v5 NUMER strata should result in errors").that(details).comparingElementsUsing(DetailsErrorEquals.INSTANCE).containsExactly(getMessages(SubPopulationLabel.NUMER.name(), "0BBF8596-4CFE-47F4-A0D7-9BEAB94BA4CD", "EFB5B088-CE10-43DE-ACCD-9913B7AC12A2", "94B9555F-8700-45EF-B69F-433EBEDE8051"));
}
use of gov.cms.qpp.conversion.model.error.Detail in project qpp-conversion-tool by CMSgov.
the class CpcQualityMeasureScopedValidatonTest method validateCms137V5.
@Test
void validateCms137V5() {
Node result = scopedConversion(QrdaScope.MEASURE_REFERENCE_RESULTS_CMS_V2, "cms137v5.xml");
Set<Detail> details = validateNode(result);
assertWithMessage("Valid CMS137v5 markup should not result in errors").that(details).isEmpty();
}
use of gov.cms.qpp.conversion.model.error.Detail in project qpp-conversion-tool by CMSgov.
the class CpcQualityMeasureScopedValidatonTest method validateCms137V5FailMissingIpopStrata.
@Test
void validateCms137V5FailMissingIpopStrata() {
Node result = scopedConversion(QrdaScope.MEASURE_REFERENCE_RESULTS_CMS_V2, "cms137v5.xml");
removeMeasureStrata(result, "IPOP");
Set<Detail> details = validateNode(result);
assertWithMessage("Missing CMS137v5 IPOP strata should result in errors").that(details).comparingElementsUsing(DetailsErrorEquals.INSTANCE).containsExactly(getMessages("IPOP", "EC2C5F63-AF76-4D3C-85F0-5423F8C28541", "EFB5B088-CE10-43DE-ACCD-9913B7AC12A2", "94B9555F-8700-45EF-B69F-433EBEDE8051"));
}
Aggregations