Package | Description |
---|---|
org.openmrs.logic |
The OpenMRS Logic Service provides access to granular and derived
data.
|
org.openmrs.logic.datasource |
Logic data sources are responsible for providing data to the logic service engine.
|
Modifier and Type | Method and Description |
---|---|
LogicCriteria |
LogicCriteria.after(Date value)
Add a
In expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.and(LogicCriteria logicCriteria)
Append the LogicCriteria using the
And operator |
LogicCriteria |
LogicCriteria.appendCriteria(Operator operator,
LogicCriteria logicCriteria)
Append a LogicCriteria with another LogicCriteria using an operator
|
LogicCriteria |
LogicCriteria.appendExpression(Operator operator,
double operand) |
LogicCriteria |
LogicCriteria.appendExpression(Operator operator,
Operand operand)
Create a new LogicExpression using the
operand and operator and
then append them to the current LogicCriteria |
LogicCriteria |
LogicCriteria.appendExpression(Operator operator,
String operand) |
LogicCriteria |
LogicCriteria.applyTransform(Operator operator)
Apply a transformation operator to a logic expression
|
LogicCriteria |
LogicCriteria.asOf(Date value)
Add a
AsOf expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.average()
Apply the
Average operator to the LogicCriteria |
LogicCriteria |
LogicCriteria.before(Date value)
Add a
Before expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.contains(double value) |
LogicCriteria |
LogicCriteria.contains(float value) |
LogicCriteria |
LogicCriteria.contains(int value) |
LogicCriteria |
LogicCriteria.contains(Operand value) |
LogicCriteria |
LogicCriteria.contains(String value)
Add a
Contains expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.count()
Apply the
Count operator to the LogicCriteria |
LogicCriteria |
LogicCriteria.distinct()
Apply the
Distinct operator to the LogicCriteria |
LogicCriteria |
LogicCriteria.equalTo(double value) |
LogicCriteria |
LogicCriteria.equalTo(float value) |
LogicCriteria |
LogicCriteria.equalTo(int value) |
LogicCriteria |
LogicCriteria.equalTo(Operand value) |
LogicCriteria |
LogicCriteria.equalTo(String value)
Add a
Equals expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.exists() |
LogicCriteria |
LogicCriteria.first()
Apply the
First operator to the LogicCriteria |
LogicCriteria |
LogicCriteria.first(Integer numResults) |
LogicCriteria |
LogicCriteria.first(Integer numResults,
String sortComponent) |
LogicCriteria |
LogicCriteria.first(String sortComponent) |
LogicCriteria |
LogicCriteria.gt(double value)
Add a
GreaterThan expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.gt(float value) |
LogicCriteria |
LogicCriteria.gt(int value) |
LogicCriteria |
LogicCriteria.gt(Operand value) |
LogicCriteria |
LogicCriteria.gte(double value)
Add a
GreaterThanEquals expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.gte(float value) |
LogicCriteria |
LogicCriteria.gte(int value) |
LogicCriteria |
LogicCriteria.gte(Operand value) |
LogicCriteria |
LogicCriteria.in(Collection<?> value)
Add a
After expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.last()
Apply the
Last operator to the LogicCriteria |
LogicCriteria |
LogicCriteria.last(Integer numResults) |
LogicCriteria |
LogicCriteria.lt(double value)
Add a
LessThan expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.lt(float value) |
LogicCriteria |
LogicCriteria.lt(int value) |
LogicCriteria |
LogicCriteria.lt(Operand value) |
LogicCriteria |
LogicCriteria.lte(double value)
Add a
LessThanEquals expression to the current LogicCriteria |
LogicCriteria |
LogicCriteria.lte(float value) |
LogicCriteria |
LogicCriteria.lte(int value) |
LogicCriteria |
LogicCriteria.lte(Operand value) |
LogicCriteria |
LogicCriteria.not() |
LogicCriteria |
LogicCriteria.notExists() |
LogicCriteria |
LogicCriteria.or(LogicCriteria logicCriteria)
Append the LogicCriteria using the
Or operator |
LogicCriteria |
LogicService.parse(String criteria)
Parse a criteria String to create a new LogicCriteria.
|
LogicCriteria |
LogicCriteria.within(Duration duration)
Add a duration expression to the current LogicCriteria
|
Modifier and Type | Method and Description |
---|---|
Map<LogicCriteria,Map<Integer,Result>> |
LogicService.eval(Cohort who,
List<LogicCriteria> criterias)
Evaluates a collection of queries for a set of patients
|
Map<LogicCriteria,Result> |
LogicService.eval(Integer patientId,
Map<String,Object> parameters,
LogicCriteria... criteria)
Evaluates multiple
LogicCriteria for a single patient. |
Modifier and Type | Method and Description |
---|---|
LogicCriteria |
LogicCriteria.and(LogicCriteria logicCriteria)
Append the LogicCriteria using the
And operator |
LogicCriteria |
LogicCriteria.appendCriteria(Operator operator,
LogicCriteria logicCriteria)
Append a LogicCriteria with another LogicCriteria using an operator
|
Map<Integer,Result> |
LogicService.eval(Cohort who,
LogicCriteria criteria)
Evaluates a query over a list of patients
|
Map<Integer,Result> |
LogicService.eval(Cohort who,
LogicCriteria criteria,
Map<String,Object> parameters)
Evaluates a query over a list of patients
|
Result |
LogicService.eval(Integer patientId,
LogicCriteria criteria)
Evaluates a query for a given patient
|
Result |
LogicService.eval(Integer patientId,
LogicCriteria criteria,
Map<String,Object> parameters)
Evaluates a query for a given patient
|
Result |
LogicContext.eval(Integer patientId,
LogicCriteria criteria,
Map<String,Object> parameters)
Evaluate a rule with criteria and parameters for a single patient
|
Map<LogicCriteria,Result> |
LogicService.eval(Integer patientId,
Map<String,Object> parameters,
LogicCriteria... criteria)
Evaluates multiple
LogicCriteria for a single patient. |
LogicCriteria |
LogicCriteria.or(LogicCriteria logicCriteria)
Append the LogicCriteria using the
Or operator |
Result |
LogicContext.read(Integer patientId,
LogicCriteria criteria)
Reads a key with criteria from a logic data source
|
Result |
LogicContext.read(Integer patientId,
LogicDataSource dataSource,
LogicCriteria criteria)
Reads a key with criteria from a logic data source
|
Modifier and Type | Method and Description |
---|---|
Map<LogicCriteria,Map<Integer,Result>> |
LogicService.eval(Cohort who,
List<LogicCriteria> criterias)
Evaluates a collection of queries for a set of patients
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,Result> |
LogicDataSource.read(LogicContext context,
Cohort patients,
LogicCriteria criteria)
Extracts data from the data source.
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.