@Deprecated public class PatientSearchCohortDefinitionProvider extends Object implements CohortDefinitionProvider
PatientSearch
objects that are saved
in the report_object table, but exposes them as CohortDefinition
Constructor and Description |
---|
PatientSearchCohortDefinitionProvider()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Cohort |
evaluate(CohortDefinition cohortDefinition,
EvaluationContext evaluationContext)
Deprecated.
Computes the list of patients who currently meet the given definition CohortService ensures
that this method is only called with a CohortDefinition of a class this provider is
registered for.
|
List<CohortDefinitionItemHolder> |
getAllCohortDefinitions()
Deprecated.
|
Class<? extends CohortDefinition> |
getClassHandled()
Deprecated.
TODO: this is potentially not necessary because its set via spring's application context
|
CohortDefinition |
getCohortDefinition(Integer id)
Deprecated.
|
void |
purgeCohortDefinition(CohortDefinition cohortDefinition)
Deprecated.
Deletes a cohort definition from the database.
|
CohortDefinition |
saveCohortDefinition(CohortDefinition cohortDefinition)
Deprecated.
Creates or updates a CohortDefinition in the database.
|
public PatientSearchCohortDefinitionProvider()
public Class<? extends CohortDefinition> getClassHandled()
getClassHandled
in interface CohortDefinitionProvider
CohortDefinitionProvider.getClassHandled()
public Cohort evaluate(CohortDefinition cohortDefinition, EvaluationContext evaluationContext)
CohortDefinitionProvider
StaticCohortDefinitionProvider
evaluate
in interface CohortDefinitionProvider
cohortDefinition
- CohortDefinition to evaluateevaluationContext
- context to use during evaluationCohortDefinitionProvider.evaluate(org.openmrs.cohort.CohortDefinition,
org.openmrs.report.EvaluationContext)
public List<CohortDefinitionItemHolder> getAllCohortDefinitions()
getAllCohortDefinitions
in interface CohortDefinitionProvider
CohortDefinitionProvider.getAllCohortDefinitions()
public CohortDefinition getCohortDefinition(Integer id)
getCohortDefinition
in interface CohortDefinitionProvider
CohortDefinitionProvider.getCohortDefinition(java.lang.Integer)
public void purgeCohortDefinition(CohortDefinition cohortDefinition)
CohortDefinitionProvider
purgeCohortDefinition
in interface CohortDefinitionProvider
CohortDefinitionProvider.purgeCohortDefinition(org.openmrs.cohort.CohortDefinition)
public CohortDefinition saveCohortDefinition(CohortDefinition cohortDefinition)
CohortDefinitionProvider
saveCohortDefinition
in interface CohortDefinitionProvider
CohortDefinitionProvider.saveCohortDefinition(org.openmrs.cohort.CohortDefinition)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.