Skip to content

Commit

Permalink
MAT-7365 Updated measurement period in cqm measure to be second level…
Browse files Browse the repository at this point in the history
… precision
  • Loading branch information
RohitKandimalla committed Jul 30, 2024
1 parent a228f00 commit 940d87a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public CqmMeasure convertMadieMeasureToCqmMeasure(QdmMeasure measure, String acc
translationServiceClient.getTranslatedLibraries(measure.getCql(), accessToken);
List<String> elms =
translatedLibraries.stream()
.map(translatedLibrary -> translatedLibrary.getElmJson())
.map(TranslatedLibrary::getElmJson)
.collect(Collectors.toList());

List<SourceDataCriteria> dataCriteria =
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/gov/cms/madie/services/CqmMeasureMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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();
Expand Down

0 comments on commit 940d87a

Please sign in to comment.