Package org.cqframework.cql.cql2elm
Class LibraryManager
java.lang.Object
org.cqframework.cql.cql2elm.LibraryManager
Manages a set of CQL libraries. As new library references are encountered
during compilation, the corresponding source is obtained via
librarySourceLoader, compiled and cached for later use.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLibraryManager(ModelManager modelManager) LibraryManager(ModelManager modelManager, CqlCompilerOptions cqlCompilerOptions) LibraryManager(ModelManager modelManager, CqlCompilerOptions cqlCompilerOptions, Map<org.hl7.elm.r1.VersionedIdentifier, CompiledLibrary> libraryCache) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier) protected BooleancompilerOptionsMatch(org.hl7.elm.r1.Library library) Map<org.hl7.elm.r1.VersionedIdentifier, CompiledLibrary> protected org.fhir.ucum.UcumServiceorg.hl7.cql.model.NamespaceManagerorg.fhir.ucum.UcumServicebooleanisWellKnownLibraryName(String unqualifiedIdentifier) resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier) resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, List<CqlCompilerException> errors) resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, List<CqlCompilerException> errors, LibraryManager.CacheMode cacheMode) resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryManager.CacheMode cacheMode) voidsetUcumService(org.fhir.ucum.UcumService ucumService)
-
Constructor Details
-
LibraryManager
-
LibraryManager
-
LibraryManager
public LibraryManager(ModelManager modelManager, CqlCompilerOptions cqlCompilerOptions, Map<org.hl7.elm.r1.VersionedIdentifier, CompiledLibrary> libraryCache)
-
-
Method Details
-
getCqlCompilerOptions
-
getModelManager
-
getNamespaceManager
public org.hl7.cql.model.NamespaceManager getNamespaceManager() -
getCompiledLibraries
-
getUcumService
public org.fhir.ucum.UcumService getUcumService() -
getDefaultUcumService
protected org.fhir.ucum.UcumService getDefaultUcumService() -
setUcumService
public void setUcumService(org.fhir.ucum.UcumService ucumService) -
getLibrarySourceLoader
-
isWellKnownLibraryName
-
resolveLibrary
public CompiledLibrary resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryManager.CacheMode cacheMode) -
resolveLibrary
-
canResolveLibrary
public boolean canResolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier) -
resolveLibrary
public CompiledLibrary resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, List<CqlCompilerException> errors) -
resolveLibrary
public CompiledLibrary resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, List<CqlCompilerException> errors, LibraryManager.CacheMode cacheMode) -
compilerOptionsMatch
-