public interface LogicCriteria
LogicService.eval(myPatient, "CD4 COUNT");LogicService.eval(myPatient, new LogicCriteria("CD4 COUNT"));new LogicCriteriaImpl("CD4 COUNT").lt(200).within(Duration.months(6))| Modifier and Type | Method and Description |
|---|---|
LogicCriteria |
after(java.util.Date value)
Add a
In expression to the current LogicCriteria |
LogicCriteria |
and(LogicCriteria logicCriteria)
Append the LogicCriteria using the
And operator |
LogicCriteria |
appendCriteria(Operator operator,
LogicCriteria logicCriteria)
Append a LogicCriteria with another LogicCriteria using an operator
|
LogicCriteria |
appendExpression(Operator operator,
double operand) |
LogicCriteria |
appendExpression(Operator operator,
Operand operand)
Create a new LogicExpression using the
operand and operator and
then append them to the current LogicCriteria |
LogicCriteria |
appendExpression(Operator operator,
java.lang.String operand) |
LogicCriteria |
applyTransform(Operator operator)
Apply a transformation operator to a logic expression
|
LogicCriteria |
asOf(java.util.Date value)
Add a
AsOf expression to the current LogicCriteria |
LogicCriteria |
average()
Apply the
Average operator to the LogicCriteria |
LogicCriteria |
before(java.util.Date value)
Add a
Before expression to the current LogicCriteria |
LogicCriteria |
contains(double value) |
LogicCriteria |
contains(float value) |
LogicCriteria |
contains(int value) |
LogicCriteria |
contains(Operand value) |
LogicCriteria |
contains(java.lang.String value)
Add a
Contains expression to the current LogicCriteria |
LogicCriteria |
count()
Apply the
Count operator to the LogicCriteria |
LogicCriteria |
distinct()
Apply the
Distinct operator to the LogicCriteria |
LogicCriteria |
equalTo(double value) |
LogicCriteria |
equalTo(float value) |
LogicCriteria |
equalTo(int value) |
LogicCriteria |
equalTo(Operand value) |
LogicCriteria |
equalTo(java.lang.String value)
Add a
Equals expression to the current LogicCriteria |
LogicCriteria |
exists() |
LogicCriteria |
first()
Apply the
First operator to the LogicCriteria |
LogicCriteria |
first(java.lang.Integer numResults) |
LogicCriteria |
first(java.lang.Integer numResults,
java.lang.String sortComponent) |
LogicCriteria |
first(java.lang.String sortComponent) |
LogicExpression |
getExpression()
Method to get the LogicExpression backing the current LogicCriteria
|
java.util.Map<java.lang.String,java.lang.Object> |
getLogicParameters() |
java.lang.String |
getRootToken()
Method to get the root token of the current LogicCriteria.
|
LogicCriteria |
gt(double value)
Add a
GreaterThan expression to the current LogicCriteria |
LogicCriteria |
gt(float value) |
LogicCriteria |
gt(int value) |
LogicCriteria |
gt(Operand value) |
LogicCriteria |
gte(double value)
Add a
GreaterThanEquals expression to the current LogicCriteria |
LogicCriteria |
gte(float value) |
LogicCriteria |
gte(int value) |
LogicCriteria |
gte(Operand value) |
LogicCriteria |
in(java.util.Collection<?> value)
Add a
After expression to the current LogicCriteria |
LogicCriteria |
last()
Apply the
Last operator to the LogicCriteria |
LogicCriteria |
last(java.lang.Integer numResults) |
LogicCriteria |
lt(double value)
Add a
LessThan expression to the current LogicCriteria |
LogicCriteria |
lt(float value) |
LogicCriteria |
lt(int value) |
LogicCriteria |
lt(Operand value) |
LogicCriteria |
lte(double value)
Add a
LessThanEquals expression to the current LogicCriteria |
LogicCriteria |
lte(float value) |
LogicCriteria |
lte(int value) |
LogicCriteria |
lte(Operand value) |
LogicCriteria |
not() |
LogicCriteria |
notExists() |
LogicCriteria |
or(LogicCriteria logicCriteria)
Append the LogicCriteria using the
Or operator |
void |
setLogicParameters(java.util.Map<java.lang.String,java.lang.Object> logicParameters) |
LogicCriteria |
within(Duration duration)
Add a duration expression to the current LogicCriteria
|
LogicCriteria appendExpression(Operator operator, Operand operand)
operand and operator and
then append them to the current LogicCriteriaoperator - one of the Operator object to be appended to the current LogicCriteriaoperand - one of the Operand objectLogicCriteria appendExpression(Operator operator, java.lang.String operand)
appendExpression(Operator, Operand)LogicCriteria appendExpression(Operator operator, double operand)
appendExpression(Operator, Operand)LogicCriteria applyTransform(Operator operator)
operator - type of the TransformOperatorTransformOperatorLogicCriteria appendCriteria(Operator operator, LogicCriteria logicCriteria)
operator - one type of OperatorlogicCriteria - LogicCriteria to be appendedLogicCriteria containing existing and the new LogicCriteriaLogicCriteria and(LogicCriteria logicCriteria)
And operatorlogicCriteria - LogicCriteria to be appendedAndLogicCriteria or(LogicCriteria logicCriteria)
Or operatorlogicCriteria - LogicCriteria to be appendedOrLogicCriteria not()
LogicCriteria count()
Count operator to the LogicCriteriaCountLogicCriteria average()
Average operator to the LogicCriteriaAverageLogicCriteria last()
Last operator to the LogicCriteriaLastLogicCriteria last(java.lang.Integer numResults)
last()LogicCriteria first()
First operator to the LogicCriteriaFirstLogicCriteria first(java.lang.Integer numResults)
first()LogicCriteria first(java.lang.String sortComponent)
first()LogicCriteria first(java.lang.Integer numResults, java.lang.String sortComponent)
first()LogicCriteria distinct()
Distinct operator to the LogicCriteriaDistinctLogicCriteria exists()
LogicCriteria notExists()
LogicCriteria asOf(java.util.Date value)
AsOf expression to the current LogicCriteriavalue - the operand for the AsOf operatorAsOfLogicCriteria before(java.util.Date value)
Before expression to the current LogicCriteriavalue - the operand for the Before operatorBeforeLogicCriteria after(java.util.Date value)
In expression to the current LogicCriteriavalue - the operand for the In operatorInLogicCriteria in(java.util.Collection<?> value)
After expression to the current LogicCriteriavalue - the operand for the After operatorAfterLogicCriteria contains(Operand value)
contains(String)LogicCriteria contains(int value)
contains(String)LogicCriteria contains(float value)
contains(String)LogicCriteria contains(double value)
contains(String)LogicCriteria contains(java.lang.String value)
Contains expression to the current LogicCriteriavalue - the operand for the Contains operatorContainsLogicCriteria equalTo(Operand value)
equalTo(String)LogicCriteria equalTo(int value)
equalTo(String)LogicCriteria equalTo(float value)
equalTo(String)LogicCriteria equalTo(double value)
equalTo(String)LogicCriteria equalTo(java.lang.String value)
Equals expression to the current LogicCriteriavalue - the operand for the Equals operatorEqualsLogicCriteria gte(Operand value)
gte(double)LogicCriteria gte(int value)
gte(double)LogicCriteria gte(float value)
gte(double)LogicCriteria gte(double value)
GreaterThanEquals expression to the current LogicCriteriavalue - the operand for the GreaterThanEquals operatorGreaterThanEqualsLogicCriteria gt(Operand value)
gt(double)LogicCriteria gt(int value)
gt(double)LogicCriteria gt(float value)
gt(double)LogicCriteria gt(double value)
GreaterThan expression to the current LogicCriteriavalue - the operand for the GreaterThan operatorGreaterThanLogicCriteria lt(Operand value)
lt(double)LogicCriteria lt(int value)
lt(double)LogicCriteria lt(float value)
lt(double)LogicCriteria lt(double value)
LessThan expression to the current LogicCriteriavalue - the operand for the LessThan operatorLessThanLogicCriteria lte(Operand value)
lte(double)LogicCriteria lte(int value)
lte(double)LogicCriteria lte(float value)
lte(double)LogicCriteria lte(double value)
LessThanEquals expression to the current LogicCriteriavalue - the operand for the LessThanEquals operatorLessThanEqualsLogicCriteria within(Duration duration)
java.util.Map<java.lang.String,java.lang.Object> getLogicParameters()
void setLogicParameters(java.util.Map<java.lang.String,java.lang.Object> logicParameters)
logicParameters - java.lang.String getRootToken()
logicService.parseString("'CD4 COUNT'").getRootToken().equals("CD4 COUNT");
LogicExpression getExpression()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.