org.openmrs.api.impl
Class EncounterServiceImpl

java.lang.Object
  extended by org.openmrs.api.impl.BaseOpenmrsService
      extended by org.openmrs.api.impl.EncounterServiceImpl
All Implemented Interfaces:
EncounterService, OpenmrsService

public class EncounterServiceImpl
extends BaseOpenmrsService
implements EncounterService

Default implementation of the EncounterService

This class should not be instantiated alone, get a service class from the Context: Context.getEncounterService();

See Also:
Context, EncounterService

Constructor Summary
EncounterServiceImpl()
           
 
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. use LocationService.getLocations(name)
 java.util.List<EncounterType> getAllEncounterTypes()
          Get all encounter types (not retired)
 java.util.List<EncounterType> getAllEncounterTypes(boolean includeVoided)
          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. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)
 java.util.List<Encounter> getEncounters(Location loc, java.util.Date fromDate, java.util.Date toDate)
          Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)
 java.util.List<Encounter> getEncounters(Patient who)
          Deprecated. replaced by getEncountersByPatient(Patient patient)
 java.util.List<Encounter> getEncounters(Patient who, boolean includeVoided)
          Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)
 java.util.List<Encounter> getEncounters(Patient who, java.util.Date fromDate, java.util.Date toDate)
          Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)
 java.util.List<Encounter> getEncounters(Patient who, Location where)
          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, 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. 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 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 class org.openmrs.api.impl.BaseOpenmrsService
onShutdown, onStartup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmrs.api.OpenmrsService
onShutdown, onStartup
 

Constructor Detail

EncounterServiceImpl

public EncounterServiceImpl()
Method Detail

setEncounterDAO

public void setEncounterDAO(EncounterDAO dao)
Description copied from interface: EncounterService
Set the given dao on this encounter service. The dao will act as the conduit through with all encounter calls get to the database

Specified by:
setEncounterDAO in interface EncounterService
See Also:
EncounterService.setEncounterDAO(org.openmrs.api.db.EncounterDAO)

getEncountersByPatient

public java.util.List<Encounter> getEncountersByPatient(java.lang.String query,
                                                        boolean includeVoided)
                                                 throws APIException
Description copied from interface: EncounterService
Search for encounters by patient name or patient identifier.

Specified by:
getEncountersByPatient in interface EncounterService
Parameters:
query - patient name or identifier
includeVoided - Specifies whether voided encounters should be included
Returns:
list of encounters for the given patient
Throws:
APIException
See Also:
EncounterService.getEncountersByPatient(java.lang.String, boolean)

saveEncounter

public Encounter saveEncounter(Encounter encounter)
                        throws APIException
Description copied from interface: EncounterService
Saves a new encounter or updates an existing encounter. If an existing encounter, this method will automatically apply encounter.patient to all encounter.obs.patient

Specified by:
saveEncounter in interface EncounterService
Parameters:
encounter - to be saved
Throws:
APIException
See Also:
EncounterService.saveEncounter(org.openmrs.Encounter)

getEncounter

public Encounter getEncounter(java.lang.Integer encounterId)
                       throws APIException
Description copied from interface: EncounterService
Get encounter by internal identifier

Specified by:
getEncounter in interface EncounterService
Parameters:
encounterId - encounter id
Returns:
encounter with given internal identifier
Throws:
APIException
See Also:
EncounterService.getEncounter(java.lang.Integer)

getEncountersByPatient

public java.util.List<Encounter> getEncountersByPatient(Patient patient)
                                                 throws APIException
Description copied from interface: EncounterService
Get all encounters (not voided) for a patient.

Specified by:
getEncountersByPatient in interface EncounterService
Returns:
List encounters (not voided) for a patient.
Throws:
APIException
See Also:
EncounterService.getEncountersByPatient(org.openmrs.Patient)

getEncountersByPatient

public java.util.List<Encounter> getEncountersByPatient(java.lang.String query)
                                                 throws APIException
Description copied from interface: EncounterService
Search for encounters by patient name or patient identifier.

