public interface DosingInstructions
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.
|
void |
setDosingInstructions(DrugOrder order)
Serialize dosing instructions into order
|
void |
validate(DrugOrder order,
org.springframework.validation.Errors errors) |
java.lang.String getDosingInstructionsAsString(java.util.Locale locale)
void setDosingInstructions(DrugOrder order)
order
- DrugOrder to set dosing instructionsDosingInstructions getDosingInstructions(DrugOrder order)
order
- DrugOrder to get dosing instructionsjava.lang.Exception
- if dosing type of passing order is not matched with dosing type of
implementing dosing instructionvoid validate(DrugOrder order, org.springframework.validation.Errors errors)
java.util.Date getAutoExpireDate(DrugOrder order)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.