Class LibraryManager

java.lang.Object
org.cqframework.cql.cql2elm.LibraryManager

public class LibraryManager extends Object
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.
  • Constructor Details

  • Method Details

    • getCqlCompilerOptions

      public CqlCompilerOptions getCqlCompilerOptions()
    • getModelManager

      public ModelManager getModelManager()
    • getNamespaceManager

      public org.hl7.cql.model.NamespaceManager getNamespaceManager()
    • getCompiledLibraries

      public Map<org.hl7.elm.r1.VersionedIdentifier,CompiledLibrary> 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

      public LibrarySourceLoader getLibrarySourceLoader()
    • isWellKnownLibraryName

      public boolean isWellKnownLibraryName(String unqualifiedIdentifier)
    • resolveLibrary

      public CompiledLibrary resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryManager.CacheMode cacheMode)
    • resolveLibrary

      public CompiledLibrary resolveLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)
    • 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

      protected Boolean compilerOptionsMatch(org.hl7.elm.r1.Library library)