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)
DosingInstructionsgetDosingInstructionsAsString in interface DosingInstructionsDosingInstructions.getDosingInstructions(DrugOrder)public void setDosingInstructions(DrugOrder order)
DosingInstructionssetDosingInstructions in interface DosingInstructionsorder - DrugOrder to set dosing instructionsDosingInstructions.setDosingInstructions(DrugOrder)public DosingInstructions getDosingInstructions(DrugOrder order) throws APIException
DosingInstructionsgetDosingInstructions in interface DosingInstructionsorder - DrugOrder to get dosing instructionsAPIExceptionDosingInstructions.getDosingInstructions(DrugOrder)public void validate(DrugOrder order, org.springframework.validation.Errors errors)
validate in interface DosingInstructionspublic java.util.Date getAutoExpireDate(DrugOrder order)
DosingInstructionsgetAutoExpireDate in interface DosingInstructionspublic java.lang.String getInstructions()
public void setInstructions(java.lang.String instructions)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.