本文整理了Java中org.openmrs.Order.setStartDate()
方法的一些代码示例,展示了Order.setStartDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.setStartDate()
方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:setStartDate
暂无
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
protected void editStandardRegimen(FormEntrySession session, HttpServletRequest submission, String regCode, Date startDate, Date discontinuedDate,
String discontinuedReasonStr) {
if (existingStandardRegimen != null && regCode.equals(existingStandardRegimen.getCodeName())){
//the drug orders are already there and attached to the encounter.
for (Order o : regDrugOrders){
if (!StringUtils.isEmpty(discontinuedReasonStr))
o.setDiscontinuedReason(HtmlFormEntryUtil.getConcept(discontinuedReasonStr));
if (discontinuedDate != null){
o.setDiscontinuedDate(discontinuedDate);
o.setDiscontinued(true);
}
o.setStartDate(startDate);
}
} else {
//standard regimen changed in the drop-down... I'm going to have this void the old DrugOrders, and create new ones.
voidDrugOrders(regDrugOrders, session);
enterStandardRegimen(session, submission, regCode, startDate, discontinuedDate, discontinuedReasonStr);
}
}
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
int counter = 1;
for (Order dor : e.getOrders()){
dor.setStartDate(new Date((dor.getStartDate().getTime()) - (aDay * counter)));
counter ++;
log.debug("drugOrder now has start date " + dor.getStartDate());
内容来源于网络,如有侵权,请联系作者删除!