public interface EncounterDAO
| Modifier and Type | Method and Description |
|---|---|
void |
deleteEncounter(Encounter encounter)
Purge an encounter from database.
|
void |
deleteEncounterRole(EncounterRole encounterRole)
Purge an encounter role from database.
|
void |
deleteEncounterType(EncounterType encounterType)
Purge encounter type from database.
|
List<EncounterType> |
findEncounterTypes(String name)
Find Encounter Types matching the given name.
|
List<EncounterRole> |
getAllEncounterRoles(boolean includeRetired)
Get all encounter roles and optionally specify whether to include retired encountered roles
|
Map<Integer,List<Encounter>> |
getAllEncounters(Cohort patients) |
List<EncounterType> |
getAllEncounterTypes(Boolean includeVoided)
Get all encounter types
|
Long |
getCountOfEncounters(String query,
Integer patientId,
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 |
EncounterRole |
getEncounterRole(Integer encounterRoleId)
Get encounter role by internal identifier
|
EncounterRole |
getEncounterRoleByName(String name) |
EncounterRole |
getEncounterRoleByUuid(String uuid)
Find
EncounterRole matching a uuid |
List<EncounterRole> |
getEncounterRolesByName(String name)
Get encounter roles by name
|
List<Encounter> |
getEncounters(EncounterSearchCriteria encounterSearchCriteria) |
List<Encounter> |
getEncounters(String query,
Integer patientId,
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) |
List<Encounter> |
getEncountersByVisit(Visit visit,
boolean includeVoided) |
List<Encounter> |
getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
String query,
Integer start,
Integer length) |
Integer |
getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
String query) |
List<Encounter> |
getEncountersNotAssignedToAnyVisit(Patient patient) |
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
|
EncounterRole |
saveEncounterRole(EncounterRole encounterRole)
Saves an encounter role
|
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(EncounterSearchCriteria encounterSearchCriteria)
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 patientId, Integer start, Integer length, boolean includeVoided)
Encounter by Patient name or identifier based on batch settingsquery - patient name or identifierpatientId - the patient idstart - 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 databaseLocationLong getCountOfEncounters(String query, Integer patientId, boolean includeVoided)
query - patient name or identifierpatientId - the patient idincludeVoided - Specifies whether voided encounters should be includedEncounterService.getCountOfEncounters(String, boolean)EncounterRole saveEncounterRole(EncounterRole encounterRole) throws DAOException
encounterRole - role to be savedDAOExceptionvoid deleteEncounterRole(EncounterRole encounterRole) throws DAOException
encounterRole - encounter role object to be purgedDAOExceptionEncounterRole getEncounterRole(Integer encounterRoleId) throws DAOException
encounterRoleId - encounter role idDAOExceptionEncounterRole getEncounterRoleByUuid(String uuid)
EncounterRole matching a uuiduuid - EncounterRoleList<EncounterRole> getAllEncounterRoles(boolean includeRetired) throws DAOException
includeRetired - include retiredDAOExceptionEncounterService.getAllEncounterRoles(boolean)EncounterRole getEncounterRoleByName(String name) throws DAOException
DAOExceptionEncounterService.getEncounterRoleByName(String name)List<Encounter> getEncountersNotAssignedToAnyVisit(Patient patient) throws DAOException
DAOExceptionEncounterService.getEncountersNotAssignedToAnyVisit(Patient)List<Encounter> getEncountersByVisitsAndPatient(Patient patient, boolean includeVoided, String query, Integer start, Integer length)
Integer getEncountersByVisitsAndPatientCount(Patient patient, boolean includeVoided, String query)
List<EncounterRole> getEncounterRolesByName(String name) throws DAOException
name - encounter role nameDAOExceptionEncounterService.getEncounterRolesByName(String name)Copyright © 2024 OpenMRS Inc.. All rights reserved.