org.openmrs.cohort
Class CohortSearchHistory

java.lang.Object
  extended by org.openmrs.reporting.AbstractReportObject
      extended by org.openmrs.cohort.CohortSearchHistory
All Implemented Interfaces:
ReportObject

public class CohortSearchHistory
extends AbstractReportObject


Nested Class Summary
 class CohortSearchHistory.CohortSearchHistoryItemHolder
           
 
Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
CohortSearchHistory()
           
 
Method Summary
 void addSearchItem(PatientSearch ps)
           
 PatientSearch createCompositionFilter(java.lang.String description)
           
 PatientFilter ensureCachedFilter(int i)
           
 java.util.List<java.util.Date> getCachedResultDates()
           
 java.util.List<Cohort> getCachedResults()
           
 java.util.List<CohortSearchHistory.CohortSearchHistoryItemHolder> getItems()
           
 Cohort getLastPatientSet(EvaluationContext context)
           
 Cohort getPatientSet(int i, boolean useCache, EvaluationContext context)
          TODO: Implement org.openmrs.cohort.api.impl.CohortServiceImpl#getAllPatients()
 Cohort getPatientSet(int i, EvaluationContext context)
           
 Cohort getPatientSetCombineWithAnd(EvaluationContext context)
           
 Cohort getPatientSetCombineWithOr(EvaluationContext context)
           
 java.util.List<PatientSearch> getSearchHistory()
           
 int getSize()
           
 void removeSearchItem(int i)
           
 void setSearchHistory(java.util.List<PatientSearch> searchHistory)
           
 int size()
           
 
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

log

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

CohortSearchHistory

public CohortSearchHistory()
Method Detail

getItems

public java.util.List<CohortSearchHistory.CohortSearchHistoryItemHolder> getItems()

getSearchHistory

public java.util.List<PatientSearch> getSearchHistory()

setSearchHistory

public void setSearchHistory(java.util.List<PatientSearch> searchHistory)

getCachedResultDates

public java.util.List<java.util.Date> getCachedResultDates()

getCachedResults

public java.util.List<Cohort> getCachedResults()

size

public int size()

getSize

public int getSize()

addSearchItem

public void addSearchItem(PatientSearch ps)

removeSearchItem

public void removeSearchItem(int i)

ensureCachedFilter

public PatientFilter ensureCachedFilter(int i)

getPatientSet

public Cohort getPatientSet(int i,
                            EvaluationContext context)
Parameters:
i -
Returns:
patient set resulting from the i_th filter in the search history. (cached if possible)

getPatientSet

public Cohort getPatientSet(int i,
                            boolean useCache,
                            EvaluationContext context)
TODO: Implement org.openmrs.cohort.api.impl.CohortServiceImpl#getAllPatients()

Parameters:
i -
useCache - whether to use a cached result, if available
Returns:
patient set resulting from the i_th filter in the search history

getLastPatientSet

public Cohort getLastPatientSet(EvaluationContext context)

getPatientSetCombineWithAnd

public Cohort getPatientSetCombineWithAnd(EvaluationContext context)

getPatientSetCombineWithOr

public Cohort getPatientSetCombineWithOr(EvaluationContext context)

createCompositionFilter

public PatientSearch createCompositionFilter(java.lang.String description)

OpenMRS-trunk

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