Specified by:
getEncountersByPatient in interface EncounterService
Parameters:
query - patient name or identifier
Returns:
list of encounters for the given patient
Throws:
APIException
See Also:
EncounterService.getEncountersByPatient(String)

getEncountersByPatientId

public java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId)
                                                   throws APIException
Description copied from interface: EncounterService
Get encounters for a patientId

Specified by:
getEncountersByPatientId in interface EncounterService
Returns:
all encounters (not voided) for the given patient identifier
Throws:
APIException
See Also:
EncounterService.getEncountersByPatientId(java.lang.Integer)

getEncountersByPatientIdentifier

public java.util.List<Encounter> getEncountersByPatientIdentifier(java.lang.String identifier)
                                                           throws APIException
Description copied from interface: EncounterService
Get encounters (not voided) for a patient identifier

Specified by:
getEncountersByPatientIdentifier in interface EncounterService
Returns:
all encounters (not retired) for the given patient identifer
Throws:
APIException
See Also:
EncounterService.getEncountersByPatientIdentifier(java.lang.String)

getEncounters

@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)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)

Specified by:
getEncounters in interface EncounterService
See Also:
EncounterService.getEncounters(org.openmrs.Patient, org.openmrs.Location, java.util.Date, java.util.Date, java.util.Collection, java.util.Collection, boolean)

getEncounters

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)
Description copied from interface: EncounterService
Get all encounters that match a variety of (nullable) criteria. Each extra value for a parameter that is provided acts as an "and" and will reduce the number of results returned

Specified by:
getEncounters in interface EncounterService
Parameters:
who - the patient the encounter is for
loc - the location this encounter took place
fromDate - the minimum date (inclusive) this encounter took place
toDate - the maximum date (exclusive) this encounter took place
enteredViaForms - the form that entered this encounter must be in this list
encounterTypes - the type of encounter must be in this list
providers - the provider of this encounter must be in this list
includeVoided - true/false to include the voided encounters or not
Returns:
a list of encounters ordered by increasing encounterDatetime
See Also:
EncounterService.getEncounters(org.openmrs.Patient, org.openmrs.Location, java.util.Date, java.util.Date, java.util.Collection, java.util.Collection, java.util.Collection, boolean)

voidEncounter

public Encounter voidEncounter(Encounter encounter,
                               java.lang.String reason)
Description copied from interface: EncounterService
Voiding a encounter essentially removes it from circulation

Specified by:
voidEncounter in interface EncounterService
Parameters:
encounter - Encounter object to void
reason - String reason that it's being voided
See Also:
EncounterService.voidEncounter(org.openmrs.Encounter, java.lang.String)

unvoidEncounter

public Encounter unvoidEncounter(Encounter encounter)
                          throws APIException
Description copied from interface: EncounterService
Unvoid encounter record

Specified by:
unvoidEncounter in interface EncounterService
Parameters:
encounter - Encounter to be revived
Throws:
APIException
See Also:
EncounterService.unvoidEncounter(org.openmrs.Encounter)

purgeEncounter

public void purgeEncounter(Encounter encounter)
                    throws APIException
Description copied from interface: EncounterService
Completely remove an encounter from database. For super users only. If dereferencing encounters, use voidEncounter(org.openmrs.Encounter)

Specified by:
purgeEncounter in interface EncounterService
Parameters:
encounter - encounter object to be purged
Throws:
APIException
See Also:
EncounterService.purgeEncounter(org.openmrs.Encounter)

purgeEncounter

public void purgeEncounter(Encounter encounter,
                           boolean cascade)
                    throws APIException
Description copied from interface: EncounterService
Completely remove an encounter from database. For super users only. If dereferencing encounters, use voidEncounter(org.openmrs.Encounter)

Specified by:
purgeEncounter in interface EncounterService
Parameters:
encounter - encounter object to be purged
cascade - Purge any related observations as well?
Throws:
APIException
See Also:
EncounterService.purgeEncounter(Encounter, boolean)

saveEncounterType

