|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.logic.op.Within
public class Within
The Within operator tests whether an expression will yield true for a certain time frame.
Example:
- logicService.parse("'CD4 COUNT'").within(Duration.years(2));
The above will give us a criteria to check if there's "CD4 COUNT" observations within the last 2 years
| Field Summary |
|---|
| Fields inherited from interface org.openmrs.logic.op.ComparisonOperator |
|---|
AFTER, BEFORE, CONTAINS, EQUALS, GT, GTE, IN, LT, LTE, WITHIN |
| Fields inherited from interface org.openmrs.logic.op.Operator |
|---|
AND, ASOF, AVERAGE, COUNT, DISTINCT, EXISTS, FIRST, LAST, NOT, NOT_EXISTS, OR |
| Constructor Summary | |
|---|---|
Within()
|
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Within()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||