public class ConceptDatatype extends BaseOpenmrsMetadata implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ConceptDatatype()
default constructor
|
ConceptDatatype(java.lang.Integer conceptDatatypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsDate() |
boolean |
containsTime() |
java.lang.Integer |
getConceptDatatypeId() |
java.lang.String |
getHl7Abbreviation() |
java.lang.Integer |
getId() |
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) |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
equals, getUuid, hashCode, setUuid, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public static final java.lang.String BOOLEAN
public static final java.lang.String CODED
public static final java.lang.String DATE
public static final java.lang.String DATETIME
public static final java.lang.String DOCUMENT
public static final java.lang.String NUMERIC
public static final java.lang.String TEXT
public static final java.lang.String TIME
public static final java.lang.String NUMERIC_UUID
public static final java.lang.String CODED_UUID
public static final java.lang.String TEXT_UUID
public static final java.lang.String N_A_UUID
public static final java.lang.String DOCUMENT_UUID
public static final java.lang.String DATE_UUID
public static final java.lang.String TIME_UUID
public static final java.lang.String DATETIME_UUID
public static final java.lang.String BOOLEAN_UUID
public static final java.lang.String RULE_UUID
public static final java.lang.String STRUCTURED_NUMERIC_UUID
public static final java.lang.String COMPLEX_UUID
public ConceptDatatype()
public ConceptDatatype(java.lang.Integer conceptDatatypeId)
public java.lang.Integer getConceptDatatypeId()
public void setConceptDatatypeId(java.lang.Integer conceptDatatypeId)
public java.lang.String getHl7Abbreviation()
public void setHl7Abbreviation(java.lang.String hl7Abbreviation)
hl7Abbreviation
- The hl7Abbreviation to set.public boolean isAnswerOnly()
true
if datatype is N/A, i.e. this concept is only an answer, not a
questionpublic boolean isNumeric()
true
if datatype is a numeric datatypepublic boolean isCoded()
true
if datatype is coded (i.e., an identifier from a vocabulary)public boolean isDate()
true
if datatype is representation of date (but NOT a time or
datatime--see containsDate() and containsTime())public boolean isTime()
true
if datatype is representation of timepublic boolean isDateTime()
true
if datatype is representation of Datetimepublic boolean containsDate()
true
if datatype is representation of either date or Datetimepublic boolean containsTime()
true
if datatype is representation of either time or Datetimepublic boolean isText()
true
if datatype is text-basedpublic boolean isBoolean()
true
if datatype is booleanpublic java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public boolean isComplex()
true
if datatype is complexpublic boolean isRule()
true
if datatype is a ruleCopyright © 2018 OpenMRS Inc.. All Rights Reserved.