diff --git a/lib/CodeService.js b/lib/CodeService.js index cfa7d55..b2b11b4 100644 --- a/lib/CodeService.js +++ b/lib/CodeService.js @@ -93,9 +93,9 @@ class CodeService { * @param {string} umlsPassword - the UMLS password to use when downloading value sets (defaults to env "UMLS_PASSWORD") * @returns {Promise.} A promise that returns nothing when resolved and returns an error when rejected. */ - ensureValueSetsInLibrary(library, checkIncluded = true, umlsUserName = env['UMLS_USER_NAME'], umlsPassword = env['UMLS_PASSWORD']) { + ensureValueSetsInLibrary(library, checkIncluded = true, umlsUserName = env['UMLS_USER_NAME'], umlsPassword = env['UMLS_PASSWORD'], caching = true) { const valueSets = extractSetOfValueSetsFromLibrary(library, checkIncluded); - return this.ensureValueSets(Array.from(valueSets), umlsUserName, umlsPassword); + return this.ensureValueSets(Array.from(valueSets), umlsUserName, umlsPassword, caching); } findValueSetsByOid(oid) {