Class FhirClientFhirLibraryContentProvider

  • All Implemented Interfaces:
    org.cqframework.cql.cql2elm.LibrarySourceProvider, LibraryContentProvider

    public class FhirClientFhirLibraryContentProvider
    extends BaseFhirLibraryContentProvider
    This class implements the LibraryContentProvider API, using a FHIR server as a source for Library resources containing CQL content. This class caches the Library resources that are resolved from the remote server, so it's intended to be short-lived (i.e. for the duration of a single CQL evaluation)
    • Constructor Detail

      • FhirClientFhirLibraryContentProvider

        public FhirClientFhirLibraryContentProvider​(ca.uhn.fhir.rest.client.api.IGenericClient client,
                                                    AdapterFactory adapterFactory,
                                                    LibraryVersionSelector libraryVersionSelector)
        Parameters:
        client - pre-configured and authorized FHIR server client
        adapterFactory - factory for HL7 Structure adapters
        libraryVersionSelector - logic for selecting a specific library
    • Method Detail

      • getLibrary

        protected org.hl7.fhir.instance.model.api.IBaseResource getLibrary​(String url)
      • getLibrary

        public org.hl7.fhir.instance.model.api.IBaseResource getLibrary​(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)
        Specified by:
        getLibrary in class BaseFhirLibraryContentProvider