org.openmrs.activelist
Class Problem

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsData
          extended by org.openmrs.activelist.ActiveListItem
              extended by org.openmrs.activelist.Problem
All Implemented Interfaces:
java.lang.Comparable<Problem>, Auditable, OpenmrsData, OpenmrsObject, Voidable

public class Problem
extends ActiveListItem
implements java.lang.Comparable<Problem>

TODO


Field Summary
static ActiveListType ACTIVE_LIST_TYPE
           
 
Fields inherited from class org.openmrs.activelist.ActiveListItem
activeListId, activeListType, comments, concept, endDate, person, startDate, startObs, stopObs
 
Fields inherited from class org.openmrs.BaseOpenmrsData
creator
 
Constructor Summary
Problem()
           
Problem(java.lang.Integer activeListId)
           
Problem(Patient person, Concept concept, java.util.Date startDate, ProblemModifier modifier, java.lang.String comments, java.lang.Double sortWeight)
           
 
Method Summary
 int compareTo(Problem item)
           
 boolean equals(java.lang.Object obj)
           
 ProblemModifier getModifier()
           
 Concept getProblem()
          is actually "concept" in ActiveList
 java.lang.Double getSortWeight()
           
 int hashCode()
           
 void setModifier(ProblemModifier modifier)
           
 void setModifier(java.lang.String modifier)
           
 void setProblem(Concept problem)
          Set the problem concept
 void setSortWeight(java.lang.Double sortWeight)
           
 
Methods inherited from class org.openmrs.activelist.ActiveListItem
getActiveListId, getActiveListType, getComments, getConcept, getEndDate, getId, getPerson, getStartDate, getStartObs, getStopObs, setActiveListId, setActiveListType, setComments, setConcept, setEndDate, setId, setPerson, setStartDate, setStartObs, setStopObs
 
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, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

ACTIVE_LIST_TYPE

public static final ActiveListType ACTIVE_LIST_TYPE
Constructor Detail

Problem

public Problem()

Problem

public Problem(java.lang.Integer activeListId)

Problem

public Problem(Patient person,
               Concept concept,
               java.util.Date startDate,
               ProblemModifier modifier,
               java.lang.String comments,
               java.lang.Double sortWeight)
Method Detail

getModifier

public ProblemModifier getModifier()
Returns:
the status

setModifier

public void setModifier(ProblemModifier modifier)
Parameters:
status - the status to set

setModifier

public void setModifier(java.lang.String modifier)
Parameters:
status - the status to set

getSortWeight

public java.lang.Double getSortWeight()
Returns:
the sortWeight

setSortWeight

public void setSortWeight(java.lang.Double sortWeight)
Parameters:
sortWeight - the sortWeight to set

getProblem

public Concept getProblem()
is actually "concept" in ActiveList

Returns:
the problem

setProblem

public void setProblem(Concept problem)
Set the problem concept

Parameters:
problem -

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ActiveListItem

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(Problem item)
Specified by:
compareTo in interface java.lang.Comparable<Problem>
See Also:
Comparable.compareTo(java.lang.Object)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change