Interface LibraryContentProvider

    • 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:
        getLibrarySource in interface org.cqframework.cql.cql2elm.LibrarySourceProvider
        Parameters:
        libraryIdentifier - The identifier of the library to provide content for.
        Returns:
        InputStream the CQL text.