Skip to content

Commit

Permalink
Merge pull request #239 from DBCG/enableDateRangeOptimization_off
Browse files Browse the repository at this point in the history
Turned off enableDateRangeOptimization
  • Loading branch information
brynrhodes authored Aug 12, 2020
2 parents 66b914e + 1f74177 commit 0375f39
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ private Library loadLibrary(VersionedIdentifier libraryIdentifier) {
.withVersion(libraryIdentifier.getVersion());

ArrayList<CqlTranslatorException> errors = new ArrayList<>();
CqlTranslatorOptions translatorOptions = CqlTranslatorOptions.defaultOptions();
translatorOptions.getOptions().add(CqlTranslator.Options.EnableDateRangeOptimization);
org.hl7.elm.r1.Library translatedLibrary = libraryManager.resolveLibrary(identifier, translatorOptions, errors).getLibrary();
org.hl7.elm.r1.Library translatedLibrary = libraryManager.resolveLibrary(identifier, CqlTranslatorOptions.defaultOptions(), errors).getLibrary();

if (CqlTranslatorException.HasErrors(errors)) {
throw new IllegalArgumentException(errorsToString(errors));
Expand Down

0 comments on commit 0375f39

Please sign in to comment.