public class Drug extends BaseOpenmrsMetadata implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Drug()
default constructor
|
Drug(java.lang.Integer drugId)
constructor with id
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getCombination() |
Concept |
getConcept()
Gets the concept this drug is tied to
|
java.lang.String |
getDisplayName()
Convenience method that returns a display name for the drug, defaults to drug.name
|
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()
Deprecated.
moving it to order entry where it belongs.
|
java.lang.String |
getUnits()
Gets the units
|
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)
Deprecated.
moving it to order entry where it belongs.
|
void |
setUnits(java.lang.String units)
Sets the units
|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReasonequals, getUuid, hashCode, setUuid, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic static final long serialVersionUID
public Drug()
public Drug(java.lang.Integer drugId)
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)
@Deprecated public Concept getRoute()
@Deprecated public void setRoute(Concept route)
public java.lang.Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(java.lang.Integer id)
setId in interface OpenmrsObjectid - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)public java.lang.String getDisplayName()
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.