public class SimpleDosingInstructions extends BaseDosingInstructions
Constructor and Description |
---|
SimpleDosingInstructions() |
Modifier and Type | Method and Description |
---|---|
String |
getAdministrationInstructions() |
Boolean |
getAsNeeded() |
String |
getAsNeededCondition() |
Double |
getDose() |
Concept |
getDoseUnits() |
DosingInstructions |
getDosingInstructions(DrugOrder order)
Get dosing instructions from order
|
String |
getDosingInstructionsAsString(Locale locale)
Get human-readable version of dosing instructions for a particular locale All dosing
instructions can be localized, so the result, especially any free text may remain in the
original language.
|
Integer |
getDuration() |
Concept |
getDurationUnits() |
OrderFrequency |
getFrequency() |
Concept |
getRoute() |
void |
setAdministrationInstructions(String administrationInstructions) |
void |
setAsNeeded(Boolean asNeeded) |
void |
setAsNeededCondition(String asNeededCondition) |
void |
setDose(Double dose) |
void |
setDoseUnits(Concept doseUnits) |
void |
setDosingInstructions(DrugOrder order)
Serialize dosing instructions into order
|
void |
setDuration(Integer duration) |
void |
setDurationUnits(Concept durationUnits) |
void |
setFrequency(OrderFrequency frequency) |
void |
setRoute(Concept route) |
void |
validate(DrugOrder order,
org.springframework.validation.Errors errors) |
getAutoExpireDate
public String getDosingInstructionsAsString(Locale locale)
DosingInstructions
DosingInstructions.getDosingInstructionsAsString(java.util.Locale)
public void setDosingInstructions(DrugOrder order)
DosingInstructions
order
- DrugOrder to set dosing instructionsDosingInstructions.setDosingInstructions(DrugOrder)
public DosingInstructions getDosingInstructions(DrugOrder order)
DosingInstructions
order
- DrugOrder to get dosing instructionsDosingInstructions.getDosingInstructions(DrugOrder)
public void validate(DrugOrder order, org.springframework.validation.Errors errors)
order
- errors
- Should reject a duration unit with a mapping of an invalid typeDosingInstructions.validate(DrugOrder, org.springframework.validation.Errors)
public Double getDose()
public void setDose(Double dose)
public Concept getDoseUnits()
public void setDoseUnits(Concept doseUnits)
public Concept getRoute()
public void setRoute(Concept route)
public OrderFrequency getFrequency()
public void setFrequency(OrderFrequency frequency)
public Integer getDuration()
public void setDuration(Integer duration)
public Concept getDurationUnits()
public void setDurationUnits(Concept durationUnits)
public Boolean getAsNeeded()
public void setAsNeeded(Boolean asNeeded)
public String getAsNeededCondition()
public void setAsNeededCondition(String asNeededCondition)
public String getAdministrationInstructions()
public void setAdministrationInstructions(String administrationInstructions)
Copyright © 2024 OpenMRS Inc.. All rights reserved.