|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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)
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<CohortDefinition> |
getAllCohortDefinitions()
|
java.lang.Class<? extends CohortDefinition> |
getClassHandled()
TODO: this is potentially not necessary because its set via spring's application context |
CohortDefinition |
getCohortDefinition(java.lang.Integer id)
|
void |
purgeCohortDefinition(CohortDefinition cohortDefinition)
Deletes a cohort definition from the database. |
CohortDefinition |
saveCohortDefinition(CohortDefinition cohortDefinition)
Creates or updates a CohortDefinition in the database. |
| Method Detail |
|---|
java.lang.Class<? extends CohortDefinition> getClassHandled()
java.util.List<CohortDefinition> 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-trunk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||