Interface LibraryContentProvider
-
- All Superinterfaces:
org.cqframework.cql.cql2elm.LibrarySourceProvider
- All Known Implementing Classes:
BaseFhirLibraryContentProvider,BundleFhirLibraryContentProvider,EmbeddedFhirLibraryContentProvider,FhirClientFhirLibraryContentProvider,InMemoryLibraryContentProvider
public interface LibraryContentProvider extends org.cqframework.cql.cql2elm.LibrarySourceProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InputStreamgetLibraryContent(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryContentType libraryContentType)Get content of a library in the format specified.default InputStreamgetLibrarySource(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)Gets the content of a library as CQL text.
-
-
-
Method Detail
-
getLibraryContent
InputStream getLibraryContent(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryContentType libraryContentType)
Get content of a library in the format specified. If the versionedIdentifier has a version specified it returns the nearest compatible version. If a version is not specified it returns the highest version. If no compatible version is found, it returns null. Returns null if unable to provide the type of content specified.- Parameters:
libraryIdentifier- The identifier of the library to provide content for.libraryContentType- The format of the content to return- Returns:
- InputStream the library content
-
getLibrarySource
default InputStream getLibrarySource(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)
Gets the content of a library as CQL text. If the versionedIdentifier has a version specified it returns the nearest compatible version. If a version is not specified it returns the highest version. If no compatible version is found, it returns null.- Specified by:
getLibrarySourcein interfaceorg.cqframework.cql.cql2elm.LibrarySourceProvider- Parameters:
libraryIdentifier- The identifier of the library to provide content for.- Returns:
- InputStream the CQL text.
-
-