org.openmrs
Class ConceptProposal
java.lang.Object
org.openmrs.BaseOpenmrsObject
org.openmrs.ConceptProposal
- All Implemented Interfaces:
- java.io.Serializable, OpenmrsObject
public class ConceptProposal
- extends BaseOpenmrsObject
- implements java.io.Serializable
A ConceptProposal is a temporary holder for concept that should be in the system. When defining
an observation, a user can "propose" a new concept if one isn't found already. The proposal is a
simple text entry that will be reviewed later. When a proposal is (edited and) accepted, the
encounter that prompted this proposal is updated with a new observation pointing at the new (or
edited) concept.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
ConceptProposal
public ConceptProposal()
- default constructor
ConceptProposal
public ConceptProposal(java.lang.Integer conceptProposalId)
- constructor with id
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
getChangedBy
public User getChangedBy()
- Returns:
- Returns the changedBy.
setChangedBy
public void setChangedBy(User changedBy)
- Parameters:
changedBy
- The changedBy to set.
getConceptProposalId
public java.lang.Integer getConceptProposalId()
- Returns:
- Returns the conceptProposalId.
setConceptProposalId
public void setConceptProposalId(java.lang.Integer conceptProposalId)
- Parameters:
conceptProposalId
- The conceptProposalId to set.
getCreator
public User getCreator()
- Returns:
- Returns the creator.
setCreator
public void setCreator(User creator)
- Parameters:
creator
- The creator to set.
getDateChanged
public java.util.Date getDateChanged()
- Returns:
- Returns the dateChanged.
setDateChanged
public void setDateChanged(java.util.Date dateChanged)
- Parameters:
dateChanged
- The dateChanged to set.
getDateCreated
public java.util.Date getDateCreated()
- Returns:
- Returns the dateCreated.
setDateCreated
public void setDateCreated(java.util.Date dateCreated)
- Parameters:
dateCreated
- The dateCreated to set.
getOriginalText
public java.lang.String getOriginalText()
- Returns:
- Returns the originalText.
setOriginalText
public void setOriginalText(java.lang.String originalText)
- Parameters:
originalText
- The originalText to set.
getFinalText
public java.lang.String getFinalText()
- Returns:
- Returns the final text.
setFinalText
public void setFinalText(java.lang.String t)
- Parameters:
t
- The final text to set.
getComments
public java.lang.String getComments()
- Returns:
- Returns the comments.
setComments
public void setComments(java.lang.String comments)
- Parameters:
comments
- The comments to set.
getState
public java.lang.String getState()
- Returns:
- Returns the state.
setState
public void setState(java.lang.String state)
- Parameters:
state
- The state to set.
getEncounter
public Encounter getEncounter()
- Returns:
- Returns the encounter.
setEncounter
public void setEncounter(Encounter encounter)
- Parameters:
encounter
- The encounter to set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getObs
public Obs getObs()
- Returns:
- Returns the obs.
setObs
public void setObs(Obs obs)
- Parameters:
obs
- The obs to set.
getObsConcept
public Concept getObsConcept()
- Returns:
- Returns the obsConcept.
setObsConcept
public void setObsConcept(Concept obsConcept)
- Parameters:
obsConcept
- The obsConcept to set.
getMappedConcept
public Concept getMappedConcept()
- Returns:
- Returns the mappedConcept.
setMappedConcept
public void setMappedConcept(Concept mappedConcept)
- Parameters:
mappedConcept
- The mappedConcept to set.
rejectConceptProposal
public void rejectConceptProposal()
- Convenience method to mark this proposal as rejected. Be sure to call
Context.getConceptService().saveConceptProposal(/thisObject/) after calling this method
getId
public java.lang.Integer getId()
- Specified by:
getId
in interface OpenmrsObject
- Returns:
- id - The unique Identifier for the object
- Since:
- 1.5
- See Also:
OpenmrsObject.getId()
setId
public void setId(java.lang.Integer id)
- Specified by:
setId
in interface OpenmrsObject
- Parameters:
id
- - The unique Identifier for the object- Since:
- 1.5
- See Also:
OpenmrsObject.setId(java.lang.Integer)
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change