Skip to content

Commit

Permalink
Merge pull request #278 from cqframework/feature-test104
Browse files Browse the repository at this point in the history
Additional measure refresh test
  • Loading branch information
brynrhodes authored Aug 13, 2021
2 parents b6031b1 + 3b371f4 commit e96aa12
Show file tree
Hide file tree
Showing 2 changed files with 933 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,32 @@ public void TestCMS125FHIR() {
ioException.printStackTrace();
}
}

@Test
public void TestCMS104FHIR() {
// Extract the bundle
// NOTE: This is a 2021-AUFHIR measure, this is the test created using TestCMS125FHIR as template
ExtractMatBundleOperation o = new ExtractMatBundleOperation();
o.execute(new String[] { "-ExtractMATBundle", this.getClass().getResource("ecqm-content-r4-2021/bundles/CMS104-v2-0-004-FHIR-4-0-1.json").getFile() });

try {
Measure measure = refreshMeasure("ecqm-content-r4-2021/input/cql/DischargedonAntithromboticTherapyFHIR.cql", "ecqm-content-r4-2021/input/resources/measure/DischargedonAntithromboticTherapyFHIR.json");
assertTrue(null != measure);
// Extract data requirements from the measure:
List<DataRequirement> drs = new ArrayList<DataRequirement>();
for (Extension e : measure.getExtensionsByUrl("http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-dataRequirement")) {
if (e.hasValue()) {
drs.add(e.getValueDataRequirement());
}
}
assertTrue(!drs.isEmpty());
// TODO: Measure-specific validation of data requirements content
logger.debug(measureToString(measure));
}
catch (IOException ioException) {
ioException.printStackTrace();
}
}

@Test
public void TestBCSComponent() {
Expand Down

Large diffs are not rendered by default.

0 comments on commit e96aa12

Please sign in to comment.