org.openmrs.cohort
Class CohortSearchHistory
java.lang.Object
org.openmrs.reporting.AbstractReportObject
org.openmrs.cohort.CohortSearchHistory
- All Implemented Interfaces:
- ReportObject
public class CohortSearchHistory
- extends AbstractReportObject
|
Field Summary |
protected org.apache.commons.logging.Log |
log
|
| 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 |
log
protected final transient org.apache.commons.logging.Log log
CohortSearchHistory
public CohortSearchHistory()
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)
Generated May 29 2008 02:01 AM. NOTE - these libraries are in active development and subject to change