Class EmbeddedFhirLibraryContentProvider
- java.lang.Object
-
- org.cqframework.cql.cql2elm.FhirLibrarySourceProvider
-
- org.opencds.cqf.cql.evaluator.cql2elm.content.fhir.EmbeddedFhirLibraryContentProvider
-
- All Implemented Interfaces:
org.cqframework.cql.cql2elm.LibrarySourceProvider,org.cqframework.cql.cql2elm.NamespaceAware,LibraryContentProvider
public class EmbeddedFhirLibraryContentProvider extends org.cqframework.cql.cql2elm.FhirLibrarySourceProvider implements LibraryContentProvider
This class provides access to the FHIR Libraries that are embedded in the translator jars, specifically FHIRHelpers. Typically you'd include an instance of this library in the list of content providers used for translation if you needed to translate or load CQL content that depended on FHIRHelpers. This would not be needed if you had another source for the FHIRHelpers content configured (e.g. a server with FHIRHelpers loaded, an IG with FHIRHelpers defined, etc)
-
-
Constructor Summary
Constructors Constructor Description EmbeddedFhirLibraryContentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetLibraryContent(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryContentType libraryContentType)Get content of a library in the format specified.-
Methods inherited from class org.cqframework.cql.cql2elm.FhirLibrarySourceProvider
getLibrarySource, setNamespaceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencds.cqf.cql.evaluator.cql2elm.content.LibraryContentProvider
getLibrarySource
-
-
-
-
Method Detail
-
getLibraryContent
public InputStream getLibraryContent(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier, LibraryContentType libraryContentType)
Description copied from interface:LibraryContentProviderGet 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.- Specified by:
getLibraryContentin interfaceLibraryContentProvider- Parameters:
libraryIdentifier- The identifier of the library to provide content for.libraryContentType- The format of the content to return- Returns:
- InputStream the library content
-
-