Skip to content

Commit

Permalink
Merge pull request #765 from MeasureAuthoringTool/feature/mat-7961-tr…
Browse files Browse the repository at this point in the history
…im-ecqm-abbr-title-in-filenames

MAT-7961: Trim the eCQM Abbr Title when used in an export filename.
  • Loading branch information
jkotanchik-SB authored Dec 17, 2024
2 parents 5b44585 + 6c503f6 commit 352c0fa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ public class ExportFileNamesUtil {

public static String getExportFileName(Measure measure) {
if (measure.getModel().startsWith("QI-Core")) {
return measure.getEcqmTitle() + "-v" + measure.getVersion() + "-FHIR";
return measure.getEcqmTitle().trim() + "-v" + measure.getVersion() + "-FHIR";
}
return measure.getEcqmTitle() + "-v" + measure.getVersion() + "-" + measure.getModel();
return measure.getEcqmTitle().trim() + "-v" + measure.getVersion() + "-" + measure.getModel();
}

public static String getTestCaseExportZipName(Measure measure) {
return measure.getEcqmTitle() + "-v" + measure.getVersion().toString() + "-TestCases";
return measure.getEcqmTitle().trim() + "-v" + measure.getVersion().toString() + "-TestCases";
}
}

0 comments on commit 352c0fa

Please sign in to comment.