Search in sources :

Example 26 with LibraryManager

use of org.cqframework.cql.cql2elm.LibraryManager in project quality-measure-and-cohort-service by Alvearie.

the class CqlToElmTranslator method newLibraryManager.

public LibraryManager newLibraryManager(CqlLibrarySourceProvider sourceProvider) {
    ModelManager modelManager = newModelManager();
    LibraryManager libraryManager = new LibraryManager(modelManager);
    libraryManager.getLibrarySourceLoader().registerProvider(sourceProvider);
    return libraryManager;
}
Also used : LibraryManager(org.cqframework.cql.cql2elm.LibraryManager) ModelManager(org.cqframework.cql.cql2elm.ModelManager)

Aggregations

LibraryManager (org.cqframework.cql.cql2elm.LibraryManager)26 CqlTranslator (org.cqframework.cql.cql2elm.CqlTranslator)24 ModelManager (org.cqframework.cql.cql2elm.ModelManager)19 BeforeTest (org.testng.annotations.BeforeTest)16 CqlTranslatorException (org.cqframework.cql.cql2elm.CqlTranslatorException)3 ByteArrayInputStream (java.io.ByteArrayInputStream)2 ArrayList (java.util.ArrayList)2 FhirLibrarySourceProvider (org.cqframework.cql.cql2elm.FhirLibrarySourceProvider)2 ExpressionDef (org.hl7.elm.r1.ExpressionDef)2 Library (org.hl7.elm.r1.Library)2 FhirContext (ca.uhn.fhir.context.FhirContext)1 CqlLibrary (com.ibm.cohort.cql.library.CqlLibrary)1 CqlLibraryDescriptor (com.ibm.cohort.cql.library.CqlLibraryDescriptor)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 JAXBException (javax.xml.bind.JAXBException)1 LibraryBuilder (org.cqframework.cql.cql2elm.LibraryBuilder)1 TranslatedLibrary (org.cqframework.cql.cql2elm.model.TranslatedLibrary)1 Library (org.cqframework.cql.elm.execution.Library)1