| 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 | 
|---|---|
static Condition | 
Condition.copy(Condition fromCondition,
    Condition toCondition)
Copies property values from the fromCondition to the toCondition such that fromCondition
 matches toCondition @see Condition#matches, but does not equal toCondition (uuid, id differ) 
 | 
Condition | 
Diagnosis.getCondition()
Gets the diagnosis condition. 
 | 
Condition | 
Condition.getPreviousVersion()
Gets the previous version of the condition 
 | 
static Condition | 
Condition.newInstance(Condition condition)
Creates a new Condition instance from the passed condition such that the newly created Condition
 matches the passed Condition @see Condition#matches, but does not equal the passed Condition (uuid, id differ) 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Condition> | 
Encounter.getConditions()
Basic property getter for the encounter's non-voided conditions. 
 | 
Set<Condition> | 
Encounter.getConditions(boolean includeVoided)
Returns all conditions where 'Condition.encounterId = Encounter.encounterId'. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Encounter.addCondition(Condition condition)
Add the given condition to the set of conditions for this encounter. 
 | 
static Condition | 
Condition.copy(Condition fromCondition,
    Condition toCondition)
Copies property values from the fromCondition to the toCondition such that fromCondition
 matches toCondition @see Condition#matches, but does not equal toCondition (uuid, id differ) 
 | 
boolean | 
Condition.matches(Condition c)
Compares properties with those in the given Condition to determine if they have the same meaning
 This method will return true immediately following the creation of a Condition from another Condition 
 | 
static Condition | 
Condition.newInstance(Condition condition)
Creates a new Condition instance from the passed condition such that the newly created Condition
 matches the passed Condition @see Condition#matches, but does not equal the passed Condition (uuid, id differ) 
 | 
void | 
Encounter.removeCondition(Condition condition)
Remove the given condition from the set of conditions for this encounter. 
 | 
void | 
Diagnosis.setCondition(Condition condition)
Sets diagnosis condition 
 | 
void | 
Condition.setPreviousVersion(Condition previousVersion)
Sets the previous version of the condition 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Encounter.setConditions(Set<Condition> conditions)
Basic property setter for conditions 
 | 
| Constructor and Description | 
|---|
Condition(CodedOrFreeText condition,
         ConditionClinicalStatus clinicalStatus,
         ConditionVerificationStatus verificationStatus,
         Condition previousVersion,
         String additionalDetail,
         Date onsetDate,
         Date endDate,
         Patient patient)
Convenience constructor to instantiate a condition class with all the necessary parameters 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Condition | 
ConditionService.getCondition(Integer conditionId)
Gets a condition by id 
 | 
Condition | 
ConditionService.getConditionByUuid(String uuid)
Gets a condition based on the uuid 
 | 
Condition | 
ConditionService.saveCondition(Condition condition)
Saves a condition 
 | 
Condition | 
ConditionService.unvoidCondition(Condition condition)
Revive a previously voided condition 
 | 
Condition | 
ConditionService.voidCondition(Condition condition,
             String voidReason)
Voids a condition 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Condition> | 
ConditionService.getActiveConditions(Patient patient)
Gets a patient's active conditions 
 | 
List<Condition> | 
ConditionService.getAllConditions(Patient patient)
Gets all conditions i.e both active and inactive conditions, associated with a patient 
 | 
List<Condition> | 
ConditionService.getConditionsByEncounter(Encounter encounter)
Gets all conditions(not voided) of an encounter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ConditionService.purgeCondition(Condition condition)
Completely remove a condition from the database. 
 | 
Condition | 
ConditionService.saveCondition(Condition condition)
Saves a condition 
 | 
Condition | 
ConditionService.unvoidCondition(Condition condition)
Revive a previously voided condition 
 | 
Condition | 
ConditionService.voidCondition(Condition condition,
             String voidReason)
Voids a condition 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Condition | 
ConditionDAO.getCondition(Integer conditionId)
Gets a condition by id 
 | 
Condition | 
ConditionDAO.getConditionByUuid(String uuid)
Gets the condition attached to the specified UUID. 
 | 
Condition | 
ConditionDAO.saveCondition(Condition condition)
Saves the condition. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Condition> | 
ConditionDAO.getActiveConditions(Patient patient)
Gets all active conditions related to the specified patient. 
 | 
List<Condition> | 
ConditionDAO.getAllConditions(Patient patient)  | 
List<Condition> | 
ConditionDAO.getConditionsByEncounter(Encounter encounter)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ConditionDAO.deleteCondition(Condition condition)
Removes a condition from the database 
 | 
Condition | 
ConditionDAO.saveCondition(Condition condition)
Saves the condition. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Condition | 
HibernateConditionDAO.getCondition(Integer conditionId)
Gets the condition with the specified id. 
 | 
Condition | 
HibernateConditionDAO.getConditionByUuid(String uuid)
Gets the condition by its UUID. 
 | 
Condition | 
HibernateConditionDAO.saveCondition(Condition condition)
Saves the condition. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Condition> | 
HibernateConditionDAO.getActiveConditions(Patient patient)
Gets all active conditions related to the specified patient. 
 | 
List<Condition> | 
HibernateConditionDAO.getAllConditions(Patient patient)  | 
List<Condition> | 
HibernateConditionDAO.getConditionsByEncounter(Encounter encounter)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
HibernateConditionDAO.deleteCondition(Condition condition)
Removes a condition from the database 
 | 
Condition | 
HibernateConditionDAO.saveCondition(Condition condition)
Saves the condition. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Condition | 
ConditionServiceImpl.getCondition(Integer conditionId)
Gets a condition by id 
 | 
Condition | 
ConditionServiceImpl.getConditionByUuid(String uuid)
Gets a condition based on the uuid 
 | 
Condition | 
ConditionServiceImpl.saveCondition(Condition condition)
Saves a condition 
 | 
Condition | 
ConditionServiceImpl.unvoidCondition(Condition condition)
Revive a condition 
 | 
Condition | 
ConditionServiceImpl.voidCondition(Condition condition,
             String voidReason)
Voids a condition 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Condition> | 
ConditionServiceImpl.getActiveConditions(Patient patient)
Gets a patient's active conditions 
 | 
List<Condition> | 
ConditionServiceImpl.getAllConditions(Patient patient)  | 
List<Condition> | 
ConditionServiceImpl.getConditionsByEncounter(Encounter encounter)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
ConditionServiceImpl.purgeCondition(Condition condition)
Completely remove a condition from the database. 
 | 
Condition | 
ConditionServiceImpl.saveCondition(Condition condition)
Saves a condition 
 | 
Condition | 
ConditionServiceImpl.unvoidCondition(Condition condition)
Revive a condition 
 | 
Condition | 
ConditionServiceImpl.voidCondition(Condition condition,
             String voidReason)
Voids a condition 
 | 
Copyright © 2024 OpenMRS Inc.. All rights reserved.