All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.fhir.cql.translator.CqlTranslationProvider Maven / Gradle / Ivy

/*
 * (C) Copyright IBM Corp. 2021
 *
 * SPDX-License-Identifier: Apache-2.0
 */
package com.ibm.fhir.cql.translator;

import java.io.InputStream;
import java.util.List;

import org.cqframework.cql.elm.execution.Library;

/**
 * Define an interface that applications can use for CQL to ELM 
 * translation.
 */
public interface CqlTranslationProvider {
    public enum Option {
        EnableDateRangeOptimization,
        EnableAnnotations,
        EnableLocators,
        EnableResultTypes,
        EnableDetailedErrors,
        DisableListTraversal,
        DisableListDemotion,
        DisableListPromotion,
        EnableIntervalDemotion,
        EnableIntervalPromotion,
        DisableMethodInvocation,
        RequireFromKeyword
    }
    
    public static enum Format { XML, JSON, JXSON, COFFEE }
    
    List translate(InputStream cql) throws CqlTranslationException;

    List translate(InputStream cql, List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy