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