public class FreeTextDosingInstructions extends java.lang.Object implements DosingInstructions
Constructor and Description |
---|
FreeTextDosingInstructions() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAutoExpireDate(DrugOrder order)
Implementations of this interface may be able to infer the auto-expiration date from other
fields on the DrugOrder.
|
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.String |
getInstructions() |
void |
setDosingInstructions(DrugOrder order)
Serialize dosing instructions into order
|
void |
setInstructions(java.lang.String instructions) |
void |
validate(DrugOrder order,
org.springframework.validation.Errors errors) |
public java.lang.String getDosingInstructionsAsString(java.util.Locale locale)
DosingInstructions
getDosingInstructionsAsString
in interface DosingInstructions
DosingInstructions.getDosingInstructions(DrugOrder)
public void setDosingInstructions(DrugOrder order)
DosingInstructions
setDosingInstructions
in interface DosingInstructions
order
- DrugOrder to set dosing instructionsDosingInstructions.setDosingInstructions(DrugOrder)
public DosingInstructions getDosingInstructions(DrugOrder order) throws APIException
DosingInstructions
getDosingInstructions
in interface DosingInstructions
order
- DrugOrder to get dosing instructionsAPIException
DosingInstructions.getDosingInstructions(DrugOrder)
public void validate(DrugOrder order, org.springframework.validation.Errors errors)
validate
in interface DosingInstructions
public java.util.Date getAutoExpireDate(DrugOrder order)
DosingInstructions
getAutoExpireDate
in interface DosingInstructions
public java.lang.String getInstructions()
public void setInstructions(java.lang.String instructions)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.