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(String token,
Rule rule)
Registers a new rule with the logic service.
|
void |
LogicService.addRule(String token,
String[] tags,
Rule rule)
Registers a new rule with the logic service, associating the tags with the given token
|
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
|
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. |
Map<String,Result> |
LogicService.eval(Integer patientId,
Map<String,Object> parameters,
String... expressions)
Evaluates multiple logic expressions 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.
|
Rule |
LogicService.getRule(String token)
Gets the rule registered under a given token
|
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
|
void |
LogicService.registerLogicDataSource(String name,
LogicDataSource logicDataSource)
Deprecated.
data sources are now auto-registered via Spring (since Logic module version 0.5)
|
void |
LogicService.removeRule(String token)
Removes a rule from the logic service
|
void |
LogicService.setLogicDataSources(Map<String,LogicDataSource> logicDataSources)
Deprecated.
data sources are now auto-registered via Spring (since Logic module version 0.5)
|
void |
LogicService.updateRule(String token,
Rule rule)
Update a rule that has previously been registered
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,Result> |
LogicDataSource.read(LogicContext context,
Cohort patients,
LogicCriteria criteria)
Extracts data from the data source.
|
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.