Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.api |
The primary OpenMRS API interfaces.
|
org.openmrs.api.db |
OpenMRS database layer interfaces.
|
org.openmrs.api.db.hibernate |
Resources for Hibernate ORM.
|
org.openmrs.api.impl |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
Cohort.getActiveMembership(Patient patient) |
Modifier and Type | Method and Description |
---|---|
Collection<CohortMembership> |
Cohort.getActiveMemberships() |
Collection<CohortMembership> |
Cohort.getActiveMemberships(Date asOfDate) |
Collection<CohortMembership> |
Cohort.getMemberships() |
Collection<CohortMembership> |
Cohort.getMemberships(boolean includeVoided) |
Modifier and Type | Method and Description |
---|---|
boolean |
Cohort.addMembership(CohortMembership cohortMembership) |
int |
CohortMembership.compareTo(CohortMembership o)
Sorts by following fields, in order:
voided (voided memberships sort last)
endDate descending (so ended memberships are towards the end, and the older the more towards the end
startDate descending (so started more recently is towards the front)
patientId ascending (intuitive and consistent tiebreaker for client code)
uuid ascending (just so we have a final consistent tie breaker)
|
boolean |
Cohort.removeMembership(CohortMembership cohortMembership) |
Modifier and Type | Method and Description |
---|---|
void |
Cohort.setMemberships(Collection<CohortMembership> members) |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
CohortService.endCohortMembership(CohortMembership cohortMembership,
Date onDate)
Ends the specified CohortMembership i.e. sets its end date to the current date
|
CohortMembership |
CohortService.getCohortMembershipByUuid(String uuid)
Get CohortMembership by its UUID
|
CohortMembership |
CohortService.voidCohortMembership(CohortMembership cohortMembership,
String reason)
Marks the specified CohortMembership as voided
|
Modifier and Type | Method and Description |
---|---|
List<CohortMembership> |
CohortService.getCohortMemberships(Integer patientId,
Date activeOnDate,
boolean includeVoided)
Gets memberships for the given patient, optionally active on a specific date
|
Modifier and Type | Method and Description |
---|---|
CohortMembership |
CohortService.endCohortMembership(CohortMembership cohortMembership,
Date onDate)
Ends the specified CohortMembership i.e. sets its end date to the current date
|
void |
CohortService.purgeCohortMembership(CohortMembership cohortMembership)
Removes a CohortMembership from its parent Cohort
|
CohortMembership |
CohortService.voidCohortMembership(CohortMembership cohortMembership,
String reason)
Marks the specified CohortMembership as voided
|
Modifier and Type | Method and Description |
---|---|
CohortMembership |
CohortDAO.getCohortMembershipByUuid(String uuid) |
CohortMembership |
CohortDAO.saveCohortMembership(CohortMembership cohortMembership) |
Modifier and Type | Method and Description |
---|---|
List<CohortMembership> |
CohortDAO.getCohortMemberships(Integer patientId,
Date activeOnDate,
boolean includeVoided) |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
CohortDAO.saveCohortMembership(CohortMembership cohortMembership) |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
HibernateCohortDAO.getCohortMembershipByUuid(String uuid) |
CohortMembership |
HibernateCohortDAO.saveCohortMembership(CohortMembership cohortMembership) |
Modifier and Type | Method and Description |
---|---|
List<CohortMembership> |
HibernateCohortDAO.getCohortMemberships(Integer patientId,
Date activeOnDate,
boolean includeVoided) |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
HibernateCohortDAO.saveCohortMembership(CohortMembership cohortMembership) |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
CohortServiceImpl.endCohortMembership(CohortMembership cohortMembership,
Date onDate) |
CohortMembership |
CohortServiceImpl.getCohortMembershipByUuid(String uuid) |
CohortMembership |
CohortServiceImpl.voidCohortMembership(CohortMembership cohortMembership,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<CohortMembership> |
CohortServiceImpl.getCohortMemberships(Integer patientId,
Date activeOnDate,
boolean includeVoided) |
Modifier and Type | Method and Description |
---|---|
CohortMembership |
CohortServiceImpl.endCohortMembership(CohortMembership cohortMembership,
Date onDate) |
void |
CohortServiceImpl.purgeCohortMembership(CohortMembership cohortMembership) |
CohortMembership |
CohortServiceImpl.voidCohortMembership(CohortMembership cohortMembership,
String reason) |
Copyright © 2024 OpenMRS Inc.. All rights reserved.