public class Encounter extends BaseOpenmrsData implements Serializable
Obs
,
Order
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
creator
Constructor and Description |
---|
Encounter()
default constructor
|
Encounter(Integer encounterId) |
Modifier and Type | Method and Description |
---|---|
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(Object obj)
Compares two Encounter objects for similarity
|
Set<Obs> |
getAllObs()
Convenience method to call
getAllObs(boolean) with a false parameter |
Set<Obs> |
getAllObs(boolean includeVoided)
Returns all Obs where Obs.encounterId = Encounter.encounterId In practice, this method should
not be used very often...
|
Date |
getEncounterDatetime() |
Integer |
getEncounterId() |
EncounterType |
getEncounterType() |
Form |
getForm() |
Integer |
getId() |
Location |
getLocation() |
Set<Obs> |
getObs() |
Set<Obs> |
getObsAtTopLevel(boolean includeVoided)
Returns a Set
|
Set<Order> |
getOrders() |
Patient |
getPatient() |
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(Date encounterDatetime) |
void |
setEncounterId(Integer encounterId) |
void |
setEncounterType(EncounterType encounterType) |
void |
setForm(Form form) |
void |
setId(Integer id) |
void |
setLocation(Location location) |
void |
setObs(Set<Obs> obs) |
void |
setOrders(Set<Order> orders) |
void |
setPatient(Patient patient) |
void |
setPatientId(Integer patientId) |
void |
setProvider(Person provider) |
void |
setProvider(User provider)
Deprecated.
|
String |
toString() |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Encounter()
public Encounter(Integer encounterId)
encounterId
- public boolean equals(Object obj)
equals
in class Object
obj
- Encounter object to compare toObject.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public Date getEncounterDatetime()
public void setEncounterDatetime(Date encounterDatetime)
encounterDatetime
- The encounterDatetime to set.public Integer getEncounterId()
public void setEncounterId(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 Set<Obs> getObs()
public Set<Obs> getAllObs(boolean includeVoided)
includeVoided
- specifies whether or not to include voided Obspublic Set<Obs> getAllObs()
getAllObs(boolean)
with a false parameterpublic Set<Obs> getObsAtTopLevel(boolean includeVoided)
includeVoided
- specifies whether or not to include voided Obspublic void addObs(Obs observation)
observation
- the Obs to add to this encounterpublic void removeObs(Obs observation)
observation
- 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 Integer getPatientId()
public void setPatientId(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 String toString()
toString
in class Object
Object.toString()
public Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.