org.openmrs.reporting
Class CompoundPatientFilter

java.lang.Object
  extended by org.openmrs.reporting.AbstractReportObject
      extended by org.openmrs.reporting.AbstractPatientFilter
          extended by org.openmrs.reporting.CompoundPatientFilter
All Implemented Interfaces:
PatientFilter, ReportObject

public class CompoundPatientFilter
extends AbstractPatientFilter
implements PatientFilter


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
CompoundPatientFilter()
           
CompoundPatientFilter(PatientSetService.BooleanOperator operator, java.util.List<PatientFilter> filters)
           
 
Method Summary
 Cohort filter(Cohort input, EvaluationContext context)
          Determine all patients in _input_ who also match some criteria.
 Cohort filterInverse(Cohort input, EvaluationContext context)
          Determine all patients in _input_ who do *not* match some criteria
 java.lang.String getDescription()
           
 java.util.List<PatientFilter> getFilters()
           
 PatientSetService.BooleanOperator getOperator()
           
 boolean isReadyToRun()
           
 void setFilters(java.util.List<PatientFilter> filters)
           
 void setOperator(PatientSetService.BooleanOperator operator)
           
 
Methods inherited from class org.openmrs.reporting.AbstractPatientFilter
getConceptName
 
Methods inherited from class org.openmrs.reporting.AbstractReportObject
equals, 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
 
Methods inherited from interface org.openmrs.reporting.ReportObject
getName, getReportObjectId, setDescription, setName, setReportObjectId
 

Field Detail

log

protected final transient org.apache.commons.logging.Log log
Constructor Detail

CompoundPatientFilter

public CompoundPatientFilter()

CompoundPatientFilter

public CompoundPatientFilter(PatientSetService.BooleanOperator operator,
                             java.util.List<PatientFilter> filters)
Method Detail

getFilters

public java.util.List<PatientFilter> getFilters()

setFilters

public void setFilters(java.util.List<PatientFilter> filters)

getOperator

public PatientSetService.BooleanOperator getOperator()

setOperator

public void setOperator(PatientSetService.BooleanOperator operator)

filter

public Cohort filter(Cohort input,
                     EvaluationContext context)
Description copied from interface: PatientFilter
Determine all patients in _input_ who also match some criteria. If input is null, then this should return all patients who match.

Specified by:
filter in interface PatientFilter
Returns:

filterInverse

public Cohort filterInverse(Cohort input,
                            EvaluationContext context)
Description copied from interface: PatientFilter
Determine all patients in _input_ who do *not* match some criteria

Specified by:
filterInverse in interface PatientFilter
Returns:

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ReportObject
Overrides:
getDescription in class AbstractReportObject
Returns:
Returns the description

isReadyToRun

public boolean isReadyToRun()
Specified by:
isReadyToRun in interface PatientFilter
Returns:
Whether or not this filter has had enough parameters set to be run properly

OpenMRS-trunk

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