public interface CohortDAO
Cohort, 
CohortService, 
Context| Modifier and Type | Method and Description | 
|---|---|
Cohort | 
deleteCohort(Cohort cohort)
Removes a cohort from the database 
 | 
java.util.List<Cohort> | 
getAllCohorts(boolean includeVoided)
Gets all cohorts in the database 
 | 
Cohort | 
getCohort(java.lang.Integer id)
Finds the cohort with the given primary key 
 | 
Cohort | 
getCohort(java.lang.String name)
Finds a cohort by name 
 | 
Cohort | 
getCohortByUuid(java.lang.String uuid)
Auto generated method comment 
 | 
java.util.List<Cohort> | 
getCohorts(java.lang.String nameFragment)
Finds all Cohorts with matching names 
 | 
java.util.List<Cohort> | 
getCohortsContainingPatientId(java.lang.Integer patientId)
Finds all cohorts that contain the given patientId 
 | 
Cohort | 
saveCohort(Cohort cohort)
Saves a Cohort to the database 
 | 
Cohort getCohort(java.lang.Integer id) throws DAOException
id - DAOExceptionCohort getCohort(java.lang.String name)
name - java.util.List<Cohort> getAllCohorts(boolean includeVoided) throws DAOException
includeVoided - whether to include voided cohortsDAOExceptionjava.util.List<Cohort> getCohortsContainingPatientId(java.lang.Integer patientId) throws DAOException
patientId - DAOExceptionCohort saveCohort(Cohort cohort) throws DAOException
cohort - Cohort to saveDAOExceptionjava.util.List<Cohort> getCohorts(java.lang.String nameFragment) throws DAOException
nameFragment - DAOExceptionCohort deleteCohort(Cohort cohort) throws DAOException
cohort - DAOExceptionCohort getCohortByUuid(java.lang.String uuid)
uuid - Copyright © 2018 OpenMRS Inc.. All Rights Reserved.