Package com.ibm.fhir.operation.cpg
Class AbstractCqlOperation
- java.lang.Object
-
- com.ibm.fhir.server.spi.operation.AbstractOperation
-
- com.ibm.fhir.operation.cpg.AbstractCqlOperation
-
- All Implemented Interfaces:
FHIROperation
- Direct Known Subclasses:
CqlOperation,LibraryEvaluateOperation
public abstract class AbstractCqlOperation extends AbstractOperation
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_IN_DEBUGstatic StringPARAM_IN_EXPRESSIONstatic StringPARAM_IN_PARAMETERSstatic StringPARAM_IN_SUBJECTstatic StringPARAM_OUT_DEBUG_RESULTstatic StringPARAM_OUT_RETURN-
Fields inherited from class com.ibm.fhir.server.spi.operation.AbstractOperation
definition
-
-
Constructor Summary
Constructors Constructor Description AbstractCqlOperation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.opencds.cqf.cql.engine.execution.LibraryLoadercreateLibraryLoader(List<Library> libraries)protected ParametersdoEvaluation(FHIRResourceHelpers resourceHelper, ParameterMap paramMap, Library primaryLibrary)protected ParametersdoEvaluation(FHIRResourceHelpers resourceHelper, ParameterMap paramMap, List<Library> libraries)protected org.apache.commons.lang3.tuple.Pair<String,Object>getCqlContext(ParameterMap paramMap)protected org.apache.commons.lang3.tuple.Pair<String,Object>getCqlContext(org.apache.commons.lang3.tuple.Pair<String,Object> context, Parameters.Parameter subjectParam)protected Map<String,Object>getCqlEngineParameters(ParameterConverter converter, Parameters.Parameter parametersParam)protected abstract Set<String>getCqlExpressionsToEvaluate(ParameterMap paramMap)protected Map<String,Object>getCqlParameters(ParameterConverter converter, ParameterMap paramMap)protected org.opencds.cqf.cql.engine.debug.DebugMapgetDebugMap(ParameterMap paramMap)-
Methods inherited from class com.ibm.fhir.server.spi.operation.AbstractOperation
buildExceptionWithIssue, buildExceptionWithIssue, buildOperationDefinition, countParameters, doInvoke, findOpDefParameter, getDefinition, getName, getParameter, getParameterDefinitions, getParameters, getResourceTypeNames, invoke, isAbstractResourceTypesDisallowed, isAdditionalMethodAllowed, validateInputParameters, validateOperationContext, validateOutputParameters, validateParameters
-
-
-
-
Field Detail
-
PARAM_IN_EXPRESSION
public static final String PARAM_IN_EXPRESSION
- See Also:
- Constant Field Values
-
PARAM_IN_PARAMETERS
public static final String PARAM_IN_PARAMETERS
- See Also:
- Constant Field Values
-
PARAM_IN_SUBJECT
public static final String PARAM_IN_SUBJECT
- See Also:
- Constant Field Values
-
PARAM_IN_DEBUG
public static final String PARAM_IN_DEBUG
- See Also:
- Constant Field Values
-
PARAM_OUT_RETURN
public static final String PARAM_OUT_RETURN
- See Also:
- Constant Field Values
-
PARAM_OUT_DEBUG_RESULT
public static final String PARAM_OUT_DEBUG_RESULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
doEvaluation
protected Parameters doEvaluation(FHIRResourceHelpers resourceHelper, ParameterMap paramMap, Library primaryLibrary)
-
doEvaluation
protected Parameters doEvaluation(FHIRResourceHelpers resourceHelper, ParameterMap paramMap, List<Library> libraries)
-
getCqlContext
protected org.apache.commons.lang3.tuple.Pair<String,Object> getCqlContext(ParameterMap paramMap)
-
getCqlContext
protected org.apache.commons.lang3.tuple.Pair<String,Object> getCqlContext(org.apache.commons.lang3.tuple.Pair<String,Object> context, Parameters.Parameter subjectParam)
-
getCqlParameters
protected Map<String,Object> getCqlParameters(ParameterConverter converter, ParameterMap paramMap)
-
getCqlEngineParameters
protected Map<String,Object> getCqlEngineParameters(ParameterConverter converter, Parameters.Parameter parametersParam)
-
getCqlExpressionsToEvaluate
protected abstract Set<String> getCqlExpressionsToEvaluate(ParameterMap paramMap)
-
createLibraryLoader
protected org.opencds.cqf.cql.engine.execution.LibraryLoader createLibraryLoader(List<Library> libraries)
-
getDebugMap
protected org.opencds.cqf.cql.engine.debug.DebugMap getDebugMap(ParameterMap paramMap)
-
-