org.openmrs.reporting.data
Class CohortDefinition

java.lang.Object
  extended by org.openmrs.reporting.AbstractReportObject
      extended by org.openmrs.reporting.data.CohortDefinition
All Implemented Interfaces:
java.io.Serializable, ReportObject

public class CohortDefinition
extends AbstractReportObject
implements java.io.Serializable

This class allows us to define a Cohort based on a patient filter or a cohort instance.

Author:
Justin Miranda
See Also:
Serialized Form

Field Summary
static java.lang.String SUB_TYPE_NAME
           
static java.lang.String TYPE_NAME
           
 
Constructor Summary
CohortDefinition()
          Default public constructor
 
Method Summary
 Cohort getCohort()
          Get the cohort instance assigned to this cohort definition
 PatientFilter getPatientFilter()
          Get the patient filter assigned to the cohort definition.
 void setCohort(Cohort cohort)
          Set the cohort instance for this cohort definition.
 void setPatientFilter(PatientFilter filter)
          Set the patient filter.
 
Methods inherited from class org.openmrs.reporting.AbstractReportObject
equals, getDescription, getName, getReportObjectId, getSubType, getType, setDescription, setName, setReportObjectId, setSubType, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

SUB_TYPE_NAME

public static final java.lang.String SUB_TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

CohortDefinition

public CohortDefinition()
Default public constructor

Method Detail

getCohort

public Cohort getCohort()
Get the cohort instance assigned to this cohort definition

Returns:

setCohort

public void setCohort(Cohort cohort)
Set the cohort instance for this cohort definition.

Parameters:
cohort -

getPatientFilter

public PatientFilter getPatientFilter()
Get the patient filter assigned to the cohort definition.

Returns:

setPatientFilter

public void setPatientFilter(PatientFilter filter)
Set the patient filter.

Parameters:
filter -

OpenMRS-trunk

Generated May 29 2008 02:01 AM. NOTE - these libraries are in active development and subject to change