|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.report.CohortDataSetDefinition
@Deprecated public class CohortDataSetDefinition
Metadata that defines a CohortDataSet. (I.e. a list of cohorts, each of which has a name)
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 Summary | |
---|---|
CohortDataSetDefinition()
Deprecated. Default constructor |
Method Summary | |
---|---|
void |
addStrategy(java.lang.String name,
CohortDefinition cohortDefinition)
Deprecated. Add the given cohort as a "column" to this definition with the given key. |
void |
addStrategy(java.lang.String name,
java.lang.String description,
CohortDefinition cohortDefinition)
Deprecated. Add the given cohort as a "column" to this definition with the given key and the given description. |
java.util.List<java.lang.Class> |
getColumnDatatypes()
Deprecated. Gets a list of the datatype of the columns |
java.util.List<java.lang.String> |
getColumnKeys()
Deprecated. Gets a list of column keys. |
java.lang.String |
getDescription(java.lang.String name)
Deprecated. Returns a description for the given cohort strategy name. |
java.util.Map<java.lang.String,java.lang.String> |
getDescriptions()
Deprecated. Returns the map of cohort strategy names, descriptions. |
java.lang.String |
getName()
Deprecated. Gets the name |
java.util.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. |
java.util.Map<java.lang.String,CohortDefinition> |
getStrategies()
Deprecated. Get the key-value pairs of names to defined cohorts |
boolean |
setDescription(java.lang.String name,
java.lang.String description)
Deprecated. Sets a description for the cohort name if it exists. |
void |
setDescriptions(java.util.Map<java.lang.String,java.lang.String> descriptions)
Deprecated. Set the key-value pairs of names to cohort descriptions |
void |
setName(java.lang.String name)
Deprecated. Sets the name of this data set definition |
void |
setStrategies(java.util.Map<java.lang.String,CohortDefinition> strategies)
Deprecated. Set the key-value pairs of names to cohorts |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CohortDataSetDefinition()
Method Detail |
---|
public void addStrategy(java.lang.String name, CohortDefinition cohortDefinition)
name
- key to refer by which to refer to this cohortcohortDefinition
- The patients for this columnpublic void addStrategy(java.lang.String name, java.lang.String description, CohortDefinition cohortDefinition)
name
- description
- cohortDefinition
- public java.util.List<java.lang.String> getColumnKeys()
DataSetDefinition
getColumnKeys
in interface DataSetDefinition
List
of the column keysDataSetDefinition.getColumnKeys()
public java.util.List<java.lang.Class> getColumnDatatypes()
DataSetDefinition
getColumnDatatypes
in interface DataSetDefinition
List
of the column datatypesDataSetDefinition.getColumnDatatypes()
public java.lang.String getName()
DataSetDefinition
getName
in interface DataSetDefinition
String
name of the DataSetDefinitionDataSetDefinition.getName()
public void setName(java.lang.String name)
DataSetDefinition
setName
in interface DataSetDefinition
name
- the descriptive name of this definitionDataSetDefinition.setName(java.lang.String)
public java.util.List<Parameter> getParameters()
Parameterizable
getParameters
in interface Parameterizable
Parameterizable.getParameters()
public boolean setDescription(java.lang.String name, java.lang.String description)
name
- description
-
public java.lang.String getDescription(java.lang.String name)
name
-
String
descriptionpublic java.util.Map<java.lang.String,java.lang.String> getDescriptions()
Map
of the strategy names and descriptionspublic java.util.Map<java.lang.String,CohortDefinition> getStrategies()
public void setStrategies(java.util.Map<java.lang.String,CohortDefinition> strategies)
strategies
- public void setDescriptions(java.util.Map<java.lang.String,java.lang.String> descriptions)
descriptions
-
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |