@Entity public class Visit extends BaseCustomizableData<VisitAttribute> implements Auditable, Customizable<VisitAttribute>
creator
Constructor and Description |
---|
Visit()
Default Constructor
|
Visit(Integer visitId)
Constructor that takes in a visitId
|
Visit(Patient patient,
VisitType visitType,
Date startDatetime)
|
Modifier and Type | Method and Description |
---|---|
void |
addEncounter(Encounter encounter)
adds an individual encounter to a visit
|
Set<Encounter> |
getEncounters() |
Integer |
getId() |
Concept |
getIndication() |
Location |
getLocation() |
List<Encounter> |
getNonVoidedEncounters()
Gets a list of non voided encounters
|
Patient |
getPatient() |
Date |
getStartDatetime() |
Date |
getStopDatetime() |
Integer |
getVisitId() |
VisitType |
getVisitType() |
void |
setEncounters(Set<Encounter> encounters) |
void |
setId(Integer id) |
void |
setIndication(Concept indication) |
void |
setLocation(Location location) |
void |
setPatient(Patient patient) |
void |
setStartDatetime(Date startDatetime) |
void |
setStopDatetime(Date stopDatetime) |
void |
setVisitId(Integer visitId) |
void |
setVisitType(VisitType visitType) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
addAttribute, getActiveAttributes, getActiveAttributes, getAttributes, setAttribute, setAttributes
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCreator, getDateCreated, setCreator, setDateCreated
getChangedBy, getDateChanged, setChangedBy, setDateChanged
getUuid, setUuid
addAttribute, getActiveAttributes, getActiveAttributes, getAttributes
public Visit()
public Visit(Integer visitId)
visitId
- public Integer getVisitId()
public void setVisitId(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 Date getStartDatetime()
public void setStartDatetime(Date startDatetime)
startDatetime
- the startDatetime to setpublic Date getStopDatetime()
public void setStopDatetime(Date stopDatetime)
stopDatetime
- the stopDatetime to setpublic 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)
public String toString()
BaseOpenmrsObject
ClassName{hashCode=..., uuid=...}
If the uuid
field is null
, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString
in class BaseOpenmrsObject
Object.toString()
public void setEncounters(Set<Encounter> encounters)
encounters
- the encounters to setpublic List<Encounter> getNonVoidedEncounters()
public void addEncounter(Encounter encounter)
encounter
- the encounter to addCopyright © 2024 OpenMRS Inc.. All rights reserved.