@Indexed public class Drug extends BaseChangeableOpenmrsMetadata
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 |
---|---|
void |
addDrugReferenceMap(DrugReferenceMap drugReferenceMap)
Add the given DrugReferenceMap object to this drug's list of drug reference mappings.
|
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() |
Concept |
getDoseLimitUnits()
Gets the doseLimitUnits which represents the units of the existing maximumDailyDose and
minimumDailyDose
|
Integer |
getDrugId()
Gets the internal identification number for this drug
|
Set<DrugReferenceMap> |
getDrugReferenceMaps() |
String |
getFullName(Locale locale)
Gets the entries concept drug name in the form of CONCEPTNAME (Drug: DRUGNAME)
|
Integer |
getId() |
Collection<DrugIngredient> |
getIngredients() |
Double |
getMaximumDailyDose() |
Double |
getMinimumDailyDose() |
String |
getStrength()
Gets the strength
|
Boolean |
isCombination()
Deprecated.
as of 2.0, use
getCombination() |
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 |
setDoseLimitUnits(Concept doseLimitUnits)
Sets the doseLimitUnits which represents the units of the existing maximumDailyDose and
minimumDailyDose
|
void |
setDrugId(Integer drugId)
Sets the internal identification number for this drug
|
void |
setDrugReferenceMaps(Set<DrugReferenceMap> drugReferenceMaps) |
void |
setId(Integer id) |
void |
setIngredients(Collection<DrugIngredient> ingredients) |
void |
setMaximumDailyDose(Double maximumDailyDose) |
void |
setMinimumDailyDose(Double minimumDailyDose) |
void |
setStrength(String strength)
Sets the strength
|
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(Integer drugId)
public Integer getDrugId()
public void setDrugId(Integer drugId)
drugId
- public String getFullName(Locale locale)
locale
- @Deprecated public Boolean isCombination()
getCombination()
public Boolean getCombination()
public void setCombination(Boolean combination)
combination
- public String getStrength()
public void setStrength(String strength)
strength
- 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 Collection<DrugIngredient> getIngredients()
public void setIngredients(Collection<DrugIngredient> ingredients)
ingredients
- The ingredients to setpublic Integer getId()
OpenmrsObject.getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public String getDisplayName()
public Set<DrugReferenceMap> getDrugReferenceMaps()
public void setDrugReferenceMaps(Set<DrugReferenceMap> drugReferenceMaps)
drugReferenceMaps
- The drugReferenceMaps to set.public void addDrugReferenceMap(DrugReferenceMap drugReferenceMap)
drugReferenceMap
- public Concept getDoseLimitUnits()
public void setDoseLimitUnits(Concept doseLimitUnits)
doseLimitUnits
- The doseLimitUnits to set.Copyright © 2024 OpenMRS Inc.. All rights reserved.