evaluateLibrary

fun evaluateLibrary(libraryUrl: String, patientId: String? = null, parameters: Parameters? = null, additionalData: IBaseBundle? = null, expressions: Set<String>? = null): IBaseParameters

The function evaluates a FHIR library against the database.

NOTE: The API may internally result in a blocking IO operation. The user should call the API from a worker thread or it may throw BlockingMainThreadException exception.

Return

a Parameters resource that contains an evaluation result for each expression requested. Or if expressions param is null then result contains all evaluations or variables in given library.

Parameters

libraryUrl

the url of the Library to evaluate

patientId

the Id of the patient to be evaluated, if applicable

parameters

list of parameters to be passed to the CQL library, if applicable

additionalData

Bundle of additional resources to be passed to the CQL library, if applicable

expressions

names of expressions in the Library to evaluate. If null the result contains all evaluations or variables in library.