Skip to content

Commit

Permalink
MAT-7926: Add support for exporting versioned QI-Core 6 measures, inc…
Browse files Browse the repository at this point in the history
…ludes model validation and packaging.

QI-Core 6 export is equivalent to QI-Core 4.1.1.

Signed-off-by: Joseph Kotanchik <[email protected]>
  • Loading branch information
jkotanchik-SB committed Nov 21, 2024
1 parent 8feee92 commit 205c4ab
Show file tree
Hide file tree
Showing 5 changed files with 26 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,13 @@
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 205c4ab

Please sign in to comment.