Package com.ibm.fhir.operation.cpg
Class CqlOperation
- java.lang.Object
-
- com.ibm.fhir.server.spi.operation.AbstractOperation
-
- com.ibm.fhir.operation.cpg.AbstractCqlOperation
-
- com.ibm.fhir.operation.cpg.CqlOperation
-
- All Implemented Interfaces:
FHIROperation
public class CqlOperation extends AbstractCqlOperation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CqlOperation.IncludeLibraryDetail
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_DEFINE_NAME
static String
DEFAULT_FHIR_VERSION
static String
DEFAULT_LIBRARY_NAME
static String
DEFAULT_LIBRARY_VERSION
static String
PARAM_IN_LIBRARY
static String
PARAM_IN_LIBRARY_NAME
static String
PARAM_IN_LIBRARY_URL
-
Fields inherited from class com.ibm.fhir.operation.cpg.AbstractCqlOperation
PARAM_IN_DEBUG, PARAM_IN_EXPRESSION, PARAM_IN_PARAMETERS, PARAM_IN_SUBJECT, PARAM_OUT_DEBUG_RESULT, PARAM_OUT_RETURN
-
Fields inherited from class com.ibm.fhir.server.spi.operation.AbstractOperation
definition
-
-
Constructor Summary
Constructors Constructor Description CqlOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OperationDefinition
buildOperationDefinition()
protected Library
createLibraryResource(String context, Parameters.Parameter expression, List<Parameters.Parameter> includes)
protected Parameters
doInvoke(FHIROperationContext operationContext, Class<? extends Resource> resourceType, String logicalId, String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper)
This is the method that concrete subclasses must implement to perform the operation logic.protected Set<String>
getCqlExpressionsToEvaluate(ParameterMap paramMap)
protected CqlOperation.IncludeLibraryDetail
getIncludeDetail(Parameters.Parameter includeParameter)
-
Methods inherited from class com.ibm.fhir.operation.cpg.AbstractCqlOperation
createLibraryLoader, doEvaluation, doEvaluation, getCqlContext, getCqlContext, getCqlEngineParameters, getCqlParameters, getDebugMap
-
Methods inherited from class com.ibm.fhir.server.spi.operation.AbstractOperation
buildExceptionWithIssue, buildExceptionWithIssue, countParameters, findOpDefParameter, getDefinition, getName, getParameter, getParameterDefinitions, getParameters, getResourceTypeNames, invoke, isAbstractResourceTypesDisallowed, isAdditionalMethodAllowed, validateInputParameters, validateOperationContext, validateOutputParameters, validateParameters
-
-
-
-
Field Detail
-
PARAM_IN_LIBRARY
public static final String PARAM_IN_LIBRARY
- See Also:
- Constant Field Values
-
PARAM_IN_LIBRARY_URL
public static final String PARAM_IN_LIBRARY_URL
- See Also:
- Constant Field Values
-
PARAM_IN_LIBRARY_NAME
public static final String PARAM_IN_LIBRARY_NAME
- See Also:
- Constant Field Values
-
DEFAULT_LIBRARY_NAME
public static final String DEFAULT_LIBRARY_NAME
- See Also:
- Constant Field Values
-
DEFAULT_LIBRARY_VERSION
public static final String DEFAULT_LIBRARY_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_FHIR_VERSION
public static final String DEFAULT_FHIR_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_DEFINE_NAME
public static final String DEFAULT_DEFINE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildOperationDefinition
protected OperationDefinition buildOperationDefinition()
- Specified by:
buildOperationDefinition
in classAbstractOperation
-
doInvoke
protected Parameters doInvoke(FHIROperationContext operationContext, Class<? extends Resource> resourceType, String logicalId, String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper) throws FHIROperationException
Description copied from class:AbstractOperation
This is the method that concrete subclasses must implement to perform the operation logic.- Specified by:
doInvoke
in classAbstractOperation
- Returns:
- the Parameters object to return or null if there is no response Parameters object to return
- Throws:
FHIROperationException
-
createLibraryResource
protected Library createLibraryResource(String context, Parameters.Parameter expression, List<Parameters.Parameter> includes)
-
getIncludeDetail
protected CqlOperation.IncludeLibraryDetail getIncludeDetail(Parameters.Parameter includeParameter)
-
getCqlExpressionsToEvaluate
protected Set<String> getCqlExpressionsToEvaluate(ParameterMap paramMap)
- Specified by:
getCqlExpressionsToEvaluate
in classAbstractCqlOperation
-
-