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.
|
java.util.List<EncounterType> |
findEncounterTypes(java.lang.String name)
Find Encounter Types matching the given name.
|
java.util.List<EncounterRole> |
getAllEncounterRoles(boolean includeRetired)
Get all enconter roles and optionally specify whehter to include retired encontered roles
|
java.util.Map<java.lang.Integer,java.util.List<Encounter>> |
getAllEncounters(Cohort patients) |
java.util.List<EncounterType> |
getAllEncounterTypes(java.lang.Boolean includeVoided)
Get all encounter types
|
java.lang.Long |
getCountOfEncounters(java.lang.String query,
java.lang.Integer patientId,
boolean includeVoided)
Return the number of encounters matching a patient name or patient identifier
|
Encounter |
getEncounter(java.lang.Integer encounterId)
Get encounter by internal identifier
|
Encounter |
getEncounterByUuid(java.lang.String uuid)
Find
Encounter matching a uuid |
EncounterRole |
getEncounterRole(java.lang.Integer encounterRoleId)
Get encounter role by internal identifier
|
EncounterRole |
getEncounterRoleByUuid(java.lang.String uuid)
Find
EncounterRole matching a uuid |
java.util.List<Encounter> |
getEncounters(Patient patient,
Location location,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Collection<Form> enteredViaForms,
java.util.Collection<EncounterType> encounterTypes,
java.util.Collection<Provider> providers,
java.util.Collection<VisitType> visitTypes,
java.util.Collection<Visit> visits,
boolean includeVoided) |
java.util.List<Encounter> |
getEncounters(java.lang.String query,
java.lang.Integer patientId,
java.lang.Integer start,
java.lang.Integer length,
boolean includeVoided)
Get a list of
Encounter by Patient name or identifier based on batch settings |
java.util.List<Encounter> |
getEncountersByPatientId(java.lang.Integer patientId) |
java.util.List<Encounter> |
getEncountersByVisit(Visit visit,
boolean includeVoided) |
java.util.List<Encounter> |
getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
java.lang.String query,
java.lang.Integer start,
java.lang.Integer length) |
java.lang.Integer |
getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
java.lang.String query) |
java.util.List<Encounter> |
getEncountersNotAssignedToAnyVisit(Patient patient) |
EncounterType |
getEncounterType(java.lang.Integer encounterTypeId)
Get encounterType by internal identifier
|
EncounterType |
getEncounterType(java.lang.String name)
Get encounterType by name
|
EncounterType |
getEncounterTypeByUuid(java.lang.String uuid)
Find
EncounterType matching a uuid |
java.util.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(java.lang.Integer encounterId) throws DAOException
encounterId
- encounter idDAOException
java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId) throws DAOException
patientId
- DAOException
java.util.List<Encounter> getEncounters(Patient patient, Location location, java.util.Date fromDate, java.util.Date toDate, java.util.Collection<Form> enteredViaForms, java.util.Collection<EncounterType> encounterTypes, java.util.Collection<Provider> providers, java.util.Collection<VisitType> visitTypes, java.util.Collection<Visit> visits, boolean includeVoided)
EncounterType saveEncounterType(EncounterType encounterType)
encounterType
- void deleteEncounterType(EncounterType encounterType) throws DAOException
encounterType
- DAOException
EncounterType getEncounterType(java.lang.Integer encounterTypeId) throws DAOException
encounterTypeId
- Internal Integer identifier for an EncounterTypeDAOException
EncounterType getEncounterType(java.lang.String name) throws DAOException
name
- String representation of an encounterTypeDAOException
java.util.List<EncounterType> getAllEncounterTypes(java.lang.Boolean includeVoided) throws DAOException
DAOException
java.util.List<EncounterType> findEncounterTypes(java.lang.String name) throws DAOException
name
- DAOException
java.util.Date getSavedEncounterDatetime(Encounter encounter)
encounter
- the Encounter go the the encounterDatetime ofEncounter getEncounterByUuid(java.lang.String uuid)
Encounter
matching a uuiduuid
- Encounter
EncounterType getEncounterTypeByUuid(java.lang.String uuid)
EncounterType
matching a uuiduuid
- EncounterType
java.util.List<Encounter> getEncounters(java.lang.String query, java.lang.Integer patientId, java.lang.Integer start, java.lang.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
java.util.Map<java.lang.Integer,java.util.List<Encounter>> getAllEncounters(Cohort patients)
java.lang.Long getCountOfEncounters(java.lang.String query, java.lang.Integer patientId, boolean includeVoided)
query
- patient name or identifierpatientId
- the patient idincludeVoided
- Specifies whether voided encounters should be includedEncounterService#getCountOfEncounters(String, boolean)}
java.util.List<Encounter> getEncountersByVisit(Visit visit, boolean includeVoided)
EncounterRole saveEncounterRole(EncounterRole encounterRole) throws DAOException
encounter
- role to be savedDAOException
void deleteEncounterRole(EncounterRole encounterRole) throws DAOException
encounterRole
- encounter role object to be purgedDAOException
EncounterRole getEncounterRole(java.lang.Integer encounterRoleId) throws DAOException
encounterRoleId
- encounter role idDAOException
EncounterRole getEncounterRoleByUuid(java.lang.String uuid)
EncounterRole
matching a uuiduuid
- EncounterRole
java.util.List<EncounterRole> getAllEncounterRoles(boolean includeRetired) throws DAOException
includeRetired
- include retiredDAOException
org.openmrs.api.EncounterRoleService#getAllEncounterRoles(boolan includeRetired)
java.util.List<Encounter> getEncountersNotAssignedToAnyVisit(Patient patient) throws DAOException
DAOException
EncounterService.getEncountersNotAssignedToAnyVisit(Patient)
java.util.List<Encounter> getEncountersByVisitsAndPatient(Patient patient, boolean includeVoided, java.lang.String query, java.lang.Integer start, java.lang.Integer length)
EncounterService#getEncountersByVisitsAndPatient(Patient, boolean, String, Date, Date)
java.lang.Integer getEncountersByVisitsAndPatientCount(Patient patient, boolean includeVoided, java.lang.String query)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.