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 |
---|---|
void |
addDrugReferenceMap(DrugReferenceMap drugReferenceMap)
Add the given DrugReferenceMap object to this drug's list of drug reference mappings.
|
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()
Deprecated.
|
java.lang.Integer |
getDrugId()
Gets the internal identification number for this drug
|
java.util.Set<DrugReferenceMap> |
getDrugReferenceMaps() |
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 |
getStrength()
Gets the strength
|
java.lang.String |
getUnits()
Deprecated.
|
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)
Deprecated.
|
void |
setDrugId(java.lang.Integer drugId)
Sets the internal identification number for this drug
|
void |
setDrugReferenceMaps(java.util.Set<DrugReferenceMap> drugReferenceMaps) |
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 |
setStrength(java.lang.String strength)
Sets the strength
|
void |
setUnits(java.lang.String units)
Deprecated.
|
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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public 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
- @Deprecated public java.lang.Double getDoseStrength()
@Deprecated public void setDoseStrength(java.lang.Double doseStrength)
doseStrength
- @Deprecated public java.lang.String getUnits()
@Deprecated public void setUnits(java.lang.String units)
units
- public java.lang.String getStrength()
public void setStrength(java.lang.String strength)
strength
- 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 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)
public java.lang.String getDisplayName()
public java.util.Set<DrugReferenceMap> getDrugReferenceMaps()
public void setDrugReferenceMaps(java.util.Set<DrugReferenceMap> drugReferenceMaps)
drugReferenceMaps
- The drugReferenceMaps to set.public void addDrugReferenceMap(DrugReferenceMap drugReferenceMap)
drugReferenceMap
- Copyright © 2018 OpenMRS Inc.. All Rights Reserved.