|
|||||||||
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.PatientState
public class PatientState
PatientState
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class org.openmrs.BaseOpenmrsData |
---|
creator |
Constructor Summary | |
---|---|
PatientState()
Default Constructor |
|
PatientState(java.lang.Integer patientStateId)
Constructor with id |
Method Summary | |
---|---|
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(java.lang.Object obj)
|
boolean |
getActive()
Returns true if this PatientState is currently active |
boolean |
getActive(java.util.Date onDate)
Returns true if this PatientState is active as of the passed Date |
java.util.Date |
getEndDate()
|
java.lang.Integer |
getId()
|
PatientProgram |
getPatientProgram()
|
java.lang.Integer |
getPatientStateId()
|
java.util.Date |
getStartDate()
|
ProgramWorkflowState |
getState()
|
void |
setEndDate(java.util.Date endDate)
|
void |
setId(java.lang.Integer id)
|
void |
setPatientProgram(PatientProgram patientProgram)
|
void |
setPatientStateId(java.lang.Integer patientStatusId)
|
void |
setStartDate(java.util.Date startDate)
|
void |
setState(ProgramWorkflowState state)
|
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, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openmrs.OpenmrsObject |
---|
getUuid, setUuid |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public PatientState()
public PatientState(java.lang.Integer patientStateId)
Method Detail |
---|
public PatientState copy()
protected PatientState copyHelper(PatientState target)
target
- a PatientState that will have the state of this
copied into it
public boolean getActive(java.util.Date onDate)
PatientState
is active as of the passed Date
onDate
- - Date
to check for PatientState
enrollment
PatientState
is active as of the passed Date
public boolean getActive()
PatientState
is currently active
PatientState
is currently activepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(Object)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public PatientProgram getPatientProgram()
public void setPatientProgram(PatientProgram patientProgram)
public java.lang.Integer getPatientStateId()
public void setPatientStateId(java.lang.Integer patientStatusId)
public ProgramWorkflowState getState()
public void setState(ProgramWorkflowState state)
public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
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)
public int compareTo(PatientState o)
compareTo
in interface java.lang.Comparable<PatientState>
Comparable.compareTo(java.lang.Object)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |