| 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. 
 | 
| org.openmrs.logic.result | 
| Modifier and Type | Method and Description | 
|---|---|
Result | 
LogicService.eval(java.lang.Integer patientId,
    LogicCriteria criteria)
Evaluates a query for a given patient 
 | 
Result | 
LogicService.eval(java.lang.Integer patientId,
    LogicCriteria criteria,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluates a query for a given patient 
 | 
Result | 
LogicContext.eval(java.lang.Integer patientId,
    LogicCriteria criteria,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluate a rule with criteria and parameters for a single patient 
 | 
Result | 
LogicService.eval(java.lang.Integer patientId,
    java.lang.String expression)
Evaluates a rule for a given patient, given the token for the rule. 
 | 
Result | 
LogicContext.eval(java.lang.Integer patientId,
    java.lang.String token)
Evaluate a rule for a single patient 
 | 
Result | 
LogicService.eval(java.lang.Integer patientId,
    java.lang.String expression,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluates a rule for a given patient, given a token and parameters for the rule. 
 | 
Result | 
LogicContext.eval(java.lang.Integer patientId,
    java.lang.String token,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluate a rule with parameters for a single patient 
 | 
Result | 
Rule.eval(LogicContext context,
    java.lang.Integer patientId,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluate rule for a given patient and applying the given criteria. 
 | 
Result | 
LogicService.eval(Patient who,
    LogicCriteria criteria)
Deprecated. 
 
 | 
Result | 
LogicService.eval(Patient who,
    LogicCriteria criteria,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Deprecated. 
 
 | 
Result | 
LogicService.eval(Patient who,
    java.lang.String expression)
Deprecated. 
 
 | 
Result | 
LogicService.eval(Patient who,
    java.lang.String expression,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Deprecated. 
 
 | 
Result | 
LogicContext.read(java.lang.Integer patientId,
    LogicCriteria criteria)
Reads a key with criteria from a logic data source 
 | 
Result | 
LogicContext.read(java.lang.Integer patientId,
    LogicDataSource dataSource,
    LogicCriteria criteria)
Reads a key with criteria from a logic data source 
 | 
Result | 
LogicContext.read(java.lang.Integer patientId,
    LogicDataSource dataSource,
    java.lang.String key)
Reads a key from a logic data source 
 | 
Result | 
LogicContext.read(java.lang.Integer patientId,
    java.lang.String key)
Reads a key from a logic data source 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Map<LogicCriteria,java.util.Map<java.lang.Integer,Result>> | 
LogicService.eval(Cohort who,
    java.util.List<LogicCriteria> criterias)
Evaluates a collection of queries for a set of patients 
 | 
java.util.Map<java.lang.Integer,Result> | 
LogicService.eval(Cohort who,
    LogicCriteria criteria)
Evaluates a query over a list of patients 
 | 
java.util.Map<java.lang.Integer,Result> | 
LogicService.eval(Cohort who,
    LogicCriteria criteria,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluates a query over a list of patients 
 | 
java.util.Map<java.lang.Integer,Result> | 
LogicService.eval(Cohort who,
    java.lang.String expression)
Evaluates a query over a list of patients 
 | 
java.util.Map<java.lang.Integer,Result> | 
LogicService.eval(Cohort who,
    java.lang.String expression,
    java.util.Map<java.lang.String,java.lang.Object> parameters)
Evaluates a query over a list of patients 
 | 
java.util.Map<LogicCriteria,Result> | 
LogicService.eval(java.lang.Integer patientId,
    java.util.Map<java.lang.String,java.lang.Object> parameters,
    LogicCriteria... criteria)
Evaluates multiple  
LogicCriteria for a single patient. | 
java.util.Map<java.lang.String,Result> | 
LogicService.eval(java.lang.Integer patientId,
    java.util.Map<java.lang.String,java.lang.Object> parameters,
    java.lang.String... expressions)
Evaluates multiple logic expressions for a single patient. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Map<java.lang.Integer,Result> | 
LogicDataSource.read(LogicContext context,
    Cohort patients,
    LogicCriteria criteria)
Extracts data from the data source. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
EmptyResult  | 
| Modifier and Type | Method and Description | 
|---|---|
Result | 
Result.earliest()  | 
static Result | 
Result.emptyResult()  | 
Result | 
Result.get(int index)  | 
Result | 
Result.gt(java.lang.Integer value)  | 
Result | 
Result.latest()  | 
static Result | 
Result.nullResult()
Deprecated.  
 | 
Result | 
EmptyResult.remove(int index)  | 
Result | 
EmptyResult.set(int index,
   Result element)  | 
Result | 
Result.unique()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
EmptyResult.add(int arg0,
   Result arg1)  | 
boolean | 
EmptyResult.add(Result value)  | 
boolean | 
Result.contains(Result result)  | 
Result | 
EmptyResult.set(int index,
   Result element)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
EmptyResult.addAll(java.util.Collection<? extends Result> newValues)  | 
boolean | 
EmptyResult.addAll(int index,
      java.util.Collection<? extends Result> newValues)  | 
| Constructor and Description | 
|---|
Result(Result result)
Builds result upon another result — the first step in create a result that contains a
 list of other results. 
 | 
| Constructor and Description | 
|---|
Result(java.util.List<Result> list)
Builds a result from a list of results 
 | 
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.