public class Visit extends BaseCustomizableData<VisitAttribute> implements Auditable, Customizable<VisitAttribute>
creator| Constructor and Description |
|---|
Visit()
Default Constructor
|
Visit(java.lang.Integer visitId)
Constructor that takes in a visitId
|
Visit(Patient patient,
VisitType visitType,
java.util.Date startDatetime)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEncounter(Encounter encounter)
adds an individual encounter to a visit
|
java.util.Set<Encounter> |
getEncounters() |
java.lang.Integer |
getId() |
Concept |
getIndication() |
Location |
getLocation() |
Patient |
getPatient() |
java.util.Date |
getStartDatetime() |
java.util.Date |
getStopDatetime() |
java.lang.Integer |
getVisitId() |
VisitType |
getVisitType() |
void |
setEncounters(java.util.Set<Encounter> encounters) |
void |
setId(java.lang.Integer id) |
void |
setIndication(Concept indication) |
void |
setLocation(Location location) |
void |
setPatient(Patient patient) |
void |
setStartDatetime(java.util.Date startDatetime) |
void |
setStopDatetime(java.util.Date stopDatetime) |
void |
setVisitId(java.lang.Integer visitId) |
void |
setVisitType(VisitType visitType) |
java.lang.String |
toString()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ]. |
addAttribute, getActiveAttributes, getActiveAttributes, getAttributes, setAttribute, setAttributesgetChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReasonequals, getUuid, hashCode, setUuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChangedBy, getCreator, getDateChanged, getDateCreated, setChangedBy, setCreator, setDateChanged, setDateCreatedgetUuid, setUuidaddAttribute, getActiveAttributes, getActiveAttributes, getAttributespublic Visit()
public Visit(java.lang.Integer visitId)
visitId - public java.lang.Integer getVisitId()
public void setVisitId(java.lang.Integer visitId)
visitId - the visitId to setpublic Patient getPatient()
public void setPatient(Patient patient)
patient - the patient to setpublic VisitType getVisitType()
public void setVisitType(VisitType visitType)
visitType - the visitType to setpublic Concept getIndication()
public void setIndication(Concept indication)
indication - the indication to setpublic Location getLocation()
public void setLocation(Location location)
location - the location to setpublic java.util.Date getStartDatetime()
public void setStartDatetime(java.util.Date startDatetime)
startDatetime - the startDatetime to setpublic java.util.Date getStopDatetime()
public void setStopDatetime(java.util.Date stopDatetime)
stopDatetime - the stopDatetime to setpublic java.lang.Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(java.lang.Integer id)
setId in interface OpenmrsObjectid - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)public java.lang.String toString()
BaseOpenmrsObjectuuid field surrounded by [ and ]. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid field is null, it delegates to
Object.toString()
toString in class BaseOpenmrsObjectObject.toString()public java.util.Set<Encounter> getEncounters()
public void setEncounters(java.util.Set<Encounter> encounters)
encounters - the encounters to setpublic void addEncounter(Encounter encounter)
encounter - the encounter to addCopyright © 2018 OpenMRS Inc.. All Rights Reserved.