@Transactional(readOnly=true)
@Deprecated
public interface DataSetService
Modifier and Type | Method and Description |
---|---|
DataSet |
evaluate(DataSetDefinition definition,
Cohort inputCohort,
EvaluationContext evalContext)
Deprecated.
Evaluate a data set definition to get turn it into a DataSet
|
DataSetProvider |
getProvider(DataSetDefinition definition)
Deprecated.
|
java.util.List<DataSetProvider> |
getProviders()
Deprecated.
Gets the list of providers that have been previously set on this service
|
void |
registerProvider(DataSetProvider newProvider)
Deprecated.
Registered a DataSetProvider and make it available to users of the data set service
|
void |
removeProvider(DataSetProvider provider)
Deprecated.
Remove a registered DataSetProvider
|
void |
setProviders(java.util.List<DataSetProvider> providers)
Deprecated.
Add the given list of DataSetProviders to the providers on this service.
|
void setProviders(java.util.List<DataSetProvider> providers) throws APIException
registerProvider(DataSetProvider)
for each providerproviders
- list of DataSetProvider objects to add on serviceAPIException
java.util.List<DataSetProvider> getProviders() throws APIException
APIException
setProviders(List)
void registerProvider(DataSetProvider newProvider)
newProvider
- DataSetProvider to addvoid removeProvider(DataSetProvider provider) throws APIException
provider
- DataSetProvider to removeAPIException
DataSetProvider getProvider(DataSetDefinition definition) throws APIException
definition
- APIException
DataSet evaluate(DataSetDefinition definition, Cohort inputCohort, EvaluationContext evalContext) throws APIException
definition
- inputCohort
- Input cohort optionally specified by the user. May be ignored by some data
sets.evalContext
- EvaluationContext containing parameter values, etcAPIException
- when no DataSetProvider is found in the registered providers for the
given definitionsetProviders(List)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.