org.openmrs
Class ConceptDatatype
java.lang.Object
org.openmrs.BaseOpenmrsObject
org.openmrs.BaseOpenmrsMetadata
org.openmrs.ConceptDatatype
- All Implemented Interfaces:
- java.io.Serializable, Auditable, OpenmrsMetadata, OpenmrsObject, Retireable
public class ConceptDatatype
- extends BaseOpenmrsMetadata
- implements java.io.Serializable
ConceptDatatype
- See Also:
- Serialized Form
Methods inherited from class org.openmrs.BaseOpenmrsMetadata |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
BOOLEAN
public static final java.lang.String BOOLEAN
- See Also:
- Constant Field Values
CODED
public static final java.lang.String CODED
- See Also:
- Constant Field Values
DATE
public static final java.lang.String DATE
- See Also:
- Constant Field Values
DATETIME
public static final java.lang.String DATETIME
- See Also:
- Constant Field Values
DOCUMENT
public static final java.lang.String DOCUMENT
- See Also:
- Constant Field Values
NUMERIC
public static final java.lang.String NUMERIC
- See Also:
- Constant Field Values
TEXT
public static final java.lang.String TEXT
- See Also:
- Constant Field Values
TIME
public static final java.lang.String TIME
- See Also:
- Constant Field Values
NUMERIC_UUID
public static final java.lang.String NUMERIC_UUID
- See Also:
- Constant Field Values
CODED_UUID
public static final java.lang.String CODED_UUID
- See Also:
- Constant Field Values
TEXT_UUID
public static final java.lang.String TEXT_UUID
- See Also:
- Constant Field Values
N_A_UUID
public static final java.lang.String N_A_UUID
- See Also:
- Constant Field Values
DOCUMENT_UUID
public static final java.lang.String DOCUMENT_UUID
- See Also:
- Constant Field Values
DATE_UUID
public static final java.lang.String DATE_UUID
- See Also:
- Constant Field Values
TIME_UUID
public static final java.lang.String TIME_UUID
- See Also:
- Constant Field Values
DATETIME_UUID
public static final java.lang.String DATETIME_UUID
- See Also:
- Constant Field Values
BOOLEAN_UUID
public static final java.lang.String BOOLEAN_UUID
- See Also:
- Constant Field Values
RULE_UUID
public static final java.lang.String RULE_UUID
- See Also:
- Constant Field Values
STRUCTURED_NUMERIC_UUID
public static final java.lang.String STRUCTURED_NUMERIC_UUID
- See Also:
- Constant Field Values
COMPLEX_UUID
public static final java.lang.String COMPLEX_UUID
- See Also:
- Constant Field Values
ConceptDatatype
public ConceptDatatype()
- default constructor
ConceptDatatype
public ConceptDatatype(java.lang.Integer conceptDatatypeId)
- constructor with id
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getConceptDatatypeId
public java.lang.Integer getConceptDatatypeId()
setConceptDatatypeId
public void setConceptDatatypeId(java.lang.Integer conceptDatatypeId)
getHl7Abbreviation
public java.lang.String getHl7Abbreviation()
- Returns:
- Returns the hl7Abbreviation.
setHl7Abbreviation
public void setHl7Abbreviation(java.lang.String hl7Abbreviation)
- Parameters:
hl7Abbreviation
- The hl7Abbreviation to set.
isAnswerOnly
public boolean isAnswerOnly()
- Returns:
true
if datatype is N/A, i.e. this concept is only an answer, not a
question
isNumeric
public boolean isNumeric()
- Returns:
true
if datatype is a numeric datatype
isCoded
public boolean isCoded()
- Returns:
true
if datatype is coded (i.e., an identifier from a vocabulary)
isDate
public boolean isDate()
- Returns:
true
if datatype is representation of date (but NOT a time or
datatime--see containsDate() and containsTime())
isTime
public boolean isTime()
- Returns:
true
if datatype is representation of time- Since:
- 1.7
isDateTime
public boolean isDateTime()
- Returns:
true
if datatype is representation of Datetime- Since:
- 1.7
containsDate
public boolean containsDate()
- Returns:
true
if datatype is representation of either date or Datetime- Since:
- 1.7
containsTime
public boolean containsTime()
- Returns:
true
if datatype is representation of either time or Datetime- Since:
- 1.7
isText
public boolean isText()
- Returns:
true
if datatype is text-based
isBoolean
public boolean isBoolean()
- Returns:
true
if datatype is boolean
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)
isComplex
public boolean isComplex()
- Returns:
true
if datatype is complex- Since:
- 1.7
isRule
public boolean isRule()
- Returns:
true
if datatype is a rule- Since:
- 1.7
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change