
org.cqframework.cql.elm.evaluation.TestLibrarySourceProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elm-fhir Show documentation
Show all versions of elm-fhir Show documentation
The elm-fhir library for the Clinical Quality Language Java reference implementation
package org.cqframework.cql.elm.evaluation;
import java.io.InputStream;
import org.cqframework.cql.cql2elm.LibrarySourceProvider;
import org.hl7.elm.r1.VersionedIdentifier;
public class TestLibrarySourceProvider implements LibrarySourceProvider {
@Override
public InputStream getLibrarySource(VersionedIdentifier libraryIdentifier) {
String libraryFileName = String.format(
"%s.cql",
libraryIdentifier
.getId()); // , libraryIdentifier.getVersion() != null ? ("-" + libraryIdentifier.getVersion())
// : "");
return TestLibrarySourceProvider.class.getResourceAsStream(libraryFileName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy