public interface EncounterDAO
| Modifier and Type | Method and Description |
|---|---|
void |
deleteEncounter(Encounter encounter)
Purge an encounter from database.
|
void |
deleteEncounterType(EncounterType encounterType)
Purge encounter type from database.
|
List<EncounterType> |
findEncounterTypes(String name)
Find Encounter Types matching the given name.
|
Map<Integer,List<Encounter>> |
getAllEncounters(Cohort patients) |
List<EncounterType> |
getAllEncounterTypes(Boolean includeVoided)
Get all encounter types
|
Integer |
getCountOfEncounters(String query,
boolean includeVoided)
Return the number of encounters matching a patient name or patient identifier
|
Encounter |
getEncounter(Integer encounterId)
Get encounter by internal identifier
|
Encounter |
getEncounterByUuid(String uuid)
Find
Encounter matching a uuid |
List<Encounter> |
getEncounters(Patient patient,
Location location,
Date fromDate,
Date toDate,
Collection<Form> enteredViaForms,
Collection<EncounterType> encounterTypes,
Collection<User> providers,
boolean includeVoided) |
List<Encounter> |
getEncounters(String query,
Integer start,
Integer length,
boolean includeVoided)
Get a list of
Encounter by Patient name or identifier based on batch settings |
List<Encounter> |
getEncountersByPatientId(Integer patientId) |
EncounterType |
getEncounterType(Integer encounterTypeId)
Get encounterType by internal identifier
|
EncounterType |
getEncounterType(String name)
Get encounterType by name
|
EncounterType |
getEncounterTypeByUuid(String uuid)
Find
EncounterType matching a uuid |
Date |
getSavedEncounterDatetime(Encounter encounter)
Gets the value of encounterDatetime currently saved in the database for the given encounter,
bypassing any caches.
|
Location |
getSavedEncounterLocation(Encounter encounter)
Gets the location of the encounter
|
Encounter |
saveEncounter(Encounter encounter)
Saves an encounter
|
EncounterType |
saveEncounterType(EncounterType encounterType)
Save an Encounter Type
|
Encounter saveEncounter(Encounter encounter) throws DAOException
encounter - to be savedDAOExceptionvoid deleteEncounter(Encounter encounter) throws DAOException
encounter - encounter object to be purgedDAOExceptionEncounter getEncounter(Integer encounterId) throws DAOException
encounterId - encounter idDAOExceptionList<Encounter> getEncountersByPatientId(Integer patientId) throws DAOException
patientId - DAOExceptionList<Encounter> getEncounters(Patient patient, Location location, Date fromDate, Date toDate, Collection<Form> enteredViaForms, Collection<EncounterType> encounterTypes, Collection<User> providers, boolean includeVoided)
EncounterType saveEncounterType(EncounterType encounterType)
encounterType - void deleteEncounterType(EncounterType encounterType) throws DAOException
encounterType - DAOExceptionEncounterType getEncounterType(Integer encounterTypeId) throws DAOException
encounterTypeId - Internal Integer identifier for an EncounterTypeDAOExceptionEncounterType getEncounterType(String name) throws DAOException
name - String representation of an encounterTypeDAOExceptionList<EncounterType> getAllEncounterTypes(Boolean includeVoided) throws DAOException
DAOExceptionList<EncounterType> findEncounterTypes(String name) throws DAOException
name - DAOExceptionDate getSavedEncounterDatetime(Encounter encounter)
encounter - the Encounter go the the encounterDatetime ofEncounter getEncounterByUuid(String uuid)
Encounter matching a uuiduuid - EncounterEncounterType getEncounterTypeByUuid(String uuid)
EncounterType matching a uuiduuid - EncounterTypeList<Encounter> getEncounters(String query, Integer start, Integer length, boolean includeVoided)
Encounter by Patient name or identifier based on batch settingsquery - patient name or identifierstart - beginning index for the batchlength - number of encounters to return in the batchincludeVoided - Specifies whether voided encounters should be includedEncounter based on batch settingsEncounterService.getEncounters(String, Integer, Integer, boolean)Location getSavedEncounterLocation(Encounter encounter)
encounter - to be retrieved from the databaseLocationInteger getCountOfEncounters(String query, boolean includeVoided)
query - patient name or identifierincludeVoided - Specifies whether voided encounters should be includedEncounterService#getCountOfEncounters(String, boolean)}Copyright © 2018 OpenMRS LLC.. All Rights Reserved.