public class ConceptAnswer extends BaseOpenmrsObject implements Auditable, Serializable, Comparable<ConceptAnswer>
Concept
. The link to
the parent question Concept is stored in getConcept()
and the answer this object is
representing is stored in getAnswerConcept()
.Concept.getAnswers()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ConceptAnswer()
default constructor
|
ConceptAnswer(Concept answerConcept) |
ConceptAnswer(Concept answerConcept,
Drug d) |
ConceptAnswer(Integer conceptAnswerId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConceptAnswer ca) |
Concept |
getAnswerConcept() |
Drug |
getAnswerDrug() |
User |
getChangedBy()
Not currently used.
|
Concept |
getConcept() |
Integer |
getConceptAnswerId() |
User |
getCreator() |
Date |
getDateChanged()
Not currently used.
|
Date |
getDateCreated() |
Integer |
getId() |
Double |
getSortWeight() |
void |
setAnswerConcept(Concept answerConcept) |
void |
setAnswerDrug(Drug answerDrug) |
void |
setChangedBy(User changedBy)
Not currently used.
|
void |
setConcept(Concept concept) |
void |
setConceptAnswerId(Integer conceptAnswerId) |
void |
setCreator(User creator) |
void |
setDateChanged(Date dateChanged)
Not currently used.
|
void |
setDateCreated(Date dateCreated) |
void |
setId(Integer id) |
void |
setSortWeight(Double sortWeight) |
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public ConceptAnswer()
public ConceptAnswer(Integer conceptAnswerId)
public ConceptAnswer(Concept answerConcept)
public Concept getAnswerConcept()
public void setAnswerConcept(Concept answerConcept)
answerConcept
- The answerConcept to set.public Drug getAnswerDrug()
public void setAnswerDrug(Drug answerDrug)
answerDrug
- The answerDrug to set.public Concept getConcept()
public void setConcept(Concept concept)
concept
- The concept to set.public Integer getConceptAnswerId()
public void setConceptAnswerId(Integer conceptAnswerId)
conceptAnswerId
- The conceptAnswerId to set.public User getCreator()
getCreator
in interface Creatable
public void setCreator(User creator)
setCreator
in interface Creatable
creator
- The creator to set.public Date getDateCreated()
getDateCreated
in interface Creatable
public void setDateCreated(Date dateCreated)
setDateCreated
in interface Creatable
dateCreated
- The dateCreated to set.public 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 User getChangedBy()
getChangedBy
in interface Changeable
Changeable.getChangedBy()
public Date getDateChanged()
getDateChanged
in interface Changeable
Changeable.getDateChanged()
public void setChangedBy(User changedBy)
setChangedBy
in interface Changeable
changedBy
- - the user who last changed the objectChangeable.setChangedBy(org.openmrs.User)
public void setDateChanged(Date dateChanged)
setDateChanged
in interface Changeable
dateChanged
- - the date the object was last changedChangeable.setDateChanged(java.util.Date)
public Double getSortWeight()
public void setSortWeight(Double sortWeight)
sortWeight
- The sortWeight to set.public int compareTo(ConceptAnswer ca)
compareTo
in interface Comparable<ConceptAnswer>
Note: this comparator imposes orderings that are inconsistent with equals.
Copyright © 2024 OpenMRS Inc.. All rights reserved.