public class PatientState extends BaseOpenmrsData implements Serializable, Comparable<PatientState>
| Modifier and Type | Field and Description | 
|---|---|
| static long | serialVersionUID | 
creator| Constructor and Description | 
|---|
| PatientState()Default Constructor | 
| PatientState(Integer patientStateId)Constructor with id | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(PatientState o)Compares by startDate with null as earliest and endDate with null as latest. | 
| PatientState | copy()Does a shallow copy of this PatientState. | 
| protected PatientState | copyHelper(PatientState target)The purpose of this method is to allow subclasses of PatientState to delegate a portion of
 their copy() method back to the superclass, in case the base class implementation changes. | 
| boolean | equals(Object obj) | 
| boolean | getActive()Returns true if this  PatientStateis currently active | 
| boolean | getActive(Date onDate)Returns true if this  PatientStateis active as of the passedDate | 
| Date | getEndDate() | 
| Integer | getId() | 
| PatientProgram | getPatientProgram() | 
| Integer | getPatientStateId() | 
| Date | getStartDate() | 
| ProgramWorkflowState | getState() | 
| void | setEndDate(Date endDate) | 
| void | setId(Integer id) | 
| void | setPatientProgram(PatientProgram patientProgram) | 
| void | setPatientStateId(Integer patientStatusId) | 
| void | setStartDate(Date startDate) | 
| void | setState(ProgramWorkflowState state) | 
| String | toString() | 
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReasongetUuid, setUuidclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic static final long serialVersionUID
public PatientState()
public PatientState(Integer patientStateId)
public PatientState copy()
protected PatientState copyHelper(PatientState target)
target - a PatientState that will have the state of this copied into itpublic boolean getActive(Date onDate)
PatientState is active as of the passed DateonDate - - Date to check for PatientState enrollmentPatientState is active as of the passed Datepublic boolean getActive()
PatientState is currently activePatientState is currently activepublic boolean equals(Object obj)
equals in class ObjectObject.equals(Object)public String toString()
toString in class ObjectObject.toString()public PatientProgram getPatientProgram()
public void setPatientProgram(PatientProgram patientProgram)
public Integer getPatientStateId()
public void setPatientStateId(Integer patientStatusId)
public ProgramWorkflowState getState()
public void setState(ProgramWorkflowState state)
public Date getEndDate()
public void setEndDate(Date endDate)
public Date getStartDate()
public void setStartDate(Date startDate)
public Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(Integer id)
setId in interface OpenmrsObjectid - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)public int compareTo(PatientState o)
compareTo in interface Comparable<PatientState>Comparable.compareTo(java.lang.Object)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.