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) |
CohortMembership |
getCohortMembershipByUuid(String uuid) |
List<CohortMembership> |
getCohortMemberships(Integer patientId,
Date activeOnDate,
boolean includeVoided) |
List<Cohort> |
getCohorts(String nameFragment)
Finds all Cohorts with matching names
|
List<Cohort> |
getCohortsContainingPatientId(Integer patientId,
boolean includeVoided,
Date asOfDate)
Finds all cohorts that contain the given patientId
|
Cohort |
saveCohort(Cohort cohort)
Saves a Cohort to the database
|
CohortMembership |
saveCohortMembership(CohortMembership cohortMembership) |
Cohort getCohort(Integer id) throws DAOException
id - DAOExceptionCohort getCohort(String name)
name - List<Cohort> getAllCohorts(boolean includeVoided) throws DAOException
includeVoided - whether to include voided cohortsDAOExceptionList<Cohort> getCohortsContainingPatientId(Integer patientId, boolean includeVoided, Date asOfDate)
patientId - patient id to get the cohorts containing the patientincludeVoided - voided true/false whether or not to include voided cohortsasOfDate - DAOExceptionCohort saveCohort(Cohort cohort) throws DAOException
cohort - Cohort to saveDAOExceptionList<Cohort> getCohorts(String nameFragment) throws DAOException
nameFragment - DAOExceptionCohort deleteCohort(Cohort cohort) throws DAOException
cohort - DAOExceptionCohortMembership getCohortMembershipByUuid(String uuid)
uuid - List<CohortMembership> getCohortMemberships(Integer patientId, Date activeOnDate, boolean includeVoided)
patientId - activeOnDate - optionalincludeVoided - CohortMembership saveCohortMembership(CohortMembership cohortMembership)
cohortMembership - Copyright © 2024 OpenMRS Inc.. All rights reserved.