public class Drug extends BaseOpenmrsMetadata implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Drug()
default constructor
|
Drug(Integer drugId)
constructor with id
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares two Drug objects for similarity
|
Boolean |
getCombination() |
Concept |
getConcept()
Gets the concept this drug is tied to
|
String |
getDisplayName()
Convenience method that returns a display name for the drug, defaults to drug.name
|
Concept |
getDosageForm() |
Double |
getDoseStrength()
Gets the dose strength of this drug
|
Integer |
getDrugId()
Gets the internal identification number for this drug
|
String |
getFullName(Locale locale)
Gets the entires concept drug name in the form of CONCEPTNAME (Drug: DRUGNAME)
|
Integer |
getId() |
Double |
getMaximumDailyDose() |
Double |
getMinimumDailyDose() |
Concept |
getRoute() |
String |
getUnits()
Gets the units
|
int |
hashCode() |
Boolean |
isCombination()
Gets whether or not this is a combination drug
|
void |
setCombination(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(Double doseStrength)
Sets the dose strength
|
void |
setDrugId(Integer drugId)
Sets the internal identification number for this drug
|
void |
setId(Integer id) |
void |
setMaximumDailyDose(Double maximumDailyDose) |
void |
setMinimumDailyDose(Double minimumDailyDose) |
void |
setRoute(Concept route) |
void |
setUnits(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, setRetireReason
getUuid, setUuid
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getUuid, setUuid
public static final long serialVersionUID
public Drug()
public Drug(Integer drugId)
public boolean equals(Object obj)
public Integer getDrugId()
public void setDrugId(Integer drugId)
drugId
- public String getFullName(Locale locale)
locale
- public Boolean isCombination()
public Boolean getCombination()
public void setCombination(Boolean combination)
combination
- public Double getDoseStrength()
public void setDoseStrength(Double doseStrength)
doseStrength
- public String getUnits()
public void setUnits(String units)
units
- public Concept getConcept()
public void setConcept(Concept concept)
concept
- public Concept getDosageForm()
public void setDosageForm(Concept dosageForm)
public Double getMaximumDailyDose()
public void setMaximumDailyDose(Double maximumDailyDose)
public Double getMinimumDailyDose()
public void setMinimumDailyDose(Double minimumDailyDose)
public Concept getRoute()
public void setRoute(Concept route)
public 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 String getDisplayName()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.