From 940d87a1b72b34961847f8e98749e7676276d49f Mon Sep 17 00:00:00 2001 From: Rohit Kandimalla Date: Tue, 30 Jul 2024 01:59:03 -0400 Subject: [PATCH] MAT-7365 Updated measurement period in cqm measure to be second level precision --- .../java/gov/cms/madie/services/CqmConversionService.java | 2 +- src/main/java/gov/cms/madie/services/CqmMeasureMapper.java | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/gov/cms/madie/services/CqmConversionService.java b/src/main/java/gov/cms/madie/services/CqmConversionService.java index 6ab4181..b57e76a 100644 --- a/src/main/java/gov/cms/madie/services/CqmConversionService.java +++ b/src/main/java/gov/cms/madie/services/CqmConversionService.java @@ -25,7 +25,7 @@ public CqmMeasure convertMadieMeasureToCqmMeasure(QdmMeasure measure, String acc translationServiceClient.getTranslatedLibraries(measure.getCql(), accessToken); List elms = translatedLibraries.stream() - .map(translatedLibrary -> translatedLibrary.getElmJson()) + .map(TranslatedLibrary::getElmJson) .collect(Collectors.toList()); List dataCriteria = diff --git a/src/main/java/gov/cms/madie/services/CqmMeasureMapper.java b/src/main/java/gov/cms/madie/services/CqmMeasureMapper.java index fe4ef5a..4f97ef6 100644 --- a/src/main/java/gov/cms/madie/services/CqmMeasureMapper.java +++ b/src/main/java/gov/cms/madie/services/CqmMeasureMapper.java @@ -60,8 +60,7 @@ default MeasurePeriod getMeasurePeriod(QdmMeasure measure) { .toInstant() .atZone(ZoneId.of("UTC")) .toLocalDateTime() - .format(DateTimeFormatter.ofPattern("yyyyMMddHH")) - .toString()) + .format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))) .build(); PeriodPoint high = PeriodPoint.builder() @@ -71,8 +70,7 @@ default MeasurePeriod getMeasurePeriod(QdmMeasure measure) { .toInstant() .atZone(ZoneId.of("UTC")) .toLocalDateTime() - .format(DateTimeFormatter.ofPattern("yyyyMMddHH")) - .toString()) + .format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))) .build(); return MeasurePeriod.builder().low(low).high(high).build();