Skip to content

Commit

Permalink
Merge pull request #750 from MeasureAuthoringTool/feature/mat-7926-ad…
Browse files Browse the repository at this point in the history
…d-qicore6-export-support

MAT-7926: Add support for exporting versioned QI-Core 6 measures, includes model validation and packaging.
  • Loading branch information
jkotanchik-SB authored Nov 21, 2024
2 parents 8feee92 + 0b69c5b commit 2258951
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<dependency>
<groupId>gov.cms.madie.packaging</groupId>
<artifactId>packaging-utility</artifactId>
<version>0.2.2</version>
<version>0.2.5</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cms.gov.madie.measure.services;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service(ServiceConstants.QICORE_6_VALIDATOR)
public class QiCore6ModelValidator extends QiCoreModelValidator {
// Intentionally empty class. QI-Core 6 validation is the same as QI-Core 4.1.1.
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package cms.gov.madie.measure.services;

import org.springframework.stereotype.Service;

/** Intentionally empty class. QI-Core 6 packaging is the same as QI-Core 4.1.1. */
@Service
public class Qicore6PackageService extends QicorePackageService {
public Qicore6PackageService(BundleService bundleService) {
super(bundleService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public final class ServiceConstants {
public static final String QDM_VALIDATOR = "qdmModelValidator";
public static final String QICORE_VALIDATOR = "qicoreModelValidator";
public static final String QICORE_6_VALIDATOR = "qicore6ModelValidator";

private ServiceConstants() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void testExportBundleMeasureForVersionedMeasure() throws IOException {
ZipInputStream z = new ZipInputStream(new ByteArrayInputStream(output.getExportPackage()));
ZipEntry entry = z.getNextEntry();
String fileName = entry.getName();
assertEquals(fileName, "resources/TestCreateNewLibrary-1.0.000.xml");
assertEquals("resources/measure-TestCreateNewLibrary-1.0.000.json", fileName);
}

@Test
Expand Down

0 comments on commit 2258951

Please sign in to comment.