Package org.ehrbase.aql.compiler
Class AqlExpressionWithParameters
java.lang.Object
org.ehrbase.aql.compiler.AqlExpression
org.ehrbase.aql.compiler.AqlExpressionWithParameters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the parameter values from a json expression in the format: "query-parameters": { "ehr_id": "7d44b88c-4199-4bad-97dc-d78268e01398", "systolic_bp": 140 }substitute(String query, Map<String, Object> parameterValues) Substitute parameters in aql expression A parameter symbol starts with a '$' and a combination of alphanumeric with '-' or '_' If the parameter value is a string or a UUID it is single quoted.Methods inherited from class org.ehrbase.aql.compiler.AqlExpression
dump, getParseTree, parse
-
Field Details
-
PARAMETERS_KEY
- See Also:
-
-
Constructor Details
-
AqlExpressionWithParameters
public AqlExpressionWithParameters()
-
-
Method Details
-
parse
-
parse
get the parameter values from a json expression in the format: "query-parameters": { "ehr_id": "7d44b88c-4199-4bad-97dc-d78268e01398", "systolic_bp": 140 }- Overrides:
parsein classAqlExpression- Parameters:
expression-jsonParameterMap-- Returns:
-
substitute
Substitute parameters in aql expression A parameter symbol starts with a '$' and a combination of alphanumeric with '-' or '_' If the parameter value is a string or a UUID it is single quoted.- Parameters:
query-parameterValues-- Returns:
-