|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EncounterDAO
Encounter-related database functions
Method Summary | |
---|---|
void |
deleteEncounter(Encounter encounter)
Purge an encounter 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<EncounterType> |
getAllEncounterTypes(java.lang.Boolean includeVoided)
Get all encounter types |
Encounter |
getEncounter(java.lang.Integer encounterId)
Get encounter by internal identifier |
Encounter |
getEncounterByUuid(java.lang.String uuid)
Find Encounter 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<User> providers,
boolean includeVoided)
|
java.util.List<Encounter> |
getEncountersByPatient(java.lang.String query,
boolean includeVoided)
Get a list of Encounter by Patient name or identifier |
java.util.List<Encounter> |
getEncountersByPatientId(java.lang.Integer patientId)
|
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. |
Encounter |
saveEncounter(Encounter encounter)
Saves an encounter |
EncounterType |
saveEncounterType(EncounterType encounterType)
Save an Encounter Type |
Method Detail |
---|
Encounter saveEncounter(Encounter encounter) throws DAOException
encounter
- to be saved
DAOException
void deleteEncounter(Encounter encounter) throws DAOException
encounter
- encounter object to be purged
DAOException
Encounter getEncounter(java.lang.Integer encounterId) throws DAOException
encounterId
- encounter id
DAOException
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<User> providers, boolean includeVoided)
EncounterService.getEncounters(org.openmrs.Patient,
org.openmrs.Location, java.util.Date, java.util.Date, java.util.Collection,
java.util.Collection, java.util.Collection, boolean)
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 EncounterType
DAOException
EncounterType getEncounterType(java.lang.String name) throws DAOException
name
- String representation of an encounterType
DAOException
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 of
Encounter getEncounterByUuid(java.lang.String uuid)
Encounter
matching a uuid
uuid
-
Encounter
EncounterType getEncounterTypeByUuid(java.lang.String uuid)
EncounterType
matching a uuid
uuid
-
EncounterType
java.util.List<Encounter> getEncountersByPatient(java.lang.String query, boolean includeVoided)
Encounter
by Patient name or identifier
query
- patient name or identifierincludeVoided
- Specifies whether voided encounters should be included
Encounter
EncounterService.getEncountersByPatient(String, boolean)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |