Search in sources :

Example 6 with MapCqlLibraryProviderFactory

use of com.ibm.cohort.cql.library.MapCqlLibraryProviderFactory in project quality-measure-and-cohort-service by Alvearie.

the class CqlTranslationIntegrationTest method multipleFilesInZip__translatedSuccessfully.

@Test
public void multipleFilesInZip__translatedSuccessfully() throws Exception {
    Path zipFile = Paths.get("src/test/resources/cql/multiple-files/packaged-cqls.zip");
    MapCqlLibraryProviderFactory providerFactory = new MapCqlLibraryProviderFactory();
    CqlLibraryProvider backingLibraryProvider = providerFactory.fromZipFile(zipFile);
    runMultipleFilesTest(backingLibraryProvider);
}
Also used : Path(java.nio.file.Path) MapCqlLibraryProviderFactory(com.ibm.cohort.cql.library.MapCqlLibraryProviderFactory) ClasspathCqlLibraryProvider(com.ibm.cohort.cql.library.ClasspathCqlLibraryProvider) CqlLibraryProvider(com.ibm.cohort.cql.library.CqlLibraryProvider) Test(org.junit.Test)

Aggregations

ClasspathCqlLibraryProvider (com.ibm.cohort.cql.library.ClasspathCqlLibraryProvider)6 CqlLibraryProvider (com.ibm.cohort.cql.library.CqlLibraryProvider)6 MapCqlLibraryProviderFactory (com.ibm.cohort.cql.library.MapCqlLibraryProviderFactory)6 PriorityCqlLibraryProvider (com.ibm.cohort.cql.library.PriorityCqlLibraryProvider)4 CqlToElmTranslator (com.ibm.cohort.cql.translation.CqlToElmTranslator)3 TranslatingCqlLibraryProvider (com.ibm.cohort.cql.translation.TranslatingCqlLibraryProvider)3 Path (java.nio.file.Path)3 IGenericClient (ca.uhn.fhir.rest.client.api.IGenericClient)2 MapCqlLibraryProvider (com.ibm.cohort.cql.library.MapCqlLibraryProvider)2 CqlTerminologyProvider (com.ibm.cohort.cql.terminology.CqlTerminologyProvider)2 DefaultRetrieveCacheContext (com.ibm.cohort.engine.measure.cache.DefaultRetrieveCacheContext)2 RetrieveCacheContext (com.ibm.cohort.engine.measure.cache.RetrieveCacheContext)2 R4RestFhirTerminologyProvider (com.ibm.cohort.engine.terminology.R4RestFhirTerminologyProvider)2 FhirClientBuilder (com.ibm.cohort.fhir.client.config.FhirClientBuilder)2 FhirClientBuilderFactory (com.ibm.cohort.fhir.client.config.FhirClientBuilderFactory)2 InputStream (java.io.InputStream)2 Test (org.junit.Test)2 JCommander (com.beust.jcommander.JCommander)1 Parameter (com.beust.jcommander.Parameter)1 Console (com.beust.jcommander.internal.Console)1