|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Transactional public interface EncounterService
Services for Encounters and Encounter Types
| Method Summary | |
|---|---|
void |
createEncounter(Encounter encounter)
Deprecated. replaced by saveEncounter(Encounter) |
void |
deleteEncounter(Encounter encounter)
Deprecated. replaced by purgeEncounter(Encounter) |
java.util.List<EncounterType> |
findEncounterTypes(java.lang.String name)
Find Encounter Types with name matching the beginning of the search string. |
java.util.List<Location> |
findLocations(java.lang.String name)
Deprecated. replaced by LocationService.getLocations(String) |
java.util.List<EncounterType> |
getAllEncounterTypes()
Get all encounter types (not retired) |
java.util.List<EncounterType> |
getAllEncounterTypes(boolean includeRetired)
Get all encounter types. |
Encounter |
getEncounter(java.lang.Integer encounterId)
Get encounter by internal identifier |
Encounter |
getEncounterByUuid(java.lang.String uuid)
Get Encounter by its UUID |
java.util.Collection<Encounter> |
getEncounters(java.util.Date fromDate,
java.util.Date toDate)
Deprecated. use getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean) |
java.util.Collection<Encounter> |
getEncounters(Location loc,
java.util.Date fromDate,
java.util.Date toDate)
Deprecated. use getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean) |
java.util.List<Encounter> |
getEncounters(Patient who)
Deprecated. replaced by getEncountersByPatient(Patient) |
java.util.List<Encounter> |
getEncounters(Patient who,
boolean includeVoided)
Deprecated. replaced by getEncountersByPatient(Patient) |
java.util.List<Encounter> |
getEncounters(Patient who,
java.util.Date fromDate,
java.util.Date toDate)
Deprecated. use getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean) |
java.util.List<Encounter> |
getEncounters(Patient who,
Location where)
Deprecated. use getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean) |
java.util.List<Encounter> |
getEncounters(Patient who,
Location loc,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Collection<Form> enteredViaForms,
java.util.Collection<EncounterType> encounterTypes,
boolean includeVoided)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean) |
java.util.List<Encounter> |
getEncounters(Patient who,
Location loc,
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)
Get all encounters that match a variety of (nullable) criteria. |
java.util.List<Encounter> |
getEncountersByPatient(Patient patient)
Get all encounters (not voided) for a patient. |
java.util.List<Encounter> |
getEncountersByPatient(java.lang.String query)
Search for encounters by patient name or patient identifier. |
java.util.List<Encounter> |
getEncountersByPatient(java.lang.String query,
boolean includeVoided)
Search for encounters by patient name or patient identifier. |
java.util.List<Encounter> |
getEncountersByPatientId(java.lang.Integer patientId)
Get encounters for a patientId |
java.util.List<Encounter> |
getEncountersByPatientId(java.lang.Integer patientId,
boolean includeVoided)
Deprecated. replaced by getEncountersByPatientId(Integer) |
java.util.List<Encounter> |
getEncountersByPatientIdentifier(java.lang.String identifier)
Get encounters (not voided) for a patient identifier |
java.util.List<Encounter> |
getEncountersByPatientIdentifier(java.lang.String identifier,
boolean includeVoided)
Deprecated. replaced by getEncountersByPatientIdentifier(String) |
EncounterType |
getEncounterType(java.lang.Integer encounterTypeId)
Get encounterType by internal identifier |
EncounterType |
getEncounterType(java.lang.String name)
Get encounterType by exact name |
EncounterType |
getEncounterTypeByUuid(java.lang.String uuid)
Get EncounterType by its UUID |
java.util.List<EncounterType> |
getEncounterTypes()
Deprecated. replaced by getAllEncounterTypes() |
Location |
getLocation(java.lang.Integer locationId)
Deprecated. replaced by LocationService.getLocation(Integer) |
Location |
getLocationByName(java.lang.String name)
Deprecated. replaced by LocationService.getLocation(String) |
java.util.List<Location> |
getLocations()
Deprecated. replaced by LocationService.getAllLocations() |
void |
purgeEncounter(Encounter encounter)
Completely remove an encounter from database. |
void |
purgeEncounter(Encounter encounter,
boolean cascade)
Completely remove an encounter from database. |
void |
purgeEncounterType(EncounterType encounterType)
Completely remove an encounter type from database. |
EncounterType |
retireEncounterType(EncounterType encounterType,
java.lang.String reason)
Retire an EncounterType. |
Encounter |
saveEncounter(Encounter encounter)
Saves a new encounter or updates an existing encounter. |
EncounterType |
saveEncounterType(EncounterType encounterType)
Save a new Encounter Type or update an existing Encounter Type. |
void |
setEncounterDAO(EncounterDAO dao)
Set the given dao on this encounter service. |
EncounterType |
unretireEncounterType(EncounterType encounterType)
Unretire an EncounterType. |
Encounter |
unvoidEncounter(Encounter encounter)
Unvoid encounter record |
void |
updateEncounter(Encounter encounter)
Deprecated. replaced by saveEncounter(Encounter) |
Encounter |
voidEncounter(Encounter encounter,
java.lang.String reason)
Voiding a encounter essentially removes it from circulation |
| Methods inherited from interface org.openmrs.api.OpenmrsService |
|---|
onShutdown, onStartup |
| Method Detail |
|---|
void setEncounterDAO(EncounterDAO dao)
dao on this encounter service. The dao will act as the conduit
through with all encounter calls get to the database
dao -
@Authorized(value={"Add Encounters","Edit Encounters"})
Encounter saveEncounter(Encounter encounter)
throws APIException
encounter - to be saved
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
Encounter getEncounter(java.lang.Integer encounterId)
throws APIException
encounterId - encounter id
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
Encounter getEncounterByUuid(java.lang.String uuid)
throws APIException
uuid -
APIException@Transactional(readOnly=true) @Authorized(value="View Encounters") java.util.List<Encounter> getEncountersByPatient(Patient patient)
patient -
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId)
throws APIException
patientId -
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncountersByPatientIdentifier(java.lang.String identifier)
throws APIException
identifier -
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncounters(Patient who,
Location loc,
java.util.Date fromDate,
java.util.Date toDate,
java.util.Collection<Form> enteredViaForms,
java.util.Collection<EncounterType> encounterTypes,
boolean includeVoided)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncounters(Patient who,
Location loc,
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)
who - the patient the encounter is forloc - the location this encounter took placefromDate - the minimum date (inclusive) this encounter took placetoDate - the maximum date (exclusive) this encounter took placeenteredViaForms - the form that entered this encounter must be in this listencounterTypes - the type of encounter must be in this listproviders - the provider of this encounter must be in this listincludeVoided - true/false to include the voided encounters or not
@Authorized(value="Edit Encounters")
Encounter voidEncounter(Encounter encounter,
java.lang.String reason)
encounter - Encounter object to voidreason - String reason that it's being voided
@Authorized(value="Edit Encounters")
Encounter unvoidEncounter(Encounter encounter)
throws APIException
encounter - Encounter to be revived
APIException
@Authorized(value="Purge Encounters")
void purgeEncounter(Encounter encounter)
throws APIException
voidEncounter(org.openmrs.Encounter)
encounter - encounter object to be purged
APIException
@Authorized(value="Purge Encounters")
void purgeEncounter(Encounter encounter,
boolean cascade)
throws APIException
voidEncounter(org.openmrs.Encounter)
encounter - encounter object to be purgedcascade - Purge any related observations as well?
APIException@Authorized(value="Manage Encounter Types") EncounterType saveEncounterType(EncounterType encounterType)
encounterType -
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
EncounterType getEncounterType(java.lang.Integer encounterTypeId)
throws APIException
encounterTypeId - Integer
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
EncounterType getEncounterTypeByUuid(java.lang.String uuid)
throws APIException
uuid -
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
EncounterType getEncounterType(java.lang.String name)
throws APIException
name - string to match to an Encounter.name
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
java.util.List<EncounterType> getAllEncounterTypes()
throws APIException
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
java.util.List<EncounterType> getAllEncounterTypes(boolean includeRetired)
throws APIException
includeRetired -
APIException
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
java.util.List<EncounterType> findEncounterTypes(java.lang.String name)
throws APIException
name - of the encounter type to find
APIException
@Authorized(value="Manage Encounter Types")
EncounterType retireEncounterType(EncounterType encounterType,
java.lang.String reason)
throws APIException
encounterType - the encounter type to retirereason - required non-null purpose for retiring this encounter type
APIException
@Authorized(value="Manage Encounter Types")
EncounterType unretireEncounterType(EncounterType encounterType)
throws APIException
encounterType - the encounter type to unretire
APIException
@Authorized(value="Purge Encounter Types")
void purgeEncounterType(EncounterType encounterType)
throws APIException
encounterType -
APIException
@Deprecated
@Authorized(value="Add Encounters")
void createEncounter(Encounter encounter)
throws APIException
saveEncounter(Encounter)
encounter - to be created
APIException
@Deprecated
@Authorized(value="Edit Encounters")
void updateEncounter(Encounter encounter)
throws APIException
saveEncounter(Encounter)
encounter -
APIException
@Deprecated
@Authorized(value="Delete Encounters")
void deleteEncounter(Encounter encounter)
throws APIException
purgeEncounter(Encounter)
voidEncounter(org.openmrs.Encounter)
encounter - encounter object to be deleted
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId,
boolean includeVoided)
throws APIException
getEncountersByPatientId(Integer)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
patientId - includeVoided - No longer supported
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncountersByPatientIdentifier(java.lang.String identifier,
boolean includeVoided)
throws APIException
getEncountersByPatientIdentifier(String)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
identifier - includeVoided - No longer supported.
APIException@Deprecated @Transactional(readOnly=true) @Authorized(value="View Encounters") java.util.List<Encounter> getEncounters(Patient who)
getEncountersByPatient(Patient)
who -
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncounters(Patient who,
boolean includeVoided)
getEncountersByPatient(Patient)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
who - includeVoided - No longer supported.
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncounters(Patient who,
Location where)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
who - where -
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncounters(Patient who,
java.util.Date fromDate,
java.util.Date toDate)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
who - fromDate - toDate -
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.Collection<Encounter> getEncounters(java.util.Date fromDate,
java.util.Date toDate)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
fromDate - toDate -
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounters")
java.util.Collection<Encounter> getEncounters(Location loc,
java.util.Date fromDate,
java.util.Date toDate)
getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)
loc - LocationfromDate - toDate -
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Encounter Types")
java.util.List<EncounterType> getEncounterTypes()
throws APIException
getAllEncounterTypes()
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Locations")
java.util.List<Location> getLocations()
throws APIException
LocationService.getAllLocations()
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Locations")
Location getLocation(java.lang.Integer locationId)
throws APIException
LocationService.getLocation(Integer)
locationId -
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Locations")
Location getLocationByName(java.lang.String name)
throws APIException
LocationService.getLocation(String)
name - location's name
APIException
@Deprecated
@Transactional(readOnly=true)
@Authorized(value="View Locations")
java.util.List<Location> findLocations(java.lang.String name)
throws APIException
LocationService.getLocations(String)
name - location's name
APIException
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncountersByPatient(java.lang.String query)
throws APIException
query - patient name or identifier
APIExceptionEncounterService}{@link #getEncountersByPatient(String, boolean)}
@Authorized(value="View Encounters")
java.util.List<Encounter> getEncountersByPatient(java.lang.String query,
boolean includeVoided)
throws APIException
query - patient name or identifierincludeVoided - Specifies whether voided encounters should be included
APIException
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||