Search in sources :

Example 1 with PersonAttributeCohortDefinition

use of org.openmrs.module.reporting.cohort.definition.PersonAttributeCohortDefinition in project openmrs-module-pihcore by PIH.

the class PihCohortDefinitionLibrary method getTestPatients.

@DocumentedDefinition(value = "testPatients")
public CohortDefinition getTestPatients() {
    PersonAttributeCohortDefinition test = new PersonAttributeCohortDefinition();
    test.setAttributeType(emrApiProperties.getTestPatientPersonAttributeType());
    // the method add value has a bug, using set values for now
    test.setValues(Arrays.asList("true"));
    return test;
}
Also used : PersonAttributeCohortDefinition(org.openmrs.module.reporting.cohort.definition.PersonAttributeCohortDefinition) DocumentedDefinition(org.openmrs.module.reporting.definition.library.DocumentedDefinition)

Aggregations

PersonAttributeCohortDefinition (org.openmrs.module.reporting.cohort.definition.PersonAttributeCohortDefinition)1 DocumentedDefinition (org.openmrs.module.reporting.definition.library.DocumentedDefinition)1