public interface Rule
Modifier and Type | Method and Description |
---|---|
Result |
eval(LogicContext context,
Integer patientId,
Map<String,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.
|
String[] |
getDependencies()
Returns a list of dependencies (tokens for rules upon which this rule may depend).
|
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, Integer patientId, Map<String,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
- TODOSet<RuleParameterInfo> getParameterList()
String[] getDependencies()
int getTTL()
Result.Datatype getDefaultDatatype()
Copyright © 2024 OpenMRS Inc.. All rights reserved.