public interface Rule
| Modifier and Type | Method and Description | 
|---|---|
Result | 
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.Datatype | 
getDefaultDatatype()
Gets the default datatype that the rule returns, when supplied with a given token. 
 | 
java.lang.String[] | 
getDependencies()
Returns a list of dependencies (tokens for rules upon which this rule may depend). 
 | 
java.util.Set<RuleParameterInfo> | 
getParameterList()
Returns the list of arguments. 
 | 
int | 
getTTL()
Gets the time (in seconds) during which the Rule's results are considered to be valid. 
 | 
Result eval(LogicContext context, java.lang.Integer patientId, java.util.Map<java.lang.String,java.lang.Object> parameters) throws LogicException
context - the context this rule is being evaluated inpatientId - id of the patient for whom rule is to be calculatedparameters - parameters passed to this ruleLogicException - TODOjava.util.Set<RuleParameterInfo> getParameterList()
java.lang.String[] getDependencies()
int getTTL()
Result.Datatype getDefaultDatatype()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.