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(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,
String operand) |
LogicCriteria |
applyTransform(Operator operator)
Apply a transformation operator to a logic expression
|
LogicCriteria |
asOf(Date value)
Add a
AsOf expression to the current LogicCriteria |
LogicCriteria |
average()
Apply the
Average operator to the LogicCriteria |
LogicCriteria |
before(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(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(String value)
Add a
Equals expression to the current LogicCriteria |
LogicCriteria |
exists() |
LogicCriteria |
first()
Apply the
First operator to the LogicCriteria |
LogicCriteria |
first(Integer numResults) |
LogicCriteria |
first(Integer numResults,
String sortComponent) |
LogicCriteria |
first(String sortComponent) |
LogicExpression |
getExpression()
Method to get the LogicExpression backing the current LogicCriteria
|
Map<String,Object> |
getLogicParameters() |
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(Collection<?> value)
Add a
After expression to the current LogicCriteria |
LogicCriteria |
last()
Apply the
Last operator to the LogicCriteria |
LogicCriteria |
last(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(Map<String,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, String operand)
appendExpression(Operator, Operand)
LogicCriteria appendExpression(Operator operator, double operand)
appendExpression(Operator, Operand)
LogicCriteria applyTransform(Operator operator)
operator
- type of the TransformOperator
TransformOperator
LogicCriteria appendCriteria(Operator operator, LogicCriteria logicCriteria)
operator
- one type of Operator
logicCriteria
- LogicCriteria
to be appendedLogicCriteria
containing existing and the new LogicCriteria
LogicCriteria and(LogicCriteria logicCriteria)
And
operatorlogicCriteria
- LogicCriteria to be appendedAnd
LogicCriteria or(LogicCriteria logicCriteria)
Or
operatorlogicCriteria
- LogicCriteria to be appendedOr
LogicCriteria not()
LogicCriteria count()
Count
operator to the LogicCriteriaCount
LogicCriteria average()
Average
operator to the LogicCriteriaAverage
LogicCriteria last()
Last
operator to the LogicCriteriaLast
LogicCriteria last(Integer numResults)
last()
LogicCriteria first()
First
operator to the LogicCriteriaFirst
LogicCriteria first(Integer numResults)
first()
LogicCriteria first(String sortComponent)
first()
LogicCriteria first(Integer numResults, String sortComponent)
first()
LogicCriteria distinct()
Distinct
operator to the LogicCriteriaDistinct
LogicCriteria exists()
LogicCriteria notExists()
LogicCriteria asOf(Date value)
AsOf
expression to the current LogicCriteriavalue
- the operand for the AsOf operatorAsOf
LogicCriteria before(Date value)
Before
expression to the current LogicCriteriavalue
- the operand for the Before operatorBefore
LogicCriteria after(Date value)
In
expression to the current LogicCriteriavalue
- the operand for the In operatorIn
LogicCriteria in(Collection<?> value)
After
expression to the current LogicCriteriavalue
- the operand for the After operatorAfter
LogicCriteria 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(String value)
Contains
expression to the current LogicCriteriavalue
- the operand for the Contains operatorContains
LogicCriteria 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(String value)
Equals
expression to the current LogicCriteriavalue
- the operand for the Equals operatorEquals
LogicCriteria 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 operatorGreaterThanEquals
LogicCriteria 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 operatorGreaterThan
LogicCriteria 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 operatorLessThan
LogicCriteria 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 operatorLessThanEquals
LogicCriteria within(Duration duration)
void setLogicParameters(Map<String,Object> logicParameters)
logicParameters
- String getRootToken()
logicService.parseString("'CD4 COUNT'").getRootToken().equals("CD4 COUNT");
LogicExpression getExpression()
Copyright © 2024 OpenMRS Inc.. All rights reserved.