@Deprecated public class CohortDataSetDefinition extends Object implements DataSetDefinition
For example a CohortDatasetDefinition might represent:
"1. Total # of Patients" -> (CohortDefinition) everyone
"1.a. Male Adults" -> (CohortDefinition) Male AND Adult
"1.b. Female Adults" -> (CohortDefinition) Female AND Adult
"1.c. Male Children" -> (CohortDefinition) Male AND NOT Adult
"1.d. Female Children" -> (CohortDefinition) Female AND NOT Adult ...
CohortDataSet
,
CohortDataSetProvider
,
Serialized FormConstructor and Description |
---|
CohortDataSetDefinition()
Deprecated.
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addStrategy(String name,
CohortDefinition cohortDefinition)
Deprecated.
Add the given cohort as a "column" to this definition with the given key.
|
void |
addStrategy(String name,
String description,
CohortDefinition cohortDefinition)
Deprecated.
Add the given cohort as a "column" to this definition with the given key and the given
description.
|
List<Class> |
getColumnDatatypes()
Deprecated.
Gets a list of the datatype of the columns
|
List<String> |
getColumnKeys()
Deprecated.
Gets a list of column keys.
|
String |
getDescription(String name)
Deprecated.
Returns a description for the given cohort strategy name.
|
Map<String,String> |
getDescriptions()
Deprecated.
Returns the map of cohort strategy names, descriptions.
|
String |
getName()
Deprecated.
Gets the name
|
List<Parameter> |
getParameters()
Deprecated.
A object that can take parameters should examine itself and its child objects to find out all
of its required parameters.
|
Map<String,CohortDefinition> |
getStrategies()
Deprecated.
Get the key-value pairs of names to defined cohorts
|
boolean |
setDescription(String name,
String description)
Deprecated.
Sets a description for the cohort name if it exists.
|
void |
setDescriptions(Map<String,String> descriptions)
Deprecated.
Set the key-value pairs of names to cohort descriptions
|
void |
setName(String name)
Deprecated.
Sets the name of this data set definition
|
void |
setStrategies(Map<String,CohortDefinition> strategies)
Deprecated.
Set the key-value pairs of names to cohorts
|
public CohortDataSetDefinition()
public void addStrategy(String name, CohortDefinition cohortDefinition)
name
- key to refer by which to refer to this cohortcohortDefinition
- The patients for this columnpublic void addStrategy(String name, String description, CohortDefinition cohortDefinition)
name
- description
- cohortDefinition
- public List<String> getColumnKeys()
DataSetDefinition
getColumnKeys
in interface DataSetDefinition
List
of the column keysDataSetDefinition.getColumnKeys()
public List<Class> getColumnDatatypes()
DataSetDefinition
getColumnDatatypes
in interface DataSetDefinition
List
of the column datatypesDataSetDefinition.getColumnDatatypes()
public String getName()
DataSetDefinition
getName
in interface DataSetDefinition
String
name of the DataSetDefinitionDataSetDefinition.getName()
public void setName(String name)
DataSetDefinition
setName
in interface DataSetDefinition
name
- the descriptive name of this definitionDataSetDefinition.setName(java.lang.String)
public List<Parameter> getParameters()
Parameterizable
getParameters
in interface Parameterizable
Parameterizable.getParameters()
public boolean setDescription(String name, String description)
name
- description
- public String getDescription(String name)
name
- String
descriptionpublic Map<String,String> getDescriptions()
Map
of the strategy names and descriptionspublic Map<String,CohortDefinition> getStrategies()
public void setStrategies(Map<String,CohortDefinition> strategies)
strategies
- Copyright © 2018 OpenMRS LLC.. All Rights Reserved.