public class SimpleDosingInstructions extends java.lang.Object implements DosingInstructions
Constructor and Description |
---|
SimpleDosingInstructions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdministrationInstructions() |
java.lang.Boolean |
getAsNeeded() |
java.lang.String |
getAsNeededCondition() |
java.util.Date |
getAutoExpireDate(DrugOrder drugOrder)
Implementations of this interface may be able to infer the auto-expiration date from other
fields on the DrugOrder.
|
java.lang.Double |
getDose() |
Concept |
getDoseUnits() |
DosingInstructions |
getDosingInstructions(DrugOrder order)
Get dosing instructions from order
|
java.lang.String |
getDosingInstructionsAsString(java.util.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.
|
java.lang.Integer |
getDuration() |
Concept |
getDurationUnits() |
OrderFrequency |
getFrequency() |
Concept |
getRoute() |
void |
setAdministrationInstructions(java.lang.String administrationInstructions) |
void |
setAsNeeded(java.lang.Boolean asNeeded) |
void |
setAsNeededCondition(java.lang.String asNeededCondition) |
void |
setDose(java.lang.Double dose) |
void |
setDoseUnits(Concept doseUnits) |
void |
setDosingInstructions(DrugOrder order)
Serialize dosing instructions into order
|
void |
setDuration(java.lang.Integer duration) |
void |
setDurationUnits(Concept durationUnits) |
void |
setFrequency(OrderFrequency frequency) |
void |
setRoute(Concept route) |
void |
validate(DrugOrder order,
org.springframework.validation.Errors errors) |
public java.lang.String getDosingInstructionsAsString(java.util.Locale locale)
DosingInstructions
getDosingInstructionsAsString
in interface DosingInstructions
DosingInstructions.getDosingInstructionsAsString(java.util.Locale)
public void setDosingInstructions(DrugOrder order)
DosingInstructions
setDosingInstructions
in interface DosingInstructions
order
- DrugOrder to set dosing instructionsDosingInstructions.setDosingInstructions(DrugOrder)
public DosingInstructions getDosingInstructions(DrugOrder order)
DosingInstructions
getDosingInstructions
in interface DosingInstructions
order
- DrugOrder to get dosing instructionsDosingInstructions.getDosingInstructions(DrugOrder)
public void validate(DrugOrder order, org.springframework.validation.Errors errors)
validate
in interface DosingInstructions
order
- errors
- DosingInstructions.validate(DrugOrder, org.springframework.validation.Errors)
public java.util.Date getAutoExpireDate(DrugOrder drugOrder)
DosingInstructions
getAutoExpireDate
in interface DosingInstructions
DosingInstructions.getAutoExpireDate(DrugOrder)
public java.lang.Double getDose()
public void setDose(java.lang.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 java.lang.Integer getDuration()
public void setDuration(java.lang.Integer duration)
public Concept getDurationUnits()
public void setDurationUnits(Concept durationUnits)
public java.lang.Boolean getAsNeeded()
public void setAsNeeded(java.lang.Boolean asNeeded)
public java.lang.String getAsNeededCondition()
public void setAsNeededCondition(java.lang.String asNeededCondition)
public java.lang.String getAdministrationInstructions()
public void setAdministrationInstructions(java.lang.String administrationInstructions)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.