org.openmrs
Class ConceptDatatype

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

Field Summary
static java.lang.String BOOLEAN
           
static java.lang.String BOOLEAN_UUID
           
static java.lang.String CODED
           
static java.lang.String CODED_UUID
           
static java.lang.String COMPLEX_UUID
           
static java.lang.String DATE
           
static java.lang.String DATE_UUID
           
static java.lang.String DATETIME
           
static java.lang.String DATETIME_UUID
           
static java.lang.String DOCUMENT
           
static java.lang.String DOCUMENT_UUID
           
static java.lang.String N_A_UUID
           
static java.lang.String NUMERIC
           
static java.lang.String NUMERIC_UUID
           
static java.lang.String RULE_UUID
           
static long serialVersionUID
           
static java.lang.String STRUCTURED_NUMERIC_UUID
           
static java.lang.String TEXT
           
static java.lang.String TEXT_UUID
           
static java.lang.String TIME
           
static java.lang.String TIME_UUID
           
 
Constructor Summary
ConceptDatatype()
          default constructor
ConceptDatatype(java.lang.Integer conceptDatatypeId)
          constructor with id
 
Method Summary
 boolean containsDate()
           
 boolean containsTime()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getConceptDatatypeId()
           
 java.lang.String getHl7Abbreviation()
           
 java.lang.Integer getId()
           
 int hashCode()
           
 boolean isAnswerOnly()
           
 boolean isBoolean()
           
 boolean isCoded()
           
 boolean isComplex()
           
 boolean isDate()
           
 boolean isDateTime()
           
 boolean isNumeric()
           
 boolean isRule()
           
 boolean isText()
           
 boolean isTime()
           
 void setConceptDatatypeId(java.lang.Integer conceptDatatypeId)
           
 void setHl7Abbreviation(java.lang.String hl7Abbreviation)
           
 void setId(java.lang.Integer id)
           
 
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 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

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
Constructor Detail

ConceptDatatype

public ConceptDatatype()
default constructor


ConceptDatatype

public ConceptDatatype(java.lang.Integer conceptDatatypeId)
constructor with id

Method Detail

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

OpenMRS-1.7.x

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