public interface ConditionDAO
Modifier and Type | Method and Description |
---|---|
void |
deleteCondition(Condition condition)
Removes a condition from the database
|
List<Condition> |
getActiveConditions(Patient patient)
Gets all active conditions related to the specified patient.
|
List<Condition> |
getAllConditions(Patient patient) |
Condition |
getCondition(Integer conditionId)
Gets a condition by id
|
Condition |
getConditionByUuid(String uuid)
Gets the condition attached to the specified UUID.
|
List<Condition> |
getConditionsByEncounter(Encounter encounter) |
Condition |
saveCondition(Condition condition)
Saves the condition.
|
Condition getCondition(Integer conditionId)
conditionId
- the id of the condition to returnCondition getConditionByUuid(String uuid)
uuid
- the UUID to search for in the database.List<Condition> getActiveConditions(Patient patient)
patient
- the patient whose active conditions are being queried.List<Condition> getConditionsByEncounter(Encounter encounter) throws APIException
APIException
ConditionService.getConditionsByEncounter(Encounter)
Condition saveCondition(Condition condition)
condition
- the condition to save.void deleteCondition(Condition condition) throws DAOException
condition
- the condition object to delete from databaseDAOException
Copyright © 2024 OpenMRS Inc.. All rights reserved.