Skip to content

Commit

Permalink
Merge pull request #236 from DBCG/enabledaterangeoptimization_on
Browse files Browse the repository at this point in the history
Enabledaterangeoptimization on by default
  • Loading branch information
JPercival authored Aug 6, 2020
2 parents d592e1e + 967d952 commit ee1afcc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ private Library loadLibrary(VersionedIdentifier libraryIdentifier) {
.withVersion(libraryIdentifier.getVersion());

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

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

0 comments on commit ee1afcc

Please sign in to comment.