context.registerErrorWidget(numRefillsWidget, numRefillsErrorWidget);
}
@Override
protected String generateHtmlForAdditionalWidgets(FormEntryContext context) {
MessageSourceService mss = Context.getMessageSourceService();
StringBuilder html = new StringBuilder();
html.append(generateHtmlForWidget(context, mss.getMessage("htmlformentry.drugOrder.dosingType") + " ", dosingTypeWidget, null));
html.append(generateHtmlForWidget(context, mss.getMessage("DrugOrder.dose") + " ", doseWidget, doseErrorWidget));
html.append(generateHtmlForWidget(context, mss.getMessage("DrugOrder.dose") + " " + mss.getMessage("DrugOrder.units") + " ", doseUnitsWidget, null));
html.append(generateHtmlForWidget(context, mss.getMessage("DrugOrder.quantity") + " ", quantityWidget, quantityErrorWidget));
html.append(generateHtmlForWidget(context, mss.getMessage("DrugOrder.quantity") + " " + mss.getMessage("DrugOrder.units") + " ", quantityUnitsWidget,
null));
html.append(generateHtmlForWidget(context, mss.getMessage("htmlformentry.drugOrder.duration") + " ", durationWidget, durationErrorWidget));
html.append(generateHtmlForWidget(context, mss.getMessage("htmlformentry.drugOrder.duration") + " " + mss.getMessage("DrugOrder.units") + " ", durationUnitsWidget,
null));
html.append(generateHtmlForWidget(context, mss.getMessage("htmlformentry.drugOrder.route") + " ", routeWidget, null));
html.append(generateHtmlForWidget(context, mss.getMessage("htmlformentry.drugOrder.careSetting") + " ", careSettingWidget, null));
html.append(generateHtmlForWidget(context, mss.getMessage("htmlformentry.drugOrder.numRefills") + " ", numRefillsWidget, numRefillsErrorWidget));
return html.toString();
}