org.openmrs
Class ConceptNumeric

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.Concept
          extended by org.openmrs.ConceptNumeric
All Implemented Interfaces:
java.io.Serializable, Attributable<Concept>, Auditable, OpenmrsObject, Retireable

public class ConceptNumeric
extends Concept
implements java.io.Serializable

The ConceptNumeric extends upon the Concept object by adding some number range values

See Also:
Concept, Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ConceptNumeric()
          default constructor
ConceptNumeric(Concept c)
          Optional constructor for turning a Concept into a ConceptNumeric

Note: This cannot copy over numeric specific values
ConceptNumeric(java.lang.Integer conceptId)
          Generic constructor taking the primary key
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Double getHiAbsolute()
           
 java.lang.Double getHiCritical()
           
 java.lang.Double getHiNormal()
           
 java.lang.Double getLowAbsolute()
           
 java.lang.Double getLowCritical()
           
 java.lang.Double getLowNormal()
           
 java.lang.Boolean getPrecise()
           
 java.lang.String getUnits()
           
 int hashCode()
           
 boolean isNumeric()
          This method will always return true for ConceptNumeric objects that have a datatype of Numeric
 java.lang.Boolean isPrecise()
           
 void setHiAbsolute(java.lang.Double hiAbsolute)
           
 void setHiCritical(java.lang.Double hiCritical)
           
 void setHiNormal(java.lang.Double hiNormal)
           
 void setLowAbsolute(java.lang.Double lowAbsolute)
           
 void setLowCritical(java.lang.Double lowCritical)
           
 void setLowNormal(java.lang.Double lowNormal)
           
 void setPrecise(java.lang.Boolean precise)
           
 void setUnits(java.lang.String units)
           
 
Methods inherited from class org.openmrs.Concept
addAnswer, addConceptMapping, addDescription, addName, addSetMember, addSetMember, findNameTaggedWith, findPossibleValues, getAllConceptNameLocales, getAnswers, getAnswers, getBestName, getBestShortName, getChangedBy, getCompatibleNames, getConceptClass, getConceptId, getConceptMappings, getConceptSets, getCreator, getDatatype, getDateChanged, getDateCreated, getDateRetired, getDescription, getDescription, getDescription, getDescriptions, getDisplayString, getFullySpecifiedName, getId, getIndexTerms, getIndexTermsForLocale, getName, getName, getName, getNames, getNames, getNames, getPossibleValues, getPreferredName, getPreferredNameForCountry, getPreferredNameInLanguage, getRetired, getRetiredBy, getRetireReason, getSet, getSetMembers, getShortestName, getShortNameForCountry, getShortNameInLanguage, getShortNameInLocale, getShortNames, getShortNamesForLocale, getSortedAnswers, getSynonyms, getSynonyms, getVersion, hasName, hydrate, isComplex, isNamed, isRetired, isSet, removeAnswer, removeConceptMapping, removeDescription, removeName, serialize, setAnswers, setChangedBy, setConceptClass, setConceptId, setConceptMappings, setConceptSets, setCreator, setDatatype, setDateChanged, setDateCreated, setDateRetired, setDescriptions, setFullySpecifiedName, setId, setNames, setPreferredName, setPreferredName, setRetired, setRetiredBy, setRetireReason, setSet, setShortName, setShortName, setVersion, 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
 
Methods inherited from interface org.openmrs.OpenmrsObject
getUuid, setUuid
 

Field Detail

serialVersionUID

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

ConceptNumeric

public ConceptNumeric()
default constructor


ConceptNumeric

public ConceptNumeric(java.lang.Integer conceptId)
Generic constructor taking the primary key

Parameters:
conceptId - key for this numeric concept

ConceptNumeric

public ConceptNumeric(Concept c)
Optional constructor for turning a Concept into a ConceptNumeric

Note: This cannot copy over numeric specific values

Parameters:
c -
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Concept
See Also:
Concept.equals(java.lang.Object)
Expected behavior:
not return true if obj is concept

hashCode

public int hashCode()
Overrides:
hashCode in class Concept
See Also:
Concept.hashCode()

getHiAbsolute

public java.lang.Double getHiAbsolute()

setHiAbsolute

public void setHiAbsolute(java.lang.Double hiAbsolute)

getHiCritical

public java.lang.Double getHiCritical()

setHiCritical

public void setHiCritical(java.lang.Double hiCritical)

getHiNormal

public java.lang.Double getHiNormal()

setHiNormal

public void setHiNormal(java.lang.Double hiNormal)

getLowAbsolute

public java.lang.Double getLowAbsolute()

setLowAbsolute

public void setLowAbsolute(java.lang.Double lowAbsolute)

getLowCritical

public java.lang.Double getLowCritical()

setLowCritical

public void setLowCritical(java.lang.Double lowCritical)

getLowNormal

public java.lang.Double getLowNormal()

setLowNormal

public void setLowNormal(java.lang.Double lowNormal)

getUnits

public java.lang.String getUnits()

setUnits

public void setUnits(java.lang.String units)

isPrecise

public java.lang.Boolean isPrecise()

getPrecise

public java.lang.Boolean getPrecise()

setPrecise

public void setPrecise(java.lang.Boolean precise)

isNumeric

public boolean isNumeric()
This method will always return true for ConceptNumeric objects that have a datatype of Numeric

Overrides:
isNumeric in class Concept
Returns:
false
See Also:
Concept.isNumeric()

OpenMRS-1.7.x

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