public EncounterType saveEncounterType(EncounterType encounterType)
Description copied from interface: EncounterService
Save a new Encounter Type or update an existing Encounter Type.

Specified by:
saveEncounterType in interface EncounterService
See Also:
EncounterService.saveEncounterType(org.openmrs.EncounterType)

getEncounterType

public EncounterType getEncounterType(java.lang.Integer encounterTypeId)
                               throws APIException
Description copied from interface: EncounterService
Get encounterType by internal identifier

Specified by:
getEncounterType in interface EncounterService
Parameters:
encounterTypeId - Integer
Returns:
encounterType with given internal identifier
Throws:
APIException
See Also:
EncounterService.getEncounterType(java.lang.Integer)

getEncounterType

public EncounterType getEncounterType(java.lang.String name)
                               throws APIException
Description copied from interface: EncounterService
Get encounterType by exact name

Specified by:
getEncounterType in interface EncounterService
Parameters:
name - string to match to an Encounter.name
Returns:
EncounterType that is not retired
Throws:
APIException
See Also:
EncounterService.getEncounterType(java.lang.String)

getAllEncounterTypes

public java.util.List<EncounterType> getAllEncounterTypes()
                                                   throws APIException
Description copied from interface: EncounterService
Get all encounter types (not retired)

Specified by:
getAllEncounterTypes in interface EncounterService
Returns:
encounter types list
Throws:
APIException
See Also:
EncounterService.getAllEncounterTypes()

getAllEncounterTypes

public java.util.List<EncounterType> getAllEncounterTypes(boolean includeVoided)
                                                   throws APIException
Description copied from interface: EncounterService
Get all encounter types. If includeRetired is true, also get retired encounter types.

Specified by:
getAllEncounterTypes in interface EncounterService
Returns:
encounter types list
Throws:
APIException
See Also:
EncounterService.getAllEncounterTypes(boolean)

findEncounterTypes

public java.util.List<EncounterType> findEncounterTypes(java.lang.String name)
                                                 throws APIException
Description copied from interface: EncounterService
Find Encounter Types with name matching the beginning of the search string. Search strings are case insensitive so that "NaMe".equals("name") is true. Includes retired EncounterTypes.

Specified by:
findEncounterTypes in interface EncounterService
Parameters:
name - of the encounter type to find
Returns:
List matching encounters
Throws:
APIException
See Also:
EncounterService.findEncounterTypes(java.lang.String)

retireEncounterType

public EncounterType retireEncounterType(EncounterType encounterType,
                                         java.lang.String reason)
                                  throws APIException
Description copied from interface: EncounterService
Retire an EncounterType. This essentially marks the given encounter type as a non-current type that shouldn't be used anymore.

Specified by:
retireEncounterType in interface EncounterService
Parameters:
encounterType - the encounter type to retire
reason - required non-null purpose for retiring this encounter type
Throws:
APIException
See Also:
EncounterService.retireEncounterType(EncounterType, String)

unretireEncounterType

public EncounterType unretireEncounterType(EncounterType encounterType)
                                    throws APIException
Description copied from interface: EncounterService
Unretire an EncounterType. This brings back the given encounter type and says that it can be used again

Specified by:
unretireEncounterType in interface EncounterService
Parameters:
encounterType - the encounter type to unretire
Throws:
APIException
See Also:
EncounterService.unretireEncounterType(org.openmrs.EncounterType)

purgeEncounterType

public void purgeEncounterType(EncounterType encounterType)
                        throws APIException
Description copied from interface: EncounterService
Completely remove an encounter type from database.

Specified by:
purgeEncounterType in interface EncounterService
Throws:
APIException
See Also:
EncounterService.purgeEncounterType(org.openmrs.EncounterType)

createEncounter

@Deprecated
public void createEncounter(Encounter encounter)
                     throws APIException
Deprecated. replaced by saveEncounter(Encounter)

Description copied from interface: EncounterService
Creates a new encounter

