Class 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 Detail

      • EmbeddedFhirLibraryContentProvider

        public EmbeddedFhirLibraryContentProvider()
    • Method Detail

      • getLibraryContent

        public InputStream getLibraryContent​(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier,
                                             LibraryContentType libraryContentType)
        Description copied from interface: LibraryContentProvider
        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.
        Specified by:
        getLibraryContent in interface LibraryContentProvider
        Parameters:
        libraryIdentifier - The identifier of the library to provide content for.
        libraryContentType - The format of the content to return
        Returns:
        InputStream the library content