|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
Base class for all logic rules.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 rule
LogicException
- TODOjava.util.Set<RuleParameterInfo> getParameterList()
java.lang.String[] getDependencies()
int getTTL()
Result.Datatype getDefaultDatatype()
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |