|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.BaseOpenmrsMetadata org.openmrs.Drug
public class Drug
Drug
Field Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
Drug()
default constructor |
|
Drug(java.lang.Integer drugId)
constructor with id |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares two Drug objects for similarity |
java.lang.Boolean |
getCombination()
|
Concept |
getConcept()
Gets the concept this drug is tied to |
Concept |
getDosageForm()
|
java.lang.Double |
getDoseStrength()
Gets the dose strength of this drug |
java.lang.Integer |
getDrugId()
Gets the internal identification number for this drug |
java.lang.String |
getFullName(java.util.Locale locale)
Gets the entires concept drug name in the form of CONCEPTNAME (Drug: DRUGNAME) |
java.lang.Integer |
getId()
|
java.lang.Double |
getMaximumDailyDose()
|
java.lang.Double |
getMinimumDailyDose()
|
Concept |
getRoute()
|
java.lang.String |
getUnits()
Gets the units |
int |
hashCode()
|
java.lang.Boolean |
isCombination()
Gets whether or not this is a combination drug |
void |
setCombination(java.lang.Boolean combination)
Sets whether or not this is a combination drug |
void |
setConcept(Concept concept)
Sets the concept this drug is tied to |
void |
setDosageForm(Concept dosageForm)
|
void |
setDoseStrength(java.lang.Double doseStrength)
Sets the dose strength |
void |
setDrugId(java.lang.Integer drugId)
Sets the internal identification number for this drug |
void |
setId(java.lang.Integer id)
|
void |
setMaximumDailyDose(java.lang.Double maximumDailyDose)
|
void |
setMinimumDailyDose(java.lang.Double minimumDailyDose)
|
void |
setRoute(Concept route)
|
void |
setUnits(java.lang.String units)
Sets the units |
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 |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public Drug()
public Drug(java.lang.Integer drugId)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Integer getDrugId()
public void setDrugId(java.lang.Integer drugId)
drugId
- public java.lang.String getFullName(java.util.Locale locale)
locale
-
public java.lang.Boolean isCombination()
public java.lang.Boolean getCombination()
public void setCombination(java.lang.Boolean combination)
combination
- public java.lang.Double getDoseStrength()
public void setDoseStrength(java.lang.Double doseStrength)
doseStrength
- public java.lang.String getUnits()
public void setUnits(java.lang.String units)
units
- public Concept getConcept()
public void setConcept(Concept concept)
concept
- public Concept getDosageForm()
public void setDosageForm(Concept dosageForm)
public java.lang.Double getMaximumDailyDose()
public void setMaximumDailyDose(java.lang.Double maximumDailyDose)
public java.lang.Double getMinimumDailyDose()
public void setMinimumDailyDose(java.lang.Double minimumDailyDose)
public Concept getRoute()
public void setRoute(Concept route)
public 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)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |