|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface CohortDefinitionProvider
This interfaces provides the functionality to evaluate a CohortDefinition (of a particular class) and return a Cohort It also handles persistence of CohortDefinition classes Historical note: it exists because in order to keep our application layers separate, we need to be able to call CohortService.evaluate(CohortDefinition, EvaluationContext) -> Cohort instead of CohortDefinition.evaluate(EvaluationContext) -> Cohort
Method Summary | |
---|---|
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. |
java.util.List<CohortDefinitionItemHolder> |
getAllCohortDefinitions()
Deprecated. |
java.lang.Class<? extends CohortDefinition> |
getClassHandled()
Deprecated. TODO: this is potentially not necessary because its set via spring's application context |
CohortDefinition |
getCohortDefinition(java.lang.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. |
Method Detail |
---|
java.lang.Class<? extends CohortDefinition> getClassHandled()
java.util.List<CohortDefinitionItemHolder> getAllCohortDefinitions()
CohortDefinition getCohortDefinition(java.lang.Integer id)
id
-
CohortDefinition saveCohortDefinition(CohortDefinition cohortDefinition)
cohortDefinition
-
void purgeCohortDefinition(CohortDefinition cohortDefinition)
cohortDefinition
- Cohort evaluate(CohortDefinition cohortDefinition, EvaluationContext evaluationContext)
StaticCohortDefinitionProvider
cohortDefinition
- CohortDefinition to evaluateevaluationContext
- context to use during evaluation
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |