From 6a0cca84b7c85f2aca34c2f64ae60382b8adbabd Mon Sep 17 00:00:00 2001 From: Joseph Kotanchik Date: Tue, 14 Jan 2025 12:45:46 -0500 Subject: [PATCH] MAT-7243: Remove unused Human Readable template file and use template in Packaging Utility. --- pom.xml | 4 +- .../services/HumanReadableService.java | 6 - .../resources/templates/HumanReadable.liquid | 421 ------------------ .../services/HumanReadableServiceTest.java | 6 - 4 files changed, 2 insertions(+), 435 deletions(-) delete mode 100644 src/main/resources/templates/HumanReadable.liquid diff --git a/pom.xml b/pom.xml index 971a1b0..49156cc 100644 --- a/pom.xml +++ b/pom.xml @@ -149,7 +149,7 @@ gov.cms.madie madie-java-models - 0.6.72-SNAPSHOT + 0.6.74-SNAPSHOT com.jayway.jsonpath @@ -158,7 +158,7 @@ gov.cms.madie.packaging packaging-utility - 0.2.5 + 0.2.6 gov.cms.madie diff --git a/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java b/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java index 2a2454a..6570927 100644 --- a/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java +++ b/src/main/java/gov/cms/madie/madiefhirservice/services/HumanReadableService.java @@ -387,10 +387,4 @@ private Extension createEffectiveDataRequirementExtension() { extension.getValueReference().setReference("#effective-data-requirements"); return extension; } - - protected String addCssToHumanReadable(String measureHr) { - // Wrapper template for Measure.liquid o/p - String humanReadable = getData("/templates/HumanReadable.liquid"); - return humanReadable.replace("human_readable_content_holder", measureHr); - } } diff --git a/src/main/resources/templates/HumanReadable.liquid b/src/main/resources/templates/HumanReadable.liquid deleted file mode 100644 index 6402681..0000000 --- a/src/main/resources/templates/HumanReadable.liquid +++ /dev/null @@ -1,421 +0,0 @@ - - - - - - - human_readable_content_holder - - \ No newline at end of file diff --git a/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java b/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java index 540d140..6012c65 100644 --- a/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java +++ b/src/test/java/gov/cms/madie/madiefhirservice/services/HumanReadableServiceTest.java @@ -304,12 +304,6 @@ public void testGetHumanReadableForLibraryWhenTemplateEvaluationFailed() { "Error occurred while generating human readable for library: " + library.getName()); } - @Test - public void testAddCssToHumanReadable() { - String humanReadableWithCSS = humanReadableService.addCssToHumanReadable(humanReadable); - assertTrue(humanReadableWithCSS.contains("