|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.BaseOpenmrsData org.openmrs.Encounter
public class Encounter
An Encounter represents one visit or interaction of a patient with a healthcare worker. Every encounter can have 0 to n Observations associated with it Every encounter can have 0 to n Orders associated with it The patientId attribute should be equal to patient.patientId and is only included this second time for performance increases on bulk calls.
Obs
,
Order
,
Serialized FormField Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class org.openmrs.BaseOpenmrsData |
---|
creator |
Constructor Summary | |
---|---|
Encounter()
default constructor |
|
Encounter(java.lang.Integer encounterId)
|
Method Summary | |
---|---|
void |
addObs(Obs observation)
Add the given Obs to the list of obs for this Encounter. |
void |
addOrder(Order order)
Add the given Order to the list of orders for this Encounter |
boolean |
equals(java.lang.Object obj)
Compares two Encounter objects for similarity |
java.util.Set<Obs> |
getAllObs()
Convenience method to call getAllObs(boolean) with a false parameter |
java.util.Set<Obs> |
getAllObs(boolean includeVoided)
Returns all Obs where Obs.encounterId = Encounter.encounterId In practice, this method should not be used very often... |
java.util.Date |
getEncounterDatetime()
|
java.lang.Integer |
getEncounterId()
|
EncounterType |
getEncounterType()
|
Form |
getForm()
|
java.lang.Integer |
getId()
|
Location |
getLocation()
|
java.util.Set<Obs> |
getObs()
|
java.util.Set<Obs> |
getObsAtTopLevel(boolean includeVoided)
Returns a Set |
java.util.Set<Order> |
getOrders()
|
Patient |
getPatient()
|
java.lang.Integer |
getPatientId()
|
Person |
getProvider()
|
int |
hashCode()
|
void |
removeObs(Obs observation)
Remove the given observation from the list of obs for this Encounter |
void |
removeOrder(Order order)
Remove the given observation from the list of orders for this Encounter |
void |
setEncounterDatetime(java.util.Date encounterDatetime)
|
void |
setEncounterId(java.lang.Integer encounterId)
|
void |
setEncounterType(EncounterType encounterType)
|
void |
setForm(Form form)
|
void |
setId(java.lang.Integer id)
|
void |
setLocation(Location location)
|
void |
setObs(java.util.Set<Obs> obs)
|
void |
setOrders(java.util.Set<Order> orders)
|
void |
setPatient(Patient patient)
|
void |
setPatientId(java.lang.Integer patientId)
|
void |
setProvider(Person provider)
|
void |
setProvider(User provider)
Deprecated. use setProvider(Person) |
java.lang.String |
toString()
|
Methods inherited from class org.openmrs.BaseOpenmrsData |
---|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason |
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openmrs.OpenmrsObject |
---|
getUuid, setUuid |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Encounter()
public Encounter(java.lang.Integer encounterId)
encounterId
- Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Encounter object to compare to
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.util.Date getEncounterDatetime()
public void setEncounterDatetime(java.util.Date encounterDatetime)
encounterDatetime
- The encounterDatetime to set.public java.lang.Integer getEncounterId()
public void setEncounterId(java.lang.Integer encounterId)
encounterId
- The encounterId to set.public EncounterType getEncounterType()
public void setEncounterType(EncounterType encounterType)
encounterType
- The encounterType to set.public Location getLocation()
public void setLocation(Location location)
location
- The location to set.public java.util.Set<Obs> getObs()
public java.util.Set<Obs> getAllObs(boolean includeVoided)
includeVoided
- specifies whether or not to include voided Obs
public java.util.Set<Obs> getAllObs()
getAllObs(boolean)
with a false parameter
public java.util.Set<Obs> getObsAtTopLevel(boolean includeVoided)
includeVoided
- specifies whether or not to include voided Obs
public void setObs(java.util.Set<Obs> obs)
obs
- The obs to set.public void addObs(Obs observation)
observation
- the Obs to add to this encounterpublic void removeObs(Obs observation)
observation
- public java.util.Set<Order> getOrders()
public void setOrders(java.util.Set<Order> orders)
orders
- The orders to set.public void addOrder(Order order)
order
- public void removeOrder(Order order)
order
- public Patient getPatient()
public void setPatient(Patient patient)
patient
- The patient to set.public java.lang.Integer getPatientId()
public void setPatientId(java.lang.Integer patientId)
patientId
- the patientId to setpublic Person getProvider()
public void setProvider(User provider)
setProvider(Person)
provider
- The provider to set.public void setProvider(Person provider)
provider
- The provider to set.public Form getForm()
public void setForm(Form form)
form
- The form to set.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |