diff --git a/pom.xml b/pom.xml index 8bb560d..c72ec01 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ gov.cms.madie madie-java-models - 0.6.72-SNAPSHOT + 0.6.74-SNAPSHOT org.apache.commons diff --git a/src/main/java/gov/cms/madie/packaging/utils/qicore411/PackagingUtilityImpl.java b/src/main/java/gov/cms/madie/packaging/utils/qicore411/PackagingUtilityImpl.java index 547cc50..1698663 100644 --- a/src/main/java/gov/cms/madie/packaging/utils/qicore411/PackagingUtilityImpl.java +++ b/src/main/java/gov/cms/madie/packaging/utils/qicore411/PackagingUtilityImpl.java @@ -42,7 +42,7 @@ public byte[] getZipBundle(Object o, String exportFileName) throws InternalServe org.hl7.fhir.r4.model.Bundle bundle = (org.hl7.fhir.r4.model.Bundle) jsonParser.parseResource(measureBundle); - return getZipBundle(bundle, exportFileName); + return getZipBundle(bundle, exportFileName, export.getHumanReadable()); } else if (o instanceof Bundle) { Bundle bundle = (Bundle) o; return getZipBundle(bundle, exportFileName); @@ -54,7 +54,7 @@ public byte[] getZipBundle(Object o, String exportFileName) throws InternalServe "Calling gicore411.PackagingUtilityImpl with invalid object"); } - private byte[] getZipBundle(Bundle bundle, String exportFileName) throws InternalServerException { + private byte[] getZipBundle(Bundle bundle, String exportFileName, String humanReadable) throws InternalServerException { IParser jsonParser = context.newJsonParser(); IParser xmlParser = context.newXmlParser(); @@ -65,7 +65,8 @@ private byte[] getZipBundle(Bundle bundle, String exportFileName) throws Interna if (ResourceUtils.isMeasureBundle(bundle)) { org.hl7.fhir.r4.model.DomainResource measure = (org.hl7.fhir.r4.model.DomainResource) ResourceUtils.getResource(bundle, "Measure"); - String humanReadableWithCSS = getHumanReadableWithCSS(measure); + String humanReadableWithCSS = + humanReadable == null ? getHumanReadableWithCSS(measure) : humanReadable; return zipEntries(exportFileName, jsonParser, xmlParser, bundle, humanReadableWithCSS); } else if (ResourceUtils.isPatientBundle(bundle)) {