| 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 | 
|---|---|
void | 
LogicService.addRule(java.lang.String token,
       Rule rule)
Registers a new rule with the logic service. 
 | 
void | 
LogicService.addRule(java.lang.String token,
       java.lang.String[] tags,
       Rule rule)
Registers a new rule with the logic service, associating the tags with the given token 
 | 
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 
 | 
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 
 | 
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. 
 | 
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. 
 
 | 
Rule | 
LogicService.getRule(java.lang.String token)
Gets the rule registered under a given token 
 | 
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 
 | 
void | 
LogicService.registerLogicDataSource(java.lang.String name,
                       LogicDataSource logicDataSource)
Deprecated. 
 
data sources are now auto-registered via Spring (since Logic module version 0.5) 
 | 
void | 
LogicService.removeRule(java.lang.String token)
Removes a rule from the logic service 
 | 
void | 
LogicService.setLogicDataSources(java.util.Map<java.lang.String,LogicDataSource> logicDataSources)
Deprecated. 
 
data sources are now auto-registered via Spring (since Logic module version 0.5) 
 | 
void | 
LogicService.updateRule(java.lang.String token,
          Rule rule)
Update a rule that has previously been registered 
 | 
| 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. 
 | 
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.