public class OrderType extends BaseChangeableOpenmrsMetadata
Modifier and Type | Field and Description |
---|---|
static String |
DRUG_ORDER_TYPE_UUID |
static String |
REFERRAL_ORDER_TYPE_UUID |
static long |
serialVersionUID |
static String |
TEST_ORDER_TYPE_UUID |
Constructor and Description |
---|
OrderType()
default constructor
|
OrderType(Integer orderTypeId)
Constructor with ID
|
OrderType(String name,
String description,
String javaClassName)
Convenience constructor that takes in the elements required to save this OrderType to the
database
|
Modifier and Type | Method and Description |
---|---|
void |
addConceptClass(ConceptClass conceptClass)
Convenience method that adds the specified concept class
|
Collection<ConceptClass> |
getConceptClasses() |
Integer |
getId() |
Class |
getJavaClass()
Convenience method that returns a
Class object for the associated
javaClassName |
String |
getJavaClassName() |
Integer |
getOrderTypeId() |
OrderType |
getParent() |
void |
setConceptClasses(Collection<ConceptClass> conceptClasses) |
void |
setId(Integer id) |
void |
setJavaClassName(String javaClassName) |
void |
setOrderTypeId(Integer orderTypeId) |
void |
setParent(OrderType parent) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public static final String DRUG_ORDER_TYPE_UUID
public static final String TEST_ORDER_TYPE_UUID
public static final String REFERRAL_ORDER_TYPE_UUID
public OrderType()
public OrderType(Integer orderTypeId)
orderTypeId
- the ID of the OrderType
public OrderType(String name, String description, String javaClassName)
name
- The name of this order Typedescription
- A short description about this order typejavaClassName
- The fully qualified java class namepublic Integer getOrderTypeId()
public void setOrderTypeId(Integer orderTypeId)
orderTypeId
- The orderTypeId to set.public Integer getId()
OpenmrsObject.getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public String getJavaClassName()
public void setJavaClassName(String javaClassName)
javaClassName
- The Java class to set as Stringpublic Collection<ConceptClass> getConceptClasses()
ConceptClass
espublic void setConceptClasses(Collection<ConceptClass> conceptClasses)
conceptClasses
- the collection containing the ConceptClass
espublic Class getJavaClass()
Class
object for the associated
javaClassNameClass
APIException
public void addConceptClass(ConceptClass conceptClass)
conceptClass
- the ConceptClass to add
Should add the specified concept class
Should not add a duplicate concept classpublic String toString()
BaseOpenmrsObject
ClassName{hashCode=..., uuid=...}
If the uuid
field is null
, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString
in class BaseOpenmrsObject
BaseOpenmrsObject.toString()
Copyright © 2024 OpenMRS Inc.. All rights reserved.