| Package | Description | 
|---|---|
| org.openmrs.logic.op | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
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  | 
class  | 
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  | 
class  | 
Distinct
The Distinct operator will filter out duplicate results and return a set of distinct results. 
Example: - logicService.parse("EncounterDataSource.ENCOUNTER_KEY").distinct();The above will give us a criteria to get all distinct encounter type from the system  | 
class  | 
Exists
The Exists operator test whether a criteria will exist for person or not. 
Example: - logicService.parse("EncounterDataSource.ENCOUNTER_KEY").equals("ADULTRETURN").exists();The above will give us a criteria to test whether ADULTRETURN encounter exists or not  | 
class  | 
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  | 
class  | 
Last
The Last operator will return a subset result of the entire result returned by the criteria. 
Example: - logicService.parse("'CD4 COUNT'").last(2);The above will give us a criteria to get the last two "CD4 COUNT" observations  | 
class  | 
NotExists
The NotExists operator test whether a criteria will exist for person or not. 
Example: - logicService.parse("EncounterDataSource.ENCOUNTER_KEY").equals("ADULTRETURN").notExists();The above will give us a criteria to test whether ADULTRETURN encounter exists or not  | 
| Modifier and Type | Field and Description | 
|---|---|
static TransformOperator | 
TransformOperator.AVERAGE  | 
static TransformOperator | 
TransformOperator.COUNT  | 
static TransformOperator | 
TransformOperator.DISTINCT  | 
static TransformOperator | 
TransformOperator.EXISTS  | 
static TransformOperator | 
TransformOperator.FIRST  | 
static TransformOperator | 
TransformOperator.LAST  | 
static TransformOperator | 
TransformOperator.NOT_EXISTS  | 
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.