Class InJVMCqlTranslationProvider
- java.lang.Object
-
- org.linuxforhealth.fhir.cql.translator.impl.BaseCqlTranslationProvider
-
- org.linuxforhealth.fhir.cql.translator.impl.InJVMCqlTranslationProvider
-
- All Implemented Interfaces:
CqlTranslationProvider
public class InJVMCqlTranslationProvider extends BaseCqlTranslationProvider
Provide an implementation of the CqlTranslationProvider interface that uses the CQL translator directly inside the JVM.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.linuxforhealth.fhir.cql.translator.CqlTranslationProvider
CqlTranslationProvider.Format, CqlTranslationProvider.Option
-
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.cql.translator.impl.BaseCqlTranslationProvider
DEFAULT_TARGET_FORMAT
-
-
Constructor Summary
Constructors Constructor Description InJVMCqlTranslationProvider()
InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibraryManager libraryManager, org.cqframework.cql.cql2elm.ModelManager modelManager)
InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InJVMCqlTranslationProvider
addLibrarySourceProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
java.util.List<org.cqframework.cql.elm.execution.Library>
translate(java.io.InputStream cql, java.util.List<CqlTranslationProvider.Option> options, CqlTranslationProvider.Format targetFormat)
-
Methods inherited from class org.linuxforhealth.fhir.cql.translator.impl.BaseCqlTranslationProvider
getDefaultOptions, translate, translate
-
-
-
-
Constructor Detail
-
InJVMCqlTranslationProvider
public InJVMCqlTranslationProvider()
-
InJVMCqlTranslationProvider
public InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibraryManager libraryManager, org.cqframework.cql.cql2elm.ModelManager modelManager)
-
InJVMCqlTranslationProvider
public InJVMCqlTranslationProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
-
-
Method Detail
-
addLibrarySourceProvider
public InJVMCqlTranslationProvider addLibrarySourceProvider(org.cqframework.cql.cql2elm.LibrarySourceProvider provider)
-
translate
public java.util.List<org.cqframework.cql.elm.execution.Library> translate(java.io.InputStream cql, java.util.List<CqlTranslationProvider.Option> options, CqlTranslationProvider.Format targetFormat) throws CqlTranslationException
- Throws:
CqlTranslationException
-
-