org.openmrs
Class ConceptSource

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.BaseOpenmrsMetadata
          extended by org.openmrs.ConceptSource
All Implemented Interfaces:
java.io.Serializable, Auditable, OpenmrsMetadata, OpenmrsObject, Retireable, Voidable

public class ConceptSource
extends BaseOpenmrsMetadata
implements Voidable, java.io.Serializable

A concept source is defined as any institution that keeps a concept dictionary. Examples are ICD9, ICD10, SNOMED, or any other OpenMRS implementation

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ConceptSource()
          default constructor
ConceptSource(java.lang.Integer conceptSourceId)
          constructor with id
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getConceptSourceId()
           
 User getCreator()
           
 java.util.Date getDateCreated()
           
 java.util.Date getDateVoided()
          Deprecated. 
 java.lang.String getDescription()
           
 java.lang.String getHl7Code()
           
 java.lang.Integer getId()
           
 java.lang.String getName()
           
 java.lang.Boolean getVoided()
          Deprecated. Use the "proper" isRetired method.
 User getVoidedBy()
          Deprecated. use getRetiredBy
 java.lang.String getVoidReason()
          Deprecated. use getRetireReason
 int hashCode()
           
 java.lang.Boolean isVoided()
          Deprecated. use isRetired
 void setConceptSourceId(java.lang.Integer conceptSourceId)
           
 void setCreator(User creator)
           
 void setDateCreated(java.util.Date dateCreated)
           
 void setDateVoided(java.util.Date dateVoided)
          Deprecated. 
 void setDescription(java.lang.String description)
           
 void setHl7Code(java.lang.String hl7Code)
           
 void setId(java.lang.Integer id)
           
 void setName(java.lang.String name)
           
 void setVoided(java.lang.Boolean voided)
          Deprecated. use setRetired
 void setVoidedBy(User voidedBy)
          Deprecated. use setRetiredBy
 void setVoidReason(java.lang.String voidReason)
          Deprecated. use setRetireReason
 
Methods inherited from class org.openmrs.BaseOpenmrsMetadata
getChangedBy, getDateChanged, getDateRetired, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setDateChanged, setDateRetired, setRetired, setRetiredBy, setRetireReason
 
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

serialVersionUID

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

ConceptSource

public ConceptSource()
default constructor


ConceptSource

public ConceptSource(java.lang.Integer conceptSourceId)
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()

getConceptSourceId

public java.lang.Integer getConceptSourceId()
Returns:
Returns the conceptSourceId.

setConceptSourceId

public void setConceptSourceId(java.lang.Integer conceptSourceId)
Parameters:
conceptSourceId - The conceptSourceId to set.

getCreator

public User getCreator()
Specified by:
getCreator in interface Auditable
Overrides:
getCreator in class BaseOpenmrsMetadata
Returns:
User - the user who created the object
See Also:
Auditable.getCreator()

setCreator

public void setCreator(User creator)
Specified by:
setCreator in interface Auditable
Overrides:
setCreator in class BaseOpenmrsMetadata
Parameters:
creator - - the user who created the object
See Also:
Auditable.setCreator(org.openmrs.User)

getDateCreated

public java.util.Date getDateCreated()
Specified by:
getDateCreated in interface Auditable
Overrides:
getDateCreated in class BaseOpenmrsMetadata
Returns:
Returns the dateCreated.
See Also:
Auditable.getDateCreated()

setDateCreated

public void setDateCreated(java.util.Date dateCreated)
Specified by:
setDateCreated in interface Auditable
Overrides:
setDateCreated in class BaseOpenmrsMetadata
Parameters:
dateCreated - The dateCreated to set.
See Also:
Auditable.setDateCreated(java.util.Date)

getDateVoided

@Deprecated
public java.util.Date getDateVoided()
Deprecated. 

Specified by:
getDateVoided in interface Voidable
Returns:
Returns the dateVoided.

setDateVoided

@Deprecated
public void setDateVoided(java.util.Date dateVoided)
Deprecated. 

Specified by:
setDateVoided in interface Voidable
Parameters:
dateVoided - The dateVoided to set.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface OpenmrsMetadata
Overrides:
getDescription in class BaseOpenmrsMetadata
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface OpenmrsMetadata
Overrides:
setDescription in class BaseOpenmrsMetadata
Parameters:
description - the description to set

getHl7Code

public java.lang.String getHl7Code()
Returns:
Returns the hl7Code.

setHl7Code

public void setHl7Code(java.lang.String hl7Code)
Parameters:
hl7Code - The hl7Code to set.

getName

public java.lang.String getName()
Specified by:
getName in interface OpenmrsMetadata
Overrides:
getName in class BaseOpenmrsMetadata
Returns:
the name

setName

public void setName(java.lang.String name)
Specified by:
setName in interface OpenmrsMetadata
Overrides:
setName in class BaseOpenmrsMetadata
Parameters:
name - the name to set

isVoided

@Deprecated
public java.lang.Boolean isVoided()
Deprecated. use isRetired

Specified by:
isVoided in interface Voidable
Returns:
the voided status

getVoided

@Deprecated
public java.lang.Boolean getVoided()
Deprecated. Use the "proper" isRetired method.

This method exists to satisfy spring and hibernates slightly bung use of Boolean object getters and setters.

See Also:
isVoided()

setVoided

@Deprecated
public void setVoided(java.lang.Boolean voided)
Deprecated. use setRetired

Specified by:
setVoided in interface Voidable
Parameters:
voided - The voided status

getVoidedBy

@Deprecated
public User getVoidedBy()
Deprecated. use getRetiredBy

Specified by:
getVoidedBy in interface Voidable
Returns:
Returns the openmrs user that voided this source

setVoidedBy

@Deprecated
public void setVoidedBy(User voidedBy)
Deprecated. use setRetiredBy

Specified by:
setVoidedBy in interface Voidable
Parameters:
voidedBy - The openmrs user that voided this source

getVoidReason

@Deprecated
public java.lang.String getVoidReason()
Deprecated. use getRetireReason

Specified by:
getVoidReason in interface Voidable
Returns:
Returns the reason this source was voided

setVoidReason

@Deprecated
public void setVoidReason(java.lang.String voidReason)
Deprecated. use setRetireReason

Specified by:
setVoidReason in interface Voidable
Parameters:
voidReason - The reason this source is voided

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