public class ConceptDatatype extends BaseOpenmrsMetadata implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BOOLEAN |
static String |
BOOLEAN_UUID |
static String |
CODED |
static String |
CODED_UUID |
static String |
COMPLEX_UUID |
static String |
DATE |
static String |
DATE_UUID |
static String |
DATETIME |
static String |
DATETIME_UUID |
static String |
DOCUMENT |
static String |
DOCUMENT_UUID |
static String |
N_A_UUID |
static String |
NUMERIC |
static String |
NUMERIC_UUID |
static String |
RULE_UUID |
static long |
serialVersionUID |
static String |
STRUCTURED_NUMERIC_UUID |
static String |
TEXT |
static String |
TEXT_UUID |
static String |
TIME |
static String |
TIME_UUID |
Constructor and Description |
---|
ConceptDatatype()
default constructor
|
ConceptDatatype(Integer conceptDatatypeId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsDate() |
boolean |
containsTime() |
boolean |
equals(Object obj) |
Integer |
getConceptDatatypeId() |
String |
getHl7Abbreviation() |
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(Integer conceptDatatypeId) |
void |
setHl7Abbreviation(String hl7Abbreviation) |
void |
setId(Integer id) |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public static final String BOOLEAN
public static final String CODED
public static final String DATE
public static final String DATETIME
public static final String DOCUMENT
public static final String NUMERIC
public static final String TEXT
public static final String TIME
public static final String NUMERIC_UUID
public static final String CODED_UUID
public static final String TEXT_UUID
public static final String N_A_UUID
public static final String DOCUMENT_UUID
public static final String DATE_UUID
public static final String TIME_UUID
public static final String DATETIME_UUID
public static final String BOOLEAN_UUID
public static final String RULE_UUID
public static final String STRUCTURED_NUMERIC_UUID
public static final String COMPLEX_UUID
public ConceptDatatype()
public ConceptDatatype(Integer conceptDatatypeId)
public Integer getConceptDatatypeId()
public void setConceptDatatypeId(Integer conceptDatatypeId)
public String getHl7Abbreviation()
public void setHl7Abbreviation(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 Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(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 LLC.. All Rights Reserved.