Class FhirClientFhirLibraryContentProvider
- java.lang.Object
-
- org.opencds.cqf.cql.evaluator.cql2elm.content.fhir.BaseFhirLibraryContentProvider
-
- org.opencds.cqf.cql.evaluator.cql2elm.content.fhir.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 Summary
Constructors Constructor Description FhirClientFhirLibraryContentProvider(ca.uhn.fhir.rest.client.api.IGenericClient client, AdapterFactory adapterFactory, LibraryVersionSelector libraryVersionSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hl7.fhir.instance.model.api.IBaseResourcegetLibrary(String url)org.hl7.fhir.instance.model.api.IBaseResourcegetLibrary(org.hl7.elm.r1.VersionedIdentifier libraryIdentifier)-
Methods inherited from class org.opencds.cqf.cql.evaluator.cql2elm.content.fhir.BaseFhirLibraryContentProvider
getContentStream, getLibraryContent
-
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
-
-
-
-
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 clientadapterFactory- factory for HL7 Structure adapterslibraryVersionSelector- 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:
getLibraryin classBaseFhirLibraryContentProvider
-
-