|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.logic.rule.AgeRule
public class AgeRule
Calculates a person's age in years based from their date of birth to the index date
| Constructor Summary | |
|---|---|
AgeRule()
|
|
| Method Summary | |
|---|---|
Result |
eval(LogicContext context,
Patient patient,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgeRule()
| Method Detail |
|---|
public Result eval(LogicContext context,
Patient patient,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws LogicException
Rule
eval in interface Rulepatient - a patient for whom rule is to be calculated
LogicException - TODORule.eval(org.openmrs.logic.LogicContext, org.openmrs.Patient, java.util.Map)public java.util.Set<RuleParameterInfo> getParameterList()
Rule
getParameterList in interface Ruleorg.openmrs.logic.rule.Rule#getParameterList()public java.lang.String[] getDependencies()
Rule
getDependencies in interface Ruleorg.openmrs.logic.rule.Rule#getDependencies()public int getTTL()
Rule
getTTL in interface Ruleorg.openmrs.logic.rule.Rule#getTTL()public Result.Datatype getDefaultDatatype()
Rule
getDefaultDatatype in interface Ruleorg.openmrs.logic.rule.Rule#getDatatype(String)
|
OpenMRS-trunk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||