| Interface | Description | 
|---|---|
| ComparisonOperator | Marker interface to keep track of the ComparisonOperator sub type | 
| LogicalOperator | Marker for the logical operator | 
| Operand | This is a marker interface for things that can be operated on by an  Operatorin aLogicExpression | 
| Operator | An operator used within a logical expression. | 
| TransformOperator | Marker for all transform operator. | 
| Class | Description | 
|---|---|
| After | The After operator works with a date object to tests whether an expression will yield result
 after a certain date position. | 
| And | The And operator is a conjunction operator to combine two or more  LogicCriteriaobjects. | 
| AsOf | The AsOf operator works with a date object to test whether an expression will yield result after
 a certain date position Example: - logicService.parse("'CD4 COUNT'").asOf(Context.getDateformat().parse("2009/12/04");The above will give us a criteria to check if there's "CD4 COUNT" observations as of 12/04/2009 | 
| Average | The Average operator will calculate the average result from a collection of result returned by
 the logic expression Example: - logicService.parse("'CD4 COUNT'").average();The above will give us a criteria to get the average result of the "CD4 COUNT" observations | 
| Before | The Before operator works with a date object to tests whether an expression will yield result
 before a certain date position. | 
| Contains | The Contains operator will return results that contains the operand . | 
| Count | The Count operator will return the number of results returned by the logic service Example: - logicService.parse("EncounterDataSource.ENCOUNTER_KEY").count();The above will give us a criteria to get the number of encounter type we have in the system | 
| Distinct | The Distinct operator will filter out duplicate results and return a set of distinct results. | 
| Equals | The Equals operator will test whether a result equals to an operand or not. | 
| Exists | The Exists operator test whether a criteria will exist for person or not. | 
| First | The First operator will return a subset result of the entire result returned by the criteria Example: - logicService.parse("'CD4 COUNT'").first(2);The above will give us a criteria to get the first two "CD4 COUNT" observations | 
| GreaterThan | The GreaterThan operator will return result that have a greater value than the operand. | 
| GreaterThanEquals | The GreaterThanEquals operator will return result that have a greater value than or equals to the
 operand. | 
| In | The In operator test whether a value is in a collection of value or not. | 
| Last | The Last operator will return a subset result of the entire result returned by the criteria. | 
| LessThan | The LessThan operator will return result that have a less value than the operand. | 
| LessThanEquals | The LessThan operator will return result that have a less value than or equals to the operand. | 
| Not | The Not operator will negate the a logic expression | 
| NotExists | The NotExists operator test whether a criteria will exist for person or not. | 
| Or | The Or operator is a disjunction operator to combine two or more  LogicCriteriaobjects. | 
| Within | The Within operator tests whether an expression will yield true for a certain time frame. | 
Copyright © 2024 OpenMRS Inc.. All rights reserved.