org.openmrs
Class ConceptProposal

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by 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

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ConceptProposal()
          default constructor
ConceptProposal(java.lang.Integer conceptProposalId)
          constructor with id
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 User getChangedBy()
           
 java.lang.String getComments()
           
 java.lang.Integer getConceptProposalId()
           
 User getCreator()
           
 java.util.Date getDateChanged()
           
 java.util.Date getDateCreated()
           
 Encounter getEncounter()
           
 java.lang.String getFinalText()
           
 java.lang.Integer getId()
           
 Concept getMappedConcept()
           
 Obs getObs()
           
 Concept getObsConcept()
           
 java.lang.String getOriginalText()
           
 java.lang.String getState()
           
 int hashCode()
           
 void rejectConceptProposal()
          Convenience method to mark this proposal as rejected.
 void setChangedBy(User changedBy)
           
 void setComments(java.lang.String comments)
           
 void setConceptProposalId(java.lang.Integer conceptProposalId)
           
 void setCreator(User creator)
           
 void setDateChanged(java.util.Date dateChanged)
           
 void setDateCreated(java.util.Date dateCreated)
           
 void setEncounter(Encounter encounter)
           
 void setFinalText(java.lang.String t)
           
 void setId(java.lang.Integer id)
           
 void setMappedConcept(Concept mappedConcept)
           
 void setObs(Obs obs)
           
 void setObsConcept(Concept obsConcept)
           
 void setOriginalText(java.lang.String originalText)
           
 void setState(java.lang.String state)
           
 java.lang.String toString()
           
 
Methods inherited from class org.openmrs.BaseOpenmrsObject
getUuid, setUuid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ConceptProposal

public ConceptProposal()
default constructor


ConceptProposal

public ConceptProposal(java.lang.Integer conceptProposalId)
constructor with id

Method Detail

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)

OpenMRS-1.7.x

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