Specified by:
createEncounter in interface EncounterService
Parameters:
encounter - to be created
Throws:
APIException
See Also:
EncounterService.createEncounter(org.openmrs.Encounter)

updateEncounter

@Deprecated
public void updateEncounter(Encounter encounter)
                     throws APIException
Deprecated. replaced by saveEncounter(Encounter)

Description copied from interface: EncounterService
Save changes to encounter. Automatically applys encounter.patient to all encounter.obs.patient

Specified by:
updateEncounter in interface EncounterService
Throws:
APIException
See Also:
EncounterService.updateEncounter(org.openmrs.Encounter)

deleteEncounter

@Deprecated
public void deleteEncounter(Encounter encounter)
                     throws APIException
Deprecated. Replaced by purgeEncounter(Encounter)

Description copied from interface: EncounterService
Delete encounter from database. For super users only. If dereferencing encounters, use voidEncounter(org.openmrs.Encounter)

Specified by:
deleteEncounter in interface EncounterService
Parameters:
encounter - encounter object to be deleted
Throws:
APIException
See Also:
EncounterService.deleteEncounter(org.openmrs.Encounter)

getEncountersByPatientId

@Deprecated
public java.util.List<Encounter> getEncountersByPatientId(java.lang.Integer patientId,
                                                                     boolean includeVoided)
                                                   throws APIException
Deprecated. replaced by getEncountersByPatientId(Integer)

Description copied from interface: EncounterService
Get encounters for a patientId (not voided). To include voided Encounters use EncounterService.getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)

Specified by:
getEncountersByPatientId in interface EncounterService
includeVoided - No longer supported
Returns:
all encounters for the given patient identifer
Throws:
APIException
See Also:
EncounterService.getEncountersByPatientId(java.lang.Integer, boolean)

getEncountersByPatientIdentifier

@Deprecated
public java.util.List<Encounter> getEncountersByPatientIdentifier(java.lang.String identifier,
                                                                             boolean includeVoided)
                                                           throws APIException
Deprecated. replaced by getEncountersByPatientIdentifier(String)

Description copied from interface: EncounterService
Get encounters (not voided) for a patient identifier. To include voided encounters use EncounterService.getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)

Specified by:
getEncountersByPatientIdentifier in interface EncounterService
includeVoided - No longer supported.
Returns:
all encounters for the given patient identifer
Throws:
APIException
See Also:
EncounterService.getEncountersByPatientIdentifier(java.lang.String, boolean)

getEncounters

@Deprecated
public java.util.List<Encounter> getEncounters(Patient who)
Deprecated. replaced by getEncountersByPatient(Patient patient)

Description copied from interface: EncounterService
Get all encounters (not voided) for a patient

Specified by:
getEncounters in interface EncounterService
Returns:
List encounters (not voided) for a patient
See Also:
EncounterService.getEncounters(org.openmrs.Patient)

getEncounters

@Deprecated
public java.util.List<Encounter> getEncounters(Patient who,
                                                          boolean includeVoided)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)

Description copied from interface: EncounterService
Get all encounters (not voided) for a patient. To include voided encounters, use EncounterService.getEncounters(Patient, Location, Date, Date, Collection, Collection, boolean)

Specified by:
getEncounters in interface EncounterService
includeVoided - No longer supported.
Returns:
List object of non-voided Encounters
See Also:
EncounterService.getEncounters(org.openmrs.Patient, boolean)

getEncounters

@Deprecated
public java.util.List<Encounter> getEncounters(Patient who,
                                                          Location where)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)

Description copied from interface: EncounterService
Get all encounters for a patient that took place at a specific location

Specified by:
getEncounters in interface EncounterService
Returns:
List object of all encounters with this patient in specified location
See Also:
EncounterService.getEncounters(org.openmrs.Patient, org.openmrs.Location)

getEncounters

@Deprecated
public java.util.List<Encounter> getEncounters(Patient who,
                                                          java.util.Date fromDate,
                                                          java.util.Date toDate)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)

Description copied from interface: EncounterService
Get all encounters for a patient that took place between fromDate and toDate (both nullable and inclusive)

