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 | |
org.openmrs.logic |
The OpenMRS Logic Service provides access to granular and derived
data.
|
org.openmrs.logic.datasource |
Logic data sources are responsible for providing data to the logic service engine.
|
org.openmrs.propertyeditor |
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortMembership.getCohort() |
static Cohort |
Cohort.intersect(Cohort a,
Cohort b)
Returns the intersection of two cohorts, treating null as an empty cohort
|
static Cohort |
Cohort.subtract(Cohort a,
Cohort b)
Subtracts a cohort from a cohort
|
static Cohort |
Cohort.union(Cohort a,
Cohort b)
Returns the union of two cohorts
|
Modifier and Type | Method and Description |
---|---|
static Cohort |
Cohort.intersect(Cohort a,
Cohort b)
Returns the intersection of two cohorts, treating null as an empty cohort
|
void |
CohortMembership.setCohort(Cohort cohort) |
static Cohort |
Cohort.subtract(Cohort a,
Cohort b)
Subtracts a cohort from a cohort
|
static Cohort |
Cohort.union(Cohort a,
Cohort b)
Returns the union of two cohorts
|
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortService.addPatientToCohort(Cohort cohort,
Patient patient)
Adds a new patient to a Cohort.
|
Cohort |
CohortService.getCohort(Integer id)
Gets a Cohort by its database primary key
|
Cohort |
CohortService.getCohort(String name)
Deprecated.
|
Cohort |
CohortService.getCohortByName(String name)
Gets a non voided Cohort by its name
|
Cohort |
CohortService.getCohortByUuid(String uuid)
Get Cohort by its UUID
|
Cohort |
CohortService.purgeCohort(Cohort cohort)
Completely removes a Cohort from the database (not reversible)
|
Cohort |
CohortService.removePatientFromCohort(Cohort cohort,
Patient patient)
Deprecated.
since 2.1.0 you should explicitly call either
CohortService.endCohortMembership(CohortMembership, Date) or CohortService.voidCohortMembership(CohortMembership, String) |
Cohort |
CohortService.saveCohort(Cohort cohort)
Save a cohort to the database (create if new, or update if changed) This method will throw an
exception if any patientIds in the Cohort don't exist.
|
Cohort |
CohortService.voidCohort(Cohort cohort,
String reason)
Voids the given cohort, deleting it from the perspective of the typical end user.
|
Modifier and Type | Method and Description |
---|---|
List<Cohort> |
CohortService.getAllCohorts()
Gets all Cohorts (not including voided ones)
|
List<Cohort> |
CohortService.getAllCohorts(boolean includeVoided)
Gets all Cohorts, possibly including the voided ones
|
List<Cohort> |
CohortService.getCohorts(String nameFragment)
Returns Cohorts whose names match the given string.
|
List<Cohort> |
CohortService.getCohortsContainingPatient(Patient patient)
Deprecated.
use
CohortService.getCohortsContainingPatientId(Integer)
Find all Cohorts that contain the given patient. (Not including voided Cohorts) |
List<Cohort> |
CohortService.getCohortsContainingPatientId(Integer patientId)
Find all Cohorts that contain the given patientId right now.
|
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortService.addPatientToCohort(Cohort cohort,
Patient patient)
Adds a new patient to a Cohort.
|
Map<Integer,List<Encounter>> |
EncounterService.getAllEncounters(Cohort patients)
Get all encounters for a cohort of patients
|
List<PatientProgram> |
ProgramWorkflowService.getPatientPrograms(Cohort cohort,
Collection<Program> programs) |
Cohort |
CohortService.purgeCohort(Cohort cohort)
Completely removes a Cohort from the database (not reversible)
|
Cohort |
CohortService.removePatientFromCohort(Cohort cohort,
Patient patient)
Deprecated.
since 2.1.0 you should explicitly call either
CohortService.endCohortMembership(CohortMembership, Date) or CohortService.voidCohortMembership(CohortMembership, String) |
Cohort |
CohortService.saveCohort(Cohort cohort)
Save a cohort to the database (create if new, or update if changed) This method will throw an
exception if any patientIds in the Cohort don't exist.
|
Cohort |
CohortService.voidCohort(Cohort cohort,
String reason)
Voids the given cohort, deleting it from the perspective of the typical end user.
|
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortDAO.deleteCohort(Cohort cohort)
Removes a cohort from the database
|
Cohort |
CohortDAO.getCohort(Integer id)
Finds the cohort with the given primary key
|
Cohort |
CohortDAO.getCohort(String name)
Finds a cohort by name
|
Cohort |
CohortDAO.getCohortByUuid(String uuid) |
Cohort |
CohortDAO.saveCohort(Cohort cohort)
Saves a Cohort to the database
|
Modifier and Type | Method and Description |
---|---|
List<Cohort> |
CohortDAO.getAllCohorts(boolean includeVoided)
Gets all cohorts in the database
|
List<Cohort> |
CohortDAO.getCohorts(String nameFragment)
Finds all Cohorts with matching names
|
List<Cohort> |
CohortDAO.getCohortsContainingPatientId(Integer patientId,
boolean includeVoided,
Date asOfDate)
Finds all cohorts that contain the given patientId
|
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortDAO.deleteCohort(Cohort cohort)
Removes a cohort from the database
|
Map<Integer,List<Encounter>> |
EncounterDAO.getAllEncounters(Cohort patients) |
List<PatientProgram> |
ProgramWorkflowDAO.getPatientPrograms(Cohort cohort,
Collection<Program> programs) |
Cohort |
CohortDAO.saveCohort(Cohort cohort)
Saves a Cohort to the database
|
Modifier and Type | Method and Description |
---|---|
Cohort |
HibernateCohortDAO.deleteCohort(Cohort cohort) |
Cohort |
HibernateCohortDAO.getCohort(Integer id) |
Cohort |
HibernateCohortDAO.getCohort(String name) |
Cohort |
HibernateCohortDAO.getCohortByUuid(String uuid) |
Cohort |
HibernateCohortDAO.saveCohort(Cohort cohort) |
Modifier and Type | Method and Description |
---|---|
List<Cohort> |
HibernateCohortDAO.getAllCohorts(boolean includeVoided) |
List<Cohort> |
HibernateCohortDAO.getCohorts(String nameFragment) |
List<Cohort> |
HibernateCohortDAO.getCohortsContainingPatientId(Integer patientId,
boolean includeVoided,
Date asOfDate) |
Modifier and Type | Method and Description |
---|---|
Cohort |
HibernateCohortDAO.deleteCohort(Cohort cohort) |
Map<Integer,List<Encounter>> |
HibernateEncounterDAO.getAllEncounters(Cohort patients) |
List<PatientProgram> |
HibernateProgramWorkflowDAO.getPatientPrograms(Cohort cohort,
Collection<Program> programs) |
Cohort |
HibernateCohortDAO.saveCohort(Cohort cohort) |
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortServiceImpl.addPatientToCohort(Cohort cohort,
Patient patient) |
Cohort |
CohortServiceImpl.getCohort(Integer id) |
Cohort |
CohortServiceImpl.getCohort(String name) |
Cohort |
CohortServiceImpl.getCohortByName(String name) |
Cohort |
CohortServiceImpl.getCohortByUuid(String uuid) |
Cohort |
CohortServiceImpl.purgeCohort(Cohort cohort) |
Cohort |
CohortServiceImpl.removePatientFromCohort(Cohort cohort,
Patient patient) |
Cohort |
CohortServiceImpl.saveCohort(Cohort cohort) |
Cohort |
CohortServiceImpl.voidCohort(Cohort cohort,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<Cohort> |
CohortServiceImpl.getAllCohorts() |
List<Cohort> |
CohortServiceImpl.getAllCohorts(boolean includeVoided) |
List<Cohort> |
CohortServiceImpl.getCohorts(String nameFragment) |
List<Cohort> |
CohortServiceImpl.getCohortsContainingPatient(Patient patient) |
List<Cohort> |
CohortServiceImpl.getCohortsContainingPatientId(Integer patientId) |
Modifier and Type | Method and Description |
---|---|
Cohort |
CohortServiceImpl.addPatientToCohort(Cohort cohort,
Patient patient) |
Map<Integer,List<Encounter>> |
EncounterServiceImpl.getAllEncounters(Cohort patients) |
List<PatientProgram> |
ProgramWorkflowServiceImpl.getPatientPrograms(Cohort cohort,
Collection<Program> programs) |
Cohort |
CohortServiceImpl.purgeCohort(Cohort cohort) |
Cohort |
CohortServiceImpl.removePatientFromCohort(Cohort cohort,
Patient patient) |
Cohort |
CohortServiceImpl.saveCohort(Cohort cohort) |
Cohort |
CohortServiceImpl.voidCohort(Cohort cohort,
String reason) |
Modifier and Type | Method and Description |
---|---|
Map<LogicCriteria,Map<Integer,Result>> |
LogicService.eval(Cohort who,
List<LogicCriteria> criterias)
Evaluates a collection of queries for a set of patients
|
Map<Integer,Result> |
LogicService.eval(Cohort who,
LogicCriteria criteria)
Evaluates a query over a list of patients
|
Map<Integer,Result> |
LogicService.eval(Cohort who,
LogicCriteria criteria,
Map<String,Object> parameters)
Evaluates a query over a list of patients
|
Map<Integer,Result> |
LogicService.eval(Cohort who,
String expression)
Evaluates a query over a list of patients
|
Map<Integer,Result> |
LogicService.eval(Cohort who,
String expression,
Map<String,Object> parameters)
Evaluates a query over a list of patients
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,Result> |
LogicDataSource.read(LogicContext context,
Cohort patients,
LogicCriteria criteria)
Extracts data from the data source.
|
Modifier and Type | Method and Description |
---|---|
protected Cohort |
CohortEditor.getObjectById(Integer id) |
protected Cohort |
CohortEditor.getObjectByUuid(String uuid) |
Copyright © 2024 OpenMRS Inc.. All rights reserved.