public class EncounterServiceImpl extends BaseOpenmrsService implements EncounterService
EncounterService
This class should not be instantiated alone, get a service class from the Context: Context.getEncounterService();
Context,
EncounterService| Constructor and Description |
|---|
EncounterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIfEncounterTypesAreLocked()
Check if the encounter types are locked, and if so, throw exception during manipulation of encounter type
|
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.
use LocationService.getLocations(name)
|
EncounterVisitHandler |
getActiveEncounterVisitHandler()
Gets the active handler for assigning visits to encounters.
|
java.util.List<EncounterRole> |
getAllEncounterRoles(boolean includeRetired)
Get all encounter roles based on includeRetired flag
|
java.util.Map<java.lang.Integer,java.util.List<Encounter>> |
getAllEncounters(Cohort patients)
Get all encounters for a cohort of patients
|
java.util.List<EncounterType> |
getAllEncounterTypes()
Get all encounter types (including retired)
|
java.util.List<EncounterType> |
getAllEncounterTypes(boolean includeRetired)
Get all encounter types.
|
java.lang.Integer |
getCountOfEncounters(java.lang.String query,
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)
Get Encounter by its UUID
|
EncounterRole |
getEncounterRole(java.lang.Integer encounterRoleId)
Gets an encounter role when and internal encounter role id is provided.
|
EncounterRole |
getEncounterRoleByUuid(java.lang.String uuid)
Get EncounterRole by its UUID
|
java.util.Collection<Encounter> |
getEncounters(java.util.Date fromDate,
java.util.Date toDate)
Deprecated.
|
java.util.List<Encounter> |
getEncounters(Location loc,
java.util.Date fromDate,
java.util.Date toDate)
Deprecated.
|
java.util.List<Encounter> |
getEncounters(Patient who)
Deprecated.
replaced by
getEncountersByPatient(Patient patient) |
java.util.List<Encounter> |
getEncounters(Patient who,
boolean includeVoided)
Deprecated.
|
java.util.List<Encounter> |
getEncounters(Patient who,
java.util.Date fromDate,
java.util.Date toDate)
Deprecated.
|
java.util.List<Encounter> |
getEncounters(Patient who,
Location where)
Deprecated.
|
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.
|
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<Provider> providers,
java.util.Collection<VisitType> visitTypes,
java.util.Collection<Visit> visits,
boolean includeVoided)
Get all encounters that match a variety of (nullable) criteria.
|
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)
|
java.util.List<Encounter> |
getEncounters(java.lang.String query,
java.lang.Integer start,
java.lang.Integer length,
boolean includeVoided)
Search for encounters by patient name or patient identifier and returns a specific number of
them from the specified starting position.
|
java.util.List<Encounter> |
getEncounters(java.lang.String query,
java.lang.Integer patientId,
java.lang.Integer start,
java.lang.Integer length,
boolean includeVoided)
Searches for encounters by patient id, provider identifier, location, encounter type,
provider, form or provider name.
|
java.util.List<Encounter> |
getEncountersByPatient(Patient patient)
Get all encounters (not voided) for a patient, sorted by encounterDatetime ascending.
|
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) |
java.util.List<Encounter> |
getEncountersByVisit(Visit visit,
boolean includeVoided)
Gets all encounters grouped within a given visit.
|
java.util.List<Encounter> |
getEncountersByVisitsAndPatient(Patient patient,
boolean includeVoided,
java.lang.String query,
java.lang.Integer start,
java.lang.Integer length)
Gets encounters for the given patient.
|
java.lang.Integer |
getEncountersByVisitsAndPatientCount(Patient patient,
boolean includeVoided,
java.lang.String query)
Returns result count for
EncounterService.getEncountersByVisitsAndPatient(Patient, boolean, String, Integer, Integer). |
java.util.List<Encounter> |
getEncountersNotAssignedToAnyVisit(Patient patient)
Gets the unvoided encounters for the specified patient that are not assigned to any visit.
|
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() |
java.util.List<EncounterVisitHandler> |
getEncounterVisitHandlers() |
Location |
getLocation(java.lang.Integer locationId)
Deprecated.
use LocationService.getLocation(locationId)
|
Location |
getLocationByName(java.lang.String name)
Deprecated.
use LocationService.getLocation(name)
|
java.util.List<Location> |
getLocations()
Deprecated.
use 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 |
purgeEncounterRole(EncounterRole encounterRole)
Completely remove an encounter role from database.
|
void |
purgeEncounterType(EncounterType encounterType)
Completely remove an encounter type from database.
|
EncounterRole |
retireEncounterRole(EncounterRole encounterRole,
java.lang.String reason)
Retire an EncounterRole.
|
EncounterType |
retireEncounterType(EncounterType encounterType,
java.lang.String reason)
Retire an EncounterType.
|
Encounter |
saveEncounter(Encounter encounter)
Saves a new encounter or updates an existing encounter.
|
EncounterRole |
saveEncounterRole(EncounterRole encounterRole)
Saves a new encounter role or updates an existing encounter role.
|
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. |
EncounterRole |
unretireEncounterRole(EncounterRole encounterRole)
Unretire an EncounterRole.
|
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
|
onShutdown, onStartupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonShutdown, onStartuppublic void setEncounterDAO(EncounterDAO dao)
EncounterServicedao on this encounter service. The dao will act as the conduit
through with all encounter calls get to the databasesetEncounterDAO in interface EncounterServiceEncounterService.setEncounterDAO(org.openmrs.api.db.EncounterDAO)public java.util.List<Encounter> getEncountersByPatient(java.lang.String query, boolean includeVoided) throws APIException
EncounterServicegetEncountersByPatient in interface EncounterServicequery - patient name or identifierincludeVoided - Specifies whether voided encounters should be includedAPIExceptionEncounterService.getEncountersByPatient(java.lang.String, boolean)public Encounter saveEncounter(Encounter encounter) throws APIException
EncounterServicesaveEncounter in interface EncounterServiceencounter - to be savedAPIExceptionEncounterService.saveEncounter(org.openmrs.Encounter)public Encounter getEncounter(java.lang.Integer encounterId) throws APIException
EncounterServicegetEncounter in interface EncounterServiceencounterId - encounter idAPIExceptionEncounterService.getEncounter(java.lang.Integer)public java.util.List<Encounter> getEncountersByPatient(Patient patient) throws APIException
EncounterServicegetEncountersByPatient in interface EncounterServiceAPIExceptionEncounterService.getEncountersByPatient(org.openmrs.Patient)public java.util.List<Encounter> getEncountersByPatient(java.lang.String query) throws APIException
EncounterServicegetEncountersByPatient in interface EncounterServicequery - patient name or identifierAPIExceptionEncounterService.getEncountersByPatient(String)public java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId) throws APIException
EncounterServicegetEncountersByPatientId in interface EncounterServiceAPIExceptionEncounterService.getEncountersByPatientId(java.lang.Integer)public java.util.List<Encounter> getEncountersByPatientIdentifier(java.lang.String identifier) throws APIException
EncounterServicegetEncountersByPatientIdentifier in interface EncounterServiceAPIExceptionEncounterService.getEncountersByPatientIdentifier(java.lang.String)@Deprecated public 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)@Deprecated public 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)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, Collection, Collection, boolean)EncounterServicegetEncounters in interface EncounterServicewho - 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 notEncounterService.getEncounters(org.openmrs.Patient,
org.openmrs.Location, java.util.Date, java.util.Date, java.util.Collection,
java.util.Collection, java.util.Collection, boolean)public 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<Provider> providers, java.util.Collection<VisitType> visitTypes, java.util.Collection<Visit> visits, boolean includeVoided)
EncounterServicegetEncounters in interface EncounterServicewho - 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 listvisitTypes - the visit types of this encounter must be in this listvisits - the visits of this encounter must be in this listincludeVoided - true/false to include the voided encounters or notEncounterService.getEncounters(org.openmrs.Patient,
org.openmrs.Location, java.util.Date, java.util.Date, java.util.Collection,
java.util.Collection, java.util.Collection, boolean)public Encounter voidEncounter(Encounter encounter, java.lang.String reason)
EncounterServicevoidEncounter in interface EncounterServiceencounter - Encounter object to voidreason - String reason that it's being voidedEncounterService.voidEncounter(org.openmrs.Encounter, java.lang.String)public Encounter unvoidEncounter(Encounter encounter) throws APIException
EncounterServiceunvoidEncounter in interface EncounterServiceencounter - Encounter to be revivedAPIExceptionEncounterService.unvoidEncounter(org.openmrs.Encounter)public void purgeEncounter(Encounter encounter) throws APIException
EncounterServicevoidEncounter(org.openmrs.Encounter)purgeEncounter in interface EncounterServiceencounter - encounter object to be purgedAPIExceptionEncounterService.purgeEncounter(org.openmrs.Encounter)public void purgeEncounter(Encounter encounter, boolean cascade) throws APIException
EncounterServicevoidEncounter(org.openmrs.Encounter)purgeEncounter in interface EncounterServiceencounter - encounter object to be purgedcascade - Purge any related observations as well?APIExceptionEncounterService.purgeEncounter(Encounter, boolean)public EncounterType saveEncounterType(EncounterType encounterType)
EncounterServicesaveEncounterType in interface EncounterServiceEncounterService.saveEncounterType(org.openmrs.EncounterType)public EncounterType getEncounterType(java.lang.Integer encounterTypeId) throws APIException
EncounterServicegetEncounterType in interface EncounterServiceencounterTypeId - IntegerAPIExceptionEncounterService.getEncounterType(java.lang.Integer)public EncounterType getEncounterType(java.lang.String name) throws APIException
EncounterServicegetEncounterType in interface EncounterServicename - string to match to an Encounter.nameAPIExceptionEncounterService.getEncounterType(java.lang.String)public java.util.List<EncounterType> getAllEncounterTypes() throws APIException
EncounterServicegetAllEncounterTypes in interface EncounterServiceAPIExceptionEncounterService.getAllEncounterTypes()public java.util.List<EncounterType> getAllEncounterTypes(boolean includeRetired) throws APIException
EncounterServicegetAllEncounterTypes in interface EncounterServiceAPIExceptionEncounterService.getAllEncounterTypes(boolean)public java.util.List<EncounterType> findEncounterTypes(java.lang.String name) throws APIException
EncounterServicefindEncounterTypes in interface EncounterServicename - of the encounter type to findAPIExceptionEncounterService.findEncounterTypes(java.lang.String)public EncounterType retireEncounterType(EncounterType encounterType, java.lang.String reason) throws APIException
EncounterServiceretireEncounterType in interface EncounterServiceencounterType - the encounter type to retirereason - required non-null purpose for retiring this encounter typeAPIExceptionEncounterService.retireEncounterType(EncounterType, String)public EncounterType unretireEncounterType(EncounterType encounterType) throws APIException
EncounterServiceunretireEncounterType in interface EncounterServiceencounterType - the encounter type to unretireAPIExceptionEncounterService.unretireEncounterType(org.openmrs.EncounterType)public void purgeEncounterType(EncounterType encounterType) throws APIException
EncounterServicepurgeEncounterType in interface EncounterServiceAPIExceptionEncounterService.purgeEncounterType(org.openmrs.EncounterType)@Deprecated public void createEncounter(Encounter encounter) throws APIException
saveEncounter(Encounter)EncounterServicecreateEncounter in interface EncounterServiceencounter - to be createdAPIExceptionEncounterService.createEncounter(org.openmrs.Encounter)@Deprecated public void updateEncounter(Encounter encounter) throws APIException
saveEncounter(Encounter)EncounterServiceupdateEncounter in interface EncounterServiceAPIExceptionEncounterService.updateEncounter(org.openmrs.Encounter)@Deprecated public void deleteEncounter(Encounter encounter) throws APIException
purgeEncounter(Encounter)EncounterServicevoidEncounter(org.openmrs.Encounter)deleteEncounter in interface EncounterServiceencounter - encounter object to be deletedAPIExceptionEncounterService.deleteEncounter(org.openmrs.Encounter)@Deprecated public java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId, boolean includeVoided) throws APIException
getEncountersByPatientId(Integer)EncounterServiceEncounterService.getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)getEncountersByPatientId in interface EncounterServiceincludeVoided - No longer supportedAPIExceptionEncounterService.getEncountersByPatientId(java.lang.Integer, boolean)@Deprecated public java.util.List<Encounter> getEncountersByPatientIdentifier(java.lang.String identifier, boolean includeVoided) throws APIException
getEncountersByPatientIdentifier(String)EncounterServiceEncounterService.getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)getEncountersByPatientIdentifier in interface EncounterServiceincludeVoided - No longer supported.APIExceptionEncounterService.getEncountersByPatientIdentifier(java.lang.String,
boolean)@Deprecated public java.util.List<Encounter> getEncounters(Patient who)
getEncountersByPatient(Patient patient)EncounterServicegetEncounters in interface EncounterServiceEncounterService.getEncounters(org.openmrs.Patient)@Deprecated public java.util.List<Encounter> getEncounters(Patient who, boolean includeVoided)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)EncounterServiceEncounterService.getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)getEncounters in interface EncounterServiceincludeVoided - No longer supported.EncounterService.getEncounters(org.openmrs.Patient, boolean)@Deprecated public java.util.List<Encounter> getEncounters(Patient who, Location where)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)EncounterServicegetEncounters in interface EncounterServiceEncounterService.getEncounters(org.openmrs.Patient,
org.openmrs.Location)@Deprecated public java.util.List<Encounter> getEncounters(Patient who, java.util.Date fromDate, java.util.Date toDate)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)EncounterServicegetEncounters in interface EncounterServiceEncounterService.getEncounters(org.openmrs.Patient, java.util.Date,
java.util.Date)@Deprecated public java.util.Collection<Encounter> getEncounters(java.util.Date fromDate, java.util.Date toDate)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)EncounterServicegetEncounters in interface EncounterServiceEncounterService.getEncounters(java.util.Date, java.util.Date)@Deprecated public java.util.List<Encounter> getEncounters(Location loc, java.util.Date fromDate, java.util.Date toDate)
getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)EncounterServicegetEncounters in interface EncounterServiceloc - LocationEncounterService.getEncounters(org.openmrs.Location, java.util.Date,
java.util.Date)@Deprecated public java.util.List<EncounterType> getEncounterTypes()
getAllEncounterTypes()EncounterServicegetEncounterTypes in interface EncounterServiceEncounterService.getEncounterTypes()@Deprecated public java.util.List<Location> getLocations() throws APIException
EncounterServicegetLocations in interface EncounterServiceAPIExceptionEncounterService.getLocations()@Deprecated public Location getLocation(java.lang.Integer locationId) throws APIException
EncounterServicegetLocation in interface EncounterServiceAPIExceptionEncounterService.getLocation(java.lang.Integer)@Deprecated public Location getLocationByName(java.lang.String name) throws APIException
EncounterServicegetLocationByName in interface EncounterServicename - location's nameAPIExceptionEncounterService.getLocationByName(java.lang.String)@Deprecated public java.util.List<Location> findLocations(java.lang.String name) throws APIException
EncounterServicefindLocations in interface EncounterServicename - location's nameAPIExceptionEncounterService.findLocations(java.lang.String)public Encounter getEncounterByUuid(java.lang.String uuid) throws APIException
EncounterServicegetEncounterByUuid in interface EncounterServiceAPIExceptionEncounterService.getEncounterByUuid(java.lang.String)public EncounterType getEncounterTypeByUuid(java.lang.String uuid) throws APIException
EncounterServicegetEncounterTypeByUuid in interface EncounterServiceAPIExceptionEncounterService.getEncounterTypeByUuid(java.lang.String)public java.util.Map<java.lang.Integer,java.util.List<Encounter>> getAllEncounters(Cohort patients)
EncounterServicegetAllEncounters in interface EncounterServicepatients - Cohort of patients to searchEncounterService.getAllEncounters(org.openmrs.Cohort)public java.util.List<Encounter> getEncounters(java.lang.String query, java.lang.Integer start, java.lang.Integer length, boolean includeVoided) throws APIException
EncounterServicegetEncounters in interface EncounterServicequery - patient name or identifierstart - beginning index for the batchlength - number of encounters to return in the batchincludeVoided - Specifies whether voided encounters should be includedAPIExceptionEncounterService.getEncounters(java.lang.String, java.lang.Integer,
java.lang.Integer, boolean)@Transactional(readOnly=true) public java.util.List<Encounter> getEncounters(java.lang.String query, java.lang.Integer patientId, java.lang.Integer start, java.lang.Integer length, boolean includeVoided) throws APIException
EncounterServicegetEncounters in interface EncounterServicequery - provider identifier, location, encounter type, provider, form or provider namepatientId - the patient idstart - beginning index for the batchlength - number of encounters to return in the batchincludeVoided - Specifies whether voided encounters should be includedAPIExceptionEncounterService.getEncounters(java.lang.String, java.lang.Integer,
java.lang.Integer, java.lang.Integer, boolean)public java.lang.Integer getCountOfEncounters(java.lang.String query,
boolean includeVoided)
EncounterServicegetCountOfEncounters in interface EncounterServicequery - patient name or identifierincludeVoided - Specifies whether voided encounters should be includedEncounterService.getCountOfEncounters(java.lang.String, boolean)public java.util.List<Encounter> getEncountersByVisit(Visit visit, boolean includeVoided)
EncounterServicegetEncountersByVisit in interface EncounterServicevisit - the visit.includeVoided - whether voided encounters should be returnedEncounterService.getEncountersByVisit(Visit, boolean)public java.util.List<EncounterVisitHandler> getEncounterVisitHandlers()
getEncounterVisitHandlers in interface EncounterServiceEncounterVisitHandlerpublic EncounterVisitHandler getActiveEncounterVisitHandler() throws APIException
EncounterServicegetActiveEncounterVisitHandler in interface EncounterServiceAPIException - thrown if something goes wrong during the retrieval of the handler.EncounterService.getActiveEncounterVisitHandler()public EncounterRole saveEncounterRole(EncounterRole encounterRole) throws APIException
EncounterServicesaveEncounterRole in interface EncounterServiceencounterRole - to be savedAPIExceptionEncounterService.saveEncounterRole(org.openmrs.EncounterRole)public EncounterRole getEncounterRole(java.lang.Integer encounterRoleId) throws APIException
EncounterServicegetEncounterRole in interface EncounterServiceencounterRoleId - to be retrievedAPIExceptionEncounterService.getEncounterRole(Integer)public void purgeEncounterRole(EncounterRole encounterRole) throws APIException
EncounterServiceretireEncounterRole(org.openmrs.Encounter, java.lang.String)purgeEncounterRole in interface EncounterServiceencounterRole - encounter role object to be purgedAPIExceptionEncounterService.purgeEncounterRole(org.openmrs.EncounterRole)public java.util.List<EncounterRole> getAllEncounterRoles(boolean includeRetired)
EncounterServicegetAllEncounterRoles in interface EncounterServiceEncounterService.getAllEncounterRoles(boolean)public EncounterRole getEncounterRoleByUuid(java.lang.String uuid) throws APIException
EncounterServicegetEncounterRoleByUuid in interface EncounterServiceAPIExceptionEncounterService.getEncounterRoleByUuid(String)public EncounterRole retireEncounterRole(EncounterRole encounterRole, java.lang.String reason) throws APIException
EncounterServiceretireEncounterRole in interface EncounterServiceencounterRole - the encounter role to retirereason - required non-null purpose for retiring this encounter roleAPIExceptionEncounterService.retireEncounterRole(org.openmrs.EncounterRole, String)public EncounterRole unretireEncounterRole(EncounterRole encounterRole) throws APIException
EncounterServiceunretireEncounterRole in interface EncounterServiceAPIExceptionEncounterService.unretireEncounterRole(org.openmrs.EncounterRole)public java.util.List<Encounter> getEncountersNotAssignedToAnyVisit(Patient patient) throws APIException
EncounterServicegetEncountersNotAssignedToAnyVisit in interface EncounterServicepatient - the patient to match againstEncountersAPIExceptionEncounterService.getEncountersNotAssignedToAnyVisit(org.openmrs.Patient)public java.util.List<Encounter> getEncountersByVisitsAndPatient(Patient patient, boolean includeVoided, java.lang.String query, java.lang.Integer start, java.lang.Integer length) throws APIException
EncounterServiceThe empty encounters have only visit set.
getEncountersByVisitsAndPatient in interface EncounterServicepatient - the patient to matchincludeVoided - if voided encounters or visits should be includedquery - filters results (defaults to return all results if null)start - index to start with (defaults to 0 if null)length - number of results to return (default to return all results if null)APIExceptionEncounterService.getEncountersByVisitsAndPatient(org.openmrs.Patient, boolean, java.lang.String, java.lang.Integer, java.lang.Integer)public java.lang.Integer getEncountersByVisitsAndPatientCount(Patient patient, boolean includeVoided, java.lang.String query) throws APIException
EncounterServiceEncounterService.getEncountersByVisitsAndPatient(Patient, boolean, String, Integer, Integer).getEncountersByVisitsAndPatientCount in interface EncounterServiceAPIExceptionEncounterService.getEncountersByVisitsAndPatientCount(org.openmrs.Patient, boolean, java.lang.String)@Transactional(readOnly=true) public void checkIfEncounterTypesAreLocked()
EncounterServicecheckIfEncounterTypesAreLocked in interface EncounterServiceEncounterService.checkIfEncounterTypesAreLocked()Copyright © 2018 OpenMRS Inc.. All Rights Reserved.