Specified by:
getEncounters in interface EncounterService
Returns:
List object of all encounters with this patient in specified date range
See Also:
EncounterService.getEncounters(org.openmrs.Patient, java.util.Date, java.util.Date)

getEncounters

@Deprecated
public java.util.Collection<Encounter> getEncounters(java.util.Date fromDate,
                                                                java.util.Date toDate)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)

Description copied from interface: EncounterService
Get all encounters that took place between fromDate and toDate (both nullable and inclusive)

Specified by:
getEncounters in interface EncounterService
Returns:
Encounters from specified date range
See Also:
EncounterService.getEncounters(java.util.Date, java.util.Date)

getEncounters

@Deprecated
public java.util.List<Encounter> getEncounters(Location loc,
                                                          java.util.Date fromDate,
                                                          java.util.Date toDate)
Deprecated. replaced by getEncounters(Patient, Location, Date, Date, Collection, Collection, Collection, boolean)

Description copied from interface: EncounterService
Get all encounters that took place between fromDate and toDate (both nullable and inclusive) at the given location

Specified by:
getEncounters in interface EncounterService
Parameters:
loc - Location
Returns:
Encounters from specified location and date range
See Also:
EncounterService.getEncounters(org.openmrs.Location, java.util.Date, java.util.Date)

getEncounterTypes

@Deprecated
public java.util.List<EncounterType> getEncounterTypes()
Deprecated. replaced by getAllEncounterTypes()

Description copied from interface: EncounterService
Get all encounter types (not retired)

Specified by:
getEncounterTypes in interface EncounterService
Returns:
A List object of all non-retired EncounterTypes
See Also:
EncounterService.getEncounterTypes()

getLocations

@Deprecated
public java.util.List<Location> getLocations()
                                      throws APIException
Deprecated. use LocationService.getAllLocations()

Description copied from interface: EncounterService
Get all locations

Specified by:
getLocations in interface EncounterService
Returns:
location list
Throws:
APIException
See Also:
EncounterService.getLocations()

getLocation

@Deprecated
public Location getLocation(java.lang.Integer locationId)
                     throws APIException
Deprecated. use LocationService.getLocation(locationId)

Description copied from interface: EncounterService
Get location by internal identifier

Specified by:
getLocation in interface EncounterService
Returns:
location with given internal identifier
Throws:
APIException
See Also:
EncounterService.getLocation(java.lang.Integer)

getLocationByName

@Deprecated
public Location getLocationByName(java.lang.String name)
                           throws APIException
Deprecated. use LocationService.getLocation(name)

Description copied from interface: EncounterService
Get location by name

Specified by:
getLocationByName in interface EncounterService
Parameters:
name - location's name
Returns:
location with given name
Throws:
APIException
See Also:
EncounterService.getLocationByName(java.lang.String)

findLocations

@Deprecated
public java.util.List<Location> findLocations(java.lang.String name)
                                       throws APIException
Deprecated. use LocationService.getLocations(name)

Description copied from interface: EncounterService
Search for locations by name. Matches returned match the given string at the beginning of the name

Specified by:
findLocations in interface EncounterService
Parameters:
name - location's name
Returns:
list of locations with similar name
Throws:
APIException
See Also:
EncounterService.findLocations(java.lang.String)

getEncounterByUuid

public Encounter getEncounterByUuid(java.lang.String uuid)
                             throws APIException
Description copied from interface: EncounterService
Get Encounter by its UUID

Specified by:
getEncounterByUuid in interface EncounterService
Returns:
Throws:
APIException
See Also:
EncounterService.getEncounterByUuid(java.lang.String)

getEncounterTypeByUuid

public EncounterType getEncounterTypeByUuid(java.lang.String uuid)
                                     throws APIException
Description copied from interface: EncounterService
Get EncounterType by its UUID

Specified by:
getEncounterTypeByUuid in interface EncounterService
Returns:
Throws:
APIException
See Also:
EncounterService.getEncounterTypeByUuid(java.lang.String)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change