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.
|
class |
Exists
The Exists operator test whether a criteria will exist for person 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.
|
class |
NotExists
The NotExists operator test whether a criteria will exist for person 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 © 2024 OpenMRS Inc.. All rights reserved.