org.cqframework.cql.cql2elm.LibrarySourceProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cql-to-elm Show documentation
Show all versions of cql-to-elm Show documentation
The cql-to-elm library for the Clinical Quality Language Java reference implementation
package org.cqframework.cql.cql2elm;
import java.io.InputStream;
import org.hl7.elm.r1.VersionedIdentifier;
public interface LibrarySourceProvider {
InputStream getLibrarySource(VersionedIdentifier libraryIdentifier);
default InputStream getLibraryContent(VersionedIdentifier libraryIdentifier, LibraryContentType type) {
if (LibraryContentType.CQL == type) {
return getLibrarySource(libraryIdentifier);
}
return null;
}
}