| 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(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 
 | 
Result | 
LogicService.eval(Integer patientId,
    String expression)
Evaluates a rule for a given patient, given the token for the rule. 
 | 
Result | 
LogicContext.eval(Integer patientId,
    String token)
Evaluate a rule for a single patient 
 | 
Result | 
LogicService.eval(Integer patientId,
    String expression,
    Map<String,Object> parameters)
Evaluates a rule for a given patient, given a token and parameters for the rule. 
 | 
Result | 
LogicContext.eval(Integer patientId,
    String token,
    Map<String,Object> parameters)
Evaluate a rule with parameters for a single patient 
 | 
Result | 
Rule.eval(LogicContext context,
    Integer patientId,
    Map<String,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,
    Map<String,Object> parameters)
Deprecated. 
 
 | 
Result | 
LogicService.eval(Patient who,
    String expression)
Deprecated. 
 
 | 
Result | 
LogicService.eval(Patient who,
    String expression,
    Map<String,Object> parameters)
Deprecated. 
 
 | 
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 
 | 
Result | 
LogicContext.read(Integer patientId,
    LogicDataSource dataSource,
    String key)
Reads a key from a logic data source 
 | 
Result | 
LogicContext.read(Integer patientId,
    String key)
Reads a key 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 
 | 
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 
 | 
Map<Integer,Result> | 
LogicService.eval(Cohort who,
    String expression)
Evaluates a query over a list of patients 
 | 
Map<Integer,Result> | 
LogicService.eval(Cohort who,
    String expression,
    Map<String,Object> parameters)
Evaluates a query over a list of patients 
 | 
Map<LogicCriteria,Result> | 
LogicService.eval(Integer patientId,
    Map<String,Object> parameters,
    LogicCriteria... criteria)
Evaluates multiple  
LogicCriteria for a single patient. | 
Map<String,Result> | 
LogicService.eval(Integer patientId,
    Map<String,Object> parameters,
    String... expressions)
Evaluates multiple logic expressions for a single patient. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Map<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(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(Collection<? extends Result> newValues)  | 
boolean | 
EmptyResult.addAll(int index,
      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(List<Result> list)
Builds a result from a list of results 
 | 
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.