public class Problem extends ActiveListItem implements Comparable<Problem>
Modifier and Type | Field and Description |
---|---|
static ActiveListType |
ACTIVE_LIST_TYPE |
activeListId, activeListType, comments, concept, endDate, person, startDate, startObs, stopObs
creator
Constructor and Description |
---|
Problem()
no argument constructor to construct a problem
|
Problem(Integer activeListId)
Constructs a problem with a given id
|
Problem(Patient person,
Concept concept,
Date startDate,
ProblemModifier modifier,
String comments,
Double sortWeight)
Convenience constructor to construct a problem with a given Patient, Concept, start date of the problem, modifier type, comments and sort weigh
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Problem item) |
ProblemModifier |
getModifier() |
Concept |
getProblem()
is actually "concept" in ActiveList
|
Double |
getSortWeight() |
void |
setModifier(ProblemModifier modifier)
Set the enum value of modifier
|
void |
setModifier(String modifier)
Set the String value of modifier
|
void |
setProblem(Concept problem)
Set the problem concept
|
void |
setSortWeight(Double sortWeight)
Set the sort weight of the problem
|
getActiveListId, getActiveListType, getComments, getConcept, getEndDate, getId, getPerson, getStartDate, getStartObs, getStopObs, setActiveListId, setActiveListType, setComments, setConcept, setEndDate, setId, setPerson, setStartDate, setStartObs, setStopObs
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final ActiveListType ACTIVE_LIST_TYPE
public Problem()
public Problem(Integer activeListId)
activeListId
- the activeListId to set. this parameter is the id of the ActiveListItempublic Problem(Patient person, Concept concept, Date startDate, ProblemModifier modifier, String comments, Double sortWeight)
person
- the person that this problem is set forconcept
- the concept to setstartDate
- the startDate to set, when the problem occurredcomments
- additional commentssortWeight
- the sort valuepublic ProblemModifier getModifier()
public void setModifier(ProblemModifier modifier)
modifier
- the modifier to setpublic void setModifier(String modifier)
modifier
- the modifier to setpublic Double getSortWeight()
public void setSortWeight(Double sortWeight)
sortWeight
- the sortWeight to setpublic Concept getProblem()
public void setProblem(Concept problem)
problem
- the concept to setpublic int compareTo(Problem item)
compareTo
in interface Comparable<Problem>
Note: this comparator imposes orderings that are inconsistent with equals.
Copyright © 2015 OpenMRS Inc.. All rights reserved.