Skip to content

Commit

Permalink
Merge pull request #19 from MeasureAuthoringTool/MAT-6911
Browse files Browse the repository at this point in the history
MAT-6911 add template path debug statements
  • Loading branch information
adongare authored Mar 12, 2024
2 parents a352bc3 + 9e2c9d4 commit 96e4995
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gov.cms.madie.hqmf;

import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
Expand All @@ -11,14 +13,17 @@
* no HQMF exists, then MAT will generate the HQMF during the Export operation and save it to the
* table. Older versions of the Generators are kept to ensure the HQMF can be generated on-demand.
*/
@Slf4j
public class QDMTemplateProcessorFactory {

public static XmlProcessor getTemplateProcessor(double qdmVersion) {
String fileName = "templates"+ File.separator + "hqmf" + File.separator + "qdm_v5_6_datatype_templates.xml";
String fileName = "templates/hqmf/qdm_v5_6_datatype_templates.xml";

URL templateFileUrl = QDMTemplateProcessorFactory.class.getClassLoader().getResource(fileName);
log.info("Template file path: " + templateFileUrl.getPath());
File templateFile = null;
try {
log.info("Template file uri: " + templateFileUrl.toURI());
templateFile = new File(templateFileUrl.toURI());
} catch (URISyntaxException e) {
e.printStackTrace();
Expand Down

0 comments on commit 96e4995

Please sign in to comment.