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 savedDAOException
void deleteEncounter(Encounter encounter) throws DAOException
encounter
- encounter object to be purgedDAOException
Encounter getEncounter(Integer encounterId) throws DAOException
encounterId
- encounter idDAOException
List<Encounter> getEncountersByPatientId(Integer patientId) throws DAOException
patientId
- DAOException
List<Encounter> getEncounters(EncounterSearchCriteria encounterSearchCriteria)
EncounterType saveEncounterType(EncounterType encounterType)
encounterType
- void deleteEncounterType(EncounterType encounterType) throws DAOException
encounterType
- DAOException
EncounterType getEncounterType(Integer encounterTypeId) throws DAOException
encounterTypeId
- Internal Integer identifier for an EncounterTypeDAOException
EncounterType getEncounterType(String name) throws DAOException
name
- String representation of an encounterTypeDAOException
List<EncounterType> getAllEncounterTypes(Boolean includeVoided) throws DAOException
DAOException
List<EncounterType> findEncounterTypes(String name) throws DAOException
name
- DAOException
Date getSavedEncounterDatetime(Encounter encounter)
encounter
- the Encounter go the the encounterDatetime ofEncounter getEncounterByUuid(String uuid)
Encounter
matching a uuiduuid
- Encounter
EncounterType getEncounterTypeByUuid(String uuid)
EncounterType
matching a uuiduuid
- EncounterType
List<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 databaseLocation
Long 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 savedDAOException
void deleteEncounterRole(EncounterRole encounterRole) throws DAOException
encounterRole
- encounter role object to be purgedDAOException
EncounterRole getEncounterRole(Integer encounterRoleId) throws DAOException
encounterRoleId
- encounter role idDAOException
EncounterRole getEncounterRoleByUuid(String uuid)
EncounterRole
matching a uuiduuid
- EncounterRole
List<EncounterRole> getAllEncounterRoles(boolean includeRetired) throws DAOException
includeRetired
- include retiredDAOException
EncounterService.getAllEncounterRoles(boolean)
EncounterRole getEncounterRoleByName(String name) throws DAOException
DAOException
EncounterService.getEncounterRoleByName(String name)
List<Encounter> getEncountersNotAssignedToAnyVisit(Patient patient) throws DAOException
DAOException
EncounterService.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 nameDAOException
EncounterService.getEncounterRolesByName(String name)
Copyright © 2024 OpenMRS Inc.. All rights reserved.