Class BaseFhirLibraryContentProvider

    • Constructor Detail

      • BaseFhirLibraryContentProvider

        public BaseFhirLibraryContentProvider​(AdapterFactory adapterFactory)
    • 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
      • getContentStream

        protected InputStream getContentStream​(org.hl7.fhir.instance.model.api.IBaseResource library,
                                               String contentType)
      • getLibrary

        protected abstract org.hl7.fhir.instance.model.api.IBaseResource getLibrary